Open master for 2.31 development.
[glibc.git] / ChangeLog
blobcdb9e14881715711685d5f16515ec1f76729c82b
1 2019-08-01  Carlos O'Donell <carlos@redhat.com>
3         * version.h (RELEASE): Set to "stable".
4         (VERSION): Set to "2.30".
5         * include/features.h (__GLIBC_MINOR__): Set to 2.30.
7         * manual/install.texi: Update component versions.
8         * INSTALL: Regenerate.
9         * NEWS: Update.
11 2019-07-31  Carlos O'Donell <carlos@redhat.com>
13         * po/be.po: Update translations.
14         * po/bg.po: Likewise.
15         * po/ca.po: Likewise.
16         * po/cs.po: Likewise.
17         * po/da.po: Likewise.
18         * po/de.po: Likewise.
19         * po/el.po: Likewise.
20         * po/eo.po: Likewise.
21         * po/es.po: Likewise.
22         * po/fi.po: Likewise.
23         * po/fr.po: Likewise.
24         * po/gl.po: Likewise.
25         * po/hr.po: Likewise.
26         * po/hu.po: Likewise.
27         * po/ia.po: Likewise.
28         * po/id.po: Likewise.
29         * po/it.po: Likewise.
30         * po/ja.po: Likewise.
31         * po/ko.po: Likewise.
32         * po/lt.po: Likewise.
33         * po/nb.po: Likewise.
34         * po/nl.po: Likewise.
35         * po/pl.po: Likewise.
36         * po/pt_BR.po: Likewise.
37         * po/ru.po: Likewise.
38         * po/rw.po: Likewise.
39         * po/sk.po: Likewise.
40         * po/sl.po: Likewise.
41         * po/sv.po: Likewise.
42         * po/tr.po: Likewise.
43         * po/uk.po: Likewise.
44         * po/vi.po: Likewise.
45         * po/zh_CN.po: Likewise.
46         * po/zh_TW.po: Likewise.
48 2019-07-31  Florian Weimer  <fweimer@redhat.com>
50         [BZ #24583]
51         [BZ #24677]
52         iconv, libio: Revert reference counting changes.
53         * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
54         free the steps array.
55         * libio/Makefile (tests): Remove tst-wfile-gconv.
56         (tests-container): Do not add tst-wfile-ascii.
57         (tst-wfile-gconv-ENV): Do not set.
58         (generated): Do not add tst-wfile-gconv.mtrace,
59         tst-wfile-gconv.check.
60         [($run-built-tests)] (tests-special): Do not add
61         tst-wfile-gconv-mem.out.
62         (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
63         * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
64         instead of __wcsmbs_clone_conv.
65         * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
66         * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
68 2019-07-30  Joseph Myers  <joseph@codesourcery.com>
70         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
71         (__CONTEXT_FUNC_NAME): Restore setting of r31.
73 2019-07-30  Florian Weimer  <fweimer@redhat.com>
75         * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
76         type to uintptr_t.  Update comment.
77         (check_stack_top): Adjust.
79 2019-07-29  Florian Weimer  <fweimer@redhat.com>
81         Linux: Move declaration of getdents64 to <dirent.h>.
82         * bits/dirent_ext.h: New file.
83         * dirent/Makefile (headers): Add bits/dirent_ext.h.
84         * dirent/dirent.h: Include <bits/dirent_ext.h>.
85         * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
86         * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
87         declaration.
88         * manual/filesys.texi (Low-level Directory Access): Update header
89         to dirent.h.
91 2019-07-29  DJ Delorie  <dj@redhat.com>
92             Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
94         [BZ #24794]
95         * Makeconfig (all-subdirs): Improved source comments.
96         * Makefile (testroot.pristine/install.stamp): Pass
97         subdirs='$(sorted-subdirs)' to make install.
99 2019-07-25  Florian Weimer  <fweimer@redhat.com>
101         [BZ #24677]
102         * iconv/gconv_cache.c (__gconv_release_cache): Check reference
103         counter before freeing array.
105 2019-07-24  H.J. Lu  <hongjiu.lu@intel.com>
107         [BZ #24603]
108         * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
109         works.
110         * sysdeps/x86_64/configure: Regenerated.
111         * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New.  Set
112         to -mprefer-vector-width=128 if supported.
114 2019-07-24  Florian Weimer  <fweimer@redhat.com>
116         * scripts/build-many-glibcs.py (Context.checkout): Default to
117         Linux 5.2.
119 2019-07-24  Florian Weimer  <fweimer@redhat.com>
121         [BZ #24532]
122         Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
123         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
124         (sysdep_headers): Add bits/socket-constants.h.
125         (tests-special): Add tst-socket-consts.out.
126         (tst-socket-consts.out): New target.
127         * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
128         around <asm/unistd.h>.
129         [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
130         [!__USE_MISC]: Include <sys/socket-constants.h> instead of
131         <asm/socket.h>.
132         * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
133         * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
134         * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
135         * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
136         * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
137         * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
138         Likewise.
139         * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
141 2019-07-23  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
143         [BZ #24794]
144         * Makefile (testroot.pristine/install.stamp): Pass
145         subdirs='$(all-subdirs)' to make install.
147         * Makefile (testroot.pristine/install.stamp): Execute ld.so with
148         the same arguments used in all tests.
150 2019-07-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
152         * NEWS: Mention the AArch64 IFUNC resolver ABI change.
154 2019-07-20  Egor Kobylkin  <egor@kobylkin.com>
156         [BZ #2872]
157         * locale/C-translit.h.in: Add Cyrillic transliteration.
159 2019-07-19  Florian Weimer  <fweimer@redhat.com>
161         * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
162         from Linux 5.2.
163         (fsconfig): Add system call name.
164         (fsmount): Likewise.
165         (fsopen): Likewise.
166         (fspick): Likewise.
167         (move_mount): Likewise.
168         (open_tree): Likewise.
170 2019-07-18  Carlos O'Donell  <carlos@redhat.com>
172         * po/libc.pot: Regenerate.
174 2019-07-18  Mike Crowe  <mac@mcrowe.com>
176         * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
177         functions recently added to sysdeps/nptl/pthread.h:
178         pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
179         pthread_rwlock_clockwrlock and pthread_cond_clockwait.
181         * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
182         pthread_cond_clockwait forwarding functions.  There are no internal
183         users, so it is unnecessary to expose these functions in libc.so.
184         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
185         unnecessary ptr___pthread_cond_clockwait member.
186         * nptl/nptl-init.c (pthread_functions): Remove assignment of
187         removed member.
189 2019-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
191         [BZ #21897]
192         * localedata/locales/aa_DJ (abday): Update from CLDR, all words
193         begin with an uppercase letter now.
194         (abmon): Likewise.
195         (mon): Update from CLDR, reword February from "Kudo" to
196         "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
197         and August from "Liiqen" to "Leqeeni".
198         * localedata/locales/aa_ER (mon): Update from CLDR, reword
199         April from "Agda Baxisso" to "Agda Baxis" and August from
200         "Leqeeni" to "Liiqen".
201         * localedata/locales/aa_ER@saaho (mon): Likewise.
202         * localedata/locales/aa_ET (abmon): Update from CLDR, reword
203         abbreviated February from "Kud" to "Nah".
204         (mon): Update from CLDR, reword February from "Kudo" to
205         "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
207 2019-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
209         [BZ #23996]
210         * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
212 2019-07-17  PanderMusubi  <pander@users.sourceforge.net>
214         [BZ #23996]
215         * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
216         name_mrs, name_miss, and name_ms.
217         * localedata/locales/nl_NL (LC_NAME): Likewise.
219 2019-07-17  Daniil Zhilin  <generalfailer@protonmail.com>
221         [BZ #24200]
222         * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
223         * localedata/locales/en_IE (first_weekday): Likewise.
225 2019-07-12  Mike Crowe  <mac@mcrowe.com>
227         * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
228         that is only useful if futex_supports_exact_relative_timeouts ()
229         returns false.
230         * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
231         Likewise.
232         * sysdeps/nptl/futex-internal.h: Remove comment about relative
233         timeouts potentially being imprecise since it's no longer true.
234         Remove declaration of futex_supports_exact_relative_timeouts.
235         * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
236         of futex_supports_exact_relative_timeouts.
238         * NEWS: Mention recently-added pthread_cond_clockwait,
239         pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
240         sem_clockwait functions.
242         nptl: Add POSIX-proposed pthread_mutex_clocklock function that
243         works like pthread_mutex_timedlock but takes a clockid parameter to
244         measure the abstime parameter against.
245         * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
246         * nptl/DESIGN-systemtap-probes.txt: Likewise.
247         * nptl/pthread_mutex_timedlock.c
248         (__pthread_mutex_clocklock_common): Rename from
249         __pthread_mutex_timedlock and add clockid parameter. Pass this
250         parameter to lll_clocklock and lll_clocklock_elision in place of
251         CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
252         LIBC_PROBE and validate clockid parameter before calling
253         __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
254         implementation to add LIBC_PROBE and calls
255         __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
256         clockid.
257         * nptl/Makefile: Add tst-mutex11.c.
258         * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
259         * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
260         clockid parameters to pthread_mutex_clocklock.
261         * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
262         clockid parameter to indicate which clock to be used. Call
263         pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
264         (do_test): Call do_test_clock to separately test
265         pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
266         and pthread_mutex_clocklock(CLOCK_MONOTONIC).
267         * nptl/tst-mutex9.c: Likewise.
268         * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
269         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
270         Likewise.
271         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
272         Likewise.
273         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
274         Likewise.
275         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
276         Likewise.
277         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
278         Likewise.
279         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
280         Likewise.
281         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
282         Likewise.
283         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
284         (GLIBC_2.30): Likewise.
285         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
286         (GLIBC_2.30): Likewise.
287         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
288         (GLIBC_2.30): Likewise.
289         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
290         (GLIBC_2.30): Likewise.
291         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
292         (GLIBC_2.30): Likewise.
293         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
294         Likewise.
295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
296         (GLIBC_2.30): Likewise.
297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
298         (GLIBC_2.30): Likewise.
299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
300         (GLIBC_2.30): Likewise.
301         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
302         (GLIBC_2.30): Likewise.
303         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
304         (GLIBC_2.30): Likewise.
305         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
306         (GLIBC_2.30): Likewise.
307         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
308         Likewise.
309         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
310         (GLIBC_2.30): Likewise.
311         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
312         (GLIBC_2.30): Likewise.
313         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
314         (GLIBC_2.30): Likewise.
315         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
316         (GLIBC_2.30): Likewise.
318         nptl: Rename lll_timedlock to lll_clocklock and add clockid
319         parameter to indicate the clock that the abstime parameter should
320         be measured against in preparation for adding
321         pthread_mutex_clocklock.
322         * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
323         lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
324         from __lll_timedlock and add clockid parameter.
325         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
326         Likewise.
327         * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
328         __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
329         rather than __gettimeofday so that clockid can be used. This means
330         that conversion from struct timeval is no longer required.
331         * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
332         Likewise.
333         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
334         refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
335         * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
336         from lll_timedlock_elision, add clockid parameter and use
337         meaningful names for other parameters. (__pthread_mutex_timedlock):
338         Pass CLOCK_REALTIME where necessary to lll_clocklock and
339         lll_clocklock_elision.
340         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
341         (lll_clocklock_elision): Rename from lll_timedlock_elision and add
342         clockid parameter. (__lll_clocklock_elision): Rename from
343         __lll_timedlock_elision and add clockid parameter.
344         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
345         * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
346         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
347         (__lll_lock_elision): Call __lll_clocklock_elision rather than
348         __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
349         (LLL_LOCK): Likewise.
350         * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
351         * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
353         nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
354         pthread_rwlock_clockwrlock which behave like
355         pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
356         respectively, except they always measure abstime against the
357         supplied clockid. The functions currently support CLOCK_REALTIME
358         and CLOCK_MONOTONIC and return EINVAL if any other clock is
359         specified.
360         * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
361         pthread_wrlock_clockwrlock.
362         * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
363         pthread_rwlock_clockwrlock.c.
364         * nptl/pthread_rwlock_clockrdlock.c: Implement
365         pthread_rwlock_clockrdlock.
366         * nptl/pthread_rwlock_clockwrlock.c: Implement
367         pthread_rwlock_clockwrlock.
368         * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
369         clockid parameter and verify that it indicates a supported clock on
370         entry so that we fail even if it doesn't end up being used. Pass
371         that clock on to futex_abstimed_wait when necessary.
372         (__pthread_rwlock_wrlock_full): Likewise.
373         * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
374         CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
375         be used because there's no timeout.
376         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
377         CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
378         be used because there is no timeout.
379         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
380         Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
381         uses that clock.
382         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
383         Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
384         uses that clock.
385         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
386         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
387         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
388         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
389         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
390         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
391         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
392         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
393         (GLIBC_2.30): Likewise.
394         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
395         (GLIBC_2.30): Likewise.
396         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
397         (GLIBC_2.30): Likewise.
398         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
399         (GLIBC_2.30): Likewise.
400         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
401         (GLIBC_2.30): Likewise.
402         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
404         (GLIBC_2.30): Likewise.
405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
406         (GLIBC_2.30): Likewise.
407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
408         (GLIBC_2.30): Likewise.
409         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
410         (GLIBC_2.30): Likewise.
411         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
412         (GLIBC_2.30): Likewise.
413         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
414         (GLIBC_2.30): Likewise.
415         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
416         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
417         (GLIBC_2.30): Likewise.
418         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
419         (GLIBC_2.30): Likewise.
420         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
421         (GLIBC_2.30): Likewise.
422         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
423         (GLIBC_2.30): Likewise.
424         * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
425         pthread_rwlock_clockwrlock timeout tests to match the existing
426         pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
427         * nptl/tst-rwlock14.c (do_test): Likewise.
428         * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
429         ancillary output throughout. (tf): Accept thread_args structure so
430         that rwlock, a clockid and function name can be passed to the
431         thread. (do_test_clock): Rename from do_test. Accept clockid
432         parameter to specify test clock. Use the magic clockid value of
433         CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
434         pthread_rwlock_timedwrlock should be tested, otherwise pass the
435         specified clockid to pthread_rwlock_clockrdlock and
436         pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
437         (do_test): Call do_test_clock to test each clockid in turn.
438         * nptl/tst-rwlock7.c: Likewise.
439         * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
440         thread_args structure so that the (now int) thread number, the
441         clockid and the function name can be passed to the thread.
442         (do_test_clock): Renamed from do_test. Pass the necessary
443         thread_args when creating the reader and writer threads. Use
444         xpthread_create and xpthread_join.
445         (do_test): Call do_test_clock to test each clockid in turn.
446         * manual/threads.texi: Add documentation for
447         pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
449         nptl: pthread_rwlock: Move timeout validation into _full functions
450         * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
451         Check validity of abstime parameter.
452         (__pthread_rwlock_rwlock_full): Likewise.
453         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
454         Remove check for validity of abstime parameter.
455         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
456         Likewise.
458         nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
459         like pthread_cond_timedwait except it always measures abstime
460         against the supplied clockid.
461         * nptl/Makefile: Add tst-cond26 and tst-cond27
462         * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
463         * sysdeps/nptl/pthread.h: Likewise
464         * nptl/forward.c: Add __pthread_cond_clockwait
465         * nptl/forward.c: Likewise
466         * nptl/pthreadP.h: Likewise
467         * sysdeps/nptl/pthread-functions.h: Likewise
468         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
469         clockid parameter and comment describing why we don't need to check
470         its value. Use that value when calling
471         futex_abstimed_wait_cancelable rather than reading the clock from
472         the flags. (__pthread_cond_wait): Pass unused clockid parameter.
473         (__pthread_cond_timedwait): Read clock from flags and pass it to
474         __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
475         function with weak alias from pthread_cond_clockwait.
476         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
477         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
478         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
479         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
480         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
481         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
482         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
483         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
484         (GLIBC_2.30): Likewise.
485         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
486         (GLIBC_2.30): Likewise.
487         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
488         (GLIBC_2.30): Likewise.
489         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
490         (GLIBC_2.30): Likewise.
491         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
492         (GLIBC_2.30): Likewise.
493         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
495         (GLIBC_2.30): Likewise.
496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
497         (GLIBC_2.30): Likewise.
498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
499         (GLIBC_2.30): Likewise.
500         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
501         (GLIBC_2.30): Likewise.
502         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
503         (GLIBC_2.30): Likewise.
504         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
505         (GLIBC_2.30): Likewise.
506         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
507         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
508         (GLIBC_2.30): Likewise.
509         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
510         (GLIBC_2.30): Likewise.
511         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
512         (GLIBC_2.30): Likewise.
513         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
514         (GLIBC_2.30): Likewise.
515         * nptl/tst-cond11.c (run_test): Support testing
516         pthread_cond_clockwait too by using a special magic
517         CLOCK_USE_ATTR_CLOCK value to determine whether to call
518         pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
519         CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
520         all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
521         * ntpl/tst-cond26.c: New test for passing unsupported and invalid
522         clocks to pthread_cond_clockwait.
523         * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
524         struct timespec and pthread_cond_clockwait.
525         * manual/threads.texi: Document pthread_cond_clockwait.
527         nptl: Add POSIX-proposed sem_clockwait which behaves just like
528         sem_timedwait, but measures abstime against the specified clock.
529         * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
530         clockid parameters to indicate the clock which abstime should be
531         measured against.
532         * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
533         (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
534         __new_sem_wait_slow.
535         * nptl/sem_clockwait.c: New file to implement sem_clockwait based
536         on sem_timedwait.c.
537         * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
538         sem_clockwait.c to match those used for sem_timedwait.c.
539         * sysdeps/pthread/semaphore.h: Add sem_clockwait.
540         * nptl/Versions (GLIBC_2.30): Likewise.
541         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
542         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
543         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
544         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
545         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
546         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
547         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
548         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
549         (GLIBC_2.30): Likewise.
550         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
551         (GLIBC_2.30): Likewise.
552         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
553         (GLIBC_2.30): Likewise.
554         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
555         (GLIBC_2.30): Likewise.
556         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
557         (GLIBC_2.30): Likewise.
558         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
560         (GLIBC_2.30): Likewise.
561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
562         (GLIBC_2.30): Likewise.
563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
564         (GLIBC_2.30): Likewise.
565         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
566         (GLIBC_2.30): Likewise.
567         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
568         (GLIBC_2.30): Likewise.
569         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
570         (GLIBC_2.30): Likewise.
571         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
572         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
573         (GLIBC_2.30): Likewise.
574         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
575         (GLIBC_2.30): Likewise.
576         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
577         (GLIBC_2.30): Likewise.
578         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
579         (GLIBC_2.30): Likewise.
580         * nptl/tst-sem17.c: Add new test for passing invalid clock to
581         sem_clockwait.
582         * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
583         tests to also test sem_clockwait.
584         * manual/threads.texi: Document sem_clockwait.
586         nptl: Add clockid parameter to futex timed wait calls
587         * sysdeps/nptl/lowlevellock-futex.h,
588         sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
589         lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
590         takes a clockid rather than a special clockbit.
591         * sysdeps/nptl/lowlevellock-futex.h: Add
592         lll_futex_supported_clockid so that client functions can check
593         whether their clockid parameter is valid even if they don't
594         ultimately end up calling lll_futex_clock_wait_bitset.
595         * sysdeps/nptl/futex-internal.h,
596         sysdeps/unix/sysv/linux/futex-internal.h
597         (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
598         clockid_t parameter to indicate which clock the absolute time
599         passed should be measured against. Pass that clockid onto
600         lll_futex_clock_wait_bitset. Add invalid clock as reason for
601         returning -EINVAL.
602         * sysdeps/nptl/futex-internal.h,
603         sysdeps/unix/sysv/linux/futex-internal.h: Introduce
604         futex_abstimed_supported_clockid so that client functions can check
605         whether their clockid parameter is valid even if they don't
606         ultimately end up calling futex_abstimed_wait.
607         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
608         code to calculate relative timeout for
609         __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
610         or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
611         * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
612         (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
613         additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
614         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
615         Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
617 2019-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
619         [BZ #24699]
620         * posix/tst-mmap-offset.c: Mention BZ #24699.
621         (do_test_bz21270): Rename to do_test_large_offset and use
622         mmap64_maximum_offset to check for maximum expected offset value.
623         * sysdeps/generic/mmap_info.h: New file.
624         * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
625         * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
626         __NR_mmap2 is used.
628 2019-07-10  DJ Delorie  <dj@redhat.com>
629             Sergei Trofimovich <slyfox@inbox.ru>
631         [BZ #24696]
632         [BZ #24695]
633         * nss/nss_db/db-open.c (internal_endent): Protect against NULL
634         mappings.
635         * nss/tst-nss-db-endgrent.c: New.
636         * nss/tst-nss-db-endgrent.root: New.
637         * nss/tst-nss-db-endpwent.c: New.
638         * nss/tst-nss-db-endpwent.root: New.
639         * nss/Makefile: Add new tests.
640         * support/links-dso-program-c.c: Add selinux dependency.
641         * support/links-dso-program.cc: Add selinux dependency.
642         * support/Makefile: Build those with -lselinux if enabled.
644 2019-07-10  Szabolcs Nagy  <szabolcs.nagy@arm.com>
646         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
647         DT_AARCH64_VARIANT_PCS check.
648         (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
649         * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
650         variant_pcs.
652 2019-07-10  Andreas Schwab  <schwab@suse.de>
654         [BZ #23352]
655         * malloc/malloc.h (__malloc_check_init): Don't declare.
656         * include/malloc.h (__malloc_check_init): Likewise.
657         * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
658         * manual/memory.texi (__malloc_check_init): Don't mention it.
660 2019-07-10  Mao Han  <han_mao@c-sky.com>
662         * locale/Makefile: Fix tst-locale-locpath arguments passing.
664 2019-07-09  Paul A. Clarke  <pc@us.ibm.com>
666         * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
667         __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
669 2019-07-08  DJ Delorie  <dj@redhat.com>
671         [BZ #23501]
672         * io/ftw.c (process_entry): Fill in statbuf for dangling links.
673         * io/tst-ftw-lnk.c: New test.
674         * io/Makefile: Run it.
676 2019-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
678         * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
679         * sysdeps/powerpc/fpu/s_logb.c: ... here.  Use inline FP constants.
680         * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
681         * sysdeps/powerpc/fpu/s_logbf.c: ... here.  Use inline FP constants.
682         * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
683         * sysdeps/powerpc/fpu/s_logbl.c: ... here.  Use inline FP constants.
684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
685         Adjust implementation path.
686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
687         Adjust implementation path.
688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
689         Adjust implementation path.
690         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
691         (libm-sysdep_routines): Add s_log* objects.
692         (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
693         CFLAGS-s_logb-power7.c): New fule.
694         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
695         to ...
696         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
697         ... here.
698         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
699         to ...
700         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
701         ... here.
702         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
703         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
704         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
705         to ...
706         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
707         ... here.
708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
709         to ...
710         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
711         ... here.
712         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
713         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
714         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
715         to ...
716         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
717         ... here.
718         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
719         to ...
720         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
721         ... here.
722         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
723         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
724         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
725         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
726         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
727         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
729         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
730         * sysdeps/ieee754/dbl-64/s_logb.c: ... here.  Add work around for
731         powerpc32 integer 0 converting to -0.
733         * benchtests/Makefile (bench-math): Add logb.
734         * benchtests/logb-inputs: New file.
735         * benchtests/logbf-inputs: New file.
737         * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
738         * sysdeps/powerpc/fpu/s_modf.c: ... here.  Add ISA 2.07 optimization.
739         * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
740         * sysdeps/powerpc/fpu/s_modff.c: ... here.  Add ISA 2.07 optimization.
741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
742         Adjust include.
743         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
744         Likewise.
745         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
746         sysdep_routines): Add s_modf* objects.
747         (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
748         CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
749         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
750         to ...
751         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
752         ... here.
753         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
754         to ...
755         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
756         ... here.
757         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
758         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
759         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
760         to ...
761         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
762         ... here.
763         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
764         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
765         ... here.
766         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
767         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
769         * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
770         twoM500, twoM600, two60factor, pdnum): Remove.
771         (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
772         (__ieee754_hypot): Replace static variables with inline definition,
773         remove ununsed branches.
774         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
775         (libm-sysdep_routines): Remove e_hypot-* objects.
776         (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
777         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
778         file.
779         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
780         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
781         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
782         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
783         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
785         * benchtests/Makefile (bench-math): Add hypot.
786         * benchtests/hypot-inputs: New file.
788 2019-07-08  Vincent Chen  <vincentc@andestech.com>
790         * sysdeps/unix/sysv/linux/dl-vdso.h
791         (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
793 2019-07-04  Andreas Schwab  <schwab@suse.de>
795         [BZ #24484]
796         * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
798 2019-07-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
800         * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
801         * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
802         * sysdeps/aarch64/sys/ifunc.h: New file.
803         * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
804         * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
806 2019-07-01  Florian Weimer  <fweimer@redhat.com>
808         [BZ #20188]
809         * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
810         Replace __vfork with __libpthread_version_placeholder for
811         GLIBC_2.1.2.
812         (libc): Remove __libc_vfork from GLIBC_PRIVATE.
813         * nptl/Makefile (libpthread-routines): Remove pt-vfork.  Add
814         libpthread-compat.
815         * nptl/pt-vfork.c: Remove file.
816         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
817         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
818         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
819         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
820         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
821         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
822         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
823         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
824         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
825         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
826         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
827         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
828         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
829         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
830         Remove vfork, __vfork.
831         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
832         Remove vfork.
833         (GLIBC_2.1.2): Replace __vfork with
834         __libpthread_version_placeholder.
835         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
836         Remove vfork, __vfork.
837         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
838         Likewise.
839         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
840         Remove vfork.
841         (GLIBC_2.1.2): Replace __vfork with
842         __libpthread_version_placeholder.
843         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
844         Remove vfork.
845         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
846         (GLIBC_2.4): Remove vfork, __vfork.
847         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
848         (GLIBC_2.0): Remove vfork.
849         (GLIBC_2.1.2): Replace __vfork with
850         __libpthread_version_placeholder.
851         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
852         (GLIBC_2.18): Remove vfork, __vfork.
853         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
854         (GLIBC_2.0): Remove vfork.
855         (GLIBC_2.2): Remove __vfork.
856         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
857         (GLIBC_2.2): Remove vfork, __vfork.
858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
859         (GLIBC_2.0): Remove vfork.
860         (GLIBC_2.1.2): Replace __vfork with
861         __libpthread_version_placeholder.
862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
863         (GLIBC_2.3): Remove vfork, __vfork.
864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
865         (GLIBC_2.17): Likewise.
866         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
867         (GLIBC_2.0): Remove vfork.
868         (GLIBC_2.1.2): Replace __vfork with
869         __libpthread_version_placeholder.
870         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
871         (GLIBC_2.2): Remove vfork, __vfork.
872         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
873         Likewise.
874         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
875         (GLIBC_2.0): Remove vfork.
876         (GLIBC_2.1.2): Replace __vfork with
877         __libpthread_version_placeholder.
878         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
879         (GLIBC_2.2): Remove vfork, __vfork.
880         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
881         (GLIBC_2.2.5): Likewise.
882         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
883         (GLIBC_2.16): Likewise.
884         * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
885         Remove __errno_location.
887 2019-07-02  Florian Weimer  <fweimer@redhat.com>
889         [BZ #24757]
890         * malloc/Depend: Add nptl and htl, due to potential indirect
891         libpthread dependency of memusagestat.
893 2019-07-02  Stefan Liebler  <stli@linux.ibm.com>
895         * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
896         warning.
898 2019-07-01  Florian Weimer  <fweimer@redhat.com>
900         * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
901         variant for arm-linux-gnueabi.
903 2019-07-01  H.J. Lu  <hongjiu.lu@intel.com>
905         [BZ #24259]
906         * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
907         relocation.
908         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
909         tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
910         (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
911         tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
912         and tst-cet-legacy-mod-6c.
913         (CFLAGS-tst-cet-legacy-5a.c): New.
914         (CFLAGS-tst-cet-legacy-5b.c): Likewise.
915         (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
916         (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
917         (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
918         (CFLAGS-tst-cet-legacy-6a.c): Likewise.
919         (CFLAGS-tst-cet-legacy-6b.c): Likewise.
920         (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
921         (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
922         (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
923         ($(objpfx)tst-cet-legacy-5a): Likewise.
924         ($(objpfx)tst-cet-legacy-5a.out): Likewise.
925         ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
926         ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
927         ($(objpfx)tst-cet-legacy-5b): Likewise.
928         ($(objpfx)tst-cet-legacy-5b.out): Likewise.
929         (tst-cet-legacy-5b-ENV): Likewise.
930         ($(objpfx)tst-cet-legacy-6a): Likewise.
931         ($(objpfx)tst-cet-legacy-6a.out): Likewise.
932         ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
933         ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
934         ($(objpfx)tst-cet-legacy-6b): Likewise.
935         ($(objpfx)tst-cet-legacy-6b.out): Likewise.
936         (tst-cet-legacy-6b-ENV): Likewise.
937         * sysdeps/x86/tst-cet-legacy-5.c: New file.
938         * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
939         * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
940         * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
941         * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
942         * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
943         * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
944         * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
945         * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
946         * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
947         * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
948         * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
949         * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
950         * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
952 2019-06-30  Paul A. Clarke  <pc@us.ibm.com>
954         * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
955         __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
956         (__fegetround_ISA300) New.
957         (__fegetround_ISA2) New.
958         * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
959         (_FPU_MFFS): Move implementation...
960         (_FPU_GETCW): Here.
961         (_FPU_MFFSL): Move implementation....
962         (_FPU_GET_RC_ISA300): Here. New.
963         (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
964         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
965         (fegetenv_status): New.
966         * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
967         instead of fegetenv_register().
968         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
970 2019-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
972         * benchtests/bench-math-inlines.c: Increase iterations.
973         * benchtests/bench-memcmp.c: Likewise.
974         * benchtests/bench-rawmemchr.c: Likewise.
975         * benchtests/bench-strcmp.c: Likewise.
976         * benchtests/bench-strcpy_chk.c: Likewise.
977         * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
978         (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
979         (INNER_LOOP_ITERS_SMALL): Likewise.
980         * benchtests/bench-strncat.c: Increase iterations.
981         * benchtests/bench-strncmp.c: Increase iterations.
982         * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
983         * benchtests/bench-strrchr.c: Increase iterations.
984         * benchtests/bench-strstr.c: Keep iterations unchanged.
985         * benchtests/bench-strtod.c: Increase iterations.
987 2019-06-28  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
989         * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
990         with INNER_LOOP_ITERS_LARGE.
991         * benchtests/bench-memchr.c: Likewise.
992         * benchtests/bench-rawmemchr.c: Likewise.
993         * benchtests/bench-strcat.c: Likewise.
994         * benchtests/bench-strchr.c: Likewise.
995         * benchtests/bench-string.h: Likewise.
996         * benchtests/bench-strlen.c: Likewise.
997         * benchtests/bench-strncpy.c: Likewise.
998         * benchtests/bench-strnlen.c: Likewise.
1000 2019-06-28  Florian Weimer  <fweimer@redhat.com>
1002         * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
1003         Use mmap instead of malloc.  malloc with M_PERTURB writes to the
1004         entire allocated memory range.
1006 2019-06-28  Tobias Klauser  <tklauser@distanz.ch>
1008         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
1009         (prepare_version_base): New helper inline function.
1010         (prepare_version): New macro replacing PREPARE_VERSION.
1011         (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
1013 2019-06-28  Florian Weimer  <fweimer@redhat.com>
1015         [BZ #24741]
1016         * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
1017         mismatch in a versioned symbol reference.
1018         (_dl_lookup_symbol_x): Do not report soname mismatch failures.
1019         * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
1020         tst-sonamemove-dlopen.
1021         (module-names): Add tst-sonamemove-linkmod1,
1022         tst-sonamemove-runmod1, tst-sonamemove-runmod2.
1023         (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
1024         (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
1025         (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
1026         (tst-sonamemove-runmod1.so): Link against
1027         tst-sonamemove-runmod2.so.
1028         (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
1029         (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
1030         tst-sonamemove-runmod2.so.
1031         (tst-sonamemove-dlopen): Link with -ldl.
1032         (tst-sonamemove-dlopen.out): Likewise.
1033         * elf/tst-sonamemove-link.c: New file.
1034         * elf/tst-sonamemove-dlopen.c: Likewise.
1035         * elf/tst-sonamemove-linkmod1.c: Likewise.
1036         * elf/tst-sonamemove-linkmod1.map: Likewise.
1037         * elf/tst-sonamemove-runmod1.c: Likewise.
1038         * elf/tst-sonamemove-runmod1.map: Likewise.
1039         * elf/tst-sonamemove-runmod2.c: Likewise.
1040         * elf/tst-sonamemove-runmod2.map: Likewise.
1042 2019-06-28  Florian Weimer  <fweimer@redhat.com>
1044         * support/xdlfcn.h (xdlvsym): Declare function.
1045         * support/xdlfcn.c (xdlvsym): Define funciton.
1047 2019-06-28  Florian Weimer  <fweimer@redhat.com>
1049         [BZ #24744]
1050         io: Remove the copy_file_range emulation.
1051         * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
1052         not define and call copy_file_range_compat.
1053         * io/Makefile (tests-static, tests-internal): Do not add
1054         tst-copy_file_range-compat.
1055         * io/copy_file_range-compat.c: Remove file.
1056         * io/copy_file_range.c (copy_file_range): Define as stub.
1057         * io/tst-copy_file_range-compat.c: Remove file.
1058         * io/tst-copy_file_range.c (xdevfile): Remove variable.
1059         (typical_sizes): Update comment.  Remove 16K sizes.
1060         (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
1061         Remove variables.
1062         (find_maximum_offset, pipe_as_source, pipe_as_destination)
1063         (delayed_write_failure_beginning, delayed_write_failure_end)
1064         (cross_device_failure, enospc_failure_1, enospc_failure)
1065         (oappend_failure): Remove functions.
1066         (tests): Adjust test case list.
1067         (do_test): Remove file system search code.  Check for ENOSYS from
1068         copy_file_range.  Do not free xdevfile.
1069         * manual/llio.texi (Copying File Data): Document ENOSYS error from
1070         copy_file_range.  Do not document the EXDEV error, which future
1071         kernels may not report.  Update the wording to reflect that
1072         further errors are possible.
1073         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1074         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
1075         not undefine.
1076         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1077         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
1078         Likewise.
1079         * sysdeps/unix/sysv/linux/kernel-features.h
1080         [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
1081         Remove definition.
1082         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1083         [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
1084         not undefine.
1085         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1086         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
1087         Likewise.
1089 2019-06-27  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
1091         * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
1092         used as a mask for the mode argument of __vfprintf_internal.
1093         * stdio-common/printf-parse.h (printf_arg): New union member:
1094         pa_float128.
1095         * stdio-common/vfprintf-internal.c
1096         (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
1097         (PARSE_FLOAT_VA_ARG): Likewise.
1098         (SETUP_FLOAT128_INFO): Likewise.
1099         (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
1100         SETUP_FLOAT128_INFO.
1101         [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
1102         floating-point value to the new union member, pa_float128.
1103         (printf_positional): Zero-initialize args_value[cnt] with memset.
1105 2019-06-27  Florian Weimer  <fweimer@redhat.com>
1107         [BZ #24740]
1108         * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
1109         buffer size if necessary.
1110         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
1111         Likewise.
1112         * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
1113         New function.
1114         (large_buffer_checks): Likewise.
1115         (do_test): Call large_buffer_checks.
1117 2019-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1119         * sysdeps/i386/dl-lookupcfg.h: Moved to ...
1120         * sysdeps/x86/dl-lookupcfg.h: Here.
1121         * sysdeps/x86_64/dl-lookupcfg.h: Removed.
1123 2019-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1125         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1126         (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
1127         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
1128         file.
1129         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
1130         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
1131         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
1132         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
1133         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
1135         * sysdeps/powerpc/powerpc32/fpu/Makefile
1136         [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
1137         * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
1138         and fctidz optimization.
1139         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
1140         * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
1141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1142         (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
1143         CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
1144         CFLAGS-s_lround-power5+.c): New rule.
1145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
1146         New file.
1147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
1148         Likewise.
1149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
1150         Likewise.
1151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
1152         Likewise.
1153         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
1154         Likewise.
1155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
1156         Remove file.
1157         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
1158         Likewise.
1159         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
1160         Likewise.
1161         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
1162         Likewise.
1163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
1164         Likewise.
1165         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
1166         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
1167         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
1168         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1169         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
1170         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
1171         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1173 2019-06-26  Vincent Chen  <vincentc@andestech.com>
1175         * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
1176         specific system calls, fp_udfiex_crtl and udftrap.
1178 2019-06-26  Stefan Liebler  <stli@linux.ibm.com>
1180         * nptl/tst-eintr1.c (tf1): Add return statement.
1181         (do_test): Remove unused th variable.
1183 2019-06-26  Stefan Liebler  <stli@linux.ibm.com>
1185         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
1186         Return error if get_character fails.
1188 2019-06-25  Stefan Liebler  <stli@linux.ibm.com>
1190         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1192 2019-06-24  Rafal Luzynski  <digitalfreak@lingonborough.com>
1194         [BZ #24652]
1195         * localedata/locales/szl_PL (day): Use the correct Unicode
1196         sequences instead of non-ASCII characters.
1198 2019-06-24  Grzegorz Kulik  <gregorykkulik@gmail.com>
1200         [BZ #24652]
1201         * localedata/locales/szl_PL (abday): Spelling corrections.
1202         (day): Likewise.
1203         (abmon): Likewise.
1204         (mon): Rename to...
1205         (alt_mon): This, then apply spelling corrections.
1206         (mon): New entry, month names in the genitive case.
1208 2019-06-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
1210         [BZ #23831]
1211         * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
1212         * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
1213         (thousands_sep): Likewise.
1214         (grouping): Set to 3;3.
1216 2019-06-21  Tobias Klauser  <tklauser@distanz.ch>
1218         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
1219         PREPARE_VERSION_KNOWN.
1220         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
1221         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
1222         define.
1223         (VDSO_HASH_LINUX_2_6_39): Likewise.
1224         (VDSO_NAME_LINUX_4_9): Likewise.
1225         (VDSO_HASH_LINUX_4_9): Likewise.
1226         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
1227         * sysdeps/unix/sysv/linux/powerpc/init-first.c
1228         (_libc_vdso_platform_setup): Likewise.
1229         * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
1230         * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
1231         Likewise.
1232         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
1233         Likewise.
1235 2019-06-20  Mike Crowe  <mac@mcrowe.com>
1237         * nptl/eintr.c: Use libsupport.
1238         * nptl/tst-eintr1.c: Likewise.
1239         * nptl/tst-eintr2.c: Likewise.
1240         * nptl/tst-eintr3.c: Likewise.
1241         * nptl/tst-eintr4.c: Likewise.
1242         * nptl/tst-eintr5.c: Likewise.
1243         * nptl/tst-mutex-errorcheck.c: Likewise.
1244         * nptl/tst-mutex5.c: Likewise.
1246         * support/test-driver.h: Add verbose_printf macro.
1248         * support/xtime.h: Add xclock_now() helper function.
1250 2019-06-20  Dmitry V. Levin  <ldv@altlinux.org>
1251             Florian Weimer  <fweimer@redhat.com>
1253         [BZ #24228]
1254         * libio/genops.c (_IO_unbuffer_all)
1255         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
1256         buffers and access _IO_FILE_complete members of legacy libio streams.
1257         * libio/tst-bz24228.c: New file.
1258         * libio/tst-bz24228.map: Likewise.
1259         * libio/Makefile [build-shared] (tests): Add tst-bz24228.
1260         [build-shared] (generated): Add tst-bz24228.mtrace and
1261         tst-bz24228.check.
1262         [run-built-tests && build-shared] (tests-special): Add
1263         $(objpfx)tst-bz24228-mem.out.
1264         (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
1265         ($(objpfx)tst-bz24228-mem.out): New rule.
1267 2019-06-19  Paul A. Clarke  <pc@us.ibm.com>
1269         * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
1270         * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
1271         (__FPU_MFFSL): Likewise.
1272         (_FPU_SETCW): Likewise.
1274 2019-06-19  Stan Shebs  <stanshebs@google.com>
1275             Raoni Fassina Firmino  <raoni@linux.ibm.com>
1277         [BZ #24640]
1278         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
1279         [!SHARED] (__get_timebase_freq): Fix sense of a test in the
1280         static-linking version.
1281         * sysdeps/unix/sysv/linux/powerpc/Makefile
1282         (tests-static): Add test-gettimebasefreq-static.
1283         (tests): Likewise.
1284         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
1285         New file.
1287 2019-06-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
1289         [BZ #24614]
1290         * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
1291         between the currency symbol and the minus sign).
1292         (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
1294 2019-06-19  Stefan Liebler  <stli@linux.ibm.com>
1296         [BZ #24556]
1297         * string/test-strcasestr.c (check_result): Add NULL check.
1298         * nss/tst-field.c (check_rewrite): Likewise.
1299         * benchtests/bench-strstr.c (do_one_test): Likewise.
1300         * string/test-strstr.c (check_result): Likewise.
1301         * argp/argp-test.c (popt): Increase size of buf to 12.
1302         * benchtests/bench-malloc-simple.c (bench):
1303         Do not initialize tests array out of bounds.
1305 2019-06-19  Florian Weimer  <fweimer@redhat.com>
1307         [BZ #24166]
1308         * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
1309         dls_serpath field.
1311 2019-06-18  Florian Weimer  <fweimer@redhat.com>
1313         [BZ #24323]
1314         * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
1315         * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
1316         fail when called from dlopen.
1317         * elf/Makefile [have-fpie && build-shared] (tests): Add
1318         tst-dlopen-pie.
1319         (tst-dlopen-pie): Link with -ldl.
1320         (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
1321         * elf/tst-dlopen-pie.c (do_test): New file.
1323 2019-06-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
1325         [BZ #24614]
1326         * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
1327         * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
1328         between the currency symbol and the minus sign).
1329         (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
1330         * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
1332 2019-06-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1334         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
1335         sysdep-rtld-routines): Remove rules.
1336         * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
1337         Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
1338         (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
1339         __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
1340         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
1341         (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
1342         vDSO path for SHARED.
1343         * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
1344         * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
1345         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
1346         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
1347         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
1348         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
1350         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1351         (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
1352         s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
1353         (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
1354         CFLAGS-s_llround-power5+.c): New rule.
1355         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
1356         New file.
1357         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
1358         Likewise.
1359         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
1360         Likewise.
1361         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
1362         Likewise.
1363         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
1364         Likewise.
1365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
1366         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
1367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
1368         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
1369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
1370         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
1371         * sysdeps/powerpc/powerpc64/fpu/Makefile
1372         [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
1373         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1374         (libm-sysdep_routines): Remove s_llround-* objects.
1375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
1376         file.
1377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
1378         Likewise.
1379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
1380         Likewise.
1381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
1382         Likewise.
1383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
1384         Likewise.
1385         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
1386         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
1387         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1388         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1389         * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
1390         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
1391         * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
1392         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
1393         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
1394         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
1395         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
1396         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
1397         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
1398         * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
1400         * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
1401         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
1402         * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
1403         * sysdeps/powerpc/powerpc32/fpu/Makefile
1404         [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
1405         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
1406         optimization.
1407         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
1408         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
1409         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
1410         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1411         (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
1412         CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
1413         CFLAGS-s_lrint-ppc32.c): New rule.
1414         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
1415         Remove file.
1416         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
1417         Likewise.
1418         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
1419         Likewise.
1420         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
1421         Likewise.
1422         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
1423         Likewise.
1424         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
1425         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
1426         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
1427         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
1428         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
1429         New file.
1430         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
1431         Likewise.
1432         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
1433         Likewise.
1434         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
1435         Likewise.
1436         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
1437         Likewise.
1439         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1440         (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
1441         s_llrint-ppc64.
1442         (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
1443         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
1444         file.
1445         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
1446         Likewise.
1447         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
1448         Likewise.
1449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
1450         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
1451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
1452         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
1453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
1454         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
1455         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
1456         * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
1457         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1458         (libm-sysdep_routines): Remove s_llrint-* objects.
1459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
1460         file.
1461         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
1462         Likewise.
1463         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
1464         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
1465         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
1466         * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
1467         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
1468         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
1469         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
1470         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1471         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
1472         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
1474 2019-06-14  Florian Weimer  <fweimer@redhat.com>
1476         * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
1477         argument to __glibc_has_include to inhibit macro expansion.
1479 2019-06-14  Florian Weimer  <fweimer@redhat.com>
1481         * misc/sys/cdefs.h (__glibc_has_include): Do not use a
1482         function-like macro, so that __has_include can inhibit expansion
1483         of its argument.
1485 2019-06-13  Joseph Myers  <joseph@codesourcery.com>
1487         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
1488         New macro.
1490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
1491         Allow memset in libc.so.
1493 2019-06-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1495         * sysdeps/aarch64/dl-dtprocnum.h: New file.
1496         * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
1497         (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
1498         (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
1499         symbols at load time.
1500         * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
1502 2019-06-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1504         * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
1505         (DT_AARCH64_VARIANT_PCS): Define.
1507 2019-06-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1509         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1510         (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
1511         objects.
1512         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
1513         Remove file.
1514         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
1515         Likewise.
1516         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
1517         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
1518         Likewise.
1519         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
1520         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
1521         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
1522         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
1523         Remove s_finite* objects.
1524         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
1525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1526         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
1527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
1528         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
1529         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
1530         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
1531         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
1532         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
1533         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
1535         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
1536         * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
1538         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1539         (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
1540         objects.
1541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
1542         Remove file.
1543         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
1544         Likewise.
1545         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
1546         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
1547         Likewise.
1548         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
1549         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
1550         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
1551         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
1552         Remove s_isinf* and s_isinf* objects.
1553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
1554         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
1555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
1556         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
1557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
1558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
1559         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
1560         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
1561         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
1562         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
1564         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
1565         * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
1567         * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
1568         * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
1569         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
1570         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1571         (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
1572         s_isnanf-* objects.
1573         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
1574         Remove file
1575         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
1576         Likewise.
1577         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
1578         Likewise.
1579         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
1580         Likewise.
1581         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
1582         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
1583         Likewise.
1584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
1585         Likewise.
1586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
1587         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
1588         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
1589         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
1590         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
1591         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
1592         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
1593         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
1594         Remove s_isnan-* and s_isnanf-* objects.
1595         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
1596         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
1597         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
1598         Likewise.
1599         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
1600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
1601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
1602         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
1603         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
1604         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
1605         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
1606         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
1607         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
1608         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
1609         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
1610         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
1611         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
1613         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
1614         * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
1616         * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
1617         (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
1618         CFLAGS-bench-isfinite.c): New rule.
1619         * benchtests/isnan-input: New file.
1620         * benchtests/isinf-input: New file.
1621         * benchtests/isfinite-input: New file.
1623         * sysdeps/powerpc/fpu/s_copysign.c: New file.
1624         * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
1625         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
1626         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
1627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1628         (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
1629         s_copysign-ppc32.
1630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
1631         Remove file.
1632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
1633         Likewise.
1634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
1635         Likewise.
1636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
1637         Likewise.
1638         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
1639         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
1640         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
1641         Remove s_copysign-power6 s_copysign-ppc64.
1642         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
1643         Remove file.
1644         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
1645         Likewise.
1646         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
1647         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
1648         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1649         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
1650         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
1651         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
1653         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
1654         round_to_integer_float, round_mode): Add RINT handling.
1655         (reset_fenv_mode): New symbol.
1656         * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
1657         * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
1658         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
1659         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
1660         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
1661         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1663 2019-06-12  Florian Weimer  <fweimer@redhat.com>
1665         [BZ #24632]
1666         * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
1667         * libio/freopen.c (freopen): Use it.
1669 2019-06-12  Florian Weimer  <fweimer@redhat.com>
1671         Linux: Deprecate sysctl.
1672         * include/sysctl.h (__sysctl): Remove declaration.
1673         * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
1674         check.
1675         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
1676         (sysctl): Add deprecation attribute.
1677         * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
1678         directly, to avoid the deprecation warning.  Do not include
1679         <string.h>.
1680         (__sysctl): Remove hidden alias.
1682 2019-06-12  Florian Weimer  <fweimer@redhat.com>
1684         Linux: Use kernel headers for statx definitions if available.
1685         * include/bits/statx-generic.h: New file.
1686         * include/bits/types/struct_statx.h: Likewise.
1687         * include/bits/types/struct_statx_timestamp.h: Likewise.
1688         * io/Makefile (headers): Add bits/statx-generic.h.
1689         * io/bits/statx-generic.h: New file.  Partly copied from
1690         io/bits/statx.h.
1691         * io/statx_generic.c: Include <bits/types/struct_statx.h> to
1692         define original_statx.
1693         * io/bits/types/struct_statx.h: Likewise.
1694         * io/bits/types/struct_statx_timestamp.h: Likewise.
1695         (statx_generic): Use original_statx.
1696         * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
1697         * sysdeps/unix/sysv/linux/bits/statx.h: New file.
1699 2019-06-12  Florian Weimer  <fweimer@redhat.com>
1701         * misc/sys/cdefs.h (__glibc_has_include): Define.
1703 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
1705         * string/memmem.c (__memmem): Rewrite to improve performance.
1707 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
1709         * string/str-two-way.h (two_way_short_needle): Add inline to avoid
1710         warning.
1711         (two_way_long_needle): Block inlining.
1712         * string/strstr.c (strstr2): Add new function.
1713         (strstr3): Likewise.
1714         (STRSTR): Completely rewrite strstr to improve performance.
1716 2019-06-11  Wilco Dijkstra  <wdijkstr@arm.com>
1718         * benchtests/bench-strstr.c (test_hard_needle): New function.
1720 2019-06-10  Joseph Myers  <joseph@codesourcery.com>
1722         * malloc/tst-calloc.c: Include <libc-diag.h>.
1723         (null_test): Ignore -Wunused-result around calls to calloc.
1724         * malloc/tst-mallocfork.c: Include <libc-diag.h>.
1725         (do_test): Ignore -Wunused-result around call to malloc.
1727 2019-06-07  Florian Weimer  <fweimer@redhat.com>
1729         Linux: Add getdents64 system call.
1730         * include/dirnent.h (getdents): Add comment and change buffer
1731         argument type to void *.
1732         (getdents64): Likewise.  Add hidden prototype.
1733         * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
1734         getdents64.
1735         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
1736         Add tst-getdents64.
1737         * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
1738         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
1739         argument type to void *.
1740         * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
1741         Add hidden definition and getdents64 alias.
1742         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
1743         Likewise.
1744         * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
1745         * manual/filesys.texi (Accessing Directories): Add Low-level
1746         Directory Access node reference.
1747         (Opening a Directory): Cross-reference it.
1748         (Low-level Directory Access): New node.
1749         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
1750         getdents64.
1751         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1752         Likewise.
1753         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1754         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1755         Likewise.
1756         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1757         Likewise.
1758         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1759         Likewise.
1760         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1761         Likewise.
1762         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1763         Likewise.
1764         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1765         Likewise.
1766         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1767         Likewise.
1768         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1769         (GLIBC_2.30): Likewise.
1770         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1771         (GLIBC_2.30): Likewise.
1772         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1773         (GLIBC_2.30): Likewise.
1774         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1775         (GLIBC_2.30): Likewise.
1776         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1777         Likewise.
1778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1779         (GLIBC_2.30): Likewise.
1780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1781         (GLIBC_2.30): Likewise.
1782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1783         (GLIBC_2.30): Likewise.
1784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1785         (GLIBC_2.30): Likewise.
1786         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1787         Likewise.
1788         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1789         Likewise.
1790         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1791         Likewise.
1792         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1793         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1794         Likewise.
1795         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1796         Likewise.
1797         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1798         Likewise.
1799         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1800         Likewise.
1802 2019-06-06  Paul A. Clarke  <pc@us.ibm.com>
1804         * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
1805         (__FPU_MFFS): New.
1806         (__FPU_MFFSL): New.
1807         (_FPU_GET_RC): New.
1808         (_FPU_GETCW): Use __FPU_MFFS().
1809         * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
1811 2019-06-06  Florian Weimer  <fweimer@redhat.com>
1813         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
1814         internal GCC preprocessor identifier __has_include__.
1816 2019-06-05  Paul A. Clarke  <pc@us.ibm.com>
1818         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
1819         with call to equivalent function.
1821 2019-06-04  Florian Weimer  <fweimer@redhat.com>
1823         * iconv/gconv_dl.c (release_handle): Remove file-level definition.
1824         (do_release_shlib): Adjust for __twalk_r.
1825         (__gconv_release_shlib): Call __twalk_r.
1827 2019-06-04  Andreas Schwab  <schwab@suse.de>
1829         [BZ #18830]
1830         * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
1831         no irreversible characters occurred.
1832         * iconv/gconv_simple.c (internal_ucs4_loop)
1833         (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
1834         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
1835         (ucs4_internal_loop_single, internal_ucs4le_loop)
1836         (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
1837         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
1838         (ucs4le_internal_loop_single): Add const to outend.
1839         * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
1840         (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
1841         * iconv/Makefile (tests): Add tst-iconv7.
1842         * iconv/tst-iconv7.c: New file.
1844 2019-06-03  Joseph Myers  <joseph@codesourcery.com>
1846         * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
1848 2019-06-01  Florian Weimer  <fweimer@redhat.com>
1850         arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
1851         * sysdeps/unix/sysv/linux/arm/Makefile
1852         [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
1853         * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
1854         * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
1855         (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
1856         compatibility symbols.
1858 2019-05-31  Florian Weimer  <fweimer@redhat.com>
1860         * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
1861         system calls for the arm architecture: breakpoint, get_tls,
1862         set_tls, usr26, usr32.
1864 2019-05-30  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
1866         * sysdeps/powerpc/Makefile
1867         [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
1868         * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
1869         Declare '.machine power7' to get support for ldbrx.
1870         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
1871         directive based on the directory of the file.
1872         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
1873         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
1874         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
1875         '.machine' directive.
1876         (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
1877         (VADDUQM_V7_V8): Remove.
1878         (__STRCASECMP): Replace macros with actual instructions.
1879         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
1880         '.machine' directive.
1881         (VCLZD_V8_v7): Remove.
1882         (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
1884 2019-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1886         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
1887         Remove file.
1888         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
1890 2019-05-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1892         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1893         NEARBYINT handling.
1894         * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
1895         * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
1896         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
1897         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
1898         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
1899         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
1901 2019-05-28  mansayk  <6688000@gmail.com>
1903         [BZ #24370]
1904         * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
1906 2019-05-28  mansayk  <6688000@gmail.com>
1908         [BZ #24369]
1909         * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
1910         (abmon): Likewise, but remove the trailing dots.
1912 2019-05-28  Joseph Myers  <joseph@codesourcery.com>
1914         * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
1916 2019-05-27  Florian Weimer  <fweimer@redhat.com>
1918         * nptl/nptl-init.c: Add comment.
1920 2019-05-24  Florian Weimer  <fweimer@redhat.com>
1922         * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
1923         struct in_addr/struct in6_addr alignment.
1925 2019-05-23  Joseph Myers  <joseph@codesourcery.com>
1927         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1928         (F_SEAL_FUTURE_WRITE): New macro.
1930 2019-05-23 Alexandra Hajkova  <ahajkova@redhat.com>
1932        * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
1933        * elf/tst-ldconfig-bad-aux-cache.c: New file.
1934        * elf/tst-ldconfig_aux-cache.root: New directory.
1935        * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
1936        * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
1937        * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
1939 2019-05-22  Zack Weinberg  <zackw@panix.com>
1941         * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
1942         host type.
1943         * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
1944         and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
1946         * sysdeps/powerpc/powerpc32/e500: Recursively delete.
1947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
1948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
1949         Delete.
1951         * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
1952         Issue an #error if used with a compiler in SPE-float mode.
1953         * sysdeps/powerpc/powerpc32/__longjmp_common.S
1954         * sysdeps/powerpc/powerpc32/setjmp_common.S
1955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
1957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
1958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
1959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1961         Remove code to preserve SPE register state.
1963         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
1964         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
1965         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
1966         Remove __SPE__ ifndefs.
1968 2019-05-21  Wilco Dijkstra  <wdijkstr@arm.com>
1970         * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
1971         * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
1972         * benchtests/bench-memmem.c (do_one_test): Use small iterations.
1973         * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
1974         * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
1975         * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
1976         * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
1977         (INNER_LOOP_ITERS_MEDIUM): New define.
1978         (INNER_LOOP_ITERS_SMALL): New define.
1979         * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
1980         * benchtests/bench-strsep.c (do_one_test): Use small iterations.
1981         * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
1982         * benchtests/bench-strstr.c (do_one_test): Use small iterations.
1983         * benchtests/bench-strtok.c (do_one_test): Use small iterations.
1985 2019-05-21  Adhemeval Zanella  <adhemerval.zanella@linaro.org>
1987         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
1988         New define.
1989         * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
1990         (SEMTIMEDOP_IPC_ARGS): Likewise.
1992 2019-05-21  Florian Weimer  <fweimer@redhat.com>
1994         [BZ #24584]
1995         * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
1996         before updating __counter field and release it afterwards.  Add
1997         overflow check.
1998         * iconv/gconv.h (struct __gconv_step): Mention synchronization
1999         requirement for __counter member.
2001 2019-05-21  Florian Weimer  <fweimer@redhat.com>
2003         [BZ #24583]
2004         * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
2005         * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
2006         * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
2007         instead of __gconv_release_step.
2008         * libio/Makefile (tests): Add tst-wfile-gconv.
2009         (tests-container): Add tst-wfile-ascii.
2010         (tst-wfile-gconv-ENV): Enable mtrace.
2011         (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
2012         (tests-special): Add tst-wfile-gconv-mem.out.
2013         (tst-wfile-gconv.out): Depend on locales.
2014         (tst-wfile-gconv-mem.out): Add mtrace rule.
2015         * libio/tst-wfile-ascii.c: New file.
2016         * libio/tst-wfile-gconv.c: Likewise.
2018 2019-05-20  Florian Weimer  <fweimer@redhat.com>
2020         [BZ #24588]
2021         libio: Remove codecvt vtable.
2022         * libio/fileops.c ( _IO_new_file_fopen): Do not copy
2023         __libio_codecvt.
2024         * libio/iofgetpos.c (_IO_new_fgetpos): Call
2025         __libio_codecvt_encoding.
2026         * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
2027         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
2028         * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
2029         * libio/iofwide.c (__libio_codecvt): Remove variable.
2030         (_IO_fwide): Do not copy __libio_codecvt.
2031         (__libio_codecvt_out): Rename from do_out and export.
2032         (do_unshift): Remove function.
2033         (__libio_codecvt_in): Rename from do_in and export.
2034         (__libio_codecvt_encoding): Rename from do_encoding and export.
2035         (do_always_noconv): Remove function.
2036         (__libio_codecvt_length): Rename from do_length and export.
2037         (do_max_length): Remove function.
2038         * libio/libio.h (enum __codecvt_result): Remove definition; moved
2039         to libioP.h.
2040         (struct _IO_codecvt): Remove fields __codecvt_destr,
2041         __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
2042         __codecvt_do_encoding, __codecvt_do_always_noconv,
2043         __codecvt_do_length, __codecvt_do_max_length.
2044         * libio/libioP.h (enum __codecvt_result): Define; moved from
2045         libio.h.
2046         (__libio_codecvt_out, __libio_codecvt_in)
2047         (__libio_codecvt_encoding, __libio_codecvt_length): Declare
2048         functions.
2049         * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
2050         (_IO_wfile_underflow): Call __libio_codecvt_in.
2051         (_IO_wfile_underflow): Likewise.
2052         (_IO_wfile_underflow_mmap): Likewise.
2053         (_IO_wfile_sync): Call __libio_codecvt_encoding,
2054         __libio_codecvt_length.
2055         (adjust_wide_data): Call __libio_codecvt_encoding,
2056         __libio_codecvt_in.
2057         (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
2058         (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
2059         __libio_codecvt_length.
2061 2019-05-20  Florian Weimer  <fweimer@redhat.com>
2063         * support/support.h (support_sbindir_prefix): Declare.
2064         (support_install_rootsbindir): Update comment.
2065         * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
2066         * support/support_paths.c (support_sbindir_prefix): Define.
2068 2019-05-20  Mike Crowe  <mac@mcrowe.com>
2070         * support/timespec.c: Add backslash to correct newline in failure
2071         message.
2073         * support/timespec.h: Correct confusing comment.
2075 2019-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2077         * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
2078         define.
2079         * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
2080         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
2081         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
2082         SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
2084         [BZ #24570]
2085         * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
2086         usage.
2088 2019-05-20  Joseph Myers  <joseph@codesourcery.com>
2090         * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
2091         (NT_ARM_PACG_KEYS): Likewise.
2093 2019-05-17  Wilco Dijkstra  <wdijkstr@arm.com>
2095         * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
2096         (tcache_put): Remove redundant assert.
2097         (tcache_get): Remove redundant asserts.
2098         (__libc_malloc): Check tcache count is not zero.
2099         * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
2101 2019-05-17  Florian Weimer  <fweimer@redhat.com>
2103         * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
2105 2019-05-16  Joseph Myers  <joseph@codesourcery.com>
2107         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2108         (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
2109         0x050100].
2110         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
2111         Likewise.
2112         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2113         (__ASSUME_STATX): Likewise.
2115 2019-05-16  Florian Weimer  <fweimer@redhat.com>
2117         * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
2118         flags argument.
2119         (LINE_PARSER): Do not map IPv4 addresses.
2120         (internal_nis_gethostent_r): Remove flags argument.  Adjust call
2121         to parse_line.
2122         (_nss_nis_gethostent_r): Always pass AF_INET to
2123         internal_nis_gethostent_r.
2124         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
2125         to parse_line.
2126         (_nss_nis_gethostbyname2_r): Adjust call to
2127         internal_nis_gethostent_r.
2128         (_nss_nis_gethostbyname_r): Do not attempt IPv6 query.  Adjust
2129         call to internal_nis_gethostent_r.
2130         (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
2131         from parse_line.
2132         (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
2133         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2134         Remove flags argument.  Do not map IPv4 addresses.
2135         (internal_nisplus_gethostent_r): Adjust call to
2136         _nss_nisplus_parse_hostent.
2137         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
2138         to _nss_nisplus_parse_hostent.
2139         (_nss_nisplus_gethostbyname2_r): Adjust call to
2140         internal_gethostbyname2_r.
2141         (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
2142         Adjust call to internal_gethostbyname2_r.
2143         (_nss_nisplus_gethostbyaddr_r): Adjust call to
2144         _nss_nisplus_parse_hostent.
2145         (_nss_nisplus_gethostbyname4_r): Adjust call to
2146         internal_gethostbyname2_r.
2148 2019-05-16  Florian Weimer  <fweimer@redhat.com>
2150         * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
2151         Remove flags.
2152         (LINE_PARSER): Remove address mapping.
2153         (EXTRA_ARGS_VALUE): Remove flags argument.
2154         (gethostbyname3_multi): Likewise.  Adjust call to internal_getent.
2155         (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
2156         gethostbyname3_multi.
2157         (_nss_files_gethostbyname_r): Always use AF_INET.  Adjust call to
2158         _nss_files_gethostbyname3_r.
2159         (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
2161 2019-05-16  Florian Weimer  <fweimer@redhat.com>
2163         * support/support_test_compare_blob.c (report_blob): Report
2164         incorrect NULL blobs.
2166 2019-05-15  Mark Wielaard  <mark@klomp.org>
2168         [BZ# 24476]
2169         * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
2170         __libc_once_get (once) and static_buf == NULL.
2171         (__dlerror): Check we have a valid key, set result to static_buf
2172         otherwise.
2174 2019-05-15  Andreas Schwab  <schwab@suse.de>
2176         [BZ #20568]
2177         * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
2178         __codecvt_do_length.
2179         * libio/Makefile (tests): Add tst-wfile-sync.
2180         ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
2181         * libio/tst-wfile-sync.c: New file.
2182         * libio/tst-wfile-sync.input: New file.
2184 2019-05-15  Florian Weimer  <fweimer@redhat.com>
2186         nss: Turn __nss_database_lookup into a compatibility symbol.
2187         * nss/nsswitch.h (__nss_database_lookup2): Renamed from
2188         __nss_database_lookup.
2189         * nss/nsswitch.c (__nss_database_lookup2): Likewise.
2190         (nss_load_all_libraries): Call __nss_database_lookup2 instead of
2191         __nss_database_lookup.
2192         (__nss_next): Move to …
2193         * nss/compat-lookup.c (nss_next): … here.  Change it to fail
2194         unconditionally.
2195         (__nss_database_lookup): New function.
2196         * nss/Versions (GLIBC_2.0): Update comment.
2197         (GLIBC_PRIVATE): Export __nss_database_lookup2.
2198         * grp/initgroups.c (internal_getgrouplist): Call
2199         __nss_database_lookup2 instead of __nss_database_lookup.
2200         * nscd/aicache.c (addhstaiX): Likewise.
2201         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2202         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
2203         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
2204         * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
2205         * nss/nss_compat/compat-initgroups.c (init_nss_interface):
2206         Likewise.
2207         * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
2208         * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
2209         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2211 2019-05-15  Alexandra Hajkova  <ahajkova@redhat.com>
2213         * support/support.h (support_install_rootsbindir): New variable.
2214         * support/support_paths.c: Likewise.
2215         * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
2217 2019-05-15  Florian Weimer  <fweimer@redhat.com>
2219         * iconv/gconv.h (__gconv_transliterate): Move declaration …
2220         * iconv/gconv_int.h (__gconv_transliterate): … here.
2221         * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
2222         * iconv/skeleton.c: Likewise.
2224 2019-05-14  Florian Weimer  <fweimer@redhat.com>
2226         Linux: Add the tgkill function.
2227         * bits/signal_ext.h: New file.
2228         * manual/signal.texi (Signaling Another Process): Document tgkill.
2229         * signal/Makefile (headers): Add bits/signal_ext.h.
2230         * signal/signal.h: Include <bits/signal_ext.h>.
2231         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
2232         (tst-tgkill): Link with libpthread.
2233         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
2234         * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
2235         * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
2236         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
2237         tgkill.
2238         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2239         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2240         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2241         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2242         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2243         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2244         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2245         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2246         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2247         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2248         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
2249         Likewise.
2250         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2251         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2252         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2254         Likewise.
2255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2256         Likewise.
2257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
2258         Likewise.
2259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
2260         Likewise.
2261         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
2262         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2263         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2264         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2265         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2266         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2267         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2268         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2270 2019-05-14  Carlos O'Donell  <carlos@redhat.com>
2272         * manual/search.texi (Tree Search Function): Adjust twalk_r
2273         documentation.
2275 2019-05-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2277         [BZ #24544]
2278         * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
2279         pre-defined value.
2281         * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
2282         * support/support.h (support_bindir_prefix): New variable.
2283         * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
2285         * config.make.in (bindir): New variable.
2287         * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
2288         (lll_trylock): Call __lll_trylock.
2289         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
2290         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
2291         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2292         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2293         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
2294         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
2295         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2296         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2297         * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
2298         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
2299         lowlevellock-futex.h.
2301         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
2302         initialization for LLL_LOCK_INITIALIZER different than 0.
2303         * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
2304         Assume LLL_LOCK_INITIALIZER being 0.
2305         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
2306         * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
2307         Likewise.
2308         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
2309         * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
2311         * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
2312         Optimize futex call and add systemtap probe.
2314         * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
2315         LIBC_CANCEL_RESET, __libc_enable_asynccancel,
2316         __libc_disable_asynccancel, __librt_enable_asynccancel,
2317         __libc_disable_asynccancel, __librt_enable_asynccancel,
2318         __librt_disable_asynccancel): Move to ...
2319         * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
2320         (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
2321         * sysdeps/unix/sysv/linux/single-thread.h: ... here.
2322         * sysdeps/generic/single-thread.h: New file.
2323         * sysdeps/unix/sysdep.h: Include single-thread.h.
2324         * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
2325         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
2327 2019-05-08  Mike FABIAN  <mfabian@redhat.com>
2329         [BZ #24535]
2330         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
2331         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2332         Unicode 12.1.0.
2333         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2334         * localedata/unicode-gen/PropList.txt: Likewise.
2335         * localedata/unicode-gen/UnicodeData.txt: Likewise.
2336         * localedata/charmaps/UTF-8: Regenerate.
2337         * localedata/locales/i18n_ctype: Likewise.
2338         * localedata/locales/tr_TR: Likewise.
2339         * localedata/locales/translit_circle: Likewise.
2340         * localedata/locales/translit_cjk_compat: Likewise.
2341         * localedata/locales/translit_combining: Likewise.
2342         * localedata/locales/translit_compat: Likewise.
2343         * localedata/locales/translit_font: Likewise.
2344         * localedata/locales/translit_fraction: Likewise.
2346 2019-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
2348         [BZ #24531]
2349         * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
2350         (do_set_tcache_count): Only update if count is small enough.
2351         * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
2353 2019-05-10  Florian Weimer  <fweimer@redhat.com>
2355         * nptl/sem_close.c (struct walk_closure): Define.
2356         (walker): Adjust for __twalk_r.
2357         (sem_close): Call __twalk_r.
2359 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2361         * support/timespec.c (test_timespec_before_impl,
2362         test_timespec_equal_or_after_impl): print timespec member as intmax_t
2363         insted of long int.
2365 2019-05-09  Mike Crowe <mac@mcrowe.com>
2367         * nptl/tst-abstime.c: Use libsupport.
2369         * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
2370         small bug where only tv.tv_usec was checked which could cause an
2371         erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
2372         than a second.
2374         * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
2375         libsupport.
2377         * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
2378         TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
2380         * nptl/tst-cond11.c: Use libsupport.
2382         * support/timespec.h: New file.  Provide timespec helper functions
2383         along with macros in the style of those in check.h.
2384         * support/timespec.c: New file.  Implement check functions declared
2385         in support/timespec.h.
2386         * support/timespec-add.c: New file from gnulib containing
2387         timespec_add implementation that handles overflow.
2388         * support/timespec-sub.c: New file from gnulib containing
2389         timespec_sub implementation that handles overflow.
2390         * support/README: Mention timespec.h.
2392 2019-05-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2394         [BZ #24537]
2395         * nptl/Makefile: Move tst-eintr1 to xtests.
2397 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2399         * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
2400          TRUNC handling.
2401         (round_mode): Add definition for TRUNC.
2402         * sysdeps/powerpc/fpu/s_trunc.c: New file.
2403         * sysdeps/powerpc/fpu/s_truncf.c: New file.
2404         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
2405         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
2406         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
2407         Likewise.
2408         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
2409         Likewise.
2410         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
2411         Likewise.
2412         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
2413         Likewise.
2414         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
2415         file.
2416         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
2417         Likewise.
2418         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
2419         Likewise.
2420         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
2421         Likewise.
2422         * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
2423         * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
2424         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
2425         (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
2426         s_truncf-power5+, and s_truncf-ppc64.
2427         (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
2428         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
2429         file.
2430         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
2431         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
2432         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
2433         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
2434         file.
2435         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
2436         Likewise.
2437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
2438         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
2439         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2440         (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
2441         s_truncf-power5+, and s_truncf-ppc64.
2442         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
2443         file.
2444         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
2445         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
2446         Likewise.
2447         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
2448         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
2449         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
2450         * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
2451         * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
2453         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
2454         ROUND handling.
2455         (round_mode): Add definition for ROUND.
2456         (round_to_integer_float): Likewise.
2457         * sysdeps/powerpc/fpu/s_round.c: New file.
2458         * sysdeps/powerpc/fpu/s_roundf.c: New file.
2459         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
2460         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
2461         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
2462         Likewise.
2463         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
2464         Likewise.
2465         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
2466         Likewise.
2467         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
2468         Likewise.
2469         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
2470         file.
2471         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
2472         Likewise.
2473         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
2474         Likewise.
2475         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
2476         Likewise.
2477         * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
2478         * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
2479         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
2480         (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
2481         s_roundf-power5+, and s_roundf-ppc64.
2482         (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
2483         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
2484         file.
2485         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
2486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
2487         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
2488         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
2489         file.
2490         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
2491         Likewise.
2492         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
2493         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
2494         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2495         (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
2496         s_roundf-power5+, and s_roundf-ppc64.
2497         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
2498         file.
2499         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
2500         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
2501         Likewise.
2502         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
2503         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
2504         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
2505         * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
2506         * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
2508         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
2509         Add FLOOR option.
2510         (round_mode): Add definition for FLOOR.
2511         * sysdeps/powerpc/fpu/s_floor.c: New file.
2512         * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
2513         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
2514         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
2515         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
2516         Remove file.
2517         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
2518         Likewise
2519         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
2520         Likewise.
2521         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
2522         Likewise.
2523         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
2524         New file.
2525         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
2526         Likewise.
2527         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
2528         Likewise.
2529         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
2530         Likewise.
2531         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
2532         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
2533         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2534         (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
2535         s_floorf-power5+, and s_floorf-ppc64.
2536         (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
2537         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
2538         file.
2539         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
2540         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
2541         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
2542         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
2543         file.
2544         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
2545         Likewise.
2546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
2547         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
2548         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2549         (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
2550         s_floorf-power5+, and s_floorf-ppc64.
2551         * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
2552         file.
2553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
2554         file.
2555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
2556         Likewise.
2557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
2558         Likewise.
2559         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
2560         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
2561         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
2562         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
2564 2019-05-08  Mike Crowe  <mac@mcrowe.com>
2566         * support/xclock_gettime.c (xclock_gettime): New file. Provide
2567         clock_gettime wrapper for use in tests that fails the test rather
2568         than returning failure.
2570         * support/xtime.h: New file to declare xclock_gettime.
2572         * support/Makefile: Add xclock_gettime.c.
2574         * support/README: Mention xtime.h.
2576 2019-05-08  Florian Weimer  <fweimer@redhat.com>
2578         malloc/tst-mallocfork2: Use process-shared barriers.
2579         * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
2580         (signal_count, sigusr1_sender_pid): Remove.
2581         (iterations): Define constant.
2582         (shared): New variable.
2583         (sigusr1_received): Update comment.
2584         (sigusr1_handler): Do not send SIGSTOP to the sender process.
2585         (signal_sender): Optional use barriers to avoid sending signals
2586         during irrelevant times.
2587         (do_it): Initialize variable shared.  Use xfork for error
2588         checking.  Launch multiple SIGUSR1-sending subprocesses.  Limit
2589         the iteration count, independent of signal delivery.  Check for
2590         deadlocks in fork.  Introduce barriers for reducing signal
2591         traffic.  Do not send SIGCONT to the SIGUSR1-sending processes;
2592         replaced by the barriers.  Count signals during fork/free/malloc
2593         and report them.
2594         * malloc/Makefile (tst-mallocfork): Link with libpthread.
2596 2019-05-07  Joseph Myers  <joseph@codesourcery.com>
2598         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2599         version to 5.1.
2600         (clock_adjtime64) New syscall.
2601         (clock_getres_time64) Likewise.
2602         (clock_gettime64) Likewise.
2603         (clock_nanosleep_time64) Likewise.
2604         (clock_settime64) Likewise.
2605         (futex_time64) Likewise.
2606         (io_pgetevents_time64) Likewise.
2607         (io_uring_enter) Likewise.
2608         (io_uring_register) Likewise.
2609         (io_uring_setup) Likewise.
2610         (mq_timedreceive_time64) Likewise.
2611         (mq_timedsend_time64) Likewise.
2612         (pidfd_send_signal) Likewise.
2613         (ppoll_time64) Likewise.
2614         (pselect6_time64) Likewise.
2615         (recvmmsg_time64) Likewise.
2616         (rt_sigtimedwait_time64) Likewise.
2617         (sched_rr_get_interval_time64) Likewise.
2618         (semtimedop_time64) Likewise.
2619         (timer_gettime64) Likewise.
2620         (timer_settime64) Likewise.
2621         (timerfd_gettime64) Likewise.
2622         (timerfd_settime64) Likewise.
2623         (utimensat_time64) Likewise.
2625         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
2626         version to 9 branch.
2628 2019-05-03  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
2630         * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
2631         __memmove_thunderx2 to the list of implementations
2632         * sysdeps/aarch64/multiarch/memmove.c: Likewise
2633         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
2634         (__memmove_thunderx2): Rewritten using SIMD ld/st
2635         (__memcpy_thunderx2): Fixed handling overlapping cases.
2636         Used ldp/stp instead of ldr/str if possible. Made loops
2637         tails branchless.
2639 2019-05-03  Florian Weimer  <fweimer@redhat.com>
2641         * misc/tst-tsearch.c (walk_tree): Add more error checking.
2643 2019-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2645         [BZ #24506]
2646         * elf/tst-pldd.c (in_str_list): New function.
2647         (do_test): Add default names for ld and libc as one option.
2649 2019-05-02  Florian Weimer  <fweimer@redhat.com>
2651         misc: Add twalk_r function.
2652         * include/search.h (__twalk_r): Declare.
2653         * manual/examples/twalk.c: New file.
2654         * manual/search.texi (Tree Search Function): Document twalk_r.
2655         * misc/Versions (2.30): Export twalk_r.
2656         (GLIBC_PRIVATE): Export __twalk_r.
2657         * misc/search.h [__USE_GNU] (twalk_r): Declare.
2658         * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
2659         (twalk_r): Add weak alias.
2660         * misc/tst-tsearch.c (struct walk_trace_element): Define.
2661         (walk_trace): New variable.
2662         (struct twalk_with_twalk_r_closure): Define.
2663         (twalk_with_twalk_r_action): New function.
2664         (twalk_with_twalk_r): Likewise.
2665         (walk_action): Call walk_trace_add.
2666         (walk_tree_with): Rename from walk_tree.  Add walk argument.
2667         (walk_tree): New function.
2668         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
2669         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2670         Likewise.
2671         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2672         Likewise.
2673         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2674         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
2675         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
2676         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
2677         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
2678         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2679         Likewise.
2680         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2681         Likewise.
2682         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2683         Likewise.
2684         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2685         (GLIBC_2.30): Likewise.
2686         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2687         (GLIBC_2.30): Likewise.
2688         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2689         (GLIBC_2.30): Likewise.
2690         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2691         (GLIBC_2.30): Likewise.
2692         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2693         Likewise.
2694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2695         (GLIBC_2.30): Likewise.
2696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2697         (GLIBC_2.30): Likewise.
2698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2699         (GLIBC_2.30): Likewise.
2700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2701         (GLIBC_2.30): Likewise.
2702         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2703         Likewise.
2704         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2705         Likewise.
2706         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2707         Likewise.
2708         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2709         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2710         Likewise.
2711         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2712         Likewise.
2713         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2714         Likewise.
2715         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2716         Likewise.
2718 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
2720         Make mktime etc. compatible with __time64_t
2721         Keep these functions compatible with Gnulib while adding
2722         __time64_t support.  The basic idea is to move private API
2723         declarations from include/time.h to time/mktime-internal.h, since
2724         the former file cannot easily be shared with Gnulib whereas the
2725         latter can.
2726         Also, do some other minor cleanup while in the neighborhood.
2727         * include/time.h: Include stdbool.h, time/mktime-internal.h.
2728         (__mktime_internal): Move this prototype to time/mktime-internal.h,
2729         since Gnulib needs it.
2730         (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
2731         Move these macros to time/mktime-internal.h, since Gnulib needs them.
2732         (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
2733         (in_time_t_range): New static function.
2734         * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
2735         so that glibc users are not tempted to use __time64_t.
2736         * time/mktime-internal.h: Rewrite so that it does both glibc
2737         and Gnulib work.  Include time.h if not _LIBC.
2738         (mktime_offset_t) [!_LIBC]: Define for gnulib.
2739         (__time64_t): New type or macro, moved here from
2740         posix/bits/types.h.
2741         (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
2742         [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
2743         from include/time.h.
2744         (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
2745         New macros, taken from GNulib.
2746         (__mktime_internal): New prototype, moved here from include/time.h.
2747         * time/mktime.c (mktime_min, mktime_max, convert_time)
2748         (ranged_convert, __mktime_internal, __mktime64):
2749         * time/timegm.c (__timegm64):
2750         Use __time64_t, not time_t.
2751         * time/mktime.c: Stop worrying about whether time_t is floating-point.
2752         (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
2753         Rename from mktime.
2754         (mktime) [_LIBC && __TIMESIZE != 64]: New function.
2755         * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
2756         for libc_hidden_def.
2757         Include errno.h.
2758         (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
2759         Rename from timegm.
2760         (timegm) [_LIBC && __TIMESIZE != 64]: New function.
2762 2019-04-30  Maciej W. Rozycki  <macro@wdc.com>
2764         [BZ #19444]
2765         * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
2766         from `-Wmaybe-uninitialized'.
2767         * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
2769 2019-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2771         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
2772         function.
2773         * sysdeps/powerpc/fpu/round_to_integer.h: New file.
2774         * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
2775         * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
2776         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
2777         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
2778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2779         (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
2780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
2781         Remove file.
2782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
2783         Likewise.
2784         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
2785         Likewise.
2786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
2787         Likewise.
2788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
2789         New file.
2790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
2791         Likewise.
2792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
2793         Likewise.
2794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
2795         Likewise.
2796         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
2797         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
2798         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
2799         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
2800         Likewise.
2801         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
2802         Likewise.
2803         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
2804         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
2805         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
2806         file.
2807         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
2808         Likewise.
2809         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
2810         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
2811         * here.
2812         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2813         (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
2814         s_ceilf-power5+, and s_ceilf-ppc64.
2815         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
2816         file.
2817         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
2818         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
2819         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
2820         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
2821         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
2822         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
2823         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
2825         * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
2826         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
2827         * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
2829 2019-04-29  Yann Droneaud  <ydroneaud@opteya.com>
2831         * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
2832         (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
2833         (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
2834         (sem_getvalue): Likewise.
2836 2019-04-26  Florian Weimer  <fweimer@redhat.com>
2838         elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
2839         * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
2841 2019-04-26  Florian Weimer  <fweimer@redhat.com>
2843         Makeconfig: Move -Wl,-rpath-link options before library references.
2844         * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
2845         (link-libc): Remove $(link-libc-rpath-link).
2847 2019-04-25  Florian Weimer  <fweimer@redhat.com>
2849         * Makeconfig (+link-pie-before-libc): Remove $(CC).
2850         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
2851         (+link-static-before-libc): Remove $(CC).
2852         (+link-static, +link-static-tests): Add $(CC).
2853         (+link-before-libc): Remove $(CC).
2854         (+link, +link-pie, +link-pie-printers): Add $(CC).
2856 2019-04-26  Florian Weimer  <fweimer@redhat.com>
2858         * Makeconfig (+link-pie-before-libc): Remove $(CC).
2859         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
2860         (+link-static-before-libc): Remove $(CC).
2861         (+link-static, +link-static-tests): Add $(CC).
2862         (+link-before-libc): Remove $(CC).
2863         (+link, +link-pie, +link-pie-printers): Add $(CC).
2865 2019-04-25  David Abdurachmanov  <david.abdurachmanov@gmail.com>
2867         [BZ#24484]
2868         * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
2870 2019-04-25  Florian Weimer  <fweimer@redhat.com>
2872         benchtests: Enable BIND_NOW if configured with --enable-bind-now.
2873         * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
2874         (bench-link-targets): New variable.
2875         ($(binaries-bench) …): Use it.  Set LDFLAGS accordingly.
2877 2019-04-25  Florian Weimer  <fweimer@redhat.com>
2879         Also enable BIND_NOW for programs if --enable-bind-now.
2880         * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
2881         (+link-pie): Use $(link-extra-flags).
2882         (+link-static): Likewise.
2883         [! $(build-pie-default)] (+link): Likewise.
2884         * manual/install.texi (Configuring and compiling): Update
2885         --enable-bind-now description.
2886         * INSTALL: Regenerated.
2888 2019-04-24  Wilco Dijkstra  <wdijkstr@arm.com>
2890         * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
2891         * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
2893 2019-04-24  Mike Frysinger  <vapier@gentoo.org>
2895         [BZ #18465]
2896         * malloc/Makefile (others): Add memusagestat.
2897         ($(objpfx)memusagestat): Delete rule.
2898         (LDLIBS-memusagestat): New variable.
2900 2019-04-24  Florian Weimer  <fweimer@redhat.com>
2902         * locale/Makefile (tests-special): Guard setting by
2903         $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
2904         to run while cross-compiling.
2906 2019-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2908         [BZ #18035]
2909         * elf/Makefile (tests-container): Add tst-pldd.
2910         * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
2911         (E(find_maps)): Avoid use alloca, use default read file operations
2912         instead of explicit LFS names, and fix infinite loop.
2913         * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
2914         (get_process_info): Use _Static_assert instead of assert, use default
2915         directory operations instead of explicit LFS names, and free some
2916         leadek pointers.
2917         * elf/tst-pldd.c: New file.
2919 2019-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2921         * malloc/arena.c (do_set_mallopt_check): Removed.
2923 2019-04-23  Florian Weimer  <fweimer@redhat.com>
2925         locale: Add LOCPATH diagnostics to the locale program.
2926         * locale/programs/locale.c (setlocale_failed): New variable.
2927         (try_setlocale): New function.
2928         (quote_string): Likewise.
2929         (setlocale_diagnostics): Likewise.
2930         (main): Call try_setlocale instead of setlocale.  Call
2931         setlocale_diagnostics.
2932         * locale/Makefile (tests-special): Add tst-locale-locpath.out.
2933         (tst-locale-locpath.out): New target.
2934         * locale/tst-locale-locpath.sh: New file.
2936 2019-04-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2938         * NEWS: Move memory allocation changes of BZ#23741 from 2.29
2939         to 2.30 notes.
2941 2019-04-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2943         [BZ #23741]
2944         * malloc/hooks.c (malloc_check, realloc_check): Use
2945         __builtin_add_overflow on overflow check and adapt to
2946         checked_request2size change.
2947         * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
2948         __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
2949         allocation size to PTRDIFF_MAX.
2950         (REQUEST_OUT_OF_RANGE): Remove macro.
2951         (checked_request2size): Change to inline function and limit maximum
2952         requested size to PTRDIFF_MAX.
2953         (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
2954         maximum allocation size to PTRDIFF_MAX.
2955         (_mid_memalign): Use _int_memalign call for overflow check.
2956         (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
2957         (__libc_calloc): Use __builtin_mul_overflow for overflow check and
2958         limit maximum requested size to PTRDIFF_MAX.
2959         * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
2960         valloc, pvalloc): Add __attribute_alloc_size__.
2961         * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
2962         * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
2963         larger than PTRDIFF_MAX.
2964         * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
2965         around tests of malloc with negative sizes.
2966         * malloc/tst-posix_memalign.c (do_test): Likewise.
2967         * malloc/tst-pvalloc.c (do_test): Likewise.
2968         * malloc/tst-valloc.c (do_test): Likewise.
2969         * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
2970         with resulting size allocation larger than PTRDIFF_MAX with
2971         reallocarray_nowarn.
2972         (reallocarray_nowarn): New function.
2973         * NEWS: Mention the malloc function semantic change.
2975 2019-04-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2977         * sysdeps/powerpc/fpu/s_fma.c: Fix format.
2978         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
2980         * sysdeps/powerpc/fpu/s_fma.S: Remove file.
2981         * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
2982         * sysdeps/powerpc/fpu/s_fma.c: New file.
2983         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
2985         * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
2986         * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
2988         * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
2989         the magic flag store.
2990         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
2991         Likewise.
2992         * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
2993         Likewise.
2994         * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
2995         Remove rt_sigreturn call.
2997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2998         Remove rt_sigreturn call.
2999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3000         Likewise.
3001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
3002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3004         * support/Makefile (libsupport-routines): Add support_subprocess,
3005         xposix_spawn, xposix_spawn_file_actions_addclose, and
3006         xposix_spawn_file_actions_adddup2.
3007         (tst-support_capture_subprocess-ARGS): New rule.
3008         * support/capture_subprocess.h (support_capture_subprogram): New
3009         prototype.
3010         * support/support_capture_subprocess.c (support_capture_subprocess):
3011         Refactor to use support_subprocess and support_capture_poll.
3012         (support_capture_subprogram): New function.
3013         * support/tst-support_capture_subprocess.c (write_mode_to_str,
3014         str_to_write_mode, test_common, parse_int, handle_restart,
3015         do_subprocess, do_subprogram, do_multiple_tests): New functions.
3016         (do_test): Add support_capture_subprogram tests.
3017         * support/subprocess.h: New file.
3018         * support/support_subprocess.c: Likewise.
3019         * support/xposix_spawn.c: Likewise.
3020         * support/xposix_spawn_file_actions_addclose.c: Likewise.
3021         * support/xposix_spawn_file_actions_adddup2.c: Likewise.
3022         * support/xspawn.h: Likewise.
3024 2019-04-17  Mike Gerow  <gerow@google.com>
3026         * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
3027         groups limit.
3029 2019-04-11  Florian Weimer  <fweimer@redhat.com>
3031         * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
3032         domain with empty string.
3033         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
3035 2019-04-11  Florian Weimer  <fweimer@redhat.com>
3037         * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
3038         comment.
3039         (alloc_buffer_next): Change return type to non-const.  Update
3040         comment.
3042 2019-04-10  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3044         * manual/time.texi (Formatting Calendar Time): Add missing percent
3045         sign to conversion specifier.
3047 2019-04-09  Carlos O'Donell  <carlos@redhat.com>
3048             Kwok Cheung Yeung  <kcy@codesourcery.com>
3050         [BZ #16573]
3051         * malloc/mtrace.c: Define prototypes for all hooks.
3052         (set_default_hooks): New function.
3053         (set_trace_hooks): Likewise.
3054         (save_default_hooks): Likewise.
3055         (tr_freehook): Use new s*_hooks functions.
3056         (tr_mallochook): Likewise.
3057         (tr_reallochook): Likewise.
3058         (tr_memalignhook): Likewise.
3059         (mtrace): Likewise.
3060         (muntrace): Likewise.
3062 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
3064         * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
3065         (generic_stpcpy): New function.
3066         * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
3067         (generic_stpncpy): New function.
3068         * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
3069         (generic_strcat): New function.
3070         * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
3071         (generic_strcpy): New function.
3072         * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
3073         (STUPID_STRNCAT): Remove function.
3074         (generic_strncat): New function.
3075         * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
3076         (STUPID_STRNCPY): Remove function.
3077         (generic_strncpy): New function.
3078         * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
3079         (generic_strnlen): New function.
3080         (memchr_strnlen): New function.
3081         * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
3082         (memchr_strlen): Likewise.
3084 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
3086         * benchtests/bench-strstr.c (input): Add realistic input text.
3087         (stupid_strstr): Remove function.
3088         (basic_strstr): Add function.
3089         (twoway_strstr): Add function.
3090         (do_one_test): Add result checking.
3091         (do_test): Use new input text.  Remove accidental early matches.
3092         (test_main): Improve range of tests, reduce unaligned cases.
3094 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
3096         * benchtests/bench-memmem.c (simple_memmem): Remove function.
3097         (basic_memmem): Add function.
3098         (twoway_memmem): Add function.
3100 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
3102         * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
3103         * benchtests/bench-malloc-thread.c: Likewise.
3104         * benchtests/bench-skeleton.c: Likewise.
3105         * benchtests/bench-strtod.c: Likewise.
3106         * benchtests/bench-timing.h: Likewise.
3108 2019-04-08  Florian Weimer  <fweimer@redhat.com>
3110         * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
3111         definitions.
3112         * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
3113         RES_INSECURE2 security checks.
3114         * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
3115         RES_INSECURE2 handling.
3117 2019-04-08  Florian Weimer  <fweimer@redhat.com>
3119         resolv: Remove support for RES_USE_INET6 and the inet6 option.
3120         * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
3121         * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
3122         GETHOSTBYNAME.
3123         * resolv/Makefile (tests): Remove tst-res_use_inet6.
3124         (tests-internal): Update justification for tst-resolv-res_init,
3125         tst-resolv-res_init-thread.
3126         (tst-res_use_inet6): Remove target.
3127         (CFLAGS-tst-res_use_inet6.c): Do not set variable.
3128         * resolv/res_debug.c (p_option): Remove "inet6" support.
3129         * resolv/res_init.c (res_setoptions): Likewise.
3130         * resolv/res_use_inet6.h: Remove file.
3131         * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
3132         definition.
3133         (res_use_inet6): Always return false.
3134         * resolv/resolv.h (RES_USE_INET6): Remove definition.
3135         * resolv/resolv_context.h: Adjust file comment.
3136         (struct resolv_context): Update comment on __next field.
3137         (__resolv_context_put): Update comment.
3138         * resolv/tst-res_use_inet6.c: Remove file.
3139         * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
3140         "inet6" support.
3141         (test_cases): Adjust test case.
3142         * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
3143         (thread_byname2_af_inet6): Use old byname_inet6 code.
3144         (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
3145         (gai): Remove do_inet6 argument.
3146         (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
3147         (thread_gai_inet_inet6, thread_gai_inet6_inet6)
3148         (thread_gai_unspec_inet6): Remove functions.
3149         (do_test): Adjust thread_funcs.
3150         * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
3151         RES_USE_INET6 flag.
3152         (gaih_inet): Do not disable RES_USE_INET6 flag.
3154 2019-04-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
3156         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
3157         and remove redundant code.
3159 2019-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3161         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
3162         New rule.
3163         * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
3164         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
3165         Likewise.
3166         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
3167         Likewise.
3168         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
3169         Likewise.
3170         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
3171         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
3172         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
3173         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
3174         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
3175         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
3176         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
3177         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
3178         wcsrchr-power7.
3179         (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
3180         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
3181         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
3182         Remove wcsrchr optimizations.
3183         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
3185         * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
3186         the loop unroll.
3188         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
3189         New rule.
3190         * sysdeps/powerpc/power6/wcschr.c: Remove file.
3191         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
3192         Likewise.
3193         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
3194         Likewise.
3195         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
3196         Likewise.
3197         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
3198         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
3199         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
3200         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
3201         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
3202         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
3203         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
3204         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
3205         wcschr-power7.
3206         (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
3207         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
3208         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
3209         Remove wcschr optimizations.
3210         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
3212         * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
3213         the loop unroll.
3215         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
3216         New rule.
3217         * sysdeps/powerpc/power6/wcscpy.c: Remove file.
3218         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
3219         Likewise.
3220         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
3221         Likewise.
3222         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
3223         Likewise.
3224         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
3225         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
3226         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
3227         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
3228         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
3229         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
3230         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
3231         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
3232         wcscpy-power7.
3233         (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
3234         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
3235         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
3236         Remove wcscpy optimizations.
3237         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
3239         * include/loop_unroll.h: New file.
3240         * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
3241         besides generic implementation.
3243 2019-04-03  DJ Delorie  <dj@redhat.com>
3245         * time/tst-strftime3.c (tm_to_printed): Disable warning about
3246         snprintf truncating output.
3248 2019-04-02  DJ Delorie  <dj@redhat.com>
3250         * time/tst-strftime3.c: Add new Japanese era tests.  Fix printf
3251         warning.
3253 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3255         [BZ #22964]
3256         * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
3257         era.
3258         * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
3259         (mkreftable): Add rules for the new Japanese era and the new dates.
3261 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3262             Rafal Luzynski  <digitalfreak@lingonborough.com>
3264         * time/tst-strftime2.c (date_t): Explicitly define the type.
3265         (dates): Use natural month and year numbers to express a date.
3266         (is_before): New function to compare dates.
3267         (mkreftable): Minor improvements to simplify maintenance.
3268         (do_test): Reflect the changes in dates array.
3270         [BZ #24293]
3271         * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
3272         hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
3273         * time/tst-strftime2.c (locales): Likewise.
3274         (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
3275         2010-04-01, and 2011-04-01.
3276         (mkreftable): Add rules for the new locales and the new dates.
3278 2019-04-01  Carlos O'Donell  <carlos@redhat.com>
3280         * localedata/locales/ja_JP: Add comments to era entries.
3282 2019-04-01  DJ Delorie  <dj@redhat.com>
3284         [BZ #24394]
3285         * time/strptime_l.c (%Ey): Fix fencepost error.
3286         * time/tst-strftime3.c: New.
3287         * time/Makefile (tests): Add tst-strftime3.
3289 2019-04-01  Uros Bizjak  <ubizjak@gmail.com>
3291         * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
3292         conditional branch to DIVBYZERO.  Fix unwind info.
3293         * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
3294         excb after conditional branch to $powerof2.  Add missing unop
3295         instructions and .align directives and reorder instructions to
3296         match __divqu.
3298 2019-04-01  Richard Henderson  <rth@twiddle.net>
3300         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
3301         Do not redefine.
3302         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
3303         Do not redefine.
3305 2019-03-30  Maciej W. Rozycki  <macro@wdc.com>
3307         * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
3308         $libc_cv_riscv_float_abi in `test' invocation.
3309         * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
3311 2019-03-29  Paul A. Clarke  <pc@us.ibm.com>
3313         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
3314         asm with builtin.
3315         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
3316         Likewise.
3317         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
3318         (_GET_SI_FPSCR): Likewise.
3319         (_SET_SI_FPSCR): Likewise.
3321 2019-03-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3323         * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
3324         clang 2.8.
3325         (signbit): Use builtin for clang 3.3.
3326         (isinf): Use builtin for clang 3.7.
3328 2019-03-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3330         * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
3332 2019-03-25  Andreas K. Hüttel  <dilfridge@gentoo.org>
3334         * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
3335         quote in printf.
3337 2019-03-25  Mike Crowe  <mac@mcrowe.com>
3339         * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
3340         pthread_rwlock_timedrdlock with calls to
3341         pthread_rwlock_timedwrlock to ensure that the latter is tested
3342         too. Use new function name in diagnostic messages too.
3344         * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
3345         (do_test) Use libsupport test macros rather than hand-coded
3346         conditionals and error messages. Ensure that sem_init returns zero
3347         rather than not -1. Use <support/test-driver.c> rather than
3348         test-skeleton.c.
3350         * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
3351         test macros rather than hand-coded conditionals and error messages.
3352         Use <support/test-driver.c> rather than test-skeleton.c.
3354 2019-03-25  Joseph Myers  <joseph@codesourcery.com>
3356         * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
3358         * elf/elf.h (NT_ARM_PAC_MASK): New macro.
3359         (NT_MIPS_MSA): Likewise.
3361 2019-03-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3363         * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
3364         * benchtests/README: Update description.
3365         * benchtests/bench-timing.h: Default to hp-timing.
3366         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
3367         HP_TIMING_PRINT): Remove.
3368         (HP_TIMING_NOW): Add generic implementation.
3369         (hp_timing_t): Change to uint64_t.
3371         * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
3372         HP_TIMING_INLINE.
3373         * nptl/descr.h: Likewise.
3374         * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
3375         RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
3376         (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
3377         Abstract hp-timing usage with RTLD_* macros.
3378         * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
3379         (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
3380         * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
3381         HP_TIMING_NONAVAIL): Likewise.
3382         * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
3383         Likewise.
3384         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
3385         HP_SMALL_TIMING_AVAIL): Likewise.
3386         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
3387         HP_SMALL_TIMING_AVAIL): Likewise.
3388         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
3389         HP_SMALL_TIMING_AVAIL): Likewise.
3390         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
3391         HP_SMALL_TIMING_AVAIL): Likewise.
3392         * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
3393         Likewise.
3394         * sysdeps/generic/hp-timing-common.h: Update comment with
3395         HP_TIMING_AVAIL removal.
3397         * include/random-bits.h: New file.
3398         * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
3399         (__res_context_mkquery): Remove usage hp-timing usage and replace with
3400         random_bits.
3401         * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
3402         * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
3403         Likewise.
3405         * include/libc-internal.h (__get_clockfreq): Remove prototype.
3406         * rt/Makefile (clock-routines): Remove get_clockfreq.
3407         * rt/get_clockfreq.c: Remove file.
3408         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
3409         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
3410         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
3411         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
3412         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
3414         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
3415         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
3416         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
3417         (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
3418         _SC_CPUTIME, and _SC_THREAD_CPUTIME.
3420         * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
3421         pthread_clock_settime.
3422         * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
3423         * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
3424         (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
3425         * elf/rtld.c (_dl_start_final): Likewise.
3426         * nptl/allocatestack.c (__find_thread_by_id): Remove function.
3427         * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
3428         Remove.
3429         * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
3430         (_dl_cpuclock_offset): Remove.
3431         * nptl/descr.h (struct pthread): Rename cpuclock_offset to
3432         cpuclock_offset_ununsed.
3433         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
3434         cpuclock_offset set.
3435         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
3436         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
3437         * nptl/pthread_clock_gettime.c: Remove file.
3438         * nptl/pthread_clock_settime.c: Likewise.
3439         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
3440         [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
3441         and CLOCK_PROCESS_CPUTIME_ID support.
3442         * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
3443         [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
3444         * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
3445         [HP_TIMING_AVAIL] (__clock_getres): Likewise.
3446         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
3447         Likewise.
3448         (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
3450 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
3452         * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
3453         * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
3454         MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
3455         New defines.
3456         * sysdeps/s390/memmem-arch13.S: New file.
3457         * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
3458         if it is only used as fallback.
3459         * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
3460         * sysdeps/s390/multiarch/ifunc-impl-list.c
3461         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
3463 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
3465         * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
3466         * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
3467         STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
3468         New defines.
3469         * sysdeps/s390/multiarch/ifunc-impl-list.c
3470         (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
3471         * sysdeps/s390/strstr-arch13.S: New file.
3472         * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
3473         if it is only used as fallback.
3474         * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
3476 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
3478         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
3479         HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
3480         * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
3481         * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
3482         ifunc selector.
3483         * sysdeps/s390/multiarch/ifunc-impl-list.c
3484         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
3485         * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
3486         S390_IS_ARCH13_MIE3): New defines.
3488 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
3490         * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
3491         HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
3492         * sysdeps/s390/configure.ac: Add checks for arch13 support.
3493         * sysdeps/s390/configure: Regenerated.
3495 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
3497         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
3498         Add vxe2, vxp, dflt, sort flags.
3499         * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
3500         HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
3501         capabilities.
3502         (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
3503         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
3504         (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
3505         HWCAP_S390_DFLT): Define.
3507 2019-03-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3509         [BZ #24372]
3510         * iconv/iconvconfig.c (write_output): Add parentheses to get rid
3511         of compiler warning.
3512         * locale/programs/ld-collate.c (collate_output): Likewise.
3514 2019-03-21  DJ Delorie  <dj@redhat.com>
3516         [BZ #24372]
3517         * iconv/iconvconfig.c (write_output): Replace floating point math
3518         with integer math to avoid imprecise results.
3519         * locale/programs/ld-collate.c (collate_output): Likewise.
3521 2019-03-21  Stefan Liebler  <stli@linux.ibm.com>
3523         * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
3524         Add HWCAP_S390_VX and HWCAP_S390_VXE.
3526 2019-03-20  mansayk  <6688000@gmail.com>
3528         [BZ #24296]
3529         * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
3530         (abday): Likewise, but remove the trailing dots.
3532 2019-03-19  Joseph Myers  <joseph@codesourcery.com>
3534         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
3535         macro.
3536         (HWCAP_PACA): Likewise.
3537         (HWCAP_PACG): Likewise.
3538         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3539         Increase to 32.
3540         (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
3542 2019-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3544         * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
3545         should be handled.
3547 2019-03-15  Joseph Myers  <joseph@codesourcery.com>
3549         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3550         version to 5.0.
3551         (old_getpagesize): New syscall.
3553 2019-03-15  Felix Yan  <felixonmars@archlinux.org>
3555         [BZ #24293]
3556         * localedata/locales/zh_TW (era): Add, support Minguo calendar.
3557         * localedata/locales/cmn_TW (era): Likewise.
3558         * localedata/locales/hak_TW (era): Likewise.
3559         * localedata/locales/lzh_TW (era): Likewise.
3560         * localedata/locales/nan_TW (era): Likewise.
3562 2019-03-14  Adam Maris  <amaris@redhat.com>
3564         * malloc/malloc.c (_int_malloc): Check for large bin list
3565         corruption when inserting unsorted chunk.
3567 2019-03-14  Florian Weimer  <fweimer@redhat.com>
3569         Remove obsolete, never-implemented XSI STREAMS declarations.
3570         * manual/terminal.texi (Allocation): Remove portability note and
3571         adjust example.
3572         * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
3573         _SC_STREAMS.
3574         * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
3575         * sysdeps/unix/inet/Subdirs (streams): Remove.
3576         * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
3577         (conformtest-headers-UNIX98): Likewise.
3578         (conformtest-headers-XOPEN2K): Likewise.
3579         (conformtest-headers-POSIX2008): Likewise.
3580         * posix/compat-streams.c: New file.
3581         * posix/Makefile (routines): Add it.
3582         * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
3583         getpmsg, isastream, putmsg, putpmsg.
3584         (GLIBC_2.30): New section.
3585         * bits/stropts.h: Remove file.
3586         * bits/xtitypes.h: Likewise.
3587         * conform/data/stropts.h-data: Likewise.
3588         * include/stropts.h: Likewise.
3589         * include/sys/stropts.h: Likewise.
3590         * include/xtitypes.h: Likewise.
3591         * streams/Makefile: Likewise.
3592         * streams/fattach.c: Likewise.
3593         * streams/fdetach.c: Likewise.
3594         * streams/getmsg.c: Likewise.
3595         * streams/getpmsg.c: Likewise.
3596         * streams/isastream.c: Likewise.
3597         * streams/putmsg.c: Likewise.
3598         * streams/putpmsg.c: Likewise.
3599         * streams/stropts.h: Likewise.
3600         * streams/sys/stropts.h: Likewise.
3601         * sysdeps/ia64/bits/xtitypes.h: Likewise.
3602         * sysdeps/s390/bits/xtitypes.h: Likewise.
3603         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
3604         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
3605         * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
3606         * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
3607         * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
3608         * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
3609         * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
3610         * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
3611         * sysdeps/x86/bits/xtitypes.h: Likewise.
3613 2019-03-14  Florian Weimer  <fweimer@redhat.com>
3615         * nss/tst-nss-files-alias-truncated.c (do_test): Load
3616         libnss_files.
3617         * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
3618         but not with libnss_files.
3619         (tst-nss-files-alias-truncated.out): Depend on libnss_files.
3621 2019-03-14  Zack Weinberg  <zackw@panix.com>
3623         * scripts/check-obsolete-constructs.py (HeaderChecker.check):
3624         Specify encoding="utf-8" when opening headers to check.
3626 2019-03-13  Joseph Myers  <joseph@codesourcery.com>
3628         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3629         version to 5.0.
3630         (Context.checkout_tar): Handle variable major version for Linux
3631         kernel.
3633 2019-03-13  Florian Weimer  <fweimer@redhat.com>
3635         [BZ #24047]
3636         * sysdeps/mach/hurd/res_enable_icmp.c: New file.
3638 2019-03-13  Zack Weinberg  <zackw@panix.com>
3640         * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
3641         Move to stdlib.
3642         * include/inttypes.h: Adjust to match.
3643         * include/stdint.h: New wrapper.
3645 2019-03-13  Zack Weinberg  <zackw@panix.com>
3647         * scripts/check-obsolete-constructs.py: New test script.
3648         * scripts/check-installed-headers.sh: Remove tests for
3649         obsolete typedefs, superseded by check-obsolete-constructs.py.
3650         * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
3651         as a special test.  Update commentary.
3652         * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
3653         (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
3654         Update commentary.
3655         * posix/sys/types.h (__u_intN_t): Remove.
3656         (u_int8_t): Typedef using __uint8_t.
3657         (u_int16_t): Typedef using __uint16_t.
3658         (u_int32_t): Typedef using __uint32_t.
3659         (u_int64_t): Typedef using __uint64_t.
3661 2019-03-13  Stefan Liebler  <stli@linux.ibm.com>
3663         * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
3664         call _dl_procinfo.
3665         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
3666         Ignore types other than AT_HWCAP.
3667         * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
3668         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
3669         Likewise.
3670         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
3671         in the case of falling back to generic output mechanism.
3672         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
3673         Likewise.
3675 2019-03-12  Florian Weimer  <fweimer@redhat.com>
3677         * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
3679 2019-03-12  Florian Weimer  <fweimer@redhat.com>
3681         [BZ #24047]
3682         resolv: Enable full ICMP errors for UDP DNS sockets
3683         * resolv/res_enable_icmp.c: New file.
3684         * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
3685         * resolv/resolv-internal.h (__res_enable_icmp): Declare.
3686         * resolv/res_send.c (reopen): Call __res_enable_icmp on new
3687         socket.
3689 2019-03-11  Mao Han  <han_mao@c-sky.com>
3691         * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
3692         (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
3694 2019-03-11  Mao Han  <han_mao@c-sky.com>
3696         * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
3697         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
3698         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
3700 2019-03-11  Mao Han  <han_mao@c-sky.com>
3702         * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
3703         directly.
3704         * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
3705         definition.
3707 2019-03-11  Mao Han  <han_mao@c-sky.com>
3709         * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
3710         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
3711         in mcontext_t
3713 2019-03-08  Mike FABIAN  <mfabian@redhat.com>
3715         [BZ #24307]
3716         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
3717         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
3718         Unicode 12.0.0.
3719         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
3720         * localedata/unicode-gen/PropList.txt: Likewise.
3721         * localedata/unicode-gen/UnicodeData.txt: Likewise.
3722         * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
3723         became "Alphabetic" in Unicode 12.0.0. Adapt test case.
3724         * localedata/charmaps/UTF-8: Regenerate.
3725         * localedata/locales/i18n_ctype: Likewise.
3726         * localedata/locales/tr_TR: Likewise.
3727         * localedata/locales/translit_circle: Likewise.
3728         * localedata/locales/translit_cjk_compat: Likewise.
3729         * localedata/locales/translit_combining: Likewise.
3730         * localedata/locales/translit_compat: Likewise.
3731         * localedata/locales/translit_font: Likewise.
3732         * localedata/locales/translit_fraction: Likewise.
3734 2019-03-07  Joseph Myers  <joseph@codesourcery.com>
3736         * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
3737         than after operators.
3738         * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
3739         (setitimer_locked): Likewise.
3740         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
3741         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
3742         * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
3743         * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
3744         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
3745         (PPC_CPU_SUPPORTED): Likewise.
3746         * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
3747         * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
3748         (stat_overflow): Likewise.
3749         (statfs_overflow): Likewise.
3750         * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
3751         * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
3752         (eq_ttyname_r): Likewise.
3753         (run_chroot_tests): Likewise.
3755 2019-03-07  Florian Weimer  <fweimer@redhat.com>
3757         * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
3758         header check.
3760 2019-03-07  Martin Liska  <mliska@suse.cz>
3762         * math/Makefile: Change location where math-vector-fortran.h is
3763         installed.
3764         * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
3765         * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
3766         from sysdeps/x86/fpu/bits/math-vector-fortran.h.
3767         * scripts/check-installed-headers.sh: Skip Fortran header files.
3768         * scripts/check-wrapper-headers.py: Likewise.
3770 2019-03-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3772         * nptl/nptl-init.c (__have_futex_clock_realtime,
3773         __have_futex_clock_realtime): Remove definition.
3774         (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
3775         check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
3776         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
3777         __ASSUME_FUTEX_CLOCK_REALTIME support.
3778         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
3779         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3780         * sysdeps/unix/sysv/linux/kernel-features.h
3781         (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
3782         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
3783         Adjust comment.
3785 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3787         * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
3788         __wcscpy, then use libc_hidden_def and weak_alias to bind it to
3789         __GI___wcscpy and wcscpy.
3791 2019-03-04  Florian Weimer  <fweimer@redhat.com>
3793         * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
3794         declaration.
3795         * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
3796         defined.
3798 2019-03-04  Stefan Liebler  <stli@linux.ibm.com>
3800         * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
3801         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3803 2019-03-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3805         [BZ #24162]
3806         * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
3807         gan-nen from 2 to 1.  Problem reported by Morimitsu, Junji.
3809 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3811         * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
3812         tests.
3813         (do_test): Likewise.
3814         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
3815         (do_test_call_varg): Likewise.
3816         (do_test_call_rarg): Likewise.
3817         * sysdeps/ieee754/ldbl-opt/Makefile
3818         [subdir == misc] (tests-internal): Add tst-nldbl-warn,
3819         tst-nldbl-error.
3820         ($(objpfx)tst-nldbl-warn.c): New rule.
3821         ($(objpfx)tst-nldbl-error.c): Likewise.
3822         (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
3823         New variables.
3825 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3827         [BZ #23984]
3828         * include/bits/error-ldbl.h: New file.
3829         * include/error.h: Include stdarg.h.  Declare internal functions
3830         __error_internal and __error_at_line_internal.
3831         * misc/Makefile (headers): Add bits/error-ldbl.h.
3832         * misc/bits/error-ldbl.h: New file.
3833         * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
3834         avoid the inclusion of bits/error.h.
3835         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
3836         and __nldbl_error_at_line.
3837         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
3838         (__nldbl_error, __ndlbl_error_at_line): New functions.
3839         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
3840         Redirect error and error_at_line.
3841         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
3842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3843         Likewise.
3844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3845         Likewise.
3846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3847         Likewise.
3848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3849         Likewise.
3850         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3851         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3852         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3854 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3856         [BZ #23984]
3857         * include/bits/err-ldbl.h: New file.
3858         * include/err.h: Add prototypes for the internal functions:
3859         __vwarnx_internal and __vwarn_internal.
3860         * misc/Makefile (headers): Add bits/err-ldbl.h.
3861         * misc/bits/err-ldbl.h: New file.
3862         * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
3863         defined, i.e.: when -mlong-double-64 is in use.
3864         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
3865         __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
3866         __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
3867         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
3868         (VA_CALL): New macro.
3869         (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
3870         (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
3871         functions.
3872         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
3873         declare prototypes for the new functions.
3874         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
3875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3876         Likewise.
3877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3878         Likewise.
3879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3880         Likewise.
3881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3882         Likewise.
3883         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3884         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3885         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3887 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3889         * sysdeps/ieee754/ldbl-opt/Makefile
3890         [subdir == argp] (tests-internal): Add tst-nldbl-argp.
3891         [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
3892         [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
3894 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3896         [BZ #23983]
3897         * argp/Makefile (headers): Add bits/argp-ldbl.h.
3898         * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
3899         * argp/bits/argp-ldbl.h: New file.
3900         * include/argp.h: Include stdarg.h.  Add prototypes for internal
3901         functions: __argp_error_internal and __argp_failure_internal.
3902         * include/bits/argp-ldbl.h: New file.
3903         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
3904         __nldbl_argp_error and __nldbl_argp_failure.
3905         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
3906         (__nldbl_argp_error, __nldbl_argp_failure): New functions.
3907         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
3908         Redirect argp_error and argp_failure calls.
3909         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
3910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3911         Likewise.
3912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3913         Likewise.
3914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3915         Likewise.
3916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3917         Likewise.
3918         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3919         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3920         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3922 2019-03-01  Florian Weimer  <fweimer@redhat.com>
3924         [BZ #20419]
3925         * elf/tst-big-note-lib.S: Create a syntactically valid note.
3926         * elf/Makefile (tst-big-note-lib.so): Do not link with startup
3927         code, to avoid creating an ABI tag note.
3928         (modules-names-nobuild): Add tst-big-note-lib.
3930 2019-03-01  Stefan Liebler  <stli@linux.ibm.com>
3932         * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
3933         __wcscpy, __GI___wcscpy and weak alias to wcscpy.
3935 2019-03-01  Florian Weimer  <fweimer@redhat.com>
3937         [BZ #20271]
3938         * sysdeps/unix/sysv/linux/netlink_assert_response.c
3939         (__netlink_assert_response): Add additional missing newlines.
3941 2019-02-28  Joseph Myers  <joseph@codesourcery.com>
3943         * sysdeps/powerpc/powerpc32/dl-machine.c
3944         (__elf_machine_fixup_plt): Use space before '('.
3945         (__process_machine_rela): Likewise.
3946         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
3947         Likewise.
3948         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
3949         Likewise.
3950         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
3951         Likewise.
3952         * sysdeps/powerpc/test-arith.c (union_t): Likewise.
3953         (pattern): Likewise.
3954         (delta): Likewise.
3955         (check_result): Likewise.
3956         (check_excepts): Likewise.
3957         (check_op): Likewise.
3958         (fail_xr): Likewise.
3959         * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
3960         * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
3961         (SCNHSZ): Likewise.
3962         * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
3963         Likewise.
3964         (ARGS): Likewise.
3965         (__makecontext): Likewise.
3966         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
3967         Likewise.
3969 2019-02-28  Florian Weimer  <fweimer@redhat.com>
3971         [BZ #23937]
3972         elf: Add test with a local IFUNC resolver.
3973         * elf/ifuncmain9.c: New file.
3974         * elf/ifuncmain9pic.c: Likewise.
3975         * elf/ifuncmain9picstatic.c: Likewise.
3976         * elf/ifuncmain9pie.c: Likewise.
3977         * elf/ifuncmain9static.c: Likewise.
3978         * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
3979         ifuncmain9static, ifuncmain9picstatic.
3980         * elf/Makefile [multi-arch && build-shared] (tests-internal):
3981         Add ifuncmain9, ifuncmain9pic.
3982         * elf/Makefile [multi-arch && build-shared && have-fpie]
3983         (ifunc-pie-tests): Add ifuncmain9pie.
3984         (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
3985         (CFLAGS-ifuncmain9picstatic.c): Likewise.
3986         (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
3988 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
3990         * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
3991         * configure: Regenerated.
3992         * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
3994 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3996         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
3997         symbol as __wcspcy instead of wcscpy.
3999 2019-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4001         * include/stdio.h (__renameat2): New hidden prototype.
4002         * stdio-common/renameat2.c (__renameat2): Add hidden definition.
4003         * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
4004         * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
4005         * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
4007 2019-02-27  Joseph Myers  <joseph@codesourcery.com>
4009         * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
4010         if statement.
4012         * benchtests/bench-strcpy.c (do_test): Use space before '('.
4013         * benchtests/bench-string.h (cmdline_process_function): Likewise.
4014         * benchtests/bench-strlen.c (do_test): Likewise.
4015         (test_main): Likewise.
4016         * catgets/gencat.c (read_old): Likewise.
4017         * elf/cache.c (load_aux_cache): Likewise.
4018         * iconvdata/bug-iconv8.c (do_test): Likewise.
4019         * math/test-tgmath-ret.c (do_test): Likewise.
4020         * nis/nis_call.c (rec_dirsearch): Likewise.
4021         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
4022         * nptl/tst-audit-threads.c (do_test): Likewise.
4023         * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
4024         * nss/nss_test1.c (init): Likewise.
4025         * nss/test-netdb.c (test_hosts): Likewise.
4026         * posix/execvpe.c (maybe_script_execute): Likewise.
4027         * stdio-common/tst-fmemopen4.c (do_test): Likewise.
4028         * stdio-common/tst-printf.c (do_test): Likewise.
4029         * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
4030         * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
4031         * stdlib/qsort.c (STACK_SIZE): Likewise.
4032         * stdlib/test-canon.c (do_test): Likewise.
4033         * stdlib/tst-swapcontext1.c (do_test): Likewise.
4034         * string/memcmp.c (OPSIZ): Likewise.
4035         * string/test-strcpy.c (do_test): Likewise.
4036         (do_random_tests): Likewise.
4037         * string/test-strlen.c (do_test): Likewise.
4038         (test_main): Likewise.
4039         * string/test-strrchr.c (do_test): Likewise.
4040         (do_random_tests): Likewise.
4041         * string/tester.c (test_memrchr): Likewise.
4042         (test_memchr): Likewise.
4043         * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
4044         * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
4045         * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
4046         (read_encoded_value_with_base): Likewise.
4047         * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
4048         * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
4049         * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
4050         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
4051         * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
4052         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
4053         Likewise.
4054         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
4055         Likewise.
4056         * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
4057         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
4058         * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
4059         Likewise.
4060         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
4061         Likewise.
4062         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
4063         Likewise.
4064         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
4065         Likewise.
4066         * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
4067         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
4068         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4069         * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
4070         * time/test_time.c (main): Likewise.
4072 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4074         * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
4076         * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
4077         wmemcpy.
4079         * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
4080         wmemcpy.
4082         * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
4084         * include/wchar.h (__wcscpy): New prototype.
4085         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
4086         (__wcscpy): Route internal symbol to generic implementation.
4087         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
4088         Add internal __wcscpy alias.
4089         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
4090         * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
4091         * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
4092         * wcsmbs/wcscpy.c (wcscpy): Add
4093         * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
4094         use generic implementation.
4095         * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
4097         * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
4098         wmemset.
4100         * sysdeps/m68k/wcpcpy.c: Remove file.
4101         * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
4103 2019-02-26  Joseph Myers  <joseph@codesourcery.com>
4105         * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
4106         than after operators.
4107         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4108         * sysdeps/mach/hurd/getcwd.c
4109         (__hurd_canonicalize_directory_name_internal): Likewise.
4110         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
4111         (pthread_mutex_consistent): Likewise.
4112         * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
4113         Likewise.
4114         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
4115         (__pthread_mutex_transfer_np): Likewise.
4116         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
4117         (__pthread_mutex_unlock): Likewise.
4118         * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
4119         (mtx_owned_p): Likewise.
4120         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
4121         (pthread_mutexattr_getrobust): Likewise.
4122         * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
4123         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4124         Likewise.
4125         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4126         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
4127         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4128         * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
4129         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
4130         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4131         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
4132         Likewise.
4133         * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
4134         Likewise.
4135         * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
4136         * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
4137         * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
4138         (____longjmp_chk): Likewise.
4139         * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
4140         Likewise.
4141         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
4142         (INTERNAL_SYSCALL): Likewise.
4143         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
4144         (INTERNAL_SYSCALL): Likewise.
4145         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4146         (__get_clockfreq_via_cpuinfo): Likewise.
4148         * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
4149         comments.
4150         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
4151         * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
4152         (WORD_COPY_BWD): Likewise.
4153         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4154         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4155         Likewise.
4156         * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
4157         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
4158         comment.
4159         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
4161 2019-02-25  Joseph Myers  <joseph@codesourcery.com>
4163         * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
4164         && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
4165         rather than after operators.
4166         * elf/cache.c (print_cache): Likewise.
4167         * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
4168         * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
4169         * hurd/hurdinit.c (_hurd_setproc): Likewise.
4170         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
4171         * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
4172         * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
4173         (reauth_proc): Likewise.
4174         * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
4175         (__file_name_split_at): Likewise.
4176         (__directory_name_split_at): Likewise.
4177         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
4178         * hurd/port2fd.c (_hurd_port2fd): Likewise.
4179         * iconv/gconv_dl.c (do_print): Likewise.
4180         * inet/netinet/in.h (struct sockaddr_in): Likewise.
4181         * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
4182         * locale/setlocale.c (new_composite_name): Likewise.
4183         * malloc/memusagestat.c (main): Likewise.
4184         * misc/fstab.c (fstab_convert): Likewise.
4185         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
4186         Likewise.
4187         * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
4188         (getgrent_next_file): Likewise.
4189         (internal_getgrnam_r): Likewise.
4190         (internal_getgrgid_r): Likewise.
4191         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
4192         Likewise.
4193         (internal_getgrent_r): Likewise.
4194         * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
4195         (getpwent_next_nss): Likewise.
4196         (getpwent_next_file): Likewise.
4197         (internal_getpwnam_r): Likewise.
4198         (internal_getpwuid_r): Likewise.
4199         * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
4200         Likewise.
4201         (getspent_next_nss): Likewise.
4202         (internal_getspnam_r): Likewise.
4203         * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
4204         * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
4205         * string/strchr.c (STRCHR): Likewise.
4206         * string/strchrnul.c (STRCHRNUL): Likewise.
4207         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
4208         * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
4209         * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
4210         * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
4211         * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
4212         Likewise.
4213         * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
4214         * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
4215         * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
4216         * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
4217         * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
4218         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
4219         (open_file): Likewise.
4220         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
4221         (pthread_mutexattr_setprotocol): Likewise.
4222         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4223         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
4224         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
4225         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
4226         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
4227         Likewise.
4228         (elf_machine_rela): Likewise.
4229         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
4230         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
4231         * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
4232         * sysdeps/posix/rename.c (rename): Likewise.
4233         * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
4234         * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
4235         * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
4236         * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
4237         * sysdeps/unix/grantpt.c (grantpt): Likewise.
4238         * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
4239         * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
4240         Likewise.
4241         * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
4242         Likewise.
4243         * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
4244         * time/tzfile.c (__tzfile_compute): Likewise.
4246 2019-02-22  Joseph Myers  <joseph@codesourcery.com>
4248         * benchtests/bench-memmem.c (simple_memmem): Break lines before
4249         rather than after operators.
4250         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
4251         * crypt/md5.c (md5_finish_ctx): Likewise.
4252         * crypt/sha256.c (__sha256_finish_ctx): Likewise.
4253         * crypt/sha512.c (__sha512_finish_ctx): Likewise.
4254         * elf/cache.c (load_aux_cache): Likewise.
4255         * elf/dl-load.c (open_verify): Likewise.
4256         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
4257         * elf/readelflib.c (process_elf_file): Likewise.
4258         * elf/rtld.c (dl_main): Likewise.
4259         * elf/sprof.c (generate_call_graph): Likewise.
4260         * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
4261         * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
4262         * hurd/dtable.c (reauth_dtable): Likewise.
4263         * hurd/getdport.c (__getdport): Likewise.
4264         * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
4265         * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
4266         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
4267         Likewise.
4268         * hurd/hurdioctl.c (fioctl): Likewise.
4269         * hurd/hurdselect.c (_hurd_select): Likewise.
4270         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
4271         (STOPSIGS): Likewise.
4272         * hurd/hurdstartup.c (_hurd_startup): Likewise.
4273         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
4274         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
4275         * hurd/msgportdemux.c (msgport_server): Likewise.
4276         * hurd/setauth.c (_hurd_setauth): Likewise.
4277         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
4278         * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
4279         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
4280         * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
4281         * login/tst-utmp.c (do_check): Likewise.
4282         (simulate_login): Likewise.
4283         * mach/lowlevellock.h (lll_lock): Likewise.
4284         (lll_trylock): Likewise.
4285         * math/test-fenv.c (ALL_EXC): Likewise.
4286         * math/test-fenvinline.c (ALL_EXC): Likewise.
4287         * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
4288         * nis/nis_call.c (__do_niscall3): Likewise.
4289         * nis/nis_callback.c (cb_prog_1): Likewise.
4290         * nis/nis_defaults.c (searchaccess): Likewise.
4291         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
4292         * nis/nis_ismember.c (internal_ismember): Likewise.
4293         * nis/nis_local_names.c (nis_local_principal): Likewise.
4294         * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
4295         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
4296         Likewise.
4297         * nis/ypclnt.c (yp_match): Likewise.
4298         (yp_first): Likewise.
4299         (yp_next): Likewise.
4300         (yp_master): Likewise.
4301         (yp_order): Likewise.
4302         * nscd/hstcache.c (cache_addhst): Likewise.
4303         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4304         * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
4305         (internal_getpwuid_r): Likewise.
4306         * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
4307         * posix/glob.h (__GLOB_FLAGS): Likewise.
4308         * posix/regcomp.c (peek_token): Likewise.
4309         (peek_token_bracket): Likewise.
4310         (parse_expression): Likewise.
4311         * posix/regexec.c (sift_states_iter_mb): Likewise.
4312         (check_node_accept_bytes): Likewise.
4313         * posix/tst-spawn3.c (do_test): Likewise.
4314         * posix/wordexp-test.c (testit): Likewise.
4315         * posix/wordexp.c (parse_tilde): Likewise.
4316         (exec_comm): Likewise.
4317         * posix/wordexp.h (__WRDE_FLAGS): Likewise.
4318         * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
4319         * setjmp/sigjmp.c (__sigjmp_save): Likewise.
4320         * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
4321         * stdio-common/tst-fileno.c (do_test): Likewise.
4322         * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
4323         * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
4324         * stdlib/strtod_l.c (round_and_return): Likewise.
4325         (____STRTOF_INTERNAL): Likewise.
4326         * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
4327         * string/strcspn.c (STRCSPN): Likewise.
4328         * string/test-memmem.c (simple_memmem): Likewise.
4329         * termios/tcsetattr.c (tcsetattr): Likewise.
4330         * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
4331         * time/asctime.c (asctime_internal): Likewise.
4332         * time/strptime_l.c (__strptime_internal): Likewise.
4333         * time/sys/time.h (timercmp): Likewise.
4334         * time/tzfile.c (__tzfile_compute): Likewise.
4336 2019-02-21  Patsy Griffin Franklin  <pfrankli@redhat.com>
4338         [BZ #21915]
4339         * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
4341 2019-02-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4343         * argp/argp-help.c (__argp_error_internal): New function,
4344         renamed from __argp_error, but that takes a 'mode_flags'
4345         parameter to control the format of long double parameters.
4346         (__argp_error): Converted into a call __argp_error_internal.
4347         (__argp_failure_internal): New function, renamed from
4348         __argp_failure, but that takes a 'mode_flags' parameter.
4349         (__argp_failure): Converted into a call __argp_failure_internal.
4350         * misc/err.c (__vwarnx_internal): New function, renamed from
4351         vwarnx, but that takes a 'mode_flags' parameter.
4352         (vwarnx): Converted into a call to __vwarnx_internal.
4353         (__vwarn_internal): New function, renamed from vwarn, but that
4354         takes a 'mode_flags' parameter.
4355         (vwarn): Converted into a call to __vwarn_internal.
4356         * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
4357         call to __vfxprintf with 'mode_flags'.
4358         (__error_internal): New function, renamed from error, but that
4359         takes a 'mode_flags' parameter.
4360         (error): Converted into a call to __error_internal.
4361         (__error_at_line_internal): New function, renamed from
4362         error_at_line, but that takes a 'mode_flags' parameter.
4363         (error_at_line): Converted into a call to
4364         __error_at_line_internal.
4365         * include/stdio.h (__vfxprintf): Add mode_flags parameter.
4366         * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
4367         Likewise.
4369 2019-02-20  Martin Liska  <mliska@suse.cz>
4371         * math/Makefile: Install math-vector-fortran.h.
4372         * bits/math-vector-fortran.h: New file.
4373         * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
4375 2019-02-20  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4377         * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
4378         * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
4380 2019-02-19  Wolfram Sang  <wsa@the-dreams.de>
4382         * nptl/pthread_mutex_trylock.c: Fix comment.
4384 2019-02-19  Carlos O'Donell  <carlos@redhat.com>
4386         * nptl/pthread_tryjoin.c: Fix comment.
4388 2019-02-18  Joseph Myers  <joseph@codesourcery.com>
4390         [BZ #24231]
4391         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
4392         after R_SPARC_H34 case.
4394 2019-02-18  Florian Weimer  <fweimer@redhat.com>
4396         * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
4397         (getanswer): Do not call Dprintf.
4398         (res_gethostbyname2_context): Likewise.
4399         (res_gethostbyaddr_context): Likewise.
4401 2019-02-18  Florian Weimer  <fweimer@redhat.com>
4403         * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
4404         declaration.
4405         * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
4406         Remove definitions.
4407         * libio/stdfiles.c: Update comment.
4408         * libio/oldstdfiles.c (_IO_check_libio): Update comment.  Do not
4409         set _IO_stdin, _IO_stdout, _IO_stderr.
4410         * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
4411         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
4412         inline function.
4413         (_IO_deallocate_file): New inline function.
4414         * libio/iolibio.h (_IO_vprintf): Remove definition.
4415         * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
4416         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
4417         * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
4418         _IO_legacy_file.
4419         * libio/oldfileops.c (_IO_old_file_init_internal): Remove
4420         __builtin_expect.  Use _IO_legacy_file.
4422 2019-02-18  Stefan Liebler  <stli@linux.ibm.com>
4424         * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
4425         Initialize ctid with a known value and remove update of ctid
4426         after clone.
4427         (wait_tid): Adjust arguments and call futex_wait with ctid_val
4428         as assumed current value of ctid_ptr.
4430 2019-02-16  Florian Weimer  <fweimer@redhat.com>
4432         Check that non-sysdeps headers have wrapper headers.
4433         * scripts/check-wrapper-headers.py: New file.
4434         * Makefile (tests-special): Add check-wrapper-headers.out.
4435         (check-wrapper-headers.out): New target.
4436         * Rules (tests-special): Add check-wrapper-headers.out.
4437         (check-wrapper-headers.out): New target.
4439 2019-02-16  Florian Weimer  <fweimer@redhat.com>
4441         Add missing header wrappers under include/.
4442         * include/ar.h: New file.
4443         * include/bits/mqueue2.h: Likewise.
4444         * include/bits/stdio.h: Likewise.
4445         * include/bits/stdio2.h: Likewise.
4446         * include/fstab.h: Likewise.
4447         * include/fts.h: Likewise.
4448         * include/lastlog.h: Likewise.
4449         * include/netinet/icmp6.h: Likewise.
4450         * include/netinet/igmp.h: Likewise.
4451         * include/netinet/ip6.h: Likewise.
4452         * include/re_comp.h: Likewise.
4453         * include/regexp.h: Likewise.
4454         * include/rpcsvc/bootparam.h: Likewise.
4455         * include/rpcsvc/yp_prot.h: Likewise.
4456         * include/sys/random.h: Likewise.
4457         * include/sys/stropts.h: Likewise.
4458         * include/sys/ttychars.h: Likewise.
4459         * include/sys/vfs.h: Likewise.
4460         * include/wait.h: Likewise.
4462 2019-02-16  Florian Weimer  <fweimer@redhat.com>
4464         * nptl_db/proc_service.h: Move to ...
4465         * sysdeps/nptl/proc_service.h: ... here.
4466         * nptl_db/thread_db.h: Move to ...
4467         * sysdeps/nptl/thread_db.h: ... here.
4468         * nptl/descr.h: Include <thread_db.h>.
4470 2019-02-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4472         * io/Makefile (tests): Add tst-lockf.
4473         * io/lockf.c (lockf): Use __fcntl and only define for
4474         !__OFF_T_MATCHES_OFF64_T.
4475         * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
4476         __OFF_T_MATCHES_OFF64_T case.
4477         * io/tst-lockf.c: New file.
4478         * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
4479         * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
4480         * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
4481         * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
4482         * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
4483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
4484         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
4485         * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
4486         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
4488 2019-02-15  Florian Weimer  <fweimer@redhat.com>
4490         [BZ #24211]
4491         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
4492         pd->result after the thread descriptor has been freed.
4494 2019-02-15  Joseph Myers  <joseph@codesourcery.com>
4496         * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
4497         from function return type.
4499         * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
4501 2019-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4503         * scripts/test_printers_common.py: Set TERM to a known harmless
4504         value.
4506 2019-02-14  Joseph Myers  <joseph@codesourcery.com>
4508         * sunrpc/xdr.c (xdr_int): Add fall-through comment.
4509         (xdr_u_int): Likewise.
4510         (xdr_enum): Likewise.
4511         (xdr_bytes): Reword fall-through comment.
4512         (xdr_string): Likewise.
4514 2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4516         [BZ #2421]
4517         * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
4518         (tests): Add tst-join8 tst-join9.
4519         * nptl/lll_timedwait_tid.c: Remove file.
4520         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
4521         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
4522         * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
4523         * nptl/pthread_join_common.c (timedwait_tid): New function.
4524         (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
4525         is set.
4526         * nptl/tst-join5.c (thread_join): New function.
4527         (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
4528         check.
4529         * nptl/tst-join8.c: New file.
4530         * nptl/tst-join9.c: Likewise.
4531         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
4532         lll_futex_timed_wait_cancel): Add generic macros.
4533         * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
4534         Remove definitions.
4535         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4536         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
4537         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4538         * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
4539         Remove function.
4540         * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
4541         Likewise.
4542         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4543         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4544         (lll_futex_timed_wait_cancel): New macro.
4546 2019-02-14  Wilco Dijkstra  <wdijkstr@arm.com>
4548         * benchtests/Makefile: Add malloc-simple benchmark.
4549         * benchtests/bench-malloc-simple.c: New benchmark.
4551 2019-02-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4553         * benchtests/bench-memmove.c (do_one_test): Remove unused
4554         ORIG_SRC.
4555         (do_test): Adjust.
4556         * benchtests/bench-memmove-large.c (do_one_test): Remove unused
4557         ORIG_SRC.
4558         (do_test): Adjust.
4560 2019-01-13  Jim Wilson  <jimw@sifive.com>
4562         [BZ #24040]
4563         * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
4564         * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
4565         (func): New.
4566         (main): If USE_PTHREADS, call pthread_create to run func.  Otherwise
4567         call func directly.
4568         * nptl/Makefile (tests): Add tst-unwind-thread.
4569         (CFLAGS-tst-unwind-thread.c): Define.
4570         * nptl/tst-unwind-thread.c: New file.
4571         * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
4572         as undefined.
4574 2019-02-13  Joseph Myers  <joseph@codesourcery.com>
4576         * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
4577         comment wording.
4578         * nis/nis_call.c (__do_niscall3): Likewise.
4580         * catgets/gencat.c (normalize_line): Use braces around empty
4581         'else' body.
4582         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
4583         (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
4584         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
4585         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
4586         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
4587         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
4588         * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
4589         definition.
4591         * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
4592         execlp returns.
4594 2019-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
4596         * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
4597         * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
4598         * benchtests/bench-strchr.c (stupid_strchr): Remove.
4599         * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
4600         * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
4601         * benchtests/bench-strlen.c (builtin_strlen): Remove.
4602         * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
4603         * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
4604         * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
4605         * benchtests/bench-strspn.c (stupid_strspn): Remove.
4606         * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
4607         * benchtests/bench-bcopy.c: Delete file.
4608         * benchtests/bench-bzero.c: Likewise.
4609         * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
4610         (simple_memccpy): Remove.
4611         (generic_memccpy): Add function.
4612         * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
4613         * benchtests/bench-memmove.c (simple_bcopy): Remove.
4614         * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
4615         (generic_mempcpy): Add new function.
4616         * benchtests/bench-memset.c (simple_bzero): Remove.
4617         (builtin_bzero): Remove.
4618         (builtin_memset): Remove.
4619         * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
4620         (generic_rawmemchr): Add new function.
4622 2019-02-12  Florian Weimer  <fweimer@redhat.com>
4624         * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
4626 2019-02-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4628         [BZ #24122]
4629         * elf/Makefile (tests): Add tst-audit13.
4630         (modules-names): Add tst-audit13mod1.
4631         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
4632         rule.
4633         * elf/tst-audit13.c: New file.
4634         * elf/tst-audit13mod1.c: Likewise.
4636 2019-02-12  Florian Weimer  <fweimer@redhat.com>
4638         [BZ #24122]
4639         * elf/rtld.c (unload_audit_module): New function.
4640         (report_audit_module_load_error): Likewise.
4641         (load_audit_module): Likewise.  Extracted from dl_main.  Call
4642         _dl_close if the laversion symbol cannot be found.  Use early
4643         returns for error handling.  Add malloc error check.  Check for a
4644         zero return value from la_version.  Remove spurious comment about
4645         static TLS initialization.  Remove useless casts.
4646         (notify_audit_modules_of_loaded_object): New function.  Extracted
4647         from dl_main.
4648         (load_audit_module): Likewise.
4649         (dl_main): Call load_audit_modules.
4651 2019-02-12  Joseph Myers  <joseph@codesourcery.com>
4653         * elf/dl-exception.c (_dl_exception_create_format): Add
4654         fall-through comments.
4655         * elf/ldconfig.c (parse_conf_include): Likewise.
4656         * elf/rtld.c (print_statistics): Likewise.
4657         * locale/programs/charmap.c (parse_charmap): Likewise.
4658         * misc/mntent_r.c (__getmntent_r): Likewise.
4659         * posix/wordexp.c (parse_arith): Likewise.
4660         (parse_backtick): Likewise.
4661         * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
4662         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4663         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4665 2019-02-11  Paul A. Clarke  <pc@us.ibm.com>
4667         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
4668         Use float instead of double.
4670 2019-02-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4672         * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
4674 2019-02-08  Joseph Myers  <joseph@codesourcery.com>
4676         * sysdeps/powerpc/bits/mathinline.h: Remove.
4678 2019-02-08  Florian Weimer  <fweimer@redhat.com>
4680         math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
4681         * math/bits/math-finite.h: Move to ...
4682         * bits/math-finite.h: ... here.
4684 2019-02-08  Florian Weimer  <fweimer@redhat.com>
4686         * sysdeps/generic/bits/unistd_ext.h: Move to ...
4687         * bits/unistd_ext.h: here.
4689 2019-02-08  Patsy Griffin Franklin  <pfrankli@redhat.com>
4691         [BZ #21915]
4692         * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
4693         * nss/tst-nss-files-hosts-long.c: New file.
4694         * nss/tst-nss-files-hosts-long.root: New directory.
4695         * nss/tst-nss-files-hosts-long.root/etc: Likewise.
4696         * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
4698 2019-02-08  Florian Weimer  <fweimer@redhat.com>
4700         * include/bits/unistd_ext.h: Remove file.
4701         * posix/bits/unistd_ext.h: Move to ...
4702         * sysdeps/generic/bits/unistd_ext.h: ... here.
4704 2019-02-08  Florian Weimer  <fweimer@redhat.com>
4706         * include/bits/unistd_ext.h: New file.
4708 2019-02-08  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4710         * time/tst-strftime2.c: Use array_length macros instead of magic
4711         numbers.
4713 2019-02-08  Florian Weimer  <fweimer@redhat.com>
4715         [BZ #24161]
4716         * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
4717         argument.
4718         * nptl/register-atfork.c (__run_fork_handlers): Only perform
4719         locking if the new do_locking argument is true.
4720         * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
4721         __run_fork_handlers.
4723 2019-02-08  Florian Weimer  <fweimer@redhat.com>
4725         [BZ #6399]
4726         Linux: Add gettid system call wrapper.
4727         * posix/Makefile (headers): Add bits/unistd_ext.h.
4728         * posix/bits/unistd_ext.h: New file.
4729         * posix/unistd.h: Include it.
4730         * manual/process.texi (Process Identification): Document gettid.
4731         * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
4732         tst-gettid, tst-gettid-kill.
4733         (tst-gettid): Link with $(shared-thread-library).
4734         * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
4735         * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
4736         * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
4737         * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
4738         * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
4739         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4740         Add gettid.
4741         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4742         Likewise.
4743         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4744         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
4745         Likewise.
4746         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
4747         Likewise.
4748         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
4749         Likewise.
4750         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
4751         Likewise.
4752         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4753         Likewise.
4754         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4755         Likewise.
4756         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4757         Likewise.
4758         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4759         (GLIBC_2.30): Likewise.
4760         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4761         (GLIBC_2.30): Likewise.
4762         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4763         (GLIBC_2.30): Likewise.
4764         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4765         (GLIBC_2.30): Likewise.
4766         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4767         Likewise.
4768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4769         (GLIBC_2.30): Likewise.
4770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4771         (GLIBC_2.30): Likewise.
4772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4773         (GLIBC_2.30): Likewise.
4774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4775         (GLIBC_2.30): Likewise.
4776         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4777         Likewise.
4778         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4779         Likewise.
4780         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4781         Likewise.
4782         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4783         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4784         Likewise.
4785         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4786         Likewise.
4787         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4788         Likewise.
4789         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4790         Likewise.
4791         * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
4793 2019-02-08  Florian Weimer  <fweimer@redhat.com>
4795         * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
4796         compatibility symbols.
4798 2019-02-07  Stefan Liebler  <stli@linux.ibm.com>
4800         [BZ #24180]
4801         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
4802         Add compiler barriers and comments.
4804 2019-02-07  Florian Weimer  <fweimer@redhat.com>
4806         * include/array_length.h (array_length): Do not use a statement
4807         expression and _Static_assert, so that array_length can be used at
4808         file scope and as a constant expression.
4810 2019-02-07  Florian Weimer  <fweimer@redhat.com>
4812         * support/xdlfcn.h (xdlmopen): Declare.
4813         * support/xdlmopen.c: New file.
4814         * support/Makefile (libsupport-routines): Add xdlmopen.
4816 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
4818         * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
4819         before return type, without separate inline.
4820         * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
4821         * elf/dl-tunables.h (tunable_is_name): Likewise.
4822         * malloc/malloc.c (do_set_trim_threshold): Likewise.
4823         (do_set_top_pad): Likewise.
4824         (do_set_mmap_threshold): Likewise.
4825         (do_set_mmaps_max): Likewise.
4826         (do_set_mallopt_check): Likewise.
4827         (do_set_perturb_byte): Likewise.
4828         (do_set_arena_test): Likewise.
4829         (do_set_arena_max): Likewise.
4830         (do_set_tcache_max): Likewise.
4831         (do_set_tcache_count): Likewise.
4832         (do_set_tcache_unsorted_limit): Likewise.
4833         * nis/nis_subr.c (count_dots): Likewise.
4834         * nptl/allocatestack.c (advise_stack_range): Likewise.
4835         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
4836         (do_sin): Likewise.
4837         (reduce_sincos): Likewise.
4838         (do_sincos): Likewise.
4839         * sysdeps/unix/sysv/linux/x86/elision-conf.c
4840         (do_set_elision_enable): Likewise.
4841         (TUNABLE_CALLBACK_FNDECL): Likewise.
4843 2019-02-06  Florian Weimer  <fweimer@redhat.com>
4845         * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
4846         (xdlsym): Use dlerror to detect a NULL symbol.
4848 2019-02-06  Florian Weimer  <fweimer@redhat.com>
4850         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
4851         <stap-probe.h>.
4852         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4854 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
4856         * libio/tst-bz24153.c (wide): Use wide char format specifier.
4858 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
4860         * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
4861         __wmemcmp and weak alias to wmemcmp.
4863 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
4865         [BZ #23403]
4866         * nptl/allocatestack.c (allocate_stack): Align pointer pd for
4867         TLS_TCB_AT_TP tls variant.
4868         * nptl/tst-tls1.c: Migrate to support/test-driver.c.
4869         Add alignment checks.
4870         * support/Makefile (libsupport-routines): Add xposix_memalign and
4871         xpthread_setstack.
4872         * support/support.h: Add xposix_memalign.
4873         * support/xthread.h: Add xpthread_attr_setstack.
4874         * support/xposix_memalign.c: New File.
4875         * support/xpthread_attr_setstack.c: Likewise.
4877 2019-02-05  Florian Weimer  <fweimer@redhat.com>
4879         [BZ #24164]
4880         arm: Use "nr" constraint for Systemtap probes, to avoid the
4881         compiler using memory operands for constants, due to the "o"
4882         alternative in the default "nor" constraint.
4883         * include/stap-probe.h [USE_STAP_PROBE]: Include
4884         <stap-probe-machine.h>
4885         * sysdeps/generic/stap-probe-machine.h: New file.
4886         * sysdeps/arm/stap-probe-machine.h: Likewise.
4888 2019-02-04  Joseph Myers  <joseph@codesourcery.com>
4890         * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
4891         with 0, not tcache->entries[tc_idx].
4893         * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
4894         once.
4896 2019-02-04  Andreas Schwab  <schwab@suse.de>
4898         [BZ #16976]
4899         [BZ #17396]
4900         * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
4901         looking up collating elements match against (wide) character
4902         sequence instead of name.  Correct alignment adjustment.
4903         * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
4904         (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
4905         * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
4906         (LOCALES): Add cs_CZ.ISO-8859-2.
4907         * posix/tst-fnmatch4.c: New file.
4908         * posix/tst-fnmatch5.c: New file.
4909         * include/wchar.h (__wmemcmp): Declare.
4910         * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
4911         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
4912         * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
4913         * sysdeps/s390/wmemcmp.c: Likewise.
4915 2019-02-04  H.J. Lu  <hongjiu.lu@intel.com>
4917         [BZ #24155]
4918         CVE-2019-7309
4919         * NEWS: Updated for CVE-2019-7309.
4920         * sysdeps/x86_64/memcmp.S: Use RDX_LP for size.  Clear the
4921         upper 32 bits of RDX register for x32.  Use unsigned Jcc
4922         instructions, instead of signed.
4923         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
4924         * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
4926 2019-02-04  Florian Weimer  <fweimer@redhat.com>
4928         * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
4929         (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
4930         (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
4931         Likewise.
4932         (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
4933         (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
4934         (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
4935         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
4936         Likewise.
4937         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
4938         Likewise.
4939         (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
4940         Likewise.
4941         (posix_spawn_file_actions_addopen): Likewise.
4942         (posix_spawn_file_actions_addclose): Likewise.
4943         (posix_spawn_file_actions_adddup2): Likewise.
4944         (posix_spawn_file_actions_addchdir_np): Likewise.  Add __restrict
4945         qualifiers.
4946         (posix_spawn_file_actions_addfchdir_np): Likewise.
4948 2019-02-04  David Newall  <glibc@davidnewall.com>
4950         elf: Implement --preload option for the dynamic linker.
4951         * elf/rtld.c (preloadarg): New variable.
4952         (handle_preload_list): Pass through “where” argument to
4953         do_preload.
4954         (dl_main): Handle "--preload" and add second call to
4955         handle_preload_list.
4956         * elf/Makefile (tests-special): Add tst-rtld-preload.out.
4957         (tst-rtld-preload-OBJS): Set variable.
4958         (tst-rtld-preload.out): New target.
4959         * elf/tst-rtld-preload.sh: New file.
4961 2019-02-04  Matthew Malcomson  <matthew.malcomson@arm.com>
4963         * Makefile (testrun.sh): Exit in case of incorrect argument.
4965 2019-02-04  Florian Weimer  <fweimer@redhat.com>
4967         * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
4968         alignment gaps.
4970 2019-02-03  Florian Weimer  <fweimer@redhat.com>
4972         * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
4973         implicit overflow checks.
4975 2019-02-03  Aurelien Jarno  <aurelien@aurel32.net>
4977         * stdlib/isomac.c: Include <unistd.h>.
4979 2019-02-03  Florian Weimer  <fweimer@redhat.com>
4981         * include/time.h (__tzfile_default): Use int, not long int, for
4982         the GMT offsets.
4983         * time/tzfile.c (struct ttinfo): Change type of the offset member
4984         to int.
4985         (__tzfile_read): Remove useless cast.
4986         (__tzfile_default): Adjust prototype.
4987         * time/tzset.c (tz_rule): Change type of the offset member to int.
4988         (parse_offset): Change the type of the sign variable to int.
4990 2019-02-03  Florian Weimer  <fweimer@redhat.com>
4992         [BZ #24153]
4993         * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
4994         * libio/getchar.c (getchar): Likewise.
4995         * libio/getchar_u.c (getchar_unlocked): Likewise.
4996         * libio/getwchar.c (getwchar): Likewise.
4997         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
4998         * libio/iogets.c (_IO_gets): Likewise.
4999         * libio/vscanf.c (_IO_vscanf): Likewise.
5000         * libio/vwscanf.c (__vwscanf): Likewise.
5001         * libio/tst-bz24153.c: New file.
5002         * libio/Makefile (tests): Add it.
5004 2019-02-02  Florian Weimer  <fweimer@redhat.com>
5006         [BZ #14829]
5007         * manual/resource.texi (Basic Scheduling Functions): Add
5008         portability note.  Change process to task throughout the section.
5009         Remove incorrect comment about sched_yield as it affects
5010         tasks/threads, not entire processes.
5011         * sysdeps/unix/sysv/linux/bits/posix_opt.h
5012         (_POSIX_PRIORITY_SCHEDULING): Update comment.
5014 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
5016         * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
5017         * configure: Regenerated.
5018         * manual/install.texi (Tools for Compilation): Update minimum GCC
5019         version.
5020         * INSTALL: Regenerated.
5022 2019-02-01  Florian Weimer  <fweimer@redhat.com>
5024         * support/support_test_compare_string.c
5025         (support_test_compare_string): Use "string" in error message.
5026         * support/tst-test_compare_string.c (do_test): Adjust.
5028 2019-02-01  Florian Weimer  <fweimer@redhat.com>
5030         * support/support_format_address_family.c
5031         (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
5033 2019-02-01  Florian Weimer  <fweimer@redhat.com>
5035         * manual/socket.texi (Internet Address Formats): Clarify the byte
5036         order of struct sockaddr_in, struct sockaddr_in6.  Document
5037         sin6_flowinfo and sin6_scope_id.
5039 2019-02-01  Wilco Dijkstra  <wdijkstr@arm.com>
5041         * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
5042         * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
5043         * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
5044         * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
5045         * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
5046         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
5048 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
5050         * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
5051         [!MEMCHR](MEMCHR): Set to __memchr.
5052         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
5053         Add memchr_generic and memchr_nosimd.
5054         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
5055         (__libc_ifunc_impl_list): Add memchr ifuncs.
5056         * sysdeps/aarch64/multiarch/memchr.c: New file.
5057         * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
5058         * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
5060 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
5062         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
5063         Add memset_emag.
5064         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
5065         (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
5066         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
5067         Add IS_EMAG check for ifunc dispatch.
5068         * sysdeps/aarch64/multiarch/memset_base64.S: New file.
5069         * sysdeps/aarch64/multiarch/memset_emag.S: New file.
5071 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
5073         * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
5074         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
5075         Add emag.
5076         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
5077         New macro.
5079 2019-02-01  Stefan Liebler  <stli@linux.ibm.com>
5081         * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
5083 2019-01-31  Vineet Gupta  <vgupta@synopsys.com>
5085         * sysdeps/unix/make-syscalls.sh: Fix comment referencing
5086         syscall-template file.
5088 2019-01-31  Carlos O'Donell  <carlos@redhat.com>
5089             Torvald Riegel  <triegel@redhat.com>
5090             Rik Prohaska  <prohaska7@gmail.com>
5092         [BZ# 23844]
5093         * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
5094         tst-rwlock-trywrlock-stall.
5095         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
5096         Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
5097         * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
5098         Set __wrphase_fute to 1 only if we started the write phase.
5099         * nptl/tst-rwlock-tryrdlock-stall.c: New file.
5100         * nptl/tst-rwlock-trywrlock-stall.c: New file.
5101         * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
5102         * support/xpthread_rwlock_destroy.c: New file.
5103         * support/xthread.h: Declare xpthread_rwlock_destroy.
5105 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
5107         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
5108         version to 4.0.2.
5110 2019-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5112         [BZ #24051]
5113         * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
5114         * libio/fileops.c (_IO_new_file_underflow): Likewise
5115         * libio/wfileops.c (_IO_wfile_underflow): Likewise
5116         * libio/putchar.c (putchar): Likewise.
5117         * libio/putchar_u.c (putchar_unlocked): Likewise.
5118         * libio/putwchar.c (putchar): Likewise.
5119         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
5120         * libio/tst-bz24051.c: New test.
5121         * libio/Makefile (tests): Add tst-bz24051
5123 2019-01-31  Paul Eggert  <eggert@cs.ucla.edu>
5125         CVE-2019-9169
5126         regex: fix read overrun [BZ #24114]
5127         Problem found by AddressSanitizer, reported by Hongxu Chen in:
5128         https://debbugs.gnu.org/34140
5129         * posix/regexec.c (proceed_next_node):
5130         Do not read past end of input buffer.
5132 2019-01-31  Florian Weimer  <fweimer@redhat.com>
5134         [BZ #24059]
5135         * nss/nss_files/files-alias.c (get_next_alias): Handle
5136         continuation line without newline at the end.
5137         * nss/tst-nss-files-alias-truncated.c: New file.
5138         * nss/Makefile [$(build-shared)] (tests): Add
5139         tst-nss-files-alias-truncated.
5140         (tst-nss-files-alias-truncated): Link with libnss_files.so.
5141         * support/namespace.h (struct support_chroot_configuration): Add
5142         aliases member.
5143         (struct support_chroot): Add path_aliases member.
5144         * support/support_chroot.c (support_chroot_create): Handle
5145         aliases.
5146         (support_chroot_free): Free path_aliases.
5148 2019-01-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5150         * version.h (RELEASE): Set to "development".
5151         (VERSION): Set to "2.29.9000".
5152         * NEWS: Add section for 2.30.
5154         * version.h (RELEASE): Set to "stable".
5155         (VERSION): Set to "2.29".
5156         * include/features.h (__GLIBC_MINOR__): Set to 2.29.
5158         * NEWS: Add the list of bugs fixed in 2.29.
5159         * manual/contrib.texi: Update contributors list with some more
5160         names.
5161         * manual/install.texi: Update latest versions of packages
5162         tested.
5163         * INSTALL: Regenerated.
5165 2019-01-25  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5167         * po/be.po: Update translations.
5168         * po/bg.po: Likewise.
5169         * po/ca.po: Likewise.
5170         * po/cs.po: Likewise.
5171         * po/da.po: Likewise.
5172         * po/de.po: Likewise.
5173         * po/el.po: Likewise.
5174         * po/eo.po: Likewise.
5175         * po/es.po: Likewise.
5176         * po/fi.po: Likewise.
5177         * po/fr.po: Likewise.
5178         * po/gl.po: Likewise.
5179         * po/hr.po: Likewise.
5180         * po/hu.po: Likewise.
5181         * po/ia.po: Likewise.
5182         * po/id.po: Likewise.
5183         * po/it.po: Likewise.
5184         * po/ja.po: Likewise.
5185         * po/ko.po: Likewise.
5186         * po/lt.po: Likewise.
5187         * po/nb.po: Likewise.
5188         * po/nl.po: Likewise.
5189         * po/pl.po: Likewise.
5190         * po/pt_BR.po: Likewise.
5191         * po/ru.po: Likewise.
5192         * po/rw.po: Likewise.
5193         * po/sk.po: Likewise.
5194         * po/sl.po: Likewise.
5195         * po/sv.po: Likewise.
5196         * po/tr.po: Likewise.
5197         * po/uk.po: Likewise.
5198         * po/vi.po: Likewise.
5199         * po/zh_CN.po: Likewise.
5200         * po/zh_TW.po: Likewise.
5202 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
5204         [BZ #24130]
5205         * sysdeps/alpha/remqu.S (__remqu): Add missing restore
5206         of $f3 register on $y_is_neg path.
5208 2019-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5210         [BZ #24110]
5211         * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
5212         sigaltstack.ss_flags.
5214 2019-01-24  TAMUKI Shoichi  <tamuki@linet.gr.jp>
5216         [BZ #23758]
5217         * manual/time.texi (strftime): Document "%Ey".
5218         * time/strftime_l.c (__strftime_internal): Set the default width
5219         padding with zero of "%Ey" to 2.
5221         [BZ #24096]
5222         * manual/time.texi (strftime): Document "%EC" and "%EY".
5223         * time/Makefile (tests): Add tst-strftime2.
5224         (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
5225         * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
5226         override padding for "%Ey".
5227         If an optional flag ('_' or '-') is specified to "%EY", interpret the
5228         "%Ey" in the subformat as if decorated with that flag.
5229         * time/tst-strftime2.c: New file.
5231 2019-01-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5233         * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
5234         are not defined.
5236         [BZ #24122]
5237         * elf/Makefile (tests): Add tst-audit13.
5238         (modules-names): Add tst-audit13mod1.
5239         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
5240         rule.
5241         * elf/rtld.c (dl_main): Handle invalid audit module version.
5242         * elf/tst-audit13.c: New file.
5243         * elf/tst-audit13mod1.c: Likewise.
5245 2019-01-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5247         * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
5248         returned by __hurd_at_flags.
5249         * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
5250         AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
5251         directly instead of __hurd_file_name_lookup.
5253 2019-01-21  Joseph Myers  <joseph@codesourcery.com>
5255         * scripts/build-many-glibcs.py (Context.checkout): Default
5256         binutils version to 2.32 branch.
5258 2019-01-21  Florian Weimer  <fweimer@redhat.com>
5260         [BZ #20018]
5261         CVE-2016-10739
5262         resolv: Reject trailing characters in host names
5263         * include/arpa/inet.h (__inet_aton_exact): Declare.
5264         (inet_aton): Remove hidden prototype.  No longer used internally.
5265         * nscd/gai.c (__inet_aton): Do not define.
5266         * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
5267         * nss/digits_dots.c (__inet_aton): Likewise.
5268         (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
5269         * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
5270         (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
5271         (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
5272         (tst-resolv-trailing): Likewise.
5273         * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
5274         libc.
5275         * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
5276         Make static.  Add endp parameter.
5277         (__inet_aton_exact): New function.
5278         (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
5279         (__inet_addr): Call inet_aton_end.
5280         * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
5281         not just IPv6.  Call __inet_aton_exact.
5282         * resolv/tst-aton.c: Switch to <support/test-driver.c>.
5283         (tests): Make const.  Add additional test cases with trailing
5284         characters.
5285         (do_test): Use array_length.
5286         * resolv/tst-inet_aton_exact.c: New file.
5287         * resolv/tst-resolv-trailing.c: Likewise.
5288         * resolv/tst-resolv-nondecimal.c: Likewise.
5289         * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
5291 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
5293         [BZ# 24097]
5294         CVE-2019-6488
5295         * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
5296         Clear the upper 32 bits of RSI register.
5297         * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
5298         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
5299         and tst-size_t-wcsnlen.
5300         * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
5301         * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
5303 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
5305         [BZ# 24097]
5306         CVE-2019-6488
5307         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
5308         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
5309         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
5310         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
5311         * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
5313 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
5315         [BZ# 24097]
5316         CVE-2019-6488
5317         * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
5318         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5319         * sysdeps/x86_64/strcmp.S: Likewise.
5320         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
5321         tst-size_t-strncmp and tst-size_t-wcsncmp.
5322         * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
5323         * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
5324         * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
5326 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
5328         [BZ# 24097]
5329         CVE-2019-6488
5330         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
5331         RDX_LP for length.  Clear the upper 32 bits of RDX register.
5332         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
5333         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
5334         * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
5335         * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
5337 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
5339         [BZ# 24097]
5340         CVE-2019-6488
5341         * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
5342         * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
5343         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
5344         * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
5346 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
5348         [BZ# 24097]
5349         CVE-2019-6488
5350         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
5351         length.  Clear the upper 32 bits of RDX register.
5352         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
5353         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
5354         Likewise.
5355         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
5356         Likewise.
5357         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
5358         tst-size_t-wmemchr.
5359         * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
5361 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
5363         [BZ# 24097]
5364         CVE-2019-6488
5365         * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
5366         length.  Clear the upper 32 bits of RDX register.
5367         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
5368         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
5369         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
5370         tst-size_t-wmemcmp.
5371         * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
5372         * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
5374 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
5376         [BZ# 24097]
5377         CVE-2019-6488
5378         * sysdeps/x86_64/memchr.S: Use RDX_LP for length.  Clear the
5379         upper 32 bits of RDX register.
5380         * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
5381         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
5382         tst-size_t-wmemchr.
5383         * sysdeps/x86_64/x32/test-size_t.h: New file.
5384         * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
5385         * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
5387 2019-01-18  Florian Weimer  <fweimer@redhat.com>
5389         [BZ #24112]
5390         resolv: Do not send queries for non-host-names in nss_dns.
5391         * resolv/nss_dns/dns-host.c (check_name): New function.
5392         (_nss_dns_gethostbyname2_r): Use it.
5393         (_nss_dns_gethostbyname_r): Likewise.
5394         (_nss_dns_gethostbyname4_r): Likewise.
5396 2019-01-21  Florian Weimer  <fweimer@redhat.com>
5398         * resolv/inet_addr.c: Reformat to GNU style.
5399         (__inet_addr, __inet_aton): Update comment.
5401 2019-01-18  Florian Weimer  <fweimer@redhat.com>
5403         malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
5404         ("malloc: Use current (C11-style) atomics for fastbin access").
5405         This commit introduces a substantial performance regression on
5406         POWER and Aarch64.
5407         * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
5408         (REMOVE_FB): Define.
5409         (_int_malloc): Use it and reindent.
5410         (_int_free): Use CAS loop with
5411         catomic_compare_and_exchange_val_rel.
5412         (malloc_consolidate): Use atomic_exchange_acq.
5415 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
5417         * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New.  Set to
5418         -Wl,-z,now.
5419         (LDFLAGS-tst-minsigstksz-2): Likewise.
5420         (LDFLAGS-tst-minsigstksz-3): Likewise.
5421         (LDFLAGS-tst-minsigstksz-3a): Likewise.
5422         (LDFLAGS-tst-minsigstksz-4): Likewise.
5424 2019-01-18  TAMUKI Shoichi  <tamuki@linet.gr.jp>
5426         * manual/time.texi (strftime): Fix the wording to "alternative" rather
5427         than "alternate".
5429 2019-01-16  Paul A. Clarke  <pc@us.ibm.com>
5431         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
5433 2019-01-16  Zack Weinberg  <zackw@panix.com>
5435         * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
5436         (xget_sigstack_location): New test support functions.
5437         * support/xsigstack.c: New file, implementing them.
5438         * support/tst-xsigstack.c: New test for them.
5439         * support/Makefile: Update.
5441         * signal/tst-minsigstksz-1.c
5442         * signal/tst-minsigstksz-2.c
5443         * signal/tst-minsigstksz-3.c
5444         * signal/tst-minsigstksz-3a.c
5445         * signal/tst-minsigstksz-4.c: New tests.
5446         * signal/Makefile: Run them.
5448 2019-01-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5450         * po/libc.pot: Regenerate.
5452 2019-01-15  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5454         * math/libm-test-fma.inc (fma_test_data): Set
5455         XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
5457 2019-01-15  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
5459         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
5460         (do_test): Changed __vector __int128_t to __vector unsigned int.
5462 2019-01-14  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
5464         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5465         strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
5466         stpcpy-avx2 and stpncpy-avx2.
5467         * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
5468         (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
5469         __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
5470         and __stpncpy_avx2.
5471         * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
5472         ifunc-strcpy.h}: rename header for a more generic name.
5473         * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
5474         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
5475         AVX unaligned load is fast and vzeroupper is preferred.
5476         * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
5477         * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
5478         * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
5479         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
5480         * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
5481         * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
5483 2019-01-12  Dmitry V. Levin  <ldv@altlinux.org>
5485         * argp/argp-help.c: Fix typo in comment.
5486         * misc/sys/cdefs.h: Likewise.
5487         * posix/regexec.c (sift_states_iter_mb): Likewise.
5488         * socket/sockatmark.c: Likewise.
5489         * socket/sys/socket.h: Likewise.
5490         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
5491         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
5492         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
5493         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5494         * sysdeps/unix/sockatmark.c: Likewise.
5495         * time/strptime_l.c: Likewise.
5497 2019-01-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
5499         * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
5500         missing space after the cast of "_NL_CURRENT".
5502 2019-01-11  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
5504         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
5505         ifdef to fix read of VSCR.
5506         * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
5507         tst-ucontext-ppc64-vscr.c to test list.
5508         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
5510 2019-01-10  Andreas K. Hüttel  <dilfridge@gentoo.org>
5512         * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
5513         fall-through.
5515 2019-01-09  Jim Wilson  <jimw@sifive.com>
5517         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
5519 2019-01-09  Wilco Dijkstra  <wdijkstr@arm.com>
5521         * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
5522         * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
5523         __memcpy_falkor for ares.
5524         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
5525         Add new define.
5526         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
5527         Add ares cpu.
5529 2019-01-07  H.J. Lu  <hongjiu.lu@intel.com>
5531         [BZ #24066]
5532         * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
5533         4_FP_W_TYPEs are used for IEEE quad precision.
5534         * soft-fp/extendhftf2.c: Likewise.
5535         * soft-fp/extendsftf2.c: Likewise.
5536         * soft-fp/extendxftf2.c: Likewise.
5537         * soft-fp/trunctfdf2.c: Likewise.
5538         * soft-fp/trunctfhf2.c: Likewise.
5539         * soft-fp/trunctfsf2.c: Likewise.
5540         * soft-fp/trunctfxf2.c: Likewise.
5541         * sysdeps/alpha/ots_cvttx.c: Likewise.
5542         * sysdeps/alpha/ots_cvtxt.c: Likewise.
5543         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
5544         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
5545         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
5546         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
5547         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
5548         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
5549         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
5550         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
5551         * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
5552         * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
5553         * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
5554         * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
5555         * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
5556         * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
5557         * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
5558         * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
5560 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
5562         [BZ #24024]
5563         * Makeconfig: Build libm with -fno-math-errno but build the remaining
5564         code with -fmath-errno.
5565         * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
5566         [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
5567         * string/test-strerror-errno.c: New file.
5569 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
5571         [BZ #24046]
5572         * localedata/locales/en_US (date_fmt): Add, set to
5573         "%a %d %b %Y %r %Z".
5575 2019-01-07  Florian Weimer  <fweimer@redhat.com>
5577         [BZ #24063]
5578         * manual/arith.texi (Math Error Reporting): Use @code{errno}
5579         instead of @var{errno}.
5580         (Parsing of Integers): Likewise.
5581         (Parsing of Floats): Likewise.
5582         * manual/filesys.texi (Working with Directory Trees): Likewise.
5583         (Temporary Files): Likewise.
5584         * manual/job.texi (Terminal Access Functions): Likewise.
5585         * manual/llio.texi (Synchronizing I/O): Likewise.
5586         * manual/math.texi (SVID Random): Likewise.
5587         * manual/message.texi (The catgets Functions): Likewise.
5588         (Translation with gettext): Likewise.
5589         (Locating gettext catalog): Likewise.
5590         (Charset conversion in gettext): Likewise.
5591         * manual/nss.texi (NSS Module Function Internals): Likewise.
5592         * manual/search.texi (Hash Search Function): Likewise.
5593         * manual/setjmp.texi (System V contexts): Likewise.
5594         * manual/time.texi (Sleeping): Likewise.
5595         * manual/users.texi (Lookup User): Likewise.
5596         (Lookup Group): Likewise.
5598 2019-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5600         * posix/tst-spawn.c (do_test): Extend spargv to new required size and
5601         fix typo.
5603 2019-01-04  Martin Jansa  <Martin.Jansa@gmail.com>
5605         [BZ #19444]
5606         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
5607         __builtin_unreachable for default case in switch.
5608         (__ieee754_yn): Likewise.
5609         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5610         (__ieee754_ynl): Likewise.
5611         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5612         (__ieee754_ynl): Likewise.
5613         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5614         (__ieee754_ynl): Likewise.
5616 2019-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5618         * manual/maint.texi: Use @{ and @}.
5620 2019-01-04  Florian Weimer  <fweimer@redhat.com>
5622         * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
5623         function.
5624         (do_in_chroot_1): Call it.
5625         (run_chroot_tests):
5626         Improve error reporting in case it is not possible to create a
5627         collision for the PTY name required by the test.
5629 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5631         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
5632         lll_wait_tid with timeout.
5633         * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
5634         * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
5635         futex_reltimed_wait_cancelable for cancelabla mode.
5636         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
5637         * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
5638         macros.
5639         * sysdeps/posix/sigwait.c (__sigwait): Likewise.
5640         * sysdeps/posix/waitid.c (__sigwait): Likewise.
5641         * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
5642         SYSCALL_CANCEL_NCS): New macro.
5643         * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
5644         (lll_timedwait_tid): Remove macro.
5645         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
5646         Likewise.
5647         (lll_timedwait_tid): Likewise.
5648         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
5649         Likewise.
5650         (lll_timedwait_tid): Likewise.
5651         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
5652         Likewise.
5653         (lll_timedwait_tid): Likewise.
5654         * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
5655         Use INTERNAL_SYSCALL_CANCEL.
5656         * sysdeps/unix/sysv/linux/futex-internal.h
5657         (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
5658         instead of __pthread_{enable,disable}_asynccancel.
5659         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
5660         (lll_futex_wait_cancel): New macro.
5662         * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
5663         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
5665         * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
5666         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
5668         * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
5669         in backtrace analysis.
5670         * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
5671         side-effects.
5672         (tf_send): Likewise.
5674         * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
5675         * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
5676         * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
5677         * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
5678         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
5679         * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
5680         * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
5681         * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
5682         * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
5683         * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
5684         * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
5685         * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
5686         Likewise.
5687         * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
5688         tst-cancel-wrappers.sh.
5689         (generated): Remove tst-cancel-wrappers.out.
5690         (tst-cancel-wrappers.out): Remove rule.
5691         * nptl/tst-cancel-wrappers.sh: Remove file.
5693 2019-01-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5695         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
5696         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5697         Update.
5699 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5701         [BZ #23640]
5702         * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
5703         posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
5704         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
5705         close-on-exec reset for adddup2 file action.
5706         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
5708 2019-01-03  Zack Weinberg  <zackw@panix.com>
5710         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
5711         parameter.  Only use deprecated scanf when __USE_GNU is defined
5712         and __STDC_VERSION__ is less than 199901L or __cplusplus is less
5713         than 201103L, whichever is relevant for the language being compiled.
5715         * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
5716         scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
5717         __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
5718         * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
5719         wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
5721         * libio/iovsscanf.c
5722         * libio/fwscanf.c
5723         * libio/iovswscanf.c
5724         * libio/swscanf.c
5725         * libio/vscanf.c
5726         * libio/vwscanf.c
5727         * libio/wscanf.c
5728         * stdio-common/fscanf.c
5729         * stdio-common/scanf.c
5730         * stdio-common/vfscanf.c
5731         * stdio-common/vfwscanf.c
5732         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5733         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
5734         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
5735         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
5736         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
5737         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
5738         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
5739         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
5740         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
5741         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
5742         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
5743         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
5744         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
5745         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
5746         Override __GLIBC_USE_DEPRECATED_SCANF to 1.
5748         * stdio-common/sscanf.c: Likewise.  Remove ldbl_hidden_def for __sscanf.
5749         * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
5750         * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
5751         not sscanf.
5752         [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
5753         with a preprocessor macro.
5755         * stdio-common/bug21.c, stdio-common/scanf14.c:
5756         Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
5757         remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
5758         * stdio-common/scanf16.c: Likewise.  Add __attribute__ ((format (scanf)))
5759         to xscanf, xfscanf, xsscanf.
5761         * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
5762         %as, %aS, %a[].  Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
5763         * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
5764         %as, %aS, %a[].  Add __attribute__ ((format (scanf))) to xscanf,
5765         xfscanf, xsscanf.
5766         * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
5767         override feature selection macros or provide definitions of u_char etc.
5768         * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
5769         (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
5770         (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New.  Compile these files
5771         with -std=gnu89.
5773 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5775         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5776         bits/termios-misc.h.
5777         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
5778         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5779         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5780         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5781         * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
5782         * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
5784         * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
5785         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
5786         (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
5787         TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
5788         TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
5789         _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
5790         termios-misc.h.
5791         * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
5792         (sysdep_headers): Add termios-misc.h.
5794         * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
5795         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5796         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5798         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5799         termios-tcflow.h.
5800         * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
5801         * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
5802         * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
5803         TCSAFLUSH): Move to termios-tcflow.h.
5804         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5805         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5806         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5807         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5809         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5810         termios-c_lflag.h.
5811         * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
5812         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
5813         * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
5814         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
5815         * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
5816         ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
5817         [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
5818         [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
5819         Likewise.
5820         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5821         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5822         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5823         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5825         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5826         termios-c_cflag.h.
5827         * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
5828         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
5829         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
5830         * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
5831         CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
5832         termios-c_cflag.h.
5833         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5834         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5835         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5836         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5838         [BZ #23783]
5839         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5840         termios-baud.h.
5841         * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
5842         * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
5843         * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
5844         * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
5845         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
5846         B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
5847         B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
5848         __MAX_BAUD): Move to termios-baud.h.
5849         [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
5850         * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
5851         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5852         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5853         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5855         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
5856         termios-c_oflag.h.
5857         * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
5858         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
5859         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
5860         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
5861         * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
5862         ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1):  Move to
5863         termios-c_oflag.h.
5864         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
5865         CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
5866         FFR1): Likewise.
5867         [USE_MISC] (XTABS): Likewise.
5868         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5869         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5870         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5871         * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
5873         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
5874         termios-c_iflag.h.
5875         * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
5876         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
5877         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
5878         * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
5879         INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
5880         IUTF8): Move to termios-c_iflag.h.
5881         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5882         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5883         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5884         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5886         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
5887         termios-cc.h.
5888         * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
5889         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
5890         * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
5891         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
5892         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
5893         * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
5894         VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
5895         VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
5896         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5897         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5898         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5899         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5901         * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
5902         * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
5903         * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
5904         * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
5905         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5906         termios-struct.h.
5907         * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
5908         termios-struct.h.
5909         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
5910         Likewise.
5911         * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
5912         Likewise.
5913         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
5914         Likewise.
5915         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
5916         Likewise.
5917         * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
5918         _HAVE_C_OSPEED): Define.
5919         * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
5920         _HAVE_C_OSPEED): Likewise.
5921         * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
5922         _HAVE_C_OSPEED): Likewise.
5923         * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
5924         (cfsetospeed): Check for define value instead of existence.
5925         [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
5926         * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
5927         && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
5928         * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
5929         && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
5931         [BZ #17783]
5932         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
5933         Define.
5934         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
5935         (TIOCSER_TEMT): Likewise.
5936         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
5937         (TEOCSER_TEMT): Likewise.
5939 2019-01-02  PanderMusubi  <pander@users.sourceforge.net>
5941         [BZ #24011]
5942         * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
5944 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
5946         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
5948 2019-01-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5950         * sysdeps/htl/pt-barrierattr-setpshared.c
5951         (pthread_barrierattr_setpshared): Add stub warning.
5952         * sysdeps/htl/pt-condattr-setpshared.c
5953         (pthread_condattr_setpshared): Likewise.
5954         * sysdeps/htl/pt-mutexattr-setpshared.c
5955         (pthread_mutexattr_setpshared): Likewise.
5956         * sysdeps/htl/pt-rwlockattr-setpshared.c
5957         (pthread_rwlockattr_setpshared): Likewise.
5958         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
5959         (pthread_mutexattr_setpshared): Likewise.
5961 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
5963         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
5964         constants to match with Linux 4.20.
5966         * sysdeps/mips/mips32/libm-test-ulps: Update.
5967         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5969 2019-01-02  Aurelien Jarno  <aurelien@aurel32.net>
5971         [BZ #24034]
5972         * sysdeps/unix/sysv/linux/arm/atomic-machine.h
5973         (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
5974         than __typeof (...) for the a_ptr variable.
5976 2019-01-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5978         * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
5979         * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
5980         * libio/Makefile (tests): Add tst-sprintf-ub and
5981         tst-sprintf-chk-ub.
5982         (CFLAGS-tst-sprintf-ub.c): New variable.
5983         (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
5984         * libio/iovsprintf.c (__vsprintf_internal): Only erase the
5985         destination buffer and check for overflows in fortified mode.
5986         * libio/libioP.h (PRINTF_CHK): New macro.
5987         * libio/tst-sprintf-chk-ub.c: New file.
5988         * libio/tst-sprintf-ub.c: Likewise.
5990 2019-01-02  Florian Weimer  <fweimer@redhat.com>
5992         [BZ #24018]
5993         * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
5994         failure.
5996 2019-01-02  Florian Weimer  <fweimer@redhat.com>
5998         * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
6000 2019-01-01  Joseph Myers  <joseph@codesourcery.com>
6002         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
6003         macro.
6005         * sysdeps/unix/sysv/linux/netpacket/packet.h
6006         (PACKET_IGNORE_OUTGOING): New macro.
6008         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
6009         macro.
6011         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6012         version to 4.20.
6013         (riscv_flush_icache): New syscall.
6015         * manual/texinfo.tex: Update to version 2018-12-28.17 with
6016         trailing whitespace removed.
6017         * scripts/config.guess: Update to version 2019-01-01.
6018         * scripts/config.sub: Update to version 2019-01-01.
6019         * scripts/move-if-change: Update from gnulib.
6021         * NEWS: Update copyright dates.
6022         * catgets/gencat.c (print_version): Likewise.
6023         * csu/version.c (banner): Likewise.
6024         * debug/catchsegv.sh: Likewise.
6025         * debug/pcprofiledump.c (print_version): Likewise.
6026         * debug/xtrace.sh (do_version): Likewise.
6027         * elf/ldconfig.c (print_version): Likewise.
6028         * elf/ldd.bash.in: Likewise.
6029         * elf/pldd.c (print_version): Likewise.
6030         * elf/sotruss.sh: Likewise.
6031         * elf/sprof.c (print_version): Likewise.
6032         * iconv/iconv_prog.c (print_version): Likewise.
6033         * iconv/iconvconfig.c (print_version): Likewise.
6034         * locale/programs/locale.c (print_version): Likewise.
6035         * locale/programs/localedef.c (print_version): Likewise.
6036         * login/programs/pt_chown.c (print_version): Likewise.
6037         * malloc/memusage.sh (do_version): Likewise.
6038         * malloc/memusagestat.c (print_version): Likewise.
6039         * malloc/mtrace.pl: Likewise.
6040         * manual/libc.texinfo: Likewise.
6041         * nptl/version.c (banner): Likewise.
6042         * nscd/nscd.c (print_version): Likewise.
6043         * nss/getent.c (print_version): Likewise.
6044         * nss/makedb.c (print_version): Likewise.
6045         * posix/getconf.c (main): Likewise.
6046         * scripts/test-installation.pl: Likewise.
6047         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
6049         * All files with FSF copyright notices: Update copyright dates
6050         using scripts/update-copyrights.
6051         * locale/programs/charmap-kw.h: Regenerated.
6052         * locale/programs/locfile-kw.h: Likewise.
6054 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
6056         * timezone/zdump.c: Update from tzcode 2018i.
6057         * timezone/zic.c: Likewise.
6059 2018-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6061         regex: improve Gnulib port to AIX
6062         From the glibc point of view, this removes duplicate macro
6063         definitions and is obviously safe.
6064         From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
6065         * posix/regex_internal.h:
6066         (__attribute__, __attribute_warn_unused_result__):
6067         Remove; already defined elsewhere.
6069 2018-12-31  Florian Weimer  <fw@deneb.enyo.de>
6071         [BZ #24027]
6072         * malloc/malloc.c (_int_realloc): Always call memcpy for the
6073         copying operation.  (ncopies had the wrong type, resulting in an
6074         integer wraparound and too few elements being copied.)
6076 2018-12-31  H.J. Lu  <hongjiu.lu@intel.com>
6078         [BZ #24022]
6079         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
6080         <asm/syscalls.h> exists with __has_include__ before including it.
6082 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
6084         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6085         version to 4.20.
6087 2018-12-28  Justus Winter  <4winter@informatik.uni-hamburg.de>
6089         * hurd/lookup-retry: Include <unistd.h>.
6090         (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
6091         Release it on return.  Handle "pid" magical lookup retry.
6093 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
6095         [BZ #10496]
6096         * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
6097         (t_fmt_ampm): Likewise.
6098         * localedata/locales/aa_ER (t_fmt): Likewise.
6099         (t_fmt_ampm): Likewise.
6100         * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
6101         (t_fmt_ampm): Likewise.
6102         * localedata/locales/aa_ET (t_fmt): Likewise.
6103         (t_fmt_ampm): Likewise.
6104         * localedata/locales/am_ET (t_fmt): Likewise.
6105         (t_fmt_ampm): Likewise.
6106         * localedata/locales/byn_ER (t_fmt): Likewise.
6107         (t_fmt_ampm): Likewise.
6108         * localedata/locales/om_ET (t_fmt): Likewise.
6109         (t_fmt_ampm): Likewise.
6110         * localedata/locales/sid_ET (t_fmt): Likewise.
6111         (t_fmt_ampm): Likewise.
6112         * localedata/locales/so_DJ (t_fmt): Likewise.
6113         (t_fmt_ampm): Likewise.
6114         * localedata/locales/so_ET (t_fmt): Likewise.
6115         (t_fmt_ampm): Likewise.
6116         * localedata/locales/so_SO (t_fmt): Likewise.
6117         (t_fmt_ampm): Likewise.
6118         * localedata/locales/ti_ER (t_fmt): Likewise.
6119         (t_fmt_ampm): Likewise.
6120         * localedata/locales/ti_ET (t_fmt): Likewise.
6121         (t_fmt_ampm): Likewise.
6122         * localedata/locales/tig_ER (t_fmt): Likewise.
6123         (t_fmt_ampm): Likewise.
6124         * localedata/locales/wal_ET (t_fmt): Likewise.
6125         (t_fmt_ampm): Likewise.
6127         * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
6128         * localedata/locales/ar_IN (t_fmt): Likewise.
6129         * localedata/locales/bhb_IN (t_fmt): Likewise.
6130         * localedata/locales/bho_IN (t_fmt): Likewise.
6131         * localedata/locales/bi_VU (t_fmt): Likewise.
6132         * localedata/locales/bn_BD (t_fmt): Likewise.
6133         * localedata/locales/bn_IN (t_fmt): Likewise.
6134         * localedata/locales/brx_IN (t_fmt): Likewise.
6135         * localedata/locales/doi_IN (t_fmt): Likewise.
6136         * localedata/locales/en_HK (t_fmt): Likewise.
6137         (t_fmt_ampm): Likewise.
6138         * localedata/locales/en_IN (t_fmt): Likewise.
6139         * localedata/locales/en_PH (t_fmt): Likewise.
6140         * localedata/locales/gu_IN (t_fmt): Likewise.
6141         * localedata/locales/hi_IN (t_fmt): Likewise.
6142         * localedata/locales/hif_FJ (t_fmt): Likewise.
6143         * localedata/locales/hne_IN (t_fmt): Likewise.
6144         * localedata/locales/kn_IN (t_fmt): Likewise.
6145         * localedata/locales/kok_IN (t_fmt): Likewise.
6146         * localedata/locales/ks_IN (t_fmt): Likewise.
6147         * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
6148         * localedata/locales/mag_IN (t_fmt): Likewise.
6149         * localedata/locales/mai_IN (t_fmt): Likewise.
6150         * localedata/locales/mjw_IN (t_fmt): Likewise.
6151         * localedata/locales/ml_IN (t_fmt): Likewise.
6152         * localedata/locales/mni_IN (t_fmt): Likewise.
6153         * localedata/locales/mr_IN (t_fmt): Likewise.
6154         * localedata/locales/ms_MY (t_fmt): Likewise.
6155         * localedata/locales/pa_IN (t_fmt): Likewise.
6156         * localedata/locales/raj_IN (t_fmt): Likewise.
6157         * localedata/locales/sa_IN (t_fmt): Likewise.
6158         * localedata/locales/sat_IN (t_fmt): Likewise.
6159         * localedata/locales/sd_IN (t_fmt): Likewise.
6160         * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
6161         * localedata/locales/tcy_IN (t_fmt): Likewise.
6162         * localedata/locales/the_NP (t_fmt): Likewise.
6163         * localedata/locales/to_TO (t_fmt): Likewise.
6164         * localedata/locales/ur_IN (t_fmt): Likewise.
6166         * localedata/locales/hif_FJ (d_t_fmt): Set to
6167         "%A %d %b %Y %I:%M:%S %p".
6168         (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
6170         * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
6171         * localedata/locales/ar_BH (t_fmt): Likewise.
6172         * localedata/locales/ar_DZ (t_fmt): Likewise.
6173         * localedata/locales/ar_EG (t_fmt): Likewise.
6174         * localedata/locales/ar_IQ (t_fmt): Likewise.
6175         * localedata/locales/ar_JO (t_fmt): Likewise.
6176         * localedata/locales/ar_KW (t_fmt): Likewise.
6177         * localedata/locales/ar_LB (t_fmt): Likewise.
6178         * localedata/locales/ar_LY (t_fmt): Likewise.
6179         * localedata/locales/ar_OM (t_fmt): Likewise.
6180         * localedata/locales/ar_QA (t_fmt): Likewise.
6181         * localedata/locales/ar_SD (t_fmt): Likewise.
6182         * localedata/locales/ar_SS (t_fmt): Likewise.
6183         * localedata/locales/ar_SY (t_fmt): Likewise.
6184         * localedata/locales/ar_TN (t_fmt): Likewise.
6185         * localedata/locales/ar_YE (t_fmt): Likewise.
6187         * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
6188         (t_fmt_ampm): Likewise.
6189         * localedata/locales/gez_ET (t_fmt): Likewise.
6190         (t_fmt_ampm): Likewise.
6192         * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
6193         (t_fmt_ampm): Likewise.
6194         (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
6196         * localedata/locales/zh_HK (t_fmt):
6197         Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
6199         * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
6200         because this locale does not use the 12-hour clock.
6201         (t_fmt): Set to "%Z %H:%M:%S".
6202         (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
6204         * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
6205         because this locale does not use the 12-hour clock.
6206         (t_fmt): Set to "%H:%M:%S %Z".
6207         (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
6209         * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
6210         because this locale does not use the 12-hour clock.
6211         (t_fmt): Set to "%T".
6212         (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
6213         (date_fmt): Set to "%A, %B %e, %X %Z %Y".
6215         * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
6216         because this locale does not use the 12-hour clock.
6217         (t_fmt): Set to "%H:%M:%S %Z".
6218         (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
6220         * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
6221         because this locale does not use the 12-hour clock.
6222         * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
6223         * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
6225 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
6227         [BZ #10496]
6228         [BZ #23724]
6229         * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
6230         (t_fmt_ampm): Likewise.
6231         (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
6232         (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
6233         (d_fmt): Set to "%-d.%-m.%y".
6235 2018-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6237         * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
6238         Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
6239         * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
6240         Likewise.
6241         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
6242         * malloc/reallocarray.c (__libc_reallocarray): Likewise.
6243         * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
6244         function.
6245         * support/blob_repeat.c (check_mul_overflow_size_t,
6246         (minimum_stride_size, support_blob_repeat_allocate): Likewise.
6248 2018-12-28  Aurelien Jarno  <aurelien@aurel32.net>
6250         * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
6252 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6254         regex: simplify Gnulib port
6255         This simplifies the code, by removing stuff intended for porting
6256         to Gnulib but no longer needed there.
6257         * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
6258         uses of libc_hidden_def, weak_alias.
6259         * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
6260         _Restrict_ except for public-facing headers.
6261         * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
6262         Remove; already defined elsewhere.
6263         * posix/regex.c, posix/regex_internal.h:
6264         Use __GNUC_PREREQ instead of rolling our own.
6265         * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
6267 2018-12-27  Wilco Dijkstra  <wdijkstr@arm.com>
6269         * benchtests/bench-strlen.c (generic_strlen): New function.
6270         (memchr_strlen): New function.
6272 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
6274         * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
6275         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
6276         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
6278 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
6280         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6282 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
6284         * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
6285         (sincos_t, sincosf_poly, sinf_poly): Moved to ...
6286         * sysdeps/ieee754/flt-32/sincosf_poly.h: Here.  New file.
6287         * sysdeps/x86/fpu/s_sincosf_data.c: New file.
6288         * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
6289         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
6290         <sysdeps/ieee754/flt-32/s_sincosf.c>.
6292 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
6294         [BZ #24023]
6295         * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
6296         PLT reference in libc.so.
6297         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
6298         _Q_lltoq and _Q_qtod PLT references in libc.so.
6300 2018-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
6302         * benchtests/bench-memchr.c: Cleanup defines.
6303         * benchtests/bench-memcmp.c: Likewise.
6304         * benchtests/bench-memset.c: Likewise.
6305         * benchtests/bench-memset-large.c: Likewise.
6306         * benchtests/bench-memset-walk.c: Likewise.
6307         * benchtests/bench-stpcpy.c: Likewise.
6308         * benchtests/bench-stpncpy.c: Likewise.
6309         * benchtests/bench-strcat.c: Likewise.
6310         * benchtests/bench-strchr.c: Likewise.
6311         * benchtests/bench-strcmp.c: Likewise.
6312         * benchtests/bench-strcpy.c: Likewise.
6313         * benchtests/bench-strcspn.c: Likewise.
6314         * benchtests/bench-string.h: Likewise.
6315         * benchtests/bench-strlen.c: Likewise.
6316         * benchtests/bench-strncat.c: Likewise.
6317         * benchtests/bench-strncmp.c: Likewise.
6318         * benchtests/bench-strncpy.c: Likewise.
6319         * benchtests/bench-strnlen.c: Likewise.
6320         * benchtests/bench-strpbrk.c: Likewise.
6321         * benchtests/bench-strrchr.c: Likewise.
6322         * benchtests/bench-strspn.c: Likewise.
6324 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
6326         * stdlib/longlong.h: Update from GCC.
6328         [BZ #23993]
6329         * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
6330         * configure: Regenerated.
6331         * manual/install.texi (Tools for Compilation): Update minimum GCC
6332         version.
6333         * INSTALL: Regenerated.
6335 2018-12-21  Istvan Kurucsai  <pistukem@gmail.com>
6337         * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
6339 2018-12-20  Istvan Kurucsai  <pistukem@gmail.com>
6341         * malloc/malloc.c (mremap_chunk): Additional checks.
6343 2018-12-21  Mao Han  <han_mao@c-sky.com>
6345         * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
6346         * scripts/build-many-glibcs.py: Add C-SKY targets.
6347         * sysdeps/csky/Implies: New file.
6348         * sysdeps/csky/Makefile: Likewise.
6349         * sysdeps/csky/abiv2/__longjmp.S: Likewise.
6350         * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
6351         * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
6352         * sysdeps/csky/abiv2/memcmp.S: Likewise.
6353         * sysdeps/csky/abiv2/memcpy.S: Likewise.
6354         * sysdeps/csky/abiv2/memmove.S: Likewise.
6355         * sysdeps/csky/abiv2/memset.S: Likewise.
6356         * sysdeps/csky/abiv2/setjmp.S: Likewise.
6357         * sysdeps/csky/abiv2/start.S: Likewise.
6358         * sysdeps/csky/abiv2/strcmp.S: Likewise.
6359         * sysdeps/csky/abiv2/strcpy.S: Likewise.
6360         * sysdeps/csky/abiv2/strlen.S: Likewise.
6361         * sysdeps/csky/abiv2/tls-macros.h: Likewise.
6362         * sysdeps/csky/abort-instr.h: Likewise.
6363         * sysdeps/csky/atomic-machine.h: Likewise.
6364         * sysdeps/csky/bits/endian.h: Likewise.
6365         * sysdeps/csky/bits/fenv.h: Likewise.
6366         * sysdeps/csky/bits/link.h: Likewise.
6367         * sysdeps/csky/bits/setjmp.h: Likewise.
6368         * sysdeps/csky/bsd-_setjmp.S: Likewise.
6369         * sysdeps/csky/bsd-setjmp.S: Likewise.
6370         * sysdeps/csky/configure: Likewise.
6371         * sysdeps/csky/configure.ac: Likewise.
6372         * sysdeps/csky/dl-machine.h: Likewise.
6373         * sysdeps/csky/dl-procinfo.c: Likewise.
6374         * sysdeps/csky/dl-procinfo.h: Likewise.
6375         * sysdeps/csky/dl-sysdep.h: Likewise.
6376         * sysdeps/csky/dl-tls.h: Likewise.
6377         * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
6378         * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
6379         * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
6380         * sysdeps/csky/fpu/fegetenv.c: Likewise.
6381         * sysdeps/csky/fpu/fegetexcept.c: Likewise.
6382         * sysdeps/csky/fpu/fegetmode.c: Likewise.
6383         * sysdeps/csky/fpu/fegetround.c: Likewise.
6384         * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
6385         * sysdeps/csky/fpu/fenv_libc.h: Likewise.
6386         * sysdeps/csky/fpu/fenv_private.h: Likewise.
6387         * sysdeps/csky/fpu/fesetenv.c: Likewise.
6388         * sysdeps/csky/fpu/fesetexcept.c: Likewise.
6389         * sysdeps/csky/fpu/fesetmode.c: Likewise.
6390         * sysdeps/csky/fpu/fesetround.c: Likewise.
6391         * sysdeps/csky/fpu/feupdateenv.c: Likewise.
6392         * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
6393         * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
6394         * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
6395         * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
6396         * sysdeps/csky/fpu/ftestexcept.c: Likewise.
6397         * sysdeps/csky/fpu/libm-test-ulps: Likewise.
6398         * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
6399         * sysdeps/csky/fpu_control.h: Likewise.
6400         * sysdeps/csky/gccframe.h: Likewise.
6401         * sysdeps/csky/jmpbuf-unwind.h: Likewise.
6402         * sysdeps/csky/ldsodefs.h: Likewise.
6403         * sysdeps/csky/libc-tls.c: Likewise.
6404         * sysdeps/csky/linkmap.h: Likewise.
6405         * sysdeps/csky/machine-gmon.h: Likewise.
6406         * sysdeps/csky/memusage.h: Likewise.
6407         * sysdeps/csky/nofpu/Implies: Likewise.
6408         * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
6409         * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
6410         * sysdeps/csky/nptl/Makefile: Likewise.
6411         * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
6412         * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
6413         * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
6414         * sysdeps/csky/nptl/pthreaddef.h: Likewise.
6415         * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
6416         * sysdeps/csky/nptl/tls.h: Likewise.
6417         * sysdeps/csky/preconfigure: Likewise.
6418         * sysdeps/csky/sfp-machine.h: Likewise.
6419         * sysdeps/csky/sotruss-lib.c: Likewise.
6420         * sysdeps/csky/stackinfo.h: Likewise.
6421         * sysdeps/csky/sysdep.h: Likewise.
6422         * sysdeps/csky/tininess.h: Likewise.
6423         * sysdeps/csky/tst-audit.h: Likewise.
6424         * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
6425         * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
6426         * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
6427         * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
6428         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
6429         * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
6430         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
6431         * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
6432         * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
6433         * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
6434         * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
6435         * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
6436         * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
6437         * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
6438         * sysdeps/unix/sysv/linux/csky/configure: Likewise.
6439         * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
6440         * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
6441         * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
6442         * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
6443         * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
6444         * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
6445         * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
6446         * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
6447         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
6448         * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
6449         * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
6450         * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
6451         * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
6452         * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
6453         * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
6454         * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
6455         * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
6456         * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
6457         * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
6458         * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
6459         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
6460         * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
6461         * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
6462         * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
6463         * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
6464         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
6465         * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
6466         * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
6467         * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
6469 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
6471         * include/time.h (__difftime64): Add.
6472         * time/difftime.c (subtract): convert to 64-bit time.
6473         * time/difftime.c (__difftime64): Add.
6474         * time/difftime.c (__difftime): Wrap around __difftime64.
6476 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
6478         * manual/examples/add.c: Remove redundant "if not".
6479         * manual/examples/argp-ex1.c: Likewise.
6480         * manual/examples/argp-ex2.c: Likewise.
6481         * manual/examples/argp-ex3.c: Likewise.
6482         * manual/examples/argp-ex4.c: Likewise.
6483         * manual/examples/atexit.c: Likewise.
6484         * manual/examples/db.c: Likewise.
6485         * manual/examples/dir.c: Likewise.
6486         * manual/examples/dir2.c: Likewise.
6487         * manual/examples/execinfo.c: Likewise.
6488         * manual/examples/filecli.c: Likewise.
6489         * manual/examples/filesrv.c: Likewise.
6490         * manual/examples/fmtmsgexpl.c: Likewise.
6491         * manual/examples/genpass.c: Likewise.
6492         * manual/examples/inetcli.c: Likewise.
6493         * manual/examples/inetsrv.c: Likewise.
6494         * manual/examples/isockad.c: Likewise.
6495         * manual/examples/longopt.c: Likewise.
6496         * manual/examples/memopen.c: Likewise.
6497         * manual/examples/memstrm.c: Likewise.
6498         * manual/examples/mkdirent.c: Likewise.
6499         * manual/examples/mkfsock.c: Likewise.
6500         * manual/examples/mkisock.c: Likewise.
6501         * manual/examples/mygetpass.c: Likewise.
6502         * manual/examples/pipe.c: Likewise.
6503         * manual/examples/popen.c: Likewise.
6504         * manual/examples/rprintf.c: Likewise.
6505         * manual/examples/search.c: Likewise.
6506         * manual/examples/select.c: Likewise.
6507         * manual/examples/setjmp.c: Likewise.
6508         * manual/examples/sigh1.c: Likewise.
6509         * manual/examples/sigusr.c: Likewise.
6510         * manual/examples/stpcpy.c: Likewise.
6511         * manual/examples/strdupa.c: Likewise.
6512         * manual/examples/strftim.c: Likewise.
6513         * manual/examples/subopt.c: Likewise.
6514         * manual/examples/swapcontext.c: Likewise.
6515         * manual/examples/termios.c: Likewise.
6516         * manual/examples/testopt.c: Likewise.
6517         * manual/examples/testpass.c: Likewise.
6518         * manual/examples/timeval_subtract.c: Likewise.
6520 2018-12-19  Joseph Myers  <joseph@codesourcery.com>
6522         * sysdeps/x86/fpu/math_private.h: New file.
6523         * sysdeps/x86/fpu/bits/mathinline.h: Remove.
6525         * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
6526         definition.
6527         (cosh): Likewise.
6528         (tanh): Likewise.
6530 2018-12-19  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6532         * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
6533         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
6534         AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
6535         AT_L3_CACHEGEOMETRY.  Fix indentation when printing the other
6536         fields.
6537         (_dl_show_auxv): Give a special treatment to
6538         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
6539         and AT_L3_CACHEGEOMETRY.
6540         * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
6541         (_dl_procinfo): Fix indentation when printing AT_HWCAP and
6542         AT_HWCAP2.  Add support for AT_L1I_CACHEGEOMETRY,
6543         AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
6545 2018-12-19  Andreas Schwab  <schwab@suse.de>
6547         * nscd/connections.c (check_use): Don't abort on invalid len.
6549 2018-12-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6551         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
6552         values in the 64bit value cases.
6554 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
6556         * include/time.h
6557         (__ctime64_r): Add.
6558         * time/ctime_r.c
6559         (__ctime64_r): Add.
6560         [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
6562         * include/time.h
6563         (__ctime64): Add.
6564         * time/gmtime.c
6565         (__ctime64): Add.
6566         [__TIMESIZE != 64] (ctime): Turn into a wrapper.
6568         * include/time.h
6569         (__gmtime64_r): Add.
6570         * time/gmtime.c
6571         (__gmtime64_r): Add.
6572         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
6574         * include/time.h
6575         (__gmtime64): Add.
6576         * time/gmtime.c
6577         (__gmtime64): Add.
6578         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
6580         * include/time.h
6581         (__localtime64_r): Add.
6582         * time/localtime.c
6583         (__localtime64_r): Add.
6584         [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
6586 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6588         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
6589         kernel_sigction definition.
6591         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
6593         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
6595         * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
6596         __syscall_rt_sigaction.
6597         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
6598         (kernel_sigaction): Use Linux generic defintion.
6599         (STUB): Define.
6600         (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
6601         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
6602         (__syscall_rt_sigaction): Remove implementation.
6603         (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
6604         hidden.
6605         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
6606         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
6607         INTERNAL_SYSCALL): Remove definitions.
6608         * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
6609         action and signal set size.
6610         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
6611         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
6613 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6614             James Clarke  <jrtc27@jrtc27.com>
6616         [BZ #23967]
6617         * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
6618         Define if SA_RESTORER is defined.
6619         (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
6620         (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
6621         already defined.
6622         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
6623         kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
6624         definitions.
6625         (HAS_SA_RESTORER): Define.
6626         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
6627         SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
6628         (HAS_SA_RESTORER): Define.
6629         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
6630         kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
6631         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
6632         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
6633         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
6635 2018-12-18  Joseph Myers  <joseph@codesourcery.com>
6637         * sysdeps/unix/sysv/linux/kernel-features.h
6638         (__ASSUME_ST_INO_64_BIT): Remove macro definition.
6639         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6640         (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
6641         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6642         (__ASSUME_ST_INO_64_BIT): Likewise.
6643         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
6644         <kernel-features.h>.
6645         (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
6646         Remove conditional code.
6647         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
6648         <kernel-features.h>.
6649         (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
6650         Remove conditional code.
6651         * sysdeps/unix/sysv/linux/xstat64.c: Do not include
6652         <kernel-features.h>.
6653         (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
6654         Remove conditional code.
6655         * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
6656         <kernel-features.h>.
6657         (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
6658         [!_HAVE_STAT64___ST_INO]: Make code unconditional.
6660 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6662         * sysdeps/s390/multiarch/ifunc-resolve.h
6663         (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
6664         s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
6665         s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
6666         Delete macro definition.
6667         (s390_libc_ifunc_init): Rename to
6668         s390_libc_ifunc_expr_stfle_init.
6669         * sysdeps/s390/bzero: Use
6670         s390_libc_ifunc_expr_stfle_init instead of
6671         s390_libc_ifunc_init.
6672         * sysdeps/s390/memcmp.c: Likewise.
6673         * sysdeps/s390/memcpy.c: Likewise.
6674         * sysdeps/s390/mempcpy.c: Likewise.
6675         * sysdeps/s390/memset.c: Likewise.
6677 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6679         * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
6680         Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
6682 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6684         * sysdeps/s390/multiarch/Makefile
6685         (sysdep_routines): Remove wmemcmp variants.
6686         * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
6687         * sysdeps/s390/multiarch/ifunc-impl-list.c
6688         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
6689         * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
6690         * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
6691         * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
6692         * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
6693         * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
6694         * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
6695         * sysdeps/s390/ifunc-wmemcmp.h: New file.
6697 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6699         * sysdeps/s390/multiarch/Makefile
6700         (sysdep_routines): Remove wmemset variants.
6701         * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
6702         * sysdeps/s390/multiarch/ifunc-impl-list.c
6703         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
6704         * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
6705         * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
6706         * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
6707         * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
6708         * sysdeps/s390/multiarch/wmemset.c: Move to ...
6709         * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
6710         * sysdeps/s390/ifunc-wmemset.h: New file.
6712 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6714         * sysdeps/s390/multiarch/Makefile
6715         (sysdep_routines): Remove wmemchr variants.
6716         * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
6717         * sysdeps/s390/multiarch/ifunc-impl-list.c
6718         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
6719         * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
6720         * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
6721         * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
6722         * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
6723         * sysdeps/s390/multiarch/wmemchr.c: Move to ...
6724         * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
6725         * sysdeps/s390/ifunc-wmemchr.h: New file.
6727 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6729         * sysdeps/s390/multiarch/Makefile
6730         (sysdep_routines): Remove wcscspn variants.
6731         * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
6732         * sysdeps/s390/multiarch/ifunc-impl-list.c
6733         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
6734         * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
6735         * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
6736         * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
6737         * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
6738         * sysdeps/s390/multiarch/wcscspn.c: Move to ...
6739         * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
6740         * sysdeps/s390/ifunc-wcscspn.h: New file.
6742 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6744         * sysdeps/s390/multiarch/Makefile
6745         (sysdep_routines): Remove wcspbrk variants.
6746         * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
6747         * sysdeps/s390/multiarch/ifunc-impl-list.c
6748         (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
6749         * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
6750         * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
6751         * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
6752         * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
6753         * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
6754         * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
6755         * sysdeps/s390/ifunc-wcspbrk.h: New file.
6757 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6759         * sysdeps/s390/multiarch/Makefile
6760         (sysdep_routines): Remove wcsspn variants.
6761         * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
6762         * sysdeps/s390/multiarch/ifunc-impl-list.c
6763         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
6764         * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
6765         * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
6766         * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
6767         * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
6768         * sysdeps/s390/multiarch/wcsspn.c: Move to ...
6769         * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
6770         * sysdeps/s390/ifunc-wcsspn.h: New file.
6772 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6774         * sysdeps/s390/multiarch/Makefile
6775         (sysdep_routines): Remove wcsrchr variants.
6776         * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
6777         * sysdeps/s390/multiarch/ifunc-impl-list.c
6778         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
6779         * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
6780         * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
6781         * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
6782         * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
6783         * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
6784         * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
6785         * sysdeps/s390/ifunc-wcsrchr.h: New file.
6787 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6789         * sysdeps/s390/multiarch/Makefile
6790         (sysdep_routines): Remove wcschrnul variants.
6791         * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
6792         * sysdeps/s390/multiarch/ifunc-impl-list.c
6793         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
6794         * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
6795         * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
6796         * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
6797         * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
6798         * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
6799         * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
6800         * sysdeps/s390/ifunc-wcschrnul.h: New file.
6802 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6804         * sysdeps/s390/multiarch/Makefile
6805         (sysdep_routines): Remove wcschr variants.
6806         * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
6807         * sysdeps/s390/multiarch/ifunc-impl-list.c
6808         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
6809         * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
6810         * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
6811         * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
6812         * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
6813         * sysdeps/s390/multiarch/wcschr.c: Move to ...
6814         * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
6815         * sysdeps/s390/ifunc-wcschr.h: New file.
6817 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6819         * sysdeps/s390/multiarch/Makefile
6820         (sysdep_routines): Remove wcsncmp variants.
6821         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
6822         * sysdeps/s390/multiarch/ifunc-impl-list.c
6823         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
6824         * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
6825         * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
6826         * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
6827         * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
6828         * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
6829         * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
6830         * sysdeps/s390/ifunc-wcsncmp.h: New file.
6832 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6834         * sysdeps/s390/multiarch/Makefile
6835         (sysdep_routines): Remove wcscmp variants.
6836         * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
6837         * sysdeps/s390/multiarch/ifunc-impl-list.c
6838         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
6839         * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
6840         * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
6841         * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
6842         * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
6843         * sysdeps/s390/multiarch/wcscmp.c: Move to ...
6844         * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
6845         * sysdeps/s390/ifunc-wcscmp.h: New file.
6847 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6849         * sysdeps/s390/multiarch/Makefile
6850         (sysdep_routines): Remove wcsncat variants.
6851         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
6852         * sysdeps/s390/multiarch/ifunc-impl-list.c
6853         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
6854         * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
6855         * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
6856         * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
6857         * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
6858         * sysdeps/s390/multiarch/wcsncat.c: Move to ...
6859         * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
6860         * sysdeps/s390/ifunc-wcsncat.h: New file.
6862 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6864         * sysdeps/s390/multiarch/Makefile
6865         (sysdep_routines): Remove wcscat variants.
6866         * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
6867         * sysdeps/s390/multiarch/ifunc-impl-list.c
6868         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
6869         * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
6870         * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
6871         * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
6872         * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
6873         * sysdeps/s390/multiarch/wcscat.c: Move to ...
6874         * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
6875         * sysdeps/s390/ifunc-wcscat.h: New file.
6877 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6879         * sysdeps/s390/multiarch/Makefile
6880         (sysdep_routines): Remove wcpncpy variants.
6881         * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
6882         * sysdeps/s390/multiarch/ifunc-impl-list.c
6883         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
6884         * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
6885         * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
6886         * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
6887         * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
6888         * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
6889         * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
6890         * sysdeps/s390/ifunc-wcpncpy.h: New file.
6892 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6894         * sysdeps/s390/multiarch/Makefile
6895         (sysdep_routines): Remove wcsncpy variants.
6896         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
6897         * sysdeps/s390/multiarch/ifunc-impl-list.c
6898         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
6899         * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
6900         * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
6901         * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
6902         * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
6903         * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
6904         * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
6905         * sysdeps/s390/ifunc-wcsncpy.h: New file.
6907 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6909         * sysdeps/s390/multiarch/Makefile
6910         (sysdep_routines): Remove wcpcpy variants.
6911         * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
6912         * sysdeps/s390/multiarch/ifunc-impl-list.c
6913         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
6914         * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
6915         * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
6916         * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
6917         * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
6918         * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
6919         * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
6920         * sysdeps/s390/ifunc-wcpcpy.h: New file.
6922 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6924         * sysdeps/s390/multiarch/Makefile
6925         (sysdep_routines): Remove wcscpy variants.
6926         * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
6927         * sysdeps/s390/multiarch/ifunc-impl-list.c
6928         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
6929         * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
6930         * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
6931         * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
6932         * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
6933         * sysdeps/s390/multiarch/wcscpy.c: Move to ...
6934         * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
6935         * sysdeps/s390/ifunc-wcscpy.h: New file.
6937 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6939         * sysdeps/s390/multiarch/Makefile
6940         (sysdep_routines): Remove wcsnlen variants.
6941         * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
6942         * sysdeps/s390/multiarch/ifunc-impl-list.c
6943         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
6944         * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
6945         * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
6946         * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
6947         * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
6948         * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
6949         * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
6950         * sysdeps/s390/ifunc-wcsnlen.h: New file.
6952 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6954         * sysdeps/s390/multiarch/Makefile
6955         (sysdep_routines): Remove wcslen variants.
6956         * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
6957         * sysdeps/s390/multiarch/ifunc-impl-list.c
6958         (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
6959         * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
6960         * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
6961         * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
6962         * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
6963         * sysdeps/s390/multiarch/wcslen.c: Move to ...
6964         * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
6965         * sysdeps/s390/ifunc-wcslen.h: New file.
6967 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6969         * sysdeps/s390/multiarch/Makefile
6970         (sysdep_routines): Remove memrchr variants.
6971         * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
6972         * sysdeps/s390/multiarch/ifunc-impl-list.c
6973         (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
6974         * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
6975         * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
6976         * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
6977         * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
6978         * sysdeps/s390/multiarch/memrchr.c: Move to ...
6979         * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
6980         * sysdeps/s390/ifunc-memrchr.h: New file.
6982 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6984         * sysdeps/s390/multiarch/Makefile
6985         (sysdep_routines): Remove memccpy variants.
6986         * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
6987         * sysdeps/s390/multiarch/ifunc-impl-list.c
6988         (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
6989         * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
6990         * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
6991         * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
6992         * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
6993         * sysdeps/s390/multiarch/memccpy.c: Move to ...
6994         * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
6995         * sysdeps/s390/ifunc-memccpy.h: New file.
6997 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6999         * sysdeps/s390/multiarch/Makefile
7000         (sysdep_routines): Remove rawmemchr variants.
7001         * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
7002         * sysdeps/s390/multiarch/ifunc-impl-list.c
7003         (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
7004         * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
7005         * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
7006         * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
7007         * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
7008         * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
7009         * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
7010         * sysdeps/s390/ifunc-rawmemchr.h: New file.
7012 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7014         * sysdeps/s390/multiarch/Makefile
7015         (sysdep_routines): Remove memchr variants.
7016         * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
7017         * sysdeps/s390/multiarch/ifunc-impl-list.c
7018         (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
7019         * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
7020         * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
7021         * sysdeps/s390/multiarch/memchr.c: Move to ...
7022         * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
7023         * sysdeps/s390/ifunc-memchr.h: New file.
7024         * sysdeps/s390/s390-64/memchr.S: Move to ...
7025         * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
7026         for 31/64bit and ifunc handling.
7027         * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
7028         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
7029         * sysdeps/s390/s390-32/memchr.S: Likewise.
7031 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7033         * sysdeps/s390/multiarch/Makefile
7034         (sysdep_routines): Remove strcspn variants.
7035         * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
7036         * sysdeps/s390/multiarch/ifunc-impl-list.c
7037         (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
7038         * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
7039         * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
7040         * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
7041         * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
7042         * sysdeps/s390/multiarch/strcspn.c: Move to ...
7043         * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
7044         * sysdeps/s390/ifunc-strcspn.h: New file.
7046 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7048         * sysdeps/s390/multiarch/Makefile
7049         (sysdep_routines): Remove strpbrk variants.
7050         * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
7051         * sysdeps/s390/multiarch/ifunc-impl-list.c
7052         (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
7053         * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
7054         * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
7055         * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
7056         * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
7057         * sysdeps/s390/multiarch/strpbrk.c: Move to ...
7058         * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
7059         * sysdeps/s390/ifunc-strpbrk.h: New file.
7061 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7063         * sysdeps/s390/multiarch/Makefile
7064         (sysdep_routines): Remove strspn variants.
7065         * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
7066         * sysdeps/s390/multiarch/ifunc-impl-list.c
7067         (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
7068         * sysdeps/s390/multiarch/strspn-c.c: Move to ...
7069         * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
7070         * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
7071         * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
7072         * sysdeps/s390/multiarch/strspn.c: Move to ...
7073         * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
7074         * sysdeps/s390/ifunc-strspn.h: New file.
7076 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7078         * sysdeps/s390/multiarch/Makefile
7079         (sysdep_routines): Remove strrchr variants.
7080         * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
7081         * sysdeps/s390/multiarch/ifunc-impl-list.c
7082         (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
7083         * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
7084         * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
7085         * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
7086         * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
7087         * sysdeps/s390/multiarch/strrchr.c: Move to ...
7088         * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
7089         * sysdeps/s390/ifunc-strrchr.h: New file.
7091 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7093         * sysdeps/s390/multiarch/Makefile
7094         (sysdep_routines): Remove strchrnul variants.
7095         * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
7096         * sysdeps/s390/multiarch/ifunc-impl-list.c
7097         (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
7098         * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
7099         * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
7100         * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
7101         * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
7102         * sysdeps/s390/multiarch/strchrnul.c: Move to ...
7103         * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
7104         * sysdeps/s390/ifunc-strchrnul.h: New file.
7106 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7108         * sysdeps/s390/multiarch/Makefile
7109         (sysdep_routines): Remove strchr variants.
7110         * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
7111         * sysdeps/s390/multiarch/ifunc-impl-list.c
7112         (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
7113         * sysdeps/s390/multiarch/strchr-c.c: Move to ...
7114         * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
7115         * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
7116         * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
7117         * sysdeps/s390/multiarch/strchr.c: Move to ...
7118         * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
7119         * sysdeps/s390/ifunc-strchr.h: New file.
7121 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7123         * sysdeps/s390/multiarch/Makefile
7124         (sysdep_routines): Remove strncmp variants.
7125         * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
7126         * sysdeps/s390/multiarch/ifunc-impl-list.c
7127         (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
7128         * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
7129         * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
7130         * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
7131         * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
7132         * sysdeps/s390/multiarch/strncmp.c: Move to ...
7133         * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
7134         * sysdeps/s390/ifunc-strncmp.h: New file.
7136 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7138         * sysdeps/s390/multiarch/Makefile
7139         (sysdep_routines): Remove strcmp variants.
7140         * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
7141         * sysdeps/s390/multiarch/ifunc-impl-list.c
7142         (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
7143         * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
7144         * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
7145         * sysdeps/s390/multiarch/strcmp.c: Move to ...
7146         * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
7147         * sysdeps/s390/ifunc-strcmp.h: New file.
7148         * sysdeps/s390/s390-64/strcmp.S: Move to ...
7149         * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
7150         for 31/64bit and ifunc handling.
7151         * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
7152         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
7153         * sysdeps/s390/s390-32/strcmp.S: Likewise.
7155 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7157         * sysdeps/s390/multiarch/Makefile
7158         (sysdep_routines): Remove strncat variants.
7159         * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
7160         * sysdeps/s390/multiarch/ifunc-impl-list.c
7161         (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
7162         * sysdeps/s390/multiarch/strncat-c.c: Move to ...
7163         * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
7164         * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
7165         * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
7166         * sysdeps/s390/multiarch/strncat.c: Move to ...
7167         * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
7168         * sysdeps/s390/ifunc-strncat.h: New file.
7170 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7172         * sysdeps/s390/multiarch/Makefile
7173         (sysdep_routines): Remove strcat variants.
7174         * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
7175         * sysdeps/s390/multiarch/ifunc-impl-list.c
7176         (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
7177         * sysdeps/s390/multiarch/strcat-c.c: Move to ...
7178         * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
7179         * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
7180         * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
7181         * sysdeps/s390/multiarch/strcat.c: Move to ...
7182         * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
7183         * sysdeps/s390/ifunc-strcat.h: New file.
7185 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7187         * sysdeps/s390/multiarch/Makefile
7188         (sysdep_routines): Remove stpncpy variants.
7189         * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
7190         * sysdeps/s390/multiarch/ifunc-impl-list.c
7191         (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
7192         * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
7193         * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
7194         * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
7195         * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
7196         * sysdeps/s390/multiarch/stpncpy.c: Move to ...
7197         * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
7198         * sysdeps/s390/ifunc-stpncpy.h: New file.
7200 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7202         * sysdeps/s390/multiarch/Makefile
7203         (sysdep_routines): Remove strncpy variants.
7204         * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
7205         * sysdeps/s390/multiarch/ifunc-impl-list.c
7206         (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
7207         * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
7208         * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
7209         * sysdeps/s390/multiarch/strncpy.c: Move to ...
7210         * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
7211         * sysdeps/s390/ifunc-strncpy.h: New file.
7212         * sysdeps/s390/s390-64/strncpy.S: Move to ...
7213         * sysdeps/s390/s390-64/strncpy-z900.S: ... here
7214         and adjust ifunc handling.
7215         * sysdeps/s390/s390-32/strncpy.S: Move to ...
7216         * sysdeps/s390/s390-32/strncpy-z900.S: ... here
7217         and adjust ifunc handling.
7218         * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
7219         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
7221 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7223         * sysdeps/s390/multiarch/Makefile
7224         (sysdep_routines): Remove stpcpy variants.
7225         * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
7226         * sysdeps/s390/multiarch/ifunc-impl-list.c
7227         (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
7228         * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
7229         * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
7230         * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
7231         * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
7232         * sysdeps/s390/multiarch/stpcpy.c: Move to ...
7233         * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
7234         * sysdeps/s390/ifunc-stpcpy.h: New file.
7236 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7238         * sysdeps/s390/multiarch/Makefile
7239         (sysdep_routines): Remove strcpy variants.
7240         * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
7241         * sysdeps/s390/multiarch/ifunc-impl-list.c
7242         (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
7243         * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
7244         * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
7245         * sysdeps/s390/multiarch/strcpy.c: Move to ...
7246         * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
7247         * sysdeps/s390/ifunc-strcpy.h: New file.
7248         * sysdeps/s390/s390-64/strcpy.S: Move to ...
7249         * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
7250         for 31/64bit and ifunc handling.
7251         * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
7252         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
7253         * sysdeps/s390/s390-32/strcpy.S: Likewise.
7255 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7257         * sysdeps/s390/multiarch/Makefile
7258         (sysdep_routines): Remove strnlen variants.
7259         * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
7260         * sysdeps/s390/multiarch/ifunc-impl-list.c
7261         (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
7262         * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
7263         * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
7264         * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
7265         * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
7266         * sysdeps/s390/multiarch/strnlen.c: Move to ...
7267         * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
7268         * sysdeps/s390/ifunc-strnlen.h: New file.
7270 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7272         * sysdeps/s390/multiarch/Makefile
7273         (sysdep_routines): Remove strlen variants.
7274         * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
7275         * sysdeps/s390/multiarch/ifunc-impl-list.c
7276         (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
7277         * sysdeps/s390/multiarch/strlen-c.c: Move to ...
7278         * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
7279         * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
7280         * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
7281         * sysdeps/s390/multiarch/strlen.c: Move to ...
7282         * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
7283         * sysdeps/s390/ifunc-strlen.h: New file.
7285 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7287         * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
7288         * sysdeps/s390/multiarch/ifunc-impl-list.c
7289         (__libc_ifunc_impl_list): Add ifunc variants for memmem.
7290         * sysdeps/s390/ifunc-memmem.h: New file.
7291         * sysdeps/s390/memmem.c: Likewise.
7292         * sysdeps/s390/memmem-c.c: Likewise.
7293         * sysdeps/s390/memmem-vx.c: Likewise.
7295 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7297         * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
7298         * sysdeps/s390/multiarch/ifunc-impl-list.c
7299         (__libc_ifunc_impl_list): Add ifunc variants for strstr.
7300         * sysdeps/s390/ifunc-strstr.h: New file.
7301         * sysdeps/s390/strstr.c: Likewise.
7302         * sysdeps/s390/strstr-c.c: Likewise.
7303         * sysdeps/s390/strstr-vx.c: Likewise.
7305 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7307         * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
7308         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
7309         HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
7310         HAVE_MEMMOVE_C, MEMMOVE_C,  HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
7311         New defines.
7312         * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
7313         * sysdeps/s390/memmove-c.c: New file.
7314         * sysdeps/s390/memmove.c: Likewise.
7315         * sysdeps/s390/multiarch/ifunc-impl-list.c
7316         (__libc_ifunc_impl_list): Add ifunc variants for memmove.
7318 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7320         * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
7321         * sysdeps/s390/configure.ac: Add check for z13 support.
7322         * sysdeps/s390/configure: Regenerated.
7324 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7326         * sysdeps/s390/memcopy.h: New file.
7328 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7330         * sysdeps/s390/s390-32/bcopy.S: Remove.
7331         * sysdeps/s390/s390-64/bcopy.S: Likewise.
7333 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7335         * sysdeps/s390/ifunc-memcpy.h: New File.
7336         * sysdeps/s390/memcpy.S: Move to ...
7337         * sysdeps/s390/memcpy-z900.S ... here.
7338         Move implementations from memcpy-s390x.s to here.
7339         * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
7340         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
7341         Remove memcpy/mempcpy variants.
7342         * sysdeps/s390/Makefile (sysdep_routines):
7343         Add memcpy/mempcpy variants.
7344         * sysdeps/s390/multiarch/ifunc-impl-list.c
7345         (__libc_ifunc_impl_list): Adjust ifunc variants for
7346         memcpy and mempcpy.
7347         * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
7348         to ...
7349         * sysdeps/s390/memcpy.c: ... here.
7350         Adjust ifunc variants for memcpy.
7351         * sysdeps/s390/multiarch/mempcpy.c: Move to ...
7352         * sysdeps/s390/mempcpy.c: ... here.
7353         Adjust ifunc variants for mempcpy.
7354         * sysdeps/s390/mempcpy.S: Delete file.
7356 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7358         * sysdeps/s390/s390-64/memcpy.S: Move to ...
7359         * sysdeps/s390/memcpy.S: ... here.
7360         Adjust to be usable for 31/64bit.
7361         * sysdeps/s390/s390-32/memcpy.S: Delete File.
7362         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
7363         * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
7364         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
7365         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
7366         * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
7367         Adjust to be usable for 31/64bit.
7368         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
7369         * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
7370         * sysdeps/s390/multiarch/memcpy.c: ... here.
7371         * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
7373 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7375         * sysdeps/s390/ifunc-memcmp.h: New File.
7376         * sysdeps/s390/memcmp.S: Move to ...
7377         * sysdeps/s390/memcmp-z900.S ... here.
7378         Move implementations from memcmp-s390x.s to here.
7379         * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
7380         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
7381         Remove memcmp variants.
7382         * sysdeps/s390/Makefile (sysdep_routines):
7383         Add memcmp variants.
7384         * sysdeps/s390/multiarch/ifunc-impl-list.c
7385         (__libc_ifunc_impl_list): Adjust ifunc variants for
7386         memcmp.
7387         * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
7388         to ...
7389         * sysdeps/s390/memcmp.c: ... here.
7390         Adjust ifunc variants for memcmp.
7392 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7394         * sysdeps/s390/s390-64/memcmp.S: Move to ...
7395         * sysdeps/s390/memcmp.S: ... here.
7396         Adjust to be usable for 31/64bit.
7397         * sysdeps/s390/s390-32/memcmp.S: Delete File.
7398         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
7399         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
7400         Remove memcmp.
7401         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
7402         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
7403         * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
7404         Adjust to be usable for 31/64bit.
7405         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
7406         * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
7407         * sysdeps/s390/multiarch/memcmp.c: ... here.
7408         * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
7410 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7412         * sysdeps/s390/s390-32/bzero.S: Delete file.
7413         * sysdeps/s390/s390-64/bzero.S: Likewise.
7414         * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
7415         * sysdeps/s390/bzero.c: New file.
7416         * sysdeps/s390/memset-z900.S: Add bzero entry points.
7417         * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
7418         * sysdeps/s390/multiarch/ifunc-impl-list.c
7419         (__libc_ifunc_impl_list): Add bzero ifunc variants.
7421 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7423         * sysdeps/s390/ifunc-memset.h: New File.
7424         * sysdeps/s390/memset.S: Move to ...
7425         * sysdeps/s390/memset-z900.S ... here.
7426         Move implementations from memset-s390x.s to here.
7427         * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
7428         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
7429         Remove memset variants.
7430         * sysdeps/s390/Makefile (sysdep_routines):
7431         Add memset variants.
7432         * sysdeps/s390/multiarch/ifunc-impl-list.c
7433         (__libc_ifunc_impl_list): Adjust ifunc variants for
7434         memset.
7435         * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
7436         to ...
7437         * sysdeps/s390/memset.c: ... here.
7438         Adjust ifunc variants for memset.
7440 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7442         * sysdeps/s390/s390-64/memset.S: Move to ...
7443         * sysdeps/s390/memset.S: ... here.
7444         Adjust to be usable for 31/64bit.
7445         * sysdeps/s390/s390-32/memset.S: Delete File.
7446         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
7447         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
7448         Remove memset.
7449         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
7450         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
7451         * sysdeps/s390/multiarch/memset-s390x.S: ... here.
7452         Adjust to be usable for 31/64bit.
7453         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
7454         * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
7455         * sysdeps/s390/multiarch/memset.c: ... here.
7456         * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
7458 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7460         * sysdeps/s390/multiarch/ifunc-resolve.h
7461         (s390_libc_ifunc_init, s390_libc_ifunc,
7462         s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
7464 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
7466         * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
7467         * sysdeps/s390/configure.ac: Add check for z10 support.
7468         * sysdeps/s390/configure: Regenerated.
7470 2018-12-18  H.J. Lu  <hongjiu.lu@intel.com>
7472         * sysdeps/i386/atomic-machine.h: Merged with ...
7473         * sysdeps/x86_64/atomic-machine.h: To ...
7474         * sysdeps/x86/atomic-machine.h: This.  New file.
7476 2018-12-18  Florian Weimer  <fweimer@redhat.com>
7478         Rewrite locale/gen-translit.pl in Python.
7479         * locale/Makefile (generated): Add C-translit.h.
7480         (before-compile): Add $(objpfx)C-translit.h.
7481         (C-translit.h): Move to $(objpfx).  Create target directory.
7482         Build using Python script.
7483         * locale/gen-translit.py: New file.
7484         * locale/gen-translit.pl: Remove file.
7485         * locale/C-translit.h.in: Change comment character to '#' for
7486         easier parsing without a C preprocessor.
7487         * locale/C-translit.h: Remove generated file.
7488         * manual/install.texi (Tools for Compilation): Do not mention
7489         C-translit.h.
7490         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7491         Remove locale/C-translit.h.
7492         * scripts/update-copyrights: Likewise.
7493         * INSTALL: Regenerate.
7495 2018-12-18  Florian Weimer  <fweimer@redhat.com>
7497         [BZ #23995]
7498         * localedata/locales/bi_VU: Remove executable bit from file.
7500 2018-12-17  Albert ARIBAUD  <albert.aribaud@3adev.fr>
7502         * include/time.h
7503         (__localtime64): Add.
7504         * manual/maint.texi: Document Y2038 symbol handling.
7505         * time/localtime.c
7506         (__localtime64): Add.
7507         [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
7509 2018-12-17  Joseph Myers  <joseph@codesourcery.com>
7511         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
7512         Do not clobber r12.
7514         * scripts/glibcextract.py (compare_macro_consts): Take parameters
7515         to allow extra macros from first or second sources.
7516         * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
7517         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7518         (tests-special): Add $(objpfx)tst-mman-consts.out.
7519         ($(objpfx)tst-mman-consts.out): New makefile target.
7521 2018-12-17  Mao Han  <han_mao@c-sky.com>
7523         * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
7524         * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
7525         without stat64 system call support.
7526         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
7527         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
7528         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
7529         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
7530         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
7531         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
7532         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
7533         * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
7534         * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
7535         * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
7536         * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
7538 2018-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7540         regex: fix storage-exhaustion error
7541         [BZ #18040]
7542         * posix/regexec.c (get_subexp):
7543         Do not continue if storage is exhausted.
7545 2018-12-15  Assaf Gordon  <assafgordon@gmail.com>
7547         regex: fix heap-use-after-free error
7548         [BZ #18040]
7549         Problem reported by Saito Takaaki <tails.saito@gmail.com> in
7550         https://debbugs.gnu.org/32592
7551         Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
7552         call extend_buffers which reallocates the re_string_t internal buffer.
7553         Local variable 'buf' was not updated in such case, resulting in
7554         use-after-free.
7555         * posix/regexec.c (get_subexp): Update 'buf' after call to
7556         get_subexp_sub.
7558 2018-12-15  Florian Weimer  <fweimer@redhat.com>
7560         * support/blob_repeat.c (check_mul_overflow_size_t): New function.
7561         (minimum_stride_size): Use it.
7562         (support_blob_repeat_allocate): Likewise.
7564 2018-12-14  Joseph Myers  <joseph@codesourcery.com>
7566         * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
7567         definition.
7568         (acosh): Likewise.
7569         (atanh): Likewise.
7571 2018-12-14  Florian Weimer  <fweimer@redhat.com>
7573         * manual/process.texi (Process Creation Concepts): Remove
7574         documentation of process (ID) lifetime.  List more process
7575         creation functions.  Reference Process Identification section.
7576         (Process Identification): Add information about process ID
7577         lifetime.  Describe Linux thread/task IDs.
7578         * manual/signal.texi (Signaling Another Process): Mention that the
7579         signal is always sent to the process.
7581 2018-12-14  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7583         * misc/Makefile (tests): Remove tst-efgcvt.  Add tst-dbl-efgcvt
7584         and tst-ldbl-efgcvt.
7585         * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
7586         * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
7587         (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
7588         (fcvt_tests, output_error, output_r_error, do_test): Use the
7589         macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
7590         select the type of floating-point variables and arguments; to
7591         produce extra tests for double and conversion specifiers for
7592         printf; and to set the names of called functions.
7593         * misc/tst-dbl-efgcvt.c: New file that defines the macros used
7594         in tst-efgcvt-template.c.
7595         * misc/tst-ldbl-efgcvt.c: Likewise.
7597 2018-12-14  Stefan Liebler  <stli@linux.ibm.com>
7599         * nss/Makefile (tst-nss-test3.out): New rule.
7601 2018-12-13  Joseph Myers  <joseph@codesourcery.com>
7603         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
7604         clobber sp.
7606 2018-12-13  fanjinke  <fanjinke@hygon.cn>
7608         * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
7609         "HygonGenuine".
7611 2018-12-13  Andreas Schwab  <schwab@suse.de>
7613         [BZ #23861]
7614         * nptl/pthread_rwlock_common.c: Reindent.  Fix typos.
7615         (__pthread_rwlock_rdlock_full): Update expected value for
7616         __readers while waiting on PTHREAD_RWLOCK_RWAITING.
7617         * nptl/tst-rwlock-pwn.c: New file.
7618         * nptl/Makefile (tests): Add tst-rwlock-pwn.
7620 2018-12-12  Joseph Myers  <joseph@codesourcery.com>
7622         * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
7623         definition.
7625 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
7627         * benchtests/scripts/compare_bench.py (do_compare): write to
7628         stderr in casestat is not present.
7629         * benchtests/scripts/compare_bench.py (plot_graphs): write to
7630         stderr in case timings field is not present. Also string showing
7631         the output filename goes into the stderr.
7633 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
7635         * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
7636         and ZeroDivisorError exceptions.
7637         * benchtests/scripts/compare_bench.py (compare_runs): Use stats
7638         argument to loop through user provided statistics.
7639         * benchtests/scripts/compare_bench.py (main): Include the --stats
7640         argument.
7642 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
7644         * benchtests/scripts/compare_bench.py (compare_runs): Continue
7645         instead of return.
7647 2018-12-12  Florian Weimer  <fweimer@redhat.com>
7649         * sysdeps/posix/timespec_get.c: Add missing “any later version”
7650         clause to copyright header.
7652 2018-12-12  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
7654         [BZ #23614]
7655         * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
7656         registers saved in the stack frame.
7657         * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
7658         * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
7660 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7662         * include/bits/monetary-ldbl.h: New file.
7663         * include/bits/printf-ldbl.h: Likewise.
7664         * include/bits/stdio-ldbl.h: Likewise.
7665         * include/bits/stdlib-ldbl.h: Likewise.
7666         * include/bits/syslog-ldbl.h: Likewise.
7667         * include/bits/wchar-ldbl.h: Likewise.
7669 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7671         * libio/libio.h: Remove redirection for _IO_vfprintf.
7673 2018-12-11  Andreas Schwab  <schwab@suse.de>
7675         * Makerules: Remove all references to abilist-pattern.
7676         (update-all-abi): Simplify find expression.
7678 2018-12-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7680         [BZ #23961]
7681         * math/auto-libm-test-in: Add new test case.
7682         * math/auto-libm-test-out-pow: Regenerated.
7683         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
7685 2018-12-10  DJ Delorie  <dj@redhat.com>
7687         [BZ #23948]
7688         * support/test-container.c: Move postclean step to before we
7689         change namespaces.
7691 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
7693         * scripts/gen-as-const.py (main): Handle --python option.
7694         * scripts/gen-py-const.awk: Remove.
7695         * Makerules (py-const-script): Use gen-as-const.py.
7696         ($(py-const)): Likewise.
7697         * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
7698         with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
7699         (MutexAttributesPrinter.read_values): Mask with 0xffffffff
7700         together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
7701         ~PTHREAD_MUTEX_NO_ELISION_NP.
7702         * manual/README.pretty-printers: Update reference to
7703         gen-py-const.awk.
7705         * scripts/glibcextract.py: New file.
7706         * scripts/gen-as-const.py: Do not import os.path, re, subprocess
7707         or tempfile.  Import glibcexctract.
7708         (compute_c_consts): Remove.  Moved to glibcextract.py.
7709         (gen_test): Update reference to compute_c_consts.
7710         (main): Likewise.
7711         * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
7712         * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
7713         * sysdeps/unix/sysv/linux/Makefile
7714         ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
7715         Redirect stderr as well as stdout.
7717 2018-12-10  Rafael Ávila de Espíndola  <rafael@espindo.la>
7719         [BZ #19767]
7720         * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
7721         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
7722         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
7723         ALWAYS_USE_VSYSCALL.
7724         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
7725         ALWAYS_USE_VSYSCALL.
7726         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
7727         ALWAYS_USE_VSYSCALL.
7729 2018-12-10  Florian Weimer  <fweimer@redhat.com>
7731         [BZ #23972]
7732         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
7733         offset instead of count for clarity.  Fix typo in comment.
7734         (__old_getdents64): Keep track of previous offset.  Use it to call
7735         handle_overflow.
7736         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
7737         that d_off is never zero.
7739 2018-12-10  Andreas Schwab  <schwab@suse.de>
7741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
7742         sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
7743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
7744         sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
7745         * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
7747 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
7749         * timezone/private.h: Update from tzcode 2018g.
7750         * timezone/tzfile.h: Likewise.
7751         * timezone/tzselect.ksh: Likewise.
7752         * timezone/zdump.c: Likewise.
7753         * timezone/zic.c: Likewise.
7755 2018-12-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
7757         [BZ #23490]
7758         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
7759         (do_test): Adjust buffer size and fix format.
7761 2018-12-07  DJ Delorie  <dj@redhat.com>
7763         [BZ #23907]
7764         * malloc/tst-tcfree3.c: New.
7765         * malloc/Makefile: Add it.
7767 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
7769         * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
7771 2018-12-07  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7773         * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
7774         used as a mask for the mode argument of __vfscanf_internal and
7775         __vfwscanf_internal.
7776         * stdio-common/vfscanf-internal.c
7777         [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
7778         (__strtof128_internal): Define to __wcstof128_internal.
7779         [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
7780         __strtof128_internal or __wcstof128_internal when the format of
7781         long double is the same as _Float128.
7783 2018-12-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7785         * include/unistd.h (__confstr): Add prototype and hidden prototype.
7786         * posix/confstr.c (confstr): Rename to __confstr.
7787         (__confstr): Add hidden def.
7788         (confstr): Add weak alias for __confstr.
7789         * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
7790         confstr.
7792 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
7794         * NEWS: Mention getcpu.
7795         * include/sched.h (__getcpu): New libc_hidden_proto.
7796         * manual/resource.texi: Document getcpu.
7797         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
7798         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
7799         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
7800         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7801         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7802         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7803         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7804         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7805         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7806         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7807         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7808         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7809         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
7810         Likewise.
7811         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7812         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7813         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7815         Likewise.
7816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7817         Likewise.
7818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
7819         Likewise.
7820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
7821         Likewise.
7822         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
7823         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7824         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7825         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7826         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7827         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7828         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7829         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7830         * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
7831         * sysdeps/unix/sysv/linux/getcpu.c: New file.
7832         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
7833         Also check getcpu.
7835 2018-12-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7837         * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
7838         functions.
7839         (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
7841 2018-12-07  Florian Weimer  <fweimer@redhat.com>
7843         [BZ #17405]
7844         * posix/Makefile (routines): Add spawn_faction_addfchdir.
7845         * posix/Versions (GLIBC_2.29): Export
7846         posix_spawn_file_actions_addfchdir_np.
7847         * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
7848         * posix/spawn_faction_destroy.c
7849         (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
7850         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
7851         and the field action.fchdir_action.
7852         * posix/tst-spawn-chdir.c (add_chdir): New function.
7853         (do_test): Add do_fchdir loop.  Call add_chdir.
7854         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
7855         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7856         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7857         posix_spawn_file_actions_addfchdir_np.
7858         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7859         Likewise.
7860         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7861         Likewise.
7862         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7863         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7864         Likewise.
7865         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7866         Likewise.
7867         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7868         Likewise.
7869         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7870         Likewise.
7871         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7872         Likewise.
7873         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7874         Likewise.
7875         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7876         (GLIBC_2.29): Likewise.
7877         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7878         (GLIBC_2.29): Likewise.
7879         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7880         (GLIBC_2.29): Likewise.
7881         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7882         (GLIBC_2.29): Likewise.
7883         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7884         Likewise.
7885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7886         (GLIBC_2.29): Likewise.
7887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7888         (GLIBC_2.29): Likewise.
7889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7890         (GLIBC_2.29): Likewise.
7891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7892         (GLIBC_2.29): Likewise.
7893         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7894         Likewise.
7895         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7896         Likewise.
7897         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7898         Likewise.
7899         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7900         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7901         Likewise.
7902         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7903         Likewise.
7904         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7905         Likewise.
7906         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7907         Likewise.
7909 2018-12-06  Joseph Myers  <joseph@codesourcery.com>
7911         * manual/texinfo.tex: Update to version 2018-09-21.20 with
7912         trailing whitespace removed.
7913         * scripts/config.guess: Update to version 2018-11-28.
7914         * scripts/config.sub: Update to version 2018-11-28.
7915         * scripts/install-sh: Update to version 2018-03-11.20.
7916         * scripts/mkinstalldirs: Update to version 2018-03-07.03.
7917         * scripts/move-if-change: Update to version 2018-03-07 03:47.
7919 2018-12-07  Florian Weimer  <fweimer@redhat.com>
7921         [BZ #23927]
7922         CVE-2018-19591
7923         * inet/tst-if_index-long.c: New file.
7924         * inet/Makefile (tests): Add tst-if_index-long.
7926 2018-12-07  Florian Weimer  <fweimer@redhat.com>
7928         * support/check.h (support_record_failure_is_failed): Declare.
7929         * support/descriptors.h: New file.
7930         * support/support_descriptors.c: Likewise.
7931         * support/tst-support_descriptors.c: Likewise.
7932         * support/support_record_failure.c
7933         (support_record_failure_is_failed): New function.
7934         * support/Makefile (libsupport-routines): Add support_descriptors.
7935         (tests): Add tst-support_descriptors.
7937 2018-12-05  Zack Weinberg  <zackw@panix.com>
7938             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7940         * stdio-common/vfprintf-internal.c
7941         (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
7942         * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
7943         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
7944         and __no_long_double.
7945         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
7946         * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
7947         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
7948         libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
7949         and __nldbl_*syslog* functions.
7950         (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
7951         (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
7952         (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
7953         (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
7954         (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
7955         (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
7956         (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
7957         (__nldbl_vwprintf, __nldbl_wprintf):
7958         Directly call the appropriate __v*printf_internal routine, passing
7959         PRINTF_LDBL_IS_DBL.  Do not mess with __no_long_double. Normalize
7960         variable names.
7961         (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
7962         (__nldbl___printf_chk, __nldbl___snprintf_chk)
7963         (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
7964         (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
7965         (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
7966         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
7967         (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
7968         (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
7969         (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
7970         (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
7971         Likewise, and also pass PRINTF_FORTIFY when appropriate.
7972         (__nldbl_syslog, __nldbl_vsyslog):
7973         Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
7974         (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
7975         appropriate.
7976         (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
7977         appropriate.
7979 2018-12-05  Zack Weinberg  <zackw@panix.com>
7980             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7982         [BZ #11319]
7983         * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
7984         Moved here from debug/vsprintf_chk.c.
7985         (__vsprintf_internal): Add 'maxlen' argument.  Change the setup
7986         and completion logic for the strfile to match exactly what
7987         __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
7988         _IO_str_init_static_internal instead of maxlen-1.
7989         (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
7990         * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
7991         __vsprintf_internal.
7993         * debug/vsprintf_chk.c (__vsprintf_chk)
7994         * debug/sprintf_chk.c (__sprintf_chk):
7995         Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
7996         'flags' argument is positive, and slen as maxlen.  No need to lock
7997         the FILE and/or construct a temporary FILE.  Minimize and normalize
7998         header inclusions and variable names.  Do not libc_hidden_def anything.
8000         * debug/asprintf_chk.c (__asprintf_chk)
8001         * debug/dprintf_chk.c (__dprintf_chk)
8002         * debug/fprintf_chk.c (__fprintf_chk)
8003         * debug/fwprintf_chk.c (__fwprintf_chk)
8004         * debug/printf_chk.c (__printf_chk)
8005         * debug/snprintf_chk.c (__snprintf_chk)
8006         * debug/swprintf_chk.c (__swprintf_chk)
8007         * debug/vasprintf_chk.c (__vasprintf_chk)
8008         * debug/vdprintf_chk.c (__vdprintf_chk)
8009         * debug/vfprintf_chk.c (__vfprintf_chk)
8010         * debug/vfwprintf_chk.c (__vfwprintf_chk)
8011         * debug/vprintf_chk.c (__vprintf_chk)
8012         * debug/vsnprintf_chk.c (__vsnprintf_chk)
8013         * debug/vswprintf_chk.c (__vswprintf_chk)
8014         * debug/vwprintf_chk.c (__vwprintf_chk)
8015         * debug/wprintf_chk.c (__wprintf_chk):
8016         Directly call the corresponding vxxprintf_internal function, passing
8017         PRINTF_FORTIFY if 'flag' argument is positive.  No need to lock
8018         the FILE and/or construct a temporary FILE.  Minimize and normalize
8019         header inclusions and variable names.  Do not libc_hidden_def anything.
8021         * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
8022         __obstack_vprintf_internal.
8023         (__obstack_vprintf_chk): Convert into a wrapper that calls
8024         __obstack_vprintf_internal (these two functions already had the
8025         same code) and move to new file...
8026         * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here.  New
8027         file.
8028         * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
8029         the flags argument and the setting of _IO_FLAGS2_FORTIFY.
8030         * debug/Makefile (routines): Add vobprintf_chk.
8032         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8033         (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
8034         (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
8035         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
8036         (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
8037         (__nldbl___obstack_vfprintf_chk):
8038         Directly call the corresponding vxxprintf_internal function,
8039         passing PRINTF_FORTIFY if 'flag' argument is positive.  If necessary,
8040         duplicate comparison of slen with 0 or maxlen from the corresponding
8041         non-__nldbl function.
8043         * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
8044         (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
8045         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
8046         Remove libc_hidden_proto.
8048         * stdio-common/vfprintf-internal.c
8049         (__vfprintf_internal, __vfwprintf_internal):
8050         Do not check _IO_FLAGS2_FORTIFY.
8051         * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
8052         * libio/libioP.h: Update prototype of __vsprintf_internal and add
8053         a comment explaining why it has the maxlen argument.
8054         (_IO_acquire_lock_clear_flags2_fct): Remove.
8055         (_IO_acquire_lock_clear_flags2): Remove.
8056         (_IO_release_lock): Remove conditional statement which will
8057         now never execute.
8058         (_IO_acquire_lock): Remove variable which is now unused.
8059         * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
8060         * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
8062         * stdio-common/Makefile (tests): Add tst-bz11319 and
8063         tst-bz11319-fortify2.
8064         (CFLAGS-tst-bz11319-fortify2.c): New macro.
8065         * stdio-common/tst-bz11319-fortify2.c: New file.
8066         * stdio-common/tst-bz11319.c: Likewise.
8068 2018-12-05  Zack Weinberg  <zackw@panix.com>
8069             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8071         * misc/syslog.c: Include libioP.h, not iolibio.h.
8072         (__vsyslog_internal): New function with the former body of
8073         __vsyslog_chk; takes mode_flags argument same as
8074         __v*printf_internal.  Call __vfprintf_internal directly.
8076         (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
8077         Remove libc_hidden_def.
8078         (__syslog, __syslog_chk): Use __vsyslog_internal.
8079         (__vsyslog): Move to just below __syslog.  Use __vsyslog_internal.
8081         * include/sys/syslog.h: Add multiple inclusion guard.
8082         Add prototype for __vsyslog_internal.
8083         Remove declaration and libc_hidden_proto for __vsyslog_chk.
8085         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
8086         Use __vsyslog_internal.
8088 2018-12-05  Zack Weinberg  <zackw@panix.com>
8089             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8091         * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
8092         (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
8093         (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
8094         New functions.
8095         (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
8096         (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
8098         * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
8099         Include wctype.h here if COMPILE_WPRINTF is defined.
8100         Define __vfprintf_internal or __vfwprintf_internal, depending
8101         on COMPILE_WPRINTF.
8102         Temporarily, on entry to this function, update mode_flags
8103         according to the environmental settings corresponding to
8104         PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
8105         Throughout, check mode_flags instead of __ldbl_is_dbl and
8106         _IO_FLAGS2_FORTIFY on the destination FILE.
8107         * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
8108         Include vfprintf-internal.c.  Don't include wctype.h.
8109         * stdio-common/vfprintf.c: New file.  Just define __vfprintf
8110         as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
8111         and vfprintf.
8112         * stdio-common/vfwprintf.c: New file.  Just define __vfwprintf
8113         as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
8114         and vfwprintf.
8115         * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
8117         * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
8118         and add mode_flags argument; use __vfprintf_internal.
8119         (__vdprintf): New function.  Alias vdprintf to this.
8120         * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
8121         * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
8122         * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
8123         (__obstack_printf): Use __obstack_printf_internal.
8124         * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
8125         public aliases __vsnprintf and vsnprintf.
8126         Remove use of ldbl_hidden_def, since __vsnprintf is no longer
8127         called internally.
8128         * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
8129         public aliases _IO_vsprintf and vsprintf.
8130         * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
8131         * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
8132         * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
8133         * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
8134         * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
8136         * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
8137         * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
8138         * stdio-common/fprintf.c, stdio-common/fxprintf.c
8139         * stdio-common/printf.c: Use __vfprintf_internal.
8141         * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
8142         * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
8143         * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
8145         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
8146         __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
8147         __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
8148         __vfwprintf_internal.
8150         * libio/libio.h: Remove libc_hidden_proto and declaration for
8151         _IO_vfprintf.
8152         Remove declaration of _IO_vfwprintf.
8153         * libio/iolibio.h: Remove libc_hidden_proto and declaration for
8154         _IO_vsprintf.
8155         Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
8156         _IO_obstack_printf.
8157         * include/stdio.h: Add prototype for __vasprintf.
8158         (__vsnprintf): Remove declaration, because there are no more
8159         internal calls.
8160         * include/wchar.h (__vfwprintf, __vswprintf): Remove
8161         declaration, because there are no more internal calls.
8163         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
8164         __vsnprintf_internal, instead of _IO_vsnprintf.
8165         * argp/argp-help.c (__argp_error, __argp_failure): Use
8166         __vasprintf_internal, instead of _IO_vasprintf.
8167         * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
8168         redefine, because there are no more internal calls.
8170 2018-12-05  Zack Weinberg  <zackw@panix.com>
8171             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8173         * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
8174         * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
8175         Include libio/strfile.h instead of libioP.h.
8176         (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
8177         (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
8178         (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
8179         (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
8180         (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
8181         directly, passing SCANF_LDBL_IS_DBL.  Set up a strfile if
8182         necessary.  Do not set __no_long_double.  Normalize variable names.
8183         (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
8184         (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
8185         (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
8186         (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
8187         (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
8188         (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
8189         Call __vfscanf_internal / __vfwscanf_internal directly, passing
8190         SCANF_LDBL_IS_DBL | SCANF_ISOC99_A.  Set up a strfile if necessary.
8191         Do not set __no_long_double.  Normalize variable names.
8193 2018-12-05  Zack Weinberg  <zackw@panix.com>
8194             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8196         * stdio-common/isoc99_scanf.c
8197         * stdio-common/isoc99_fscanf.c
8198         * stdio-common/isoc99_sscanf.c
8199         * stdio-common/isoc99_vscanf.c
8200         * stdio-common/isoc99_vfscanf.c
8201         * stdio-common/isoc99_vsscanf.c
8202         * wcsmbs/isoc99_wscanf.c
8203         * wcsmbs/isoc99_fwscanf.c
8204         * wcsmbs/isoc99_swscanf.c
8205         * wcsmbs/isoc99_vwscanf.c
8206         * wcsmbs/isoc99_vfwscanf.c
8207         * wcsmbs/isoc99_vswscanf.c:
8208         Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
8209         Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
8210         No need to lock and unlock the FILE passed to that function.
8212         * stdio-common/vfscanf-internal.c
8213         (__vfscanf_internal, __vfwscanf_internal):
8214         Don't look at _IO_FLAGS2_SCANF_STD.
8215         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
8216         (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
8217         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
8219 2018-12-05  Zack Weinberg  <zackw@panix.com>
8220             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8222         * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
8223         (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
8224         * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
8225         * libio/strfile.h: Add multiple inclusion guard.
8226         (_IO_strfile_read, _IO_strfile_readw): New inline functions.
8228         * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
8229         consistency with the other version of this file.
8230         (ldbl_compat_symbol): New macro.
8231         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
8232         New macro.
8234         * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
8235         Define __vfscanf_internal or __vfwscanf_internal, depending on
8236         COMPILE_WSCANF; don't define any other public symbols.
8237         Remove errval and code to set errp.
8238         Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
8239         as the mode_flags argument.
8240         (encode_error, conv_error, input_error): Don't set errval.
8241         * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
8242         Include vfscanf-internal.c.
8243         * stdio-common/vfscanf.c: New file defining the public entry
8244         point vfscanf, which calls __vfscanf_internal.
8245         * stdio-common/vfwscanf.c: New file defining the public entry
8246         point vfwscanf, which calls __vfwscanf_internal.
8248         * stdio-common/iovfscanf.c: New file.
8249         * stdio-common/iovfwscanf.c: Likewise.
8251         * stdio-common/Makefile (routines): Add vfscanf-internal,
8252         vfwscanf-internal, iovfscanf, iovfwscanf.
8253         * stdio-common/Versions: Mention GLIBC_2.29, so that
8254         it can be used in SHLIB_COMPAT expressions.
8255         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
8256         Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
8257         Call __vfscanf_internal, instead of _IO_vfscanf.
8258         (__nldbl___vfscanf): Call __vfscanf_internal, instead of
8259         _IO_vfscanf.
8260         (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
8261         _IO_vfwscanf.
8263         * libio/iovsscanf.c: Clean up includes, when possible.  Use
8264         _IO_strfile_read or _IO_strfile_readw, when needed.  Call
8265         __vfscanf_internal or __vfwscanf_internal directly.
8266         * libio/iovswscanf.c: Likewise.
8267         * libio/swscanf.c: Likewise.
8268         * libio/vscanf.c: Likewise.
8269         * libio/vwscanf.c: Likewise.
8270         * libio/wscanf.c: Likewise.
8271         * stdio-common/isoc99_fscanf.c: Likewise.
8272         * stdio-common/isoc99_scanf.c: Likewise.
8273         * stdio-common/isoc99_sscanf.c: Likewise.
8274         * stdio-common/isoc99_vfscanf.c: Likewise.
8275         * stdio-common/isoc99_vscanf.c: Likewise.
8276         * stdio-common/isoc99_vsscanf.c: Likewise.
8277         * stdio-common/scanf.c: Likewise.
8278         * stdio-common/sscanf.c: Likewise.
8279         * wcsmbs/isoc99_fwscanf.c: Likewise.
8280         * wcsmbs/isoc99_swscanf.c: Likewise.
8281         * wcsmbs/isoc99_vfwscanf.c: Likewise.
8282         * wcsmbs/isoc99_vswscanf.c: Likewise.
8283         * wcsmbs/isoc99_vwscanf.c: Likewise.
8284         * wcsmbs/isoc99_wscanf.c: Likewise.
8286 2018-12-05  Albert ARIBAUD  <albert.aribaud@3adev.fr>
8288         * include/time.h
8289         (__tz_compute): Replace time_t with __time64_t.
8290         (__tz_convert): Replace time_t* with __time64_t.
8291         (__offtime): Replace time_t* with __time64_t.
8292         * time/gmtime.c
8293         (__gmtime_r): Adjust call to __tz_convert.
8294         (gmtime): Likewise.
8295         * time/localtime.c
8296         (__localtime_r): Likewise.
8297         (localtime): Likewise.
8298         * time/offtime.c: Replace time_t with __time64_t.
8299         * time/tzset.c: Likewise.
8301 2018-12-04  Joseph Myers  <joseph@codesourcery.com>
8303         * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
8304         dynamic linker unless [$(run-built-tests) = yes].
8306 2018-12-03  DJ Delorie  <dj@delorie.com>
8308         * support/test-container.c (check_for_unshare_hints): New.
8309         (main): Call it if unshare fails.  Add support for "su" scriptlet
8310         command.
8312 2018-12-03  Joseph Myers  <joseph@codesourcery.com>
8314         * scripts/gen-as-const.py (compute_c_consts): Take an argument
8315         'START' to indicate that start text should be output.
8316         (gen_test): Likewise.
8317         (main): Generate 'START' for first symbol or '--' line, or at end
8318         of input if not previously generated.
8320 2018-12-03  Rafael Ávila de Espíndola  <rafael@espindo.la>
8322         [BZ #19767]
8323         * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
8324         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
8325         * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
8326         ALWAYS_USE_VSYSCALL.
8328 2018-12-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8330         [BZ #23913]
8331         * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
8332         new_argv by one.
8334 2018-12-03  Carlos O'Donell  <carlos@redhat.com>
8336         [BZ #23923]
8337         * locale/programs/localedef.c: Declare boolean hard_links default true.
8338         (options): Add --no-hard-links option.
8339         (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
8340         * locale/programs/localedef.h: Declare prototype for hard_links.
8341         * locale/programs/locfile.c (write_locale_data): Don't use hard
8342         links if hard_links is false.
8344 2018-12-03  H.J. Lu  <hongjiu.lu@intel.com>
8346         * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
8347         cpu_features_basic.
8348         (__cache_sysconf): Likewise.
8349         (init_cacheinfo): Likewise.
8350         * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
8351         populate COMMON_CPUID_INDEX_80000007 and
8352         COMMON_CPUID_INDEX_80000008.
8353         (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
8354         Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
8355         XSAVEC is available.  Set the bit_arch_XXX_Usable bits.
8356         (init_cpu_features): Use _Static_assert on
8357         index_arch_Fast_Unaligned_Load.
8358         __get_cpuid_registers and __get_arch_feature.  Updated for
8359         cpu_features_basic.  Set stepping in cpu_features.
8360         * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
8361         (FEATURE_INDEX_2): New.
8362         (FEATURE_INDEX_MAX): Changed to enum.
8363         (COMMON_CPUID_INDEX_D_ECX_1): New.
8364         (COMMON_CPUID_INDEX_80000007): Likewise.
8365         (COMMON_CPUID_INDEX_80000008): Likewise.
8366         (cpuid_registers): Likewise.
8367         (cpu_features_basic): Likewise.
8368         (CPU_FEATURE_USABLE): Likewise.
8369         (bit_arch_XXX_Usable): Likewise.
8370         (cpu_features): Use cpuid_registers and cpu_features_basic.
8371         (bit_arch_XXX): Reweritten.
8372         (bit_cpu_XXX): Likewise.
8373         (index_cpu_XXX): Likewise.
8374         (reg_XXX): Likewise.
8375         * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
8376         <support/check.h>.
8377         (CHECK_CPU_FEATURE): New.
8378         (CHECK_CPU_FEATURE_USABLE): Likewise.
8379         (cpu_kinds): Likewise.
8380         (do_test): Print vendor, family, model and stepping.  Check
8381         HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
8382         (TEST_FUNCTION): Removed.
8383         Include <support/test-driver.c> instead of
8384         "../../test-skeleton.c".
8385         * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
8386         Check POPCNT instead of POPCOUNT.
8387         * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
8389 2018-12-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8391         * scripts/gen-as-const.py (main): Avoid emitting empty line when
8392         there is no element in `consts'.
8394 2018-12-01  Florian Weimer  <fweimer@redhat.com>
8396         * support/support_capture_subprocess.c
8397         (support_capture_subprocess): Check that pipe descriptors have
8398         expected values.  Close original pipe descriptors in subprocess.
8400 2018-12-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8402         [BZ #23032]
8403         * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
8404         attr with __pthread_default_barrierattr.
8405         * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
8406         attr with __pthread_default_condattr.
8407         * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
8408         attr with __pthread_default_mutexattr.
8409         * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
8410         attr with __pthread_default_rwlockattr.
8412 2018-12-01  Kemi Wang  <kemi.wang@intel.com>
8414         * manual/tunables.texi (POSIX Thread Tunables): New node.
8415         * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
8416         * nptl/nptl-init.c: Include pthread_mutex_conf.h
8417         (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
8418         __pthread_tunables_init.
8419         * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
8420         (max_adaptive_count): Define.
8421         * nptl/pthread_mutex_conf.c: New file.
8422         * nptl/pthread_mutex_conf.h: New file.
8423         * sysdeps/generic/adaptive_spin_count.h: New file.
8424         * sysdeps/nptl/dl-tunables.list: New file.
8425         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
8426         max_adaptive_count () not MAX_ADAPTIVE_COUNT.
8427         * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
8428         Likewise.
8430 2018-12-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
8432         [BZ #20544]
8433         * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
8434         * stdlib/on_exit.c (__on_exit): Likewise.
8435         * stdlib/Makefile (tests): Add tst-bz20544.
8436         * stdlib/tst-bz20544.c: New test.
8438 2018-11-30  Rafael Ávila de Espíndola  <rafael@espindo.la>
8440         [BZ #19767]
8441         * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
8442         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
8443         New.
8445 2018-11-30  Florian Weimer  <fweimer@redhat.com>
8447         * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
8448         Extend error logging.
8449         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
8450         symbol.
8452 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8454         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
8455         __sigismember instead of sigismember.
8456         * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
8457         cancel_handler): New definitions.
8458         (do_system): Use posix_spawn instead of fork and execl and remove
8459         reentracy code.
8460         * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
8461         * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
8462         * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
8463         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
8464         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
8465         * sysdeps/unix/sysv/linux/system.c: Likewise.
8467         [BZ #22834]
8468         [BZ #17490]
8469         * NEWS: Add new semantic for atfork with popen and system.
8470         * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
8471         fork and execl.
8473 2018-11-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
8475         [BZ #23690]
8476         * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
8477         modification order when accessing reloc_result->addr.
8478         * include/link.h (reloc_result): Add field init.
8479         * nptl/Makefile (tests): Add tst-audit-threads.
8480         (modules-names): Add tst-audit-threads-mod1 and
8481         tst-audit-threads-mod2.
8482         Add rules to build tst-audit-threads.
8483         * nptl/tst-audit-threads-mod1.c: New file.
8484         * nptl/tst-audit-threads-mod2.c: Likewise.
8485         * nptl/tst-audit-threads.c: Likewise.
8486         * nptl/tst-audit-threads.h: Likewise.
8488 2018-11-30  Joseph Myers  <joseph@codesourcery.com>
8490         * scripts/gen-as-const.py: New file.
8491         * scripts/gen-as-const.awk: Remove.
8492         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
8493         gen-as-const.py.
8494         ($(objpfx)test-as-const-%.c): Likewise.
8496 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
8498         * elf/dl-exception.c: Include <_itoa.h>.
8500 2018-11-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8502         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
8503         returned by __f_setlk.
8505 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
8506             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8508         * elf/Makefile (tests-internal): Add tst-create_format1.
8509         * elf/dl-exception.c (_dl_exception_create_format): Support
8510         %x, %lx and %zx.
8511         * elf/tst-create_format1.c: New file.
8513 2018-11-29  Charles-Antoine Couret  <charles-antoine.couret@essensium.com>
8515         * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
8516         conditional on calls to _IO_fwide and putwc_unlocked.  (Merge from
8517         gnulib.)
8518         * argp/argp-help.c (__argp_failure): Likewise.
8520 2018-11-29  Mao Han  <han_mao@c-sky.com>
8522         * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
8523         (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
8524         (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
8525         (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
8526         (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
8527         (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
8528         (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
8529         (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
8530         (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
8531         (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
8532         (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
8533         (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
8534         (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
8535         (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
8536         (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
8537         (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
8538         (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
8539         (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
8540         (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
8541         (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
8542         (R_CKCORE_TLS_TPOFF32): New defines.
8544 2018-11-29  Florian Weimer  <fweimer@redhat.com>
8546         * posix/Makefile (before-compile): Remove testcases.h and
8547         ptestcases.h.
8548         (generated): Add testcases.h and ptestcases.h.
8549         (testcases.h, ptestcases.h): Move to $(objpfx).
8550         (runtests.o): Add dependency on testcases.h.
8551         (runptests.o): Add dependency on ptestcases.h.
8552         * posix/testcases.h, posix/ptestcases.h: Remove files.
8553         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
8554         not touch posix/testcases.h and posix/ptestcases.h.
8556 2018-11-28  Florian Weimer  <fweimer@redhat.com>
8558         support: Add signal support to support_capture_subprocess_check.
8559         * support/capture_subprocess.h (support_capture_subprocess_check):
8560         Adjust comment and rename parameter.
8561         * support/support_capture_subprocess_check.c
8562         (print_actual_status): New function.
8563         (support_capture_subprocess_check): Support negative
8564         status_or_signal.  Call print_actual_status.
8565         * support/tst-support_capture_subprocess.c (do_test): Call
8566         support_capture_subprocess_check.
8567         * libio/tst-vtables-common.c (termination_status)
8568         (init_termination_status): Remove.
8569         (check_for_termination): Adjust support_capture_subprocess_check
8570         call.
8571         (do_test): Remove call to init_termination_status.
8573 2018-11-28  Joseph Myers  <joseph@codesourcery.com>
8575         * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
8576         source directory instead of a copy.
8577         (CommandList.create_copy_dir): Remove.
8579 2018-11-28  Stefan Liebler  <stli@linux.ibm.com>
8581         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8583 2018-11-28  Florian Weimer  <fweimer@redhat.com>
8585         * support/support.h (support_quote_string): Do not use str
8586         parameter name.
8588 2018-11-27  Joseph Myers  <joseph@codesourcery.com>
8590         * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
8591         $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
8593 2018-11-27  Florian Weimer  <fweimer@redhat.com>
8595         * support/support.h (support_quote_string): Declare.
8596         * support/support_quote_string.c: New file.
8597         * support/tst-support_quote_string.c: Likewise.
8598         * support/Makefile (libsupport-routines): Add
8599         support_quote_string.
8600         (tests): Add tst-support_quote_string.
8602 2018-11-27  Florian Weimer  <fweimer@redhat.com>
8604         [BZ #23927]
8605         CVE-2018-19591
8606         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
8607         descriptor leak in case of ENODEV error.
8609 2018-11-27  Rafael Ávila de Espíndola  <rafael@espindo.la>
8611         [BZ #19767]
8612         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
8613         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
8614         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
8616 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
8618         * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
8619         Error for unknown lines.
8621 2018-11-26  Joseph Myers  <joseph@codesourcery.com>
8623         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
8624         Touch additional files.
8626 2018-11-26  Florian Weimer  <fweimer@redhat.com>
8628         [BZ #23907]
8629         * malloc/malloc.c (_int_free): Validate tc_idx before checking for
8630         double-frees.
8632 2018-11-26  Rafael Ávila de Espíndola  <rafael@espindo.la>
8634         [BZ #19767]
8635         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
8636         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
8637         SHARED.  Include sysdep.h.
8638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
8639         ALWAYS_USE_VSYSCALL.
8640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
8641         ALWAYS_USE_VSYSCALL.
8643 2018-11-23  Rafael Ávila de Espíndola  <rafael@espindo.la>
8645         [BZ #19767]
8646         * nptl/Makefile (tests-static): Add tst-cond11-static.
8647         (tests): Likewise.
8648         * nptl/tst-cond11-static.c: New File.
8649         * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
8650         tst-affinity-static.
8651         (tests): Likewise.
8652         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
8653         instead of SHARED.
8654         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
8655         (USE_VSYSCALL): Likewise.
8656         * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
8657         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
8658         instead of SHARED.
8659         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
8660         SHARED.
8661         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
8662         New.
8664 2018-11-23  Joseph Myers  <joseph@codesourcery.com>
8666         [BZ #23915]
8667         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8668         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
8669         Undefine.
8671 2018-11-23  H.J. Lu  <hongjiu.lu@intel.com>
8673         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
8674         (tst-cet-legacy-1a-ARGS): New.
8675         ($(objpfx)tst-cet-legacy-1a): New target.
8676         * sysdeps/x86/tst-cet-legacy-1a.c: New file.
8678 2018-11-22  Joseph Myers  <joseph@codesourcery.com>
8680         * conform/conformtest.py (CompileSubTest.__init__): Set
8681         self.run_early to False.
8682         (ExecuteSubTest.__init__): Likewise.
8683         (HeaderTests.run): Try running all non-optional, non-XFAILed
8684         compilation tests in a single execution of the compiler.
8686         * conform/conformtest.py (CompileSubTest): New class.
8687         (ExecuteSubTest): Likewise.
8688         (ElementTest.run): Rename to gen_subtests.  Append tests to
8689         self.subtests instead of running them.
8690         (ConstantTest.run): Likewise.
8691         (SymbolTest.run): Likewise.
8692         (TypeTest.run): Likewise.
8693         (TagTest.run): Likewise.
8694         (FunctionTest.run): Likewise.
8695         (VariableTest.run): Likewise.
8696         (MacroFunctionTest.run): Likewise.
8697         (MacroStrTest.run): Likewise.
8698         (HeaderTests.handle_test_line): Generate subtests for tests.
8699         (HeaderTests.run): Run subtests for tests.
8701 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8703         * math/Versions (GLIBC_2.29): Add pow.
8704         * math/w_pow_compat.c (__pow_compat): Change to versioned compat
8705         symbol.
8706         * math/w_pow.c: New file.
8707         * sysdeps/i386/fpu/w_pow.c: New file.
8708         * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
8709         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
8710         and add necessary aliases.
8711         * sysdeps/ieee754/dbl-64/w_pow.c: New file.
8712         * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
8713         * sysdeps/mach/hurd/i386/libm.abilist: Update.
8714         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
8715         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
8716         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
8717         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
8718         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
8719         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
8720         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
8721         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
8722         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
8723         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
8724         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
8725         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
8726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
8727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
8728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
8729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
8730         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
8731         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
8732         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
8733         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
8734         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
8735         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
8736         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
8737         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
8738         __pow.
8739         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
8740         * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
8741         * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
8743 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8745         * math/Versions (GLIBC_2.29): Add log2.
8746         * math/w_log2_compat.c (__log2_compat): Change to versioned compat
8747         symbol.
8748         * math/w_log2.c: New file.
8749         * sysdeps/i386/fpu/w_log2.c: New file.
8750         * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
8751         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
8752         and add necessary aliases.
8753         * sysdeps/ieee754/dbl-64/w_log2.c: New file.
8754         * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
8755         * sysdeps/mach/hurd/i386/libm.abilist: Update.
8756         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
8757         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
8758         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
8759         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
8760         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
8761         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
8762         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
8763         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
8764         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
8765         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
8766         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
8767         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
8768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
8769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
8770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
8771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
8772         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
8773         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
8774         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
8775         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
8776         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
8777         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
8778         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
8780 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8782         * math/Versions (GLIBC_2.29): Add log.
8783         * math/w_log_compat.c (__log_compat): Change to versioned compat
8784         symbol.
8785         * math/w_log.c: New file.
8786         * sysdeps/i386/fpu/w_log.c: New file.
8787         * sysdeps/ia64/fpu/e_log.S: Update.
8788         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
8789         and add necessary aliases.
8790         * sysdeps/ieee754/dbl-64/w_log.c: New file.
8791         * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
8792         * sysdeps/mach/hurd/i386/libm.abilist: Update.
8793         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
8794         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
8795         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
8796         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
8797         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
8798         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
8799         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
8800         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
8801         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
8802         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
8803         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
8804         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
8805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
8806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
8807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
8808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
8809         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
8810         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
8811         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
8812         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
8813         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
8814         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
8815         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
8816         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
8817         __log.
8818         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
8819         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
8820         * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
8821         * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
8823 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8825         * math/Versions (GLIBC_2.29): Add exp and exp2.
8826         * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
8827         symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
8828         * math/w_exp_compat.c (__exp_compat): Likewise.
8829         * math/w_exp.c: New file.
8830         * math/w_exp2.c: New file.
8831         * sysdeps/i386/fpu/w_exp.c: New file.
8832         * sysdeps/i386/fpu/w_exp2.c: New file.
8833         * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
8834         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
8835         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
8836         and add necessary aliases.
8837         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
8838         and add necessary aliases.
8839         * sysdeps/ieee754/dbl-64/w_exp.c: New file.
8840         * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
8841         * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
8842         * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
8843         * sysdeps/mach/hurd/i386/libm.abilist: Update.
8844         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
8845         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
8846         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
8847         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
8848         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
8849         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
8850         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
8851         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
8852         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
8853         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
8854         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
8855         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
8856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
8857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
8858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
8859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
8860         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
8861         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
8862         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
8863         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
8864         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
8865         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
8866         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
8867         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
8868         (__ieee754_exp): Rename to __exp.
8869         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
8870         (__ieee754_exp): Rename to __exp.
8871         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
8872         (__ieee754_exp): Rename to __exp.
8873         * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
8874         __exp.
8875         * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
8877 2018-11-20  DJ Delorie  <dj@redhat.com>
8879         * malloc/malloc.c (tcache_entry): Add key field.
8880         (tcache_put): Set it.
8881         (tcache_get): Likewise.
8882         (_int_free): Check for double free in tcache.
8883         * malloc/tst-tcfree1.c: New.
8884         * malloc/tst-tcfree2.c: New.
8885         * malloc/Makefile: Run the new tests.
8886         * manual/probes.texi: Document memory_tcache_double_free probe.
8888         * dlfcn/dlerror.c (check_free): Prevent double frees.
8890 2018-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
8892         * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
8894 2018-11-20  Joseph Myers  <joseph@codesourcery.com>
8896         * conform/conformtest.py (ElementTest.run): Use unique identifiers
8897         in tests.  Use names for format arguments.
8898         (ConstantTest.run): Likewise.
8899         (SymbolTest.run): Likewise.
8900         (TypeTest.run): Likewise.
8901         (TagTest.run): Likewise.
8902         (FunctionTest.run): Likewise.
8903         (VariableTest.run): Likewise.
8904         (MacroFunctionTest.run): Likewise.
8905         (MacroStrTest.run): Likewise.
8906         (HeaderTests.__init__): Set self.num_tests.
8907         (HeaderTests.handle_test_line): Set test.num.  Increment
8908         self.num_tests.
8910 2018-11-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8912         * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
8913         (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
8914         SEEK_SET.
8916 2018-11-19  Mao Han  <han_mao@c-sky.com>
8918         * scripts/config.guess: Update to version 2018-08-29.
8919         * scripts/config.sub: Update to version 2018-08-29.
8921 2018-11-19  Florian Weimer  <fweimer@redhat.com>
8923         support: Print timestamps in timeout handler.
8924         * support/support_test_main.c (print_timestamp): New function.
8925         (signal_handler): Use it to print the termination time and the
8926         time of the last write to standard output.
8928 2018-11-16  Zack Weinberg  <zackw@panix.com>
8929             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8931         * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
8932         (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
8933         argument.
8934         * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
8935         and add flags argument.  Check flags instead of __ldbl_is_dbl when
8936         deciding whether to set is_long_double.
8937         (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
8938         passing zero for flags argument.
8939         * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
8941         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8942         (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
8943         (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
8944         directly, passing STRFMON_LDBL_IS_DBL for flags argument.  Normalize
8945         variable names.  Remove libc_hidden_def/libc_hidden_proto from
8946         __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
8947         longer called from within the library.
8948         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
8949         for __nldbl___vstrfmon_l, declare it explicitly.
8951         * manual/locale.texi: Update a reference to vstrfmon_l in comments.
8953 2018-11-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8955         * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
8956         macros
8957         [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
8958         F_SETLK64, F_SETLKW64, respectively.
8959         * sysdeps/mach/hurd/f_setlk.c: New file.
8960         * sysdeps/mach/hurd/f_setlk.h: New file.
8961         * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
8962         f_setlk.
8963         * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
8964         (__libc_fcntl): Move non-flock operations to...
8965         * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
8966         * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
8968 2018-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8970         mktime: DEBUG_MKTIME cleanup
8971         The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
8972         And it’s no longer needed now that glibc and Gnulib both have
8973         their own testing mechanisms for mktime.
8974         * time/mktime.c (DEBUG_MKTIME): Remove.  All uses removed.
8976         mktime: fix non-EOVERFLOW errno handling
8977         [BZ#23789]
8978         mktime was not properly reporting failures when the underlying
8979         localtime_r fails with errno != EOVERFLOW; it incorrectly treated
8980         them like EOVERFLOW failures, and set errno to EOVERFLOW.
8981         The problem could happen on non-glibc platforms, with Gnulib.
8982         * time/mktime.c (guess_time_tm): Remove, replacing with ...
8983         (tm_diff): ... this simpler function, which does not change errno.
8984         All callers changed to deal with errno themselves.
8985         (ranged_convert, __mktime_internal): Return failure immediately if
8986         the underlying function reports any failure other than EOVERFLOW.
8987         (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
8988         gap code fails.
8990         mktime: fix bug with Y2038 DST transition
8991         [BZ#23789]
8992         * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
8993         mishandle a DST transition that jumps over the Y2038 boundary.
8994         No such DST transitions are known so this is only a theoretical
8995         bug, but we might as well do things right.
8997         mktime: make more room for overflow
8998         [BZ#23789]
8999         * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
9000         This is so that we can add tm_diff results to a previous guess,
9001         which will be useful in a later patch.
9003         mktime: simplify offset guess
9004         [BZ#23789]
9005         * time/mktime.c (__mktime_internal): Omit excess precision.
9007         mktime: new test for mktime failure
9008         [BZ#23789]
9009         Based on a test suggested by Albert Aribaud in:
9010         https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
9011         * time/Makefile (tests): Add bug-mktime4.
9012         * time/bug-mktime4.c: New file.
9014         mktime: fix EOVERFLOW bug
9015         [BZ#23789]
9016         * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
9017         Include libc-config.h, not config.h, for __set_errno.
9018         (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
9020 2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9022         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
9023         __attribute_copy__ to copy attributes from name. Drop static qualifier
9024         to avoid warnings about leaf attribute not having effect on static
9025         functions.
9027 2018-11-13  Florian Weimer  <fweimer@redhat.com>
9029         * malloc/malloc.c (fastbin_push_entry): New function.
9030         (fastbin_pop_entry): Likewise.  Replaces REMOVE_FB.
9031         (REMOVE_FB): Remove macro.
9032         (_int_malloc): Use fastbin_pop_entry and reindent.
9033         (_int_free): Use fastbin_push_entry.
9034         (malloc_consolidate): Use atomic_exchange_acquire.
9036 2018-11-13  Joseph Myers  <joseph@codesourcery.com>
9038         * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
9039         alias attribute, not with strong_alias.
9041         * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
9042         (__hidden_ver2): New macro.  Use old definition of __hidden_ver1
9043         with additional parameter thread.
9044         [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
9045         in terms of __hidden_ver2.
9046         (hidden_tls_def): New macro.
9047         (libc_hidden_tls_def): Likewise.
9048         (rtld_hidden_tls_def): Likewise.
9049         (libm_hidden_tls_def): Likewise.
9050         (libmvec_hidden_tls_def): Likewise.
9051         (libresolv_hidden_tls_def): Likewise.
9052         (librt_hidden_tls_def): Likewise.
9053         (libdl_hidden_tls_def): Likewise.
9054         (libnss_files_hidden_tls_def): Likewise.
9055         (libnsl_hidden_tls_def): Likewise.
9056         (libnss_nisplus_hidden_tls_def): Likewise.
9057         (libutil_hidden_tls_def): Likewise.
9058         (libutil_hidden_tls_def): Likweise.
9059         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
9060         libc_hidden_tls_def.
9061         (__sim_disabled_exceptions_thread): Likewise.
9062         (__sim_round_mode_thread): Likewise.
9064         * sysdeps/sparc/sparc-ifunc.h [SHARED]
9065         (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
9066         copy attributes from name.
9068 2018-11-12  Joseph Myers  <joseph@codesourcery.com>
9070         * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
9071         Use __attribute_copy__ to copy attributes from name.
9073         * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
9074         with __hidden_ver1 call.
9075         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
9076         * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
9077         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
9078         (__cosf): Do not declare here.
9079         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
9080         (__sincosf): Do not declare here.
9081         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
9082         (__sinf): Do not declare here.
9084         * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
9085         (__BIG_ENDIAN): Likewise.
9086         (__BYTE_ORDER): Likewise.
9087         (strong_alias): Likewise.
9088         (_strong_alias): Likewise.
9090 2018-11-12  Florian Weimer  <fweimer@redhat.com>
9092         * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
9093         function.  Move after the definition of in_smallbin_range.  Do not
9094         use __builtin_expect for paths that lead to a noreturn function.
9095         Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
9096         because it is unclear whether this is in fact an unlikely
9097         condition.
9098         (_int_malloc, _int_free): Adjust.
9099         (malloc_consolidate, _int_realloc): Adjust.  Remove bck, fwd
9100         variables.
9101         * malloc/arena.c (heap_trim): Likewise.
9103 2018-11-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9105         * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
9106         it, free it if needed.
9107         (reauthenticate): Test and use ccwdir.
9108         (child_init_port): In non-resetids case, test and use ccwdir.
9109         (child_chdir): New nested function to set ccwdir.
9110         * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
9111         * hurd/hurd/port.h (_hurd_port_move): New function.
9112         * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
9113         (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
9114         * hurd/Versions (_hurd_port_move): Export function.
9115         * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
9116         symbol.
9117         * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
9118         of dtablesize for allocating dtable_cloexec.
9120 2018-11-09  Martin Sebor  <msebor@redhat.com>
9122         * include/libc-symbols.h (__attribute_copy__): Define macro unless
9123         it's already defined.
9124         (_strong_alias): Use __attribute_copy__.
9125         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
9126         * misc/sys/cdefs.h (__attribute_copy__): New macro.
9127         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
9128         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
9129         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
9130         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
9131         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
9132         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
9133         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
9134         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
9135         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
9136         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
9137         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
9138         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
9139         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
9140         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
9141         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
9142         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
9143         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
9145 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9147         * misc/tst-efgcvt.c: Include support/check.h and
9148         support/test-driver.c.  Do not include test-skeleton.c.
9149         (error_count): Remove.
9150         (output_error): Replace increments to error_count with calls to
9151         support_record_failure.
9152         (output_r_error): Likewise.
9153         (special): Likewise.
9154         (do_test): Unconditionally return zero.
9155         (TEST_FUNCTION): Remove.
9157 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
9159         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
9160         not $(@D)/scratch.
9161         ($(linknamespace-header-tests)): Likewise.
9163         * conform/conformtest.py: New file.
9164         * conform/conformtest.pl: Remove.
9165         * conform/GlibcConform.pm: Likewise.
9166         * conform/glibcconform.py (KEYWORDS_C90): New constant.
9167         (KEYWORDS_C99): Likewise.
9168         (KEYWORDS): Likewise.
9169         * conform/Makefile ($(conformtest-header-tests)): Use
9170         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
9171         option.  Use --header instead of --headers.
9172         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
9173         function entries.
9174         * conform/data/spawn.h-data: Likewise.
9175         * conform/data/fcntl.h-data (openat): Add space after function
9176         name.
9177         * conform/data/wchar.h-data (wcscasecmp): Likewise.
9178         (wcscasecmp_l): Likewise.
9179         * conform/data/termios.h-data (c_cc): Add space after element
9180         name.
9182 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9184         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
9185         instead of manually comparing and reporting mismatching strings.
9186         * misc/tst-ldbl-error.c (do_one_test): Likewise.
9187         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
9189 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
9191         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
9192         __ASSUME_SOCKETCALL.
9193         * sysdeps/unix/sysv/linux/i386/kernel-features.h
9194         (__ASSUME_SOCKETCALL): Remove.
9195         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
9196         (__ASSUME_SOCKETCALL): Likewise.
9197         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9198         (__ASSUME_SOCKETCALL): Likewise.
9199         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
9200         (__ASSUME_SOCKETCALL): Likewise.
9201         * sysdeps/unix/sysv/linux/s390/kernel-features.h
9202         (__ASSUME_SOCKETCALL): Likewise.
9203         * sysdeps/unix/sysv/linux/sh/kernel-features.h
9204         (__ASSUME_SOCKETCALL): Likewise.
9205         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9206         (__ASSUME_SOCKETCALL): Likewise.
9208 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
9210         [BZ #23509]
9211         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
9212         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
9213         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
9214         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
9215         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
9216         lc_unknown.
9218 2018-11-08  Alexandra Hájková  <ahajkova@redhat.com>
9220         [BZ #17630]
9221         * resolv/tst-resolv-network.c: Add test for getnetbyname.
9223 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
9225         [BZ #23867]
9226         * sysdeps/unix/sysv/linux/arm/kernel-features.h
9227         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
9228         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9229         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
9231 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9233         * support/support_test_compare_string.c
9234         (support_test_compare_string): Fix printf format.
9236 2018-11-07  Florian Weimer  <fweimer@redhat.com>
9238         Implement TEST_COMPARE_STRING.
9239         * support/check.h (TEST_COMPARE_STRING): Define.
9240         (support_test_compare_string): Declare.
9241         * support/Makefile (libsupport-routines): Add
9242         support_test_compare_string.
9243         (tests): Add tst-test_compare_string.
9244         * support/support_test_compare_string.c: New file.
9245         * support/tst-test_compare_string.c: Likewise.
9247 2018-11-07  Andreas Schwab  <schwab@suse.de>
9249         [BZ #23864]
9250         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
9251         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
9252         Undef.
9254 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
9256         [BZ #23862]
9257         * sysdeps/unix/sysv/linux/sh/kernel-features.h
9258         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
9259         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
9260         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
9261         Likewise.
9263 2018-11-06  Florian Weimer  <fweimer@redhat.com>
9265         [BZ #17405]
9266         * posix/Makefile (routines): Add spawn_faction_addchdir.
9267         (tests): Add tst-spawn-chdir.
9268         * posix/Versions (GLIBC_2.29): Add
9269         posix_spawn_file_actions_addchdir_np.
9270         * posix/spawn_faction_addchdir.c: New file.
9271         * posix/spawn_faction_destroy.c
9272         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
9273         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
9274         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
9275         chdir_action.
9276         * posix/tst-spawn-chdir.c: New file.
9277         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
9278         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9279         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9280         posix_spawn_file_actions_addchdir_np.
9281         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9282         Likewise.
9283         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9284         Likewise.
9285         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9286         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9287         Likewise.
9288         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9289         Likewise.
9290         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9291         Likewise.
9292         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9293         Likewise.
9294         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9295         Likewise.
9296         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9297         Likewise.
9298         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9299         (GLIBC_2.29): Likewise.
9300         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9301         (GLIBC_2.29): Likewise.
9302         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9303         (GLIBC_2.29): Likewise.
9304         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9305         (GLIBC_2.29): Likewise.
9306         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9307         Likewise.
9308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9309         (GLIBC_2.29): Likewise.
9310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9311         (GLIBC_2.29): Likewise.
9312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9313         (GLIBC_2.29): Likewise.
9314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9315         (GLIBC_2.29): Likewise.
9316         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9317         Likewise.
9318         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9319         Likewise.
9320         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9321         Likewise.
9322         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9323         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9324         Likewise.
9325         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9326         Likewise.
9327         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9328         Likewise.
9329         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9330         Likewise.
9332 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9334         * misc/Makefile (tests): Add tst-ldbl-error.
9335         * misc/tst-ldbl-error.c: New file.
9337 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9339         * misc/Makefile (tests): Add tst-ldbl-warn.
9340         * misc/tst-ldbl-warn.c: New file.
9342 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9344         * argp/Makefile (tests): Add tst-ldbl-argp.
9345         * argp/tst-ldbl-argp.c: New file.
9347 2018-11-05  Arjun Shankar  <arjun@redhat.com>
9349         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
9350         __gconv_path_elem and call __gconv_get_path unconditionally.
9352 2018-11-05  Andreas Schwab  <schwab@suse.de>
9354         [BZ #22927]
9355         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
9356         creating the first helper thread failed.
9358 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9360         * sysdeps/mach/hurd/msync.c: New file.
9362 2018-11-02  Florian Weimer  <fweimer@redhat.com>
9364         * support/shell-container.c (copy_func): Call
9365         support_copy_file_range instead of copy_file_range to support
9366         cross-device copies.
9368 2018-11-02  Florian Weimer  <fweimer@redhat.com>
9370         * support/test-container.c: Include <libc-pointer-arith.h> for
9371         ALIGN_UP.
9373 2018-11-01  Zong Li  <zong@andestech.com>
9375         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
9376         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
9377         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
9378         (__FP_FRAC_SET_8): Add implementation for RV32 use.
9380         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
9381         variable to avoid overlap arguments.
9383 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
9385         * posix/bug-regex22.c (main): Use puts with distinct error
9386         messages for unexpected success of re_compile_pattern, not printf
9387         with NULL argument to %s.
9389         * stdio-common/bug22.c: Include <libc-diag.h>.
9390         (do_test): Disable -Wformat-overflow= warnings around fprintf
9391         calls outputting more than INT_MAX characters.
9392         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
9393         around printf call with NULL %s argument.
9395         [BZ #23848]
9396         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
9397         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
9398         Undefine.
9399         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
9400         (__ASSUME_RECVMSG_SYSCALL): Likewise.
9401         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
9402         (__ASSUME_SENDTO_SYSCALL): Likewise.
9403         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
9404         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
9405         [!__arch64__].
9406         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
9407         (__ASSUME_CONNECT_SYSCALL): Likewise.
9408         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
9409         (__ASSUME_RECVFROM_SYSCALL): Likewise.
9410         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
9411         Define.
9412         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
9413         Likewise.
9414         [__LINUX_KERNEL_VERSION >= 0x040400]
9415         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
9416         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
9417         Remove.
9418         (listen): Likewise.
9419         (setsockopt): Likewise.
9421 2018-11-01  Fredrik Noring  <noring@nocrew.org>
9423         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
9424         with the ISA override.
9426 2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
9428         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
9429         #endif.
9431 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9433         * manual/errno.texi (EIEIO): Document how translators should
9434         translate the error message.
9435         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
9436         printing trailing whitespaces refused by git.
9437         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
9438         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
9439         * hurd/Makefile (user-interfaces): Add pci.
9441 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
9443         * conform/linknamespace.py: New file.
9444         * conform/linknamespace.pl: Remove file.
9445         * conform/Makefile ($(linknamespace-header-tests)): Use
9446         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
9447         option.
9449 2018-10-30  Florian Weimer  <fweimer@redhat.com>
9451         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
9452         memory leaks.
9454 2018-10-30  Florian Weimer  <fweimer@redhat.com>
9456         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
9458 2018-10-30  Florian Weimer  <fweimer@redhat.com>
9460         * stdlib/tst-strtod-overflow.c (do_test): Switch to
9461         support_blob_repeat.
9463 2018-10-30  Florian Weimer  <fweimer@redhat.com>
9465         Avoid spurious test failures in stdlib/test-bz22786.
9466         * support/Makefile (libsupport-routines): Add blob_repeat.
9467         (tests): Add tst-support_blob_repeat.
9468         * support/blob_repeat.h: New file.
9469         * support/blob_repeat.c: Likewise.
9470         * support/tst-support_blob_repeat.c: Likewise.
9471         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
9472         support_blob_repeat_allocate.
9474 2018-10-30  Andreas Schwab  <schwab@suse.de>
9476         [BZ #23125]
9477         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
9478         Don't use tail call.
9479         * elf/tst-unwind-main.c: New file.
9480         * elf/Makefile (tests): Add tst-unwind-main.
9481         (CFLAGS-tst-unwind-main.c): Define.
9483 2018-10-29  Sergi Almacellas Abellana  <sergi@koolpi.com>
9485         [BZ #23791]
9486         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
9487         n_cs_precedes to 0.
9488         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
9490 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
9492         * conform/glibcconform.py: Do not import shutil.
9493         (list_exported_functions): Use tempfile.TemporaryDirectory instead
9494         of mkdtemp.
9496         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
9497         critic_missing for versions before 3.4.
9498         * configure: Regenerated.
9499         * manual/install.texi (Tools for Compilation): Document
9500         requirement for Python to build glibc.
9501         * INSTALL: Regenerated.
9502         * Rules [PYTHON]: Make code unconditional.
9503         * benchtests/Makefile [PYTHON]: Likewise.
9504         * conform/Makefile [PYTHON]: Likewise.
9505         * manual/Makefile [PYTHON]: Likewise.
9506         * math/Makefile [PYTHON]: Likewise.
9508 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9510         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
9511         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
9512         answer to interrupt_operation, return EIEIO instead of EINTR.
9513         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
9514         _hurd_intr_rpc_msg_about_to global point to start of controlled
9515         assembly snippet. Make it check canceled flag.
9516         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
9517         the _hurd_intr_rpc_msg_about_to point.
9518         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
9519         issue, remove cancel flag check.
9521 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
9523         * scripts/build-many-glibcs.py: Remove compatibility for missing
9524         os.cpu_count and re.fullmatch.
9526 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9528         [BZ #23822]
9529         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
9530         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
9531         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
9533 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
9535         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
9536         macro.
9538 2018-10-25  Florian Weimer  <fweimer@redhat.com>
9540         [BZ #23562]
9541         [BZ #23821]
9542         XFAIL siginfo_t si_band conform test on sparc64.
9543         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
9544         (__SI_BAND_TYPE): Only override long int default type on sparc64.
9545         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
9546         (conformtest-xfail-conds): Add sparc64-linux.
9547         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
9548         sparc64.
9549         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
9551 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
9553         * elf/elf.h (NT_MIPS_DSP): New macro.
9554         (NT_MIPS_FP_MODE): Likewise.
9556 2018-10-25  Zong Li  <zong@andestech.com>
9558         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
9559         name by adding the file extension (.so).
9561 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9563         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
9564         (test-xfail-ISO11/threads.h/linknamespace,
9565         test-xfail-ISO11/threads.h/conform): Add.
9567 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
9569         * math/gen-libm-test.py: Import os.
9570         (ALL_FLOATS_MANUAL): New constant.
9571         (ALL_FLOATS_SUFFIX): Likewise.
9572         (Ulps.all_functions): New function.
9573         (real_all_ulps): Likewise.
9574         (generate_err_table_sub): Likewise.
9575         (generate_err_table): Likewise.
9576         (main): Handle -s and -m options.
9577         * manual/libm-err-tab.pl: Remove.
9578         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
9579         instead of libm-err-tab.pl.
9580         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
9581         != no].
9582         * manual/install.texi (Tools for Compilation): Document
9583         requirement for Python to build manual.
9584         * INSTALL: Regenerated.
9586 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
9588         * bits/time64.h: New file.
9589         * include/time.h: Replace internal_time_t with __time64_t.
9590         * posix/bits/types (__time64_t): Add.
9591         * stdlib/Makefile: Add bits/time64.h to includes.
9592         * time/tzfile.c: Replace internal_time_t with __time64_t.
9594 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9596         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
9597         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
9598         __posix_spawn_file_actions_init, __posix_spawnattr_init,
9599         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
9600         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
9601         prototype.
9602         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
9603         * posix/spawn_faction_addclose.c
9604         (__posix_spawn_file_actions_addclose): Add hidden definition.
9605         * posix/spawn_faction_adddup2.c
9606         (__posix_spawn_file_actions_adddup2): Likewise.
9607         * posix/spawn_faction_destroy.c
9608         (__posix_spawn_file_actions_destroy): Likewise.
9609         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
9610         Likewise.
9611         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
9612         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
9613         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
9614         Likewise.
9615         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
9616         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
9617         Likewise.
9619 2018-10-24  Andreas Schwab  <schwab@suse.de>
9621         [BZ #18093]
9622         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
9623         format cache.
9624         * elf/cache.c (print_cache): Likewise.
9626 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
9628         * bits/timesize.h: New file.
9629         * stdlib/Makefile (headers): Add bits/timesize.h.
9630         * sysdeps/unix/sysv/linux/bits/msq-pad.h
9631         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
9632         * sysdeps/unix/sysv/linux/bits/sem-pad.h
9633         (__SEM_PAD_AFTER_TIME): Likewise.
9634         * sysdeps/unix/sysv/linux/bits/shm-pad.h
9635         (__SHM_PAD_AFTER_TIME): Likewise.
9636         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
9637         (__MSQ_PAD_BEFORE_TIME): Likewise.
9638         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
9639         (__SEM_PAD_BEFORE_TIME): Likewise.
9640         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
9641         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
9642         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
9643         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
9644         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
9645         (__MSQ_PAD_BEFORE_TIME): Likewise.
9646         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
9647         (__SEM_PAD_BEFORE_TIME): Likewise.
9648         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
9649         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
9650         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
9651         (__MSQ_PAD_BEFORE_TIME): Likewise.
9652         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
9653         (__SEM_PAD_BEFORE_TIME): Likewise.
9654         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
9655         (__SHM_PAD_BEFORE_TIME): Likewise.
9656         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
9657         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
9658         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
9660 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
9662         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
9663         USE_RDTSCP is defined.
9664         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
9665         USE_RDTSCP is defined.
9667 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9669         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
9670         defined.
9672         [BZ #23709]
9673         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
9674         independently of other flags.
9676 2018-10-23  Florian Weimer  <fweimer@redhat.com>
9678         * time/tst-mktime2.c (N_STRINGS): Remove.
9679         (set_timezone): New function.
9680         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
9681         (mktime_test1): Report localtime failure and check errno value.
9682         Use TEST_COMPARE.
9683         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
9684         (do_test): Remove alarm call. Use set_timezone and array_length.
9686 2018-10-23  Andreas Schwab  <schwab@suse.de>
9688         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
9689         (__start_context): Use END instead of PSEUDO_END.
9691 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
9693         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9694         version to 4.19.
9696         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9697         version to 4.19.
9699         [BZ #23793]
9700         * wcsmbs/c32rtomb.c: New file.
9701         * wcsmbs/mbrtoc32.c: Likewise.
9702         * wcsmbs/tst-c32-state.c: Likewise.
9703         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
9704         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
9705         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
9706         (tests): Add tst-c32-state.
9707         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
9708         $(gen-locales).
9710 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
9712         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
9713         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
9715 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
9717         [BZ #23794]
9718         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
9719         pair and return 0 in that case, and use saved character to
9720         interpret following character.
9721         * wcsmbs/tst-c16-surrogate.c: New file.
9722         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
9723         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
9724         Depend on $(gen-locales)
9726 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
9728         [BZ #23562]
9729         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
9730         (struct siginfo_t): Use correct type for si_band.
9732 2018-10-19  Florian Weimer  <fweimer@redhat.com>
9734         [BZ #23689]
9735         * resource/bits/types/struct_rusage.h (struct rusage): Update
9736         comment on struct.  Remove extraneous field comment.
9738 2018-10-18  David S. Miller  <davem@davemloft.net>
9740         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
9741         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
9742         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
9743         sysdep_routines in subdir elf.
9744         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
9745         version for __vdso_clock_gettime.
9746         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
9747         Define.
9748         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
9749         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
9751         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
9753 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
9755         * sysdeps/i386/init-arch.h: Removed.
9756         * sysdeps/i386/i586/init-arch.h: Likewise.
9757         * sysdeps/i386/i686/init-arch.h: Likewise.
9758         * sysdeps/i386/i686/hp-timing.h: Likewise.
9759         * sysdeps/x86_64/hp-timing.h: Likewise.
9760         * sysdeps/i386/isa.h: New file.
9761         * sysdeps/i386/i586/isa.h: Likewise.
9762         * sysdeps/i386/i686/isa.h: Likewise.
9763         * sysdeps/x86_64/isa.h: Likewise.
9764         * sysdeps/x86/hp-timing.h: New file.
9765         * sysdeps/x86/init-arch.h: Include <isa.h>.
9767 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
9769         * math/libm-test-pow.inc (pow_test_data): Do not allow
9770         divide-by-zero exception for pow(+/- 0, -Inf).
9772 2018-10-17  Zack Weinberg  <zackw@panix.com>
9774         * manual/job.texi (Job Control is Optional): Remove node, as
9775         job control has not been optional in quite some time.
9776         (Job Control): Mention briefly that systems older than
9777         POSIX.1-2001 might not support job control.
9778         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
9779         defined on systems conforming to POSIX.1-2001.
9781 2018-10-17  Arjun Shankar  <arjun@redhat.com>
9783         [BZ #22062]
9784         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
9785         indentation.
9786         * (__gconv_read_conf): Mark function static.
9787         * (once): New static variable.
9788         * (__gconv_load_conf): New function.
9789         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
9790         * iconv/gconv_db.c (once): Remove static variable.
9791         * (__gconv_compare_alias): Use __gconv_load_conf instead of
9792         __gconv_read_conf.
9793         * (__gconv_find_transform): Likewise.
9794         * iconv/tst-iconv-mt.c: New test.
9795         * iconv/Makefile: Add tst-iconv_mt.
9797 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
9799         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9800         bits/shm-pad.h.
9801         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
9802         (shmatt_t): Define as __syscall_ulong_t.
9803         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
9804         and [__SHM_PAD_AFTER_TIME].
9805         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
9806         Define shm_segsz and associated padding based on
9807         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
9808         Use __syscall_ulong_t instead of unsigned long int.
9809         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
9810         unsigned long int.
9811         [__USE_MISC] (struct shm_info): Likewise.
9812         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
9813         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
9814         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
9815         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
9816         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
9817         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
9818         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
9819         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
9820         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
9821         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
9822         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
9824         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9825         bits/shmlba.h.
9826         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
9827         (SHMLBA): Remove macro.
9828         (__getpagesize): Remove function declaration.
9829         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
9830         <bits/shmlba.h>.
9831         (SHMLBA): Remove macro.
9832         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
9833         <bits/shmlba.h>.
9834         (SHMLBA): Remove macro.
9835         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
9836         <bits/shmlba.h>.
9837         (SHMLBA): Remove macro.
9838         (__getpagesize): Remove function declaration.
9839         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
9840         <bits/shmlba.h>.
9841         (SHMLBA): Remove macro.
9842         (__getshmlba): Remove function declaration.
9843         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
9844         (SHMLBA): Remove macro.
9845         (__getpagesize): Remove function declaration.
9846         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
9847         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
9848         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
9849         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
9850         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
9851         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
9852         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
9853         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
9854         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
9855         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
9857 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
9859         [BZ #23275]
9860         * nptl/tst-mutex10.c: New File.
9861         * nptl/Makefile (tests): Add tst-mutex10.
9862         (tst-mutex10-ENV): New variable.
9863         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
9864         Ensure that elision path is used if elision is available.
9865         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
9866         Likewise.
9867         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
9868         Likewise.
9869         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
9870         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
9871         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
9872         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
9873         Likewise.
9874         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
9875         (__pthread_mutex_cond_lock_adjust): Likewise.
9876         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
9877         Likewise.
9878         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
9879         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
9880         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
9881         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
9882         Add comments.
9883         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9884         Use atomic_load_relaxed and atomic_store_relaxed.
9885         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
9886         Use atomic_store_relaxed.
9888 2018-10-17  Andreas Schwab  <schwab@suse.de>
9890         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
9891         * crypt/badsalttest.c (TIMEOUT): Likewise.
9892         * crypt/sha256c-test.c (TIMEOUT): Likewise.
9893         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
9894         * io/test-lfs.c (TIMEOUT): Likewise.
9895         * libio/tst-atime.c (TIMEOUT): Likewise.
9896         * localedata/tst-leaks.c (TIMEOUT): Likewise.
9897         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
9898         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
9899         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
9900         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
9901         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
9902         * nptl/tst-cond11.c (TIMEOUT): Likewise.
9903         * nptl/tst-cond14.c (TIMEOUT): Likewise.
9904         * nptl/tst-cond15.c (TIMEOUT): Likewise.
9905         * nptl/tst-cond24.c (TIMEOUT): Likewise.
9906         * nptl/tst-cond25.c (TIMEOUT): Likewise.
9907         * nptl/tst-kill2.c (TIMEOUT): Likewise.
9908         * nptl/tst-kill3.c (TIMEOUT): Likewise.
9909         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
9910         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
9911         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
9912         * nptl/tst-once2.c (TIMEOUT): Likewise.
9913         * nptl/tst-once3.c (TIMEOUT): Likewise.
9914         * nptl/tst-once4.c (TIMEOUT): Likewise.
9915         * nptl/tst-robust8.c (TIMEOUT): Likewise.
9916         * nptl/tst-robust9.c (TIMEOUT): Likewise.
9917         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
9918         * nptl/tst-sem14.c (TIMEOUT): Likewise.
9919         * nptl/tst-sem6.c (TIMEOUT): Likewise.
9920         * nptl/tst-signal3.c (TIMEOUT): Likewise.
9921         * nptl/tst-spin4.c (TIMEOUT): Likewise.
9922         * nptl/tst-tls3.c (TIMEOUT): Likewise.
9923         * nptl/tst-tls4.c (TIMEOUT): Likewise.
9924         * posix/tst-chmod.c (TIMEOUT): Likewise.
9925         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
9926         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
9927         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
9928         * posix/tst-regex2.c (TIMEOUT): Likewise.
9929         * posix/tst-waitid.c (TIMEOUT): Likewise.
9930         * rt/tst-aio.c (TIMEOUT): Likewise.
9931         * rt/tst-aio10.c (TIMEOUT): Likewise.
9932         * rt/tst-aio4.c (TIMEOUT): Likewise.
9933         * rt/tst-aio5.c (TIMEOUT): Likewise.
9934         * rt/tst-aio6.c (TIMEOUT): Likewise.
9935         * rt/tst-aio64.c (TIMEOUT): Likewise.
9936         * rt/tst-aio7.c (TIMEOUT): Likewise.
9937         * rt/tst-aio9.c (TIMEOUT): Likewise.
9938         * rt/tst-clock.c (TIMEOUT): Likewise.
9939         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
9940         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
9941         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
9942         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
9943         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
9944         * rt/tst-timer4.c (TIMEOUT): Likewise.
9945         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
9946         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
9947         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
9948         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
9949         * time/tst-ftime.c (TIMEOUT): Likewise.
9950         * timezone/tst-tzset.c (TIMEOUT): Likewise.
9952 2018-10-16  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
9954         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
9955         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
9956         for thunderX2.
9958 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
9960         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9961         bits/sem-pad.h.
9962         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
9963         instead of <bits/wordsize.h>.
9964         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
9965         and [__SEM_PAD_AFTER_TIME].
9966         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
9967         __syscall_ulong_t instead of unsigned long int.
9968         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
9969         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
9970         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
9971         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
9972         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
9973         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
9974         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
9975         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
9976         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
9977         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
9978         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
9980 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9982         regex: simplify by using intprops.h
9983         [BZ#23744]
9984         * posix/regex_internal.h [_LIBC]: Include intprops.h.
9985         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
9986         intprops.h defines them.
9988         regex: __builtin_expect → __glibc_unlikely
9989         [BZ#23744]
9990         This refactoring was prompted by a problem when the regex code is
9991         used as part of Gnulib and when the builder’s compiler does not grok
9992         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
9993         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
9994         Although this refactoring does not fix the problem directly,
9995         we might as well have Gawk use the now-preferred glibc style for when
9996         __builtin_expect is unavailable.
9997         * posix/regex_internal.h (BE): Remove.
9998         All uses replaced by __glibc_unlikely or __glibc_likely.
10000 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
10002         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10003         bits/msq-pad.h.
10004         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
10005         instead of <bits/wordsize.h>.
10006         (msgqnum_t): Define as __syscall_ulong_t.
10007         (msglen_t): Likewise.
10008         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
10009         and [__MSQ_PAD_AFTER_TIME].
10010         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
10011         __syscall_ulong_t instead of unsigned long int.
10012         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
10013         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
10014         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
10015         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
10016         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
10017         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
10018         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
10019         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
10020         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
10021         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
10022         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
10024 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
10026         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
10027         (struct shmid_ds): Condition padding after time fields on
10028         [__WORDSIZE == 32].
10029         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
10030         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
10031         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
10033         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
10034         (struct semid_ds): Condition padding after time fields on
10035         [__WORDSIZE == 32].
10036         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
10037         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
10038         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
10039         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
10041         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
10042         (struct msqid_ds): Condition padding after time fields on
10043         [__WORDSIZE == 32].
10044         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
10045         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
10046         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
10047         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
10049 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10051         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
10053 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10055         * libio/tst-readline.c (TIMEOUT): Define.
10057 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10059         mktime fix for Gnulib + coreutils
10060         [BZ#23745]
10061         This fix affects only Gnulib.  Problem discovered when
10062         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
10063         * time/mktime.c:
10064         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
10065         Do not define since it is not used.  Defining an unused static
10066         function prompts a warning from GCC when Coreutils is configured
10067         with --enable-gcc-warnings.
10069 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
10071         * benchtests/scripts/compare_bench.py (main): set float type on
10072         threshold argument.
10074 2018-10-08  Rafal Luzynski  <digitalfreak@lingonborough.com>
10076         [BZ #23740]
10077         * localedata/locales/kl_GL (mon): Update, the relative case.
10078         (alt_mon): Add, fill with month names in the nominative case.
10079         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
10080         (d_fmt): Set to "%b %d %Y".
10082 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
10084         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
10085         <bits/mman-linux.h>.
10086         (PROT_READ): Don't define here.
10087         (PROT_WRITE): Likewise.
10088         (PROT_EXEC): Likewise.
10089         (PROT_NONE): Likewise.
10090         (PROT_GROWSDOWN): Likewise.
10091         (PROT_GROWSUP): Likewise.
10092         (MAP_SHARED): Likewise.
10093         (MAP_PRIVATE): Likewise.
10094         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
10095         [__USE_MISC] (MAP_FILE): Likewise.
10096         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
10097         [__USE_MISC] (MAP_ANON): Likewise.
10098         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
10099         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
10100         (MCL_CURRENT): Likewise.
10101         (MCL_FUTURE): Likewise.
10102         (MCL_ONFAULT): Likewise.
10103         [__USE_MISC] (MADV_NORMAL): Likewise.
10104         [__USE_MISC] (MADV_RANDOM): Likewise.
10105         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
10106         [__USE_MISC] (MADV_WILLNEED): Likewise.
10107         [__USE_MISC] (MADV_DONTNEED): Likewise.
10108         [__USE_MISC] (MADV_FREE): Likewise.
10109         [__USE_MISC] (MADV_REMOVE): Likewise.
10110         [__USE_MISC] (MADV_DONTFORK): Likewise.
10111         [__USE_MISC] (MADV_DOFORK): Likewise.
10112         [__USE_MISC] (MADV_HWPOISON): Likewise.
10113         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
10114         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
10115         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
10116         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
10117         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
10118         (__MAP_ANONYMOUS): New macro.
10119         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
10120         <bits/mman-linux.h> inclusion.
10121         (MAP_FIXED): Likewise.
10122         (MS_SYNC): Likewise.
10123         (MS_ASYNC): Likewise.
10124         (MS_INVALIDATE): Likewise.
10125         [__USE_MISC] (MADV_MERGEABLE): Likewise.
10126         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
10127         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
10128         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
10129         [__USE_MISC] (MADV_DONTDUMP): Likewise.
10130         [__USE_MISC] (MADV_DODUMP): Likewise.
10131         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
10132         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
10134         [BZ #23735]
10135         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
10136         Define.
10137         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
10138         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
10139         Add test-nldbl-redirect.
10140         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
10141         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
10142         $(objpfx)libnldbl_nonshared.a.
10144 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
10146         * support/support.h (support_objdir_elf_ldso): New variable.
10147         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
10148         * support/Makefile (CFLAGS-support_paths.c): Add definition
10149         for OBJDIR_ELF_LDSO_PATH.
10150         * support/test-container.c (main): Search for the ld.so
10151         which is also used by the testsuite.
10153 2018-10-02  Rafal Luzynski  <digitalfreak@lingonborough.com>
10155         [BZ #20209]
10156         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
10157         should be "sap" rather than "sab".
10158         (day): Fix spelling of Sunday, should be "sapaat" rather than
10159         "sabaat".
10161 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
10163         * math/libm-test-fma.inc (fma_test_data): Add more tests.
10165 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
10167         [BZ #19444]
10168         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
10169         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
10170         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
10172 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10174         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
10176 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
10178         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
10179         Add -mrtm.
10180         (CFLAGS-elision-unlock.c): Likewise.
10181         (CFLAGS-elision-timed.c): Likewise.
10182         (CFLAGS-elision-trylock.c): Likewise.
10183         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
10185 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10187         [BZ #21037]
10188         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
10189         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
10190         new fd_to_filename interface.
10191         * libio/freopen64.c (freopen64): Likewise.
10192         * libio/tst-memstream.h: New file.
10193         * libio/tst-memstream4.c: Likewise.
10194         * libio/tst-wmemstream4.c: Likewise.
10195         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
10196         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
10197         and remove internal dynamic allocation.
10199 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
10201         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
10202         (MREMAP_MAYMOVE): Do not define here.
10203         [__USE_GNU] (MREMAP_FIXED): Likewise.
10204         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
10205         (MREMAP_MAYMOVE): Define here instead.
10206         [__USE_GNU] (MREMAP_FIXED): Likewise.
10207         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
10208         (MREMAP_MAYMOVE): Remove.
10209         [__USE_GNU] (MREMAP_FIXED): Likewise.
10211 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
10213         * math/fromfp.h: Do not include <math_private.h>.
10214         * math/s_cacosh_template.c: Likewise.
10215         * math/s_casin_template.c: Likewise.
10216         * math/s_casinh_template.c: Likewise.
10217         * math/s_ccos_template.c: Likewise.
10218         * math/s_cproj_template.c: Likewise.
10219         * math/s_fdim_template.c: Likewise.
10220         * math/s_fmaxmag_template.c: Likewise.
10221         * math/s_fminmag_template.c: Likewise.
10222         * math/s_iseqsig_template.c: Likewise.
10223         * math/s_ldexp_template.c: Likewise.
10224         * math/s_nextdown_template.c: Likewise.
10225         * math/w_log1p_template.c: Likewise.
10226         * math/w_scalbln_template.c: Likewise.
10227         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
10228         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
10229         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
10230         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
10231         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
10232         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
10233         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
10234         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
10235         * sysdeps/i386/fpu/s_atanl.c: Likewise.
10236         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
10237         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
10238         * sysdeps/i386/fpu/s_fdim.c: Likewise.
10239         * sysdeps/i386/fpu/s_logbl.c: Likewise.
10240         * sysdeps/i386/fpu/s_rintl.c: Likewise.
10241         * sysdeps/i386/fpu/s_significandl.c: Likewise.
10242         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
10243         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
10244         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10245         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10246         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
10247         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10248         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10249         * sysdeps/ieee754/k_standardf.c: Likewise.
10250         * sysdeps/ieee754/k_standardl.c: Likewise.
10251         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10252         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
10253         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
10254         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
10255         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
10256         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
10257         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10258         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10259         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10260         * sysdeps/ieee754/s_signgam.c: Likewise.
10261         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
10262         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
10263         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
10264         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10265         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10266         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
10267         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
10268         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
10269         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
10270         * sysdeps/riscv/rvd/s_finite.c: Likewise.
10271         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
10272         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
10273         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
10274         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
10275         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
10276         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
10277         * sysdeps/riscv/rvf/fegetround.c: Likewise.
10278         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
10279         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
10280         * sysdeps/riscv/rvf/fesetround.c: Likewise.
10281         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
10282         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
10283         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
10284         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10285         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
10286         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10287         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
10288         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
10289         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
10290         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
10291         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
10292         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
10293         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
10294         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
10295         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
10296         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
10297         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
10298         <math_private.h>.
10299         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
10301 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
10303         [BZ #23716]
10304         * sysdeps/i386/dl-cet.c: Removed.
10305         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
10306         prototype.
10307         (_dl_runtime_profile_shstk): Likewise.
10308         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
10309         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
10311 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10313         [BZ #23579]
10314         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
10315         do_test_with_invalid_iov): New tests.
10316         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
10317         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
10318         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
10319         errno is ENOSYS.
10320         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
10321         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
10322         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
10324 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
10326         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10327         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
10328         (MATH_REDIRECT_BINARY_ARGS): New macro.
10329         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10330         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
10331         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
10332         header inclusion.
10333         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
10334         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10335         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
10336         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10337         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10338         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10339         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10340         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
10341         Likewise.
10342         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
10343         Likewise.
10344         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
10345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
10346         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
10347         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
10348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
10349         Likewise.
10350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
10351         Likewise.
10352         * sysdeps/generic/math_private_calls.h
10353         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
10354         Do not declare and define as an inline function.
10355         * math/divtc3.c (__divtc3): Use copysign functions instead of
10356         __copysign variants.
10357         * math/multc3.c (__multc3): Likewise.
10358         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
10359         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
10360         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
10361         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10362         Likewise.
10363         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10364         (__ieee754_yn): Likewise.
10365         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
10366         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
10367         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
10368         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10369         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
10370         (__sin): Likewise.
10371         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
10372         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10373         Likewise.
10374         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10375         Likewise.
10376         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10377         Likewise.
10378         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
10379         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10380         Likewise.
10381         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
10382         (__ieee754_ynf): Likewise.
10383         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
10384         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10385         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
10386         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10387         Likewise.
10388         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10389         (__ieee754_ynl): Likewise.
10390         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10391         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10392         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10393         Likewise.
10394         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
10395         (__ieee754_ynl): Likewise.
10396         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
10397         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10398         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10399         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10400         Likewise.
10401         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10402         (__ieee754_ynl)
10403         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
10404         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10405         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
10406         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
10407         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
10409         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10410         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
10411         using MATH_REDIRECT.
10412         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
10413         header inclusion.
10414         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
10415         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10416         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10417         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
10418         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10419         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10420         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10421         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
10422         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
10423         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
10424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
10425         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
10426         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
10427         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10428         (round): Redirect to __round.
10429         (__roundl): Call round instead of __round.
10430         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
10431         Remove macro.
10432         [_ARCH_PWR5X] (__roundf): Likewise.
10433         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
10434         functions instead of __round variants.
10435         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10436         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
10437         Likewise.
10438         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
10439         Likewise.
10440         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
10441         Likewise.
10442         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10443         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
10444         __lroundl.
10445         (__ieee754_expl): Call roundl instead of __roundl.
10447 2018-09-27  Andreas Schwab  <schwab@suse.de>
10449         [BZ #23717]
10450         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
10451         (do_test): Make st1 static.
10453 2018-09-26  Andreas Schwab  <schwab@suse.de>
10455         [BZ #23707]
10456         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
10457         * elf/Makefile (tests): Add tst-unwind-ctor.
10458         (modules-names): Add tst-unwind-ctor-lib.
10459         ($(objpfx)tst-unwind-ctor): Depend on
10460         $(objpfx)tst-unwind-ctor-lib.so.
10462 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
10464         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
10465         file.  Most contents moved from ....
10466         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
10467         and include <bits/mman-map-flags-generic.h>.
10468         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10469         (sysdep_headers): Add bits/mman-map-flags-generic.h.
10470         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
10471         <bits/mman-map-flags-generic.h>.
10472         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
10473         macros defined in <bits/mman-map-flags-generic.h>.
10474         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
10475         <bits/mman-map-flags-generic.h>.
10476         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
10477         defined in <bits/mman-map-flags-generic.h>.
10479 2018-09-26  Andreas Schwab  <schwab@suse.de>
10481         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
10482         output.
10484 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
10485             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10486             Fangrui Song  <maskray@google.com>
10488         [BZ #20480]
10489         * config.make.in (have-textrel_ifunc): New define.
10490         * configure.ac: Add check if linker supports textrel relocation with
10491         ifunc.
10492         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
10493         tst-ifunc-textrel.
10494         (CFLAGS-tst-ifunc-textrel.c): New rule.
10495         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
10496         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
10497         * elf/tst-ifunc-textrel.c: New file.
10499 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
10501         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
10502         <bits/procfs-prregset.h>.
10503         (prgregset_t): Define using __prgregset_t.
10504         (prfpregset_t): Define using __prfpregset_t.
10505         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10506         (sysdep_headers): Add bits/procfs-prregset.h.
10507         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
10508         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
10509         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
10510         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
10512         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
10513         <bits/procfs-id.h> and <bits/procfs-extra.h>.
10514         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
10515         pr_uid and pr_gid.
10516         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10517         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
10518         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
10519         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
10520         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
10521         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
10522         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
10523         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
10524         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
10525         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
10526         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
10527         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
10528         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
10529         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
10530         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
10531         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
10532         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
10533         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
10534         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
10535         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
10536         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
10537         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
10538         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
10539         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
10541         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
10542         AArch64 version.  Include <bits/procfs.h>.
10543         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10544         (sysdep_headers): Add bits/procfs.h.
10545         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
10546         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
10547         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
10548         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
10549         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
10550         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
10551         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
10552         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
10553         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
10554         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
10555         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
10556         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
10557         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
10558         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
10559         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
10560         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
10561         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
10563 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10565         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
10566         Use libsupport.
10568 2018-09-25  Arjun Shankar  <arjun@redhat.com>
10570         * iconv/gconv_int.h (__gconv_path_elem): Remove.
10571         (__gconv_max_path_elem_len): Likewise.
10572         (__gconv_nmodules): Likewise.
10573         (__gconv_get_path): Likewise.
10574         (path_elem): Move to ...
10575         * iconv/gconv_conf.c: ... here.
10576         (__gconv_get_path): Mark function static.
10577         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
10578         * iconv/gconv_open.c: ... here.
10580 2018-09-24  Andreas Schwab  <schwab@suse.de>
10582         * scripts/haveversions.awk: New file.
10583         * Makerules ($(common-objpfx)Versions.def)
10584         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
10585         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
10586         Move rules ...
10587         * Makeconfig ($(common-objpfx)Versions.def)
10588         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
10589         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
10590         ... here.
10591         ($(common-objpfx)Versions.mk): New rule.  Include it.
10592         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
10593         Emit error if build-obsolete-nsl = yes.
10594         * manual/install.texi (Configuring and compiling): Describe
10595         --enable-obsolete-nsl as unavaiable after version 2.28.
10596         * INSTALL: Regenerate.
10598 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10600         * NEWS: Add note about new TLE support on powerpc64le.
10601         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
10602         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
10603         __ununsed1.
10604         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
10605         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
10606         * sysdeps/powerpc/powerpc32/sysdep.h,
10607         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
10608         ABORT_TRANSACTION): Remove macros.
10609         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
10610         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
10611         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
10612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
10613         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
10614         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
10615         usage.
10616         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
10618 2018-09-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
10620         [BZ #10425]
10621         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
10622         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
10623         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
10624         which is the same as in it_IT.
10625         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
10626         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
10628 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
10630         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10631         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
10632         using MATH_REDIRECT.
10633         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
10634         header inclusion.
10635         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
10636         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10637         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
10638         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10639         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10640         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
10642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
10643         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
10644         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
10645         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
10646         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
10647         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
10648         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
10649         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
10650         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
10651         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
10652         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10653         (ceil): Redirect to __ceil.
10654         (floor): Redirect to __floor.
10655         (trunc): Redirect to __trunc.
10656         (__truncl): Call trunc instead of __trunc.
10657         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
10658         Remove macro.
10659         [_ARCH_PWR5X] (__truncf): Likewise.
10660         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
10661         trunc functions instead of __trunc variants.
10662         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10663         Likewise.
10664         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10665         Likewise.
10666         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10667         Likewise.
10668         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10669         Likewise.
10671         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
10672         [__i586__ || __pentium__].
10673         [__i486__]: Handle explicitly.
10674         (HAS_CPUID): Define to 1 if above macros are undefined.
10675         (HAS_I586): Likewise.
10676         (HAS_I686): Likewise.
10678 2018-09-20  Florian Weimer  <fweimer@redhat.com>
10680         * misc/tst-gethostid.c: New file.
10681         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
10682         (tst-gethostid): Link with -ldl.
10684 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
10686         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
10687         value from gethostbyname_r.
10689 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
10691         * stdlib/tst-setcontext9.c (f1): Rename to...
10692         (f1a): ... this.
10693         (f1b): New function implementing lower half of f1 in alternate stack.
10695 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
10697         Fix mktime localtime offset confusion
10698         [BZ #23603]
10699         * include/time.h (__mktime_internal): The localtime offset is now
10700         of type long int instead of time_t.  This is the longstanding type
10701         in glibc, and it is more than enough to represent difference
10702         between localtime and gmtime even if it is 32 bits and time_t is
10703         64.  Changing it now will let us avoid an unnecessary change when
10704         time_t is widened to 64 bits on 32-bit platforms.
10705         * time/mktime-internal.h (mktime_offset_t): Now long int.
10707         Merge mktime, timegm from upstream Gnulib
10708         [BZ #23603][BZ #16346]
10709         This fixes some obscure problems with integer overflow.
10710         Although it looks scary, it is almost all a byte-for-byte copy
10711         from Gnulib, and the Gnulib code has been tested reasonably well.
10712         * include/intprops.h: New file, copied from Gnulib.
10713         * include/verify.h, time/mktime-internal.h:
10714         New tiny files, simplified from Gnulib.
10715         * time/mktime.c: Copy from Gnulib.  This has the following changes:
10716         Do not include config.h if DEBUG_MKTIME is nonzero.
10717         Include stdbool.h, intprops.h, verify.h.
10718         Include string.h only if needed.
10719         Include stdlib.h on MS-Windows.
10720         Include mktime-internal.h.
10721         (DEBUG_MKTIME): Default to 0, and simplify later uses.
10722         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
10723         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
10724         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
10725         simplify later conditionals; default the others to zero.  Use
10726         these conditionals to express only the code needed on the current
10727         platform.  In uses of these conditionals, explicitly spell out how
10728         _LIBC affects things, so it’s easier to review from a glibc
10729         viewpoint.
10730         (WRAPV): Remove; no longer needed now that we have
10731         systematic overflow checking.
10732         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
10733         compartmentalize tzset issues.  Move system-dependent tzsettish
10734         code here from mktime.
10735         (verify): Remove; now done by verify.h.  All uses changed.
10736         (long_int): Use a more-conservative definition, to avoid
10737         integer overflow.
10738         (SHR): Remove, replacing with ...
10739         (shr): New function, which means we needn’t worry about side
10740         effects in args, and conversion analysis is simpler.
10741         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
10742         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
10743         (time_t_avg, time_t_add_ok): Remove.
10744         (mktime_min, mktime_max): New constants.
10745         (leapyear, isdst_differ): Use bool for booleans.
10746         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
10747         Use long_int, not time_t, for mktime differences.
10748         (long_int_avg): New function, replacing time_t_avg.
10749         INT_ADD_WRAPV replaces time_t_add_ok.
10750         (guess_time_tm): 6th arg is now long_int, not time_t const *.
10751         All uses changed.
10752         (convert_time): New function.
10753         (ranged_convert): Use it.
10754         (__mktime_internal): Last arg now points to mktime_offset_t, not
10755         time_t.  All uses changed.  This is a no-op on glibc, where
10756         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
10757         offset guess.  Directly check for integer overflow instead of
10758         using a heuristic that works only 99.9...% of the time.
10759         Access *OFFSET only once, to avoid an unlikely race if the
10760         compiler delays a load and if this cascades into a signed integer
10761         overflow.
10762         (mktime): Move tzsettish code to my_tzset, and move
10763         localtime_offset to within mktime so that it doesn’t
10764         need a separate ifdef.
10765         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
10766         instead of localtime.
10767         * time/timegm.c: Copy from Gnulib.  This has the following changes:
10768         Include mktime-internal.h.
10769         [!_LIBC]: Include config.h and time.h.  Do not include
10770         timegm.h or time_r.h.  Make __mktime_internal a macro,
10771         and include mktime-internal.h to get its declaration.
10772         (timegm): Temporary is now mktime_offset_t, not time_t.
10773         This affects only Gnulib.
10775 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
10777         [BZ #23637]
10778         * string/test-strstr.c (pr23637): New function.
10779         (test_main): Add tests with longer needles.
10780         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
10781         * string/strstr.c (AVAILABLE): Likewise.
10783 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10785         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
10787 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10789         * NEWS: Mention pow improvements.
10790         * math/Makefile (type-double-routines): Add e_pow_log_data.
10791         * sysdeps/generic/math_private.h (__exp1): Remove.
10792         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
10793         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
10794         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
10795         contraction.
10796         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
10797         (exp_inline): Remove.
10798         (__ieee754_exp): Only single double input is handled.
10799         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
10800         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
10801         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
10802         (__pow_log_data): Define.
10803         * sysdeps/ieee754/dbl-64/upow.h: Remove.
10804         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
10805         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
10806         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
10807         contraction.
10808         (CFLAGS-e_pow-fma4.c): Likewise.
10810 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10812         Simplify tzfile fstat failure code
10813         [BZ #21716]
10814         * time/tzfile.c (__tzfile_read): Simplify slightly.
10816         Fix tzfile low-memory assertion failure
10817         [BZ #21716]
10818         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
10819         when registering time zone abbreviations.
10821 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
10823         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
10824         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
10825         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
10826         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
10827         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
10828         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
10829         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
10830         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10831         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10833         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
10834         __ceil.
10835         (__ceill): Call ceil instead of __ceil.
10836         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
10837         __floor.
10838         (__floorl): Call floor instead of __floor.
10840 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
10842         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10843         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
10844         using MATH_REDIRECT.
10845         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
10846         header inclusion.
10847         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
10848         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10849         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10850         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
10851         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10852         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10853         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
10854         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
10855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
10856         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
10857         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
10858         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
10859         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10860         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10861         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
10862         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
10863         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10864         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10865         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
10866         Remove macro.
10867         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
10868         functions instead of __ceil variants.
10869         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10870         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
10871         Likewise.
10872         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
10873         Likewise.
10874         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
10875         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
10876         Likewise.
10877         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
10878         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
10880         [BZ #21286]
10881         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
10882         constant.
10883         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
10884         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
10885         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
10886         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
10887         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
10888         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
10889         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
10890         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
10891         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
10892         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
10893         (ILL_BADIADDR): Remove constant.
10894         (TRAP_BRANCH): Likewise.
10895         (TRAP_HWBKPT): Likewise.
10897 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
10899         [BZ #23656]
10900         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
10901         Remove [_MIPS_SIM = _ABIN32] conditional case.
10902         (struct elf_prpsinfo): Likewise.
10904         [BZ #23649]
10905         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
10906         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
10907         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
10908         Likewise.
10909         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
10910         elf_prpsinfo): Likewise.
10911         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
10912         elf_prpsinfo): Likewise.
10913         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
10914         Likewise.
10916         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10917         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
10918         using MATH_REDIRECT.
10919         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
10920         header inclusion.
10921         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
10922         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10923         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10924         * sysdeps/i386/fpu/s_rintl.c: Likewise.
10925         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10926         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10927         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
10928         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10929         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10930         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10931         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
10932         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
10933         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
10934         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
10935         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
10936         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10937         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10938         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
10939         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
10940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
10941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
10942         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
10943         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
10944         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10945         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10946         * sysdeps/x86_64/fpu/math_private.h: Remove file.
10947         * math/e_scalb.c (invalid_fn): Use rint functions instead of
10948         __rint variants.
10949         * math/e_scalbf.c (invalid_fn): Likewise.
10950         * math/e_scalbl.c (invalid_fn): Likewise.
10951         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10952         Likewise.
10953         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10954         Likewise.
10955         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
10956         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
10957         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10958         Likewise.
10959         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10960         Likewise.
10961         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10962         Likewise.
10963         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
10964         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
10966         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10967         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
10968         New macro.
10969         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10970         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
10971         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10972         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
10973         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10974         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
10975         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10976         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
10977         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10978         && !NO_MATH_REDIRECT] (floor): Likewise.
10979         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
10980         header inclusion.
10981         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
10982         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10983         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10984         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
10985         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10986         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10987         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10988         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
10989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
10990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
10991         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
10992         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
10993         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10994         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10995         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
10996         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
10997         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10998         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10999         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
11000         Remove macro.
11001         [_ARCH_PWR5X] (__floorf): Likewise.
11002         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
11003         inline function.
11004         [__SSE4_1__] (__floorf): Likewise.
11005         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
11006         instead of __floor variants.
11007         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
11008         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
11009         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
11010         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
11011         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
11012         * math/w_tgamma_compat.c (__tgamma): Likewise.
11013         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
11014         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
11015         * math/w_tgammal_compat.c (__tgammal): Likewise.
11016         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
11017         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11018         Likewise.
11019         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11020         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
11021         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11022         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
11023         Likewise.
11024         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11025         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
11026         Likewise.
11027         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11028         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
11029         Likewise.
11030         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11031         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
11032         Likewise.
11033         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
11034         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
11035         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
11036         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
11037         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
11038         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
11040 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
11042         * elf/Makefile (modules-names-tests): New variable.
11044 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11046         * NEWS: Mention log2 improvements.
11047         * math/Makefile (type-double-routines): Add e_log2_data.
11048         * sysdeps/i386/fpu/e_log2_data.c: New file.
11049         * sysdeps/ia64/fpu/e_log2_data.c: New file.
11050         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
11051         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
11052         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
11053         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
11054         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
11056 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11058         * NEWS: Mention log improvement.
11059         * math/Makefile (type-double-routines): Add e_log_data.
11060         * sysdeps/i386/fpu/e_log_data.c: New file.
11061         * sysdeps/ia64/fpu/e_log_data.c: New file.
11062         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
11063         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
11064         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
11065         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
11066         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
11067         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
11069 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
11070             Xuepeng Guo  <xuepeng.guo@intel.com>
11072         [BZ #23606]
11073         * sysdeps/i386/start.S: Include <sysdep.h>
11074         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
11075         enabled.  Add cfi_undefined (eip).
11077 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
11079         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
11080         (MOVQ): Likewise.
11081         (EXTRACT_WORDS64): Likewise.
11082         (INSERT_WORDS64): Likewise.
11083         (GET_FLOAT_WORD): Likewise.
11084         (SET_FLOAT_WORD): Likewise.
11086         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
11087         argument.
11088         (Config.build_gcc): Use --disable-libsanitizer for first GCC
11089         build, but not for second build if --full-gcc.  Use
11090         --enable-languages=all for second build if --full-gcc.
11091         (get_parser): Add --full-gcc option.
11092         (main): Update call to Context.
11094 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
11096         [BZ #10797]
11097         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
11098         Single Quotation Mark).
11099         (thousands_sep): Likewise.
11100         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
11101         * localedata/locales/it_IT (thousands_sep): Use ".".
11102         (grouping): Use "3;3".
11104 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
11106         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
11107         x86_64 and i686 configs using --enable-obsolete-rpc
11108         --enable-obsolete-nsl.
11110 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
11112         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11114 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
11116         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
11117         Increment size of new_argv by one.
11119 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
11121         [BZ #17426]
11122         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
11123         * localedata/locales/ar_IN (d_fmt): Likewise.
11124         * localedata/locales/bhb_IN (d_fmt): Likewise.
11125         * localedata/locales/bho_IN (d_fmt): Likewise.
11126         * localedata/locales/bn_BD (d_fmt): Likewise.
11127         * localedata/locales/bn_IN (d_fmt): Likewise.
11128         * localedata/locales/doi_IN (d_fmt): Likewise.
11129         * localedata/locales/gu_IN (d_fmt): Likewise.
11130         * localedata/locales/hi_IN (d_fmt): Likewise.
11131         * localedata/locales/hne_IN (d_fmt): Likewise.
11132         * localedata/locales/kn_IN (d_fmt): Likewise.
11133         * localedata/locales/mag_IN (d_fmt): Likewise.
11134         * localedata/locales/mai_IN (d_fmt): Likewise.
11135         * localedata/locales/mjw_IN (d_fmt): Likewise.
11136         * localedata/locales/ml_IN (d_fmt): Likewise.
11137         * localedata/locales/mni_IN (d_fmt): Likewise.
11138         * localedata/locales/mr_IN (d_fmt): Likewise.
11139         * localedata/locales/pa_IN (d_fmt): Likewise.
11140         * localedata/locales/raj_IN (d_fmt): Likewise.
11141         * localedata/locales/sat_IN (d_fmt): Likewise.
11142         * localedata/locales/sd_IN (d_fmt): Likewise.
11143         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
11144         * localedata/locales/ta_IN (d_fmt): Likewise.
11145         * localedata/locales/ta_LK (d_fmt): Likewise.
11146         * localedata/locales/tcy_IN (d_fmt): Likewise.
11147         * localedata/locales/ur_IN (d_fmt): Likewise.
11149         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
11150         * localedata/locales/ks_IN (d_fmt): Likewise.
11151         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
11153         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
11154         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
11155         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
11156         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
11158 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11160         * NEWS: Mention exp and exp2 improvements.
11161         * math/Makefile (libm-support): Remove t_exp.
11162         (type-double-routines): Add math_err and e_exp_data.
11163         * sysdeps/aarch64/libm-test-ulps: Update.
11164         * sysdeps/arm/libm-test-ulps: Update.
11165         * sysdeps/i386/fpu/e_exp_data.c: New file.
11166         * sysdeps/i386/fpu/math_err.c: New file.
11167         * sysdeps/i386/fpu/t_exp.c: Remove.
11168         * sysdeps/ia64/fpu/e_exp_data.c: New file.
11169         * sysdeps/ia64/fpu/math_err.c: New file.
11170         * sysdeps/ia64/fpu/t_exp.c: Remove.
11171         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
11172         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
11173         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
11174         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
11175         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
11176         * sysdeps/ieee754/dbl-64/math_config.h: New file.
11177         * sysdeps/ieee754/dbl-64/math_err.c: New file.
11178         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
11179         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
11180         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
11181         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
11182         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
11183         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
11184         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
11185         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11186         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11188 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
11190         * sysdeps/alpha/fpu/math_private.h: Remove.
11192         * sysdeps/generic/math_private.h
11193         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
11194         Move this inline function ....
11195         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
11196         * include/math.h [!_ISOMAC]: To here....
11198 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
11200         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
11201         code ....
11202         [!FE_HAVE_ROUNDING_MODES]: And this code ....
11203         * include/fenv.h [!_ISOMAC]: ... to here.
11204         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
11205         (feraiseexcept): Likewise.
11206         * math/fromfp.h: Do not include <fenv_private.h>.
11207         * math/s_cexp_template.c: Likewise.
11208         * math/s_csin_template.c: Likewise.
11209         * math/s_csinh_template.c: Likewise.
11210         * math/s_ctan_template.c: Likewise.
11211         * math/s_ctanh_template.c: Likewise.
11212         * math/s_iseqsig_template.c: Likewise.
11213         * math/w_acos_compat.c: Likewise.
11214         * math/w_acosf_compat.c: Likewise.
11215         * math/w_acosl_compat.c: Likewise.
11216         * math/w_asin_compat.c: Likewise.
11217         * math/w_asinf_compat.c: Likewise.
11218         * math/w_asinl_compat.c: Likewise.
11219         * math/w_j0_compat.c: Likewise.
11220         * math/w_j0f_compat.c: Likewise.
11221         * math/w_j0l_compat.c: Likewise.
11222         * math/w_j1_compat.c: Likewise.
11223         * math/w_j1f_compat.c: Likewise.
11224         * math/w_j1l_compat.c: Likewise.
11225         * math/w_jn_compat.c: Likewise.
11226         * math/w_jnf_compat.c: Likewise.
11227         * math/w_log10_compat.c: Likewise.
11228         * math/w_log10f_compat.c: Likewise.
11229         * math/w_log10l_compat.c: Likewise.
11230         * math/w_log2_compat.c: Likewise.
11231         * math/w_log2f_compat.c: Likewise.
11232         * math/w_log2l_compat.c: Likewise.
11233         * math/w_log_compat.c: Likewise.
11234         * math/w_logf_compat.c: Likewise.
11235         * math/w_logl_compat.c: Likewise.
11236         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11237         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11238         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11239         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11240         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11241         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11242         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11243         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11244         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11245         * sysdeps/ieee754/k_standardl.c: Likewise.
11246         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11247         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11248         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11249         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11250         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11251         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11252         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11253         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11254         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11255         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11256         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11257         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11258         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11259         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11260         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11261         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11262         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11263         * math/w_ilogb_template.c: Include <fenv.h> instead of
11264         <fenv_private.h>.
11265         * math/w_llogb_template.c: Likewise.
11266         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
11267         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11269 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
11271         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
11272         * math/fromfp.h: Include <fenv_private.h>.
11273         * math/math-narrow.h: Likewise.
11274         * math/s_cexp_template.c: Likewise.
11275         * math/s_csin_template.c: Likewise.
11276         * math/s_csinh_template.c: Likewise.
11277         * math/s_ctan_template.c: Likewise.
11278         * math/s_ctanh_template.c: Likewise.
11279         * math/s_iseqsig_template.c: Likewise.
11280         * math/w_acos_compat.c: Likewise.
11281         * math/w_acosf_compat.c: Likewise.
11282         * math/w_acosl_compat.c: Likewise.
11283         * math/w_asin_compat.c: Likewise.
11284         * math/w_asinf_compat.c: Likewise.
11285         * math/w_asinl_compat.c: Likewise.
11286         * math/w_ilogb_template.c: Likewise.
11287         * math/w_j0_compat.c: Likewise.
11288         * math/w_j0f_compat.c: Likewise.
11289         * math/w_j0l_compat.c: Likewise.
11290         * math/w_j1_compat.c: Likewise.
11291         * math/w_j1f_compat.c: Likewise.
11292         * math/w_j1l_compat.c: Likewise.
11293         * math/w_jn_compat.c: Likewise.
11294         * math/w_jnf_compat.c: Likewise.
11295         * math/w_llogb_template.c: Likewise.
11296         * math/w_log10_compat.c: Likewise.
11297         * math/w_log10f_compat.c: Likewise.
11298         * math/w_log10l_compat.c: Likewise.
11299         * math/w_log2_compat.c: Likewise.
11300         * math/w_log2f_compat.c: Likewise.
11301         * math/w_log2l_compat.c: Likewise.
11302         * math/w_log_compat.c: Likewise.
11303         * math/w_logf_compat.c: Likewise.
11304         * math/w_logl_compat.c: Likewise.
11305         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
11306         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
11307         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
11308         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
11309         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11310         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11311         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11312         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11313         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11314         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11315         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11316         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11317         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
11318         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11319         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11320         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11321         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11322         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11323         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11324         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11325         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11326         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11327         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11328         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11329         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11330         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11331         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11332         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
11333         * sysdeps/ieee754/float128/float128_private.h: Likewise.
11334         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11335         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11336         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11337         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11338         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11339         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11340         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11341         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11342         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11343         * sysdeps/ieee754/k_standardl.c: Likewise.
11344         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11345         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11346         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11347         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11348         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
11349         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11350         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11351         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11352         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11353         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11354         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11355         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11356         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11357         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
11358         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11359         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11360         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11361         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
11362         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11363         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11364         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11365         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11366         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11367         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11368         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
11369         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11370         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11371         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
11372         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
11373         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11374         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11375         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11376         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11377         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11378         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11379         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
11380         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
11381         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11382         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
11383         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11384         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
11385         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11386         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
11387         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11388         * sysdeps/riscv/rvd/s_finite.c: Likewise.
11389         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
11390         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
11391         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
11392         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
11393         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
11394         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
11395         * sysdeps/riscv/rvf/fegetround.c: Likewise.
11396         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
11397         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
11398         * sysdeps/riscv/rvf/fesetround.c: Likewise.
11399         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
11400         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
11401         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
11402         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11403         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
11404         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11405         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
11406         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
11407         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
11408         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
11409         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
11410         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
11411         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
11412         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
11413         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11414         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11416 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
11418         [BZ #20271]
11419         * include/stdio.h (__libc_fatal): Mention newline in comment.
11420         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
11421         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
11422         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11423         * nss/nsswitch.c (__nss_next2): Likewise.
11424         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
11425         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
11426         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
11427         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
11428         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
11429         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
11430         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
11431         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
11432         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
11433         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
11434         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
11435         * sysdeps/unix/sysv/linux/netlink_assert_response.c
11436         (__netlink_assert_response): Likewise.
11438 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
11440         * conform/glibcconform.py: New file.
11441         * conform/list-header-symbols.py: Likewise.
11442         * conform/list-header-symbols.pl: Remove.
11443         * conform/Makefile (tests-special): Only add linknamespace tests
11444         if [PYTHON].
11445         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
11447 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
11449         [BZ #23597]
11450         * support/Makefile (libsupport-routines): Add
11451         support_copy_file_range and xcopy_file_range.
11452         * support/support.h: Include <sys/types.h>.
11453         (support_copy_file_range): New prototype.
11454         * support/support_copy_file_range.c: New file.  Copied and
11455         modified from io/copy_file_range-compat.c.
11456         * support/test-container.c (copy_one_file): Call xcopy_file_rang
11457         instead of copy_file_range.
11458         * support/xcopy_file_range.c: New file.
11459         * support/xunistd.h (xcopy_file_range): New prototype.
11461 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
11463         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
11464         xpthread_create and xpthread_join.
11466 2018-08-30  Florian Weimer  <fweimer@redhat.com>
11468         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
11470 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
11472         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
11473         if malloc fails.
11475 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
11477         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
11478         and minus_oflow as non-finite.
11480 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
11482         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
11483         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
11484         moved to fenv_private.h except for ...
11485         (TOINT_INTRINSICS): Kept in math_private.h.
11486         (roundtoint): Likewise.
11487         (converttoint): Likewise.
11488         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
11489         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
11490         * sysdeps/arm/math_private.h: Remove.
11491         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
11492         ....
11493         * sysdeps/generic/math_private.h: ... this file.  Include
11494         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
11495         Include <fenv_private.h>.  Remove functions and macros moved to
11496         fenv_private.h.
11497         * sysdeps/i386/fpu/math_private.h: Remove.
11498         * sysdeps/mips/math_private.h: Move to ....
11499         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
11500         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
11501         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
11502         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
11503         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
11504         * sysdeps/powerpc/fpu/math_private.h: Do not include
11505         <fenv_private.h>.
11506         * sysdeps/riscv/rvf/math_private.h: Move to ....
11507         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
11508         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
11509         <fenv_private.h>.
11510         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
11511         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
11512         * sysdeps/sparc/fpu/math_private.h: Remove.
11513         * sysdeps/i386/fpu/fenv_private.h: Move to ....
11514         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
11515         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
11516         <fenv_private.h>.
11517         * sysdeps/x86_64/fpu/math_private.h: Do not include
11518         <sysdeps/i386/fpu/fenv_private.h>.
11520 2018-08-28  Florian Weimer  <fweimer@redhat.com>
11522         [BZ #23578]
11523         * posix/tst-regcomp-truncated.c: New file.
11524         * posix/Makefile (tests): Add it.
11525         (tst-regcomp-truncated.out): Depend on generated locales.
11527 2018-08-28  Florian Weimer  <fweimer@redhat.com>
11529         * support/test-container.c (main): Treat unshare failure with
11530         EPERM as an unsupported test.
11532 2018-08-28  Florian Weimer  <fweimer@redhat.com>
11534         [BZ #23520]
11535         nscd: Fix use-after-free in addgetnetgrentX and its callers.
11536         * nscd/netgroupcache.c
11537         (addgetnetgrentX): Add tofreep parameter.  Do not free
11538         heap-allocated buffer.
11539         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
11540         (addgetnetgrentX_ignore): New function.
11541         (addgetnetgrent): Call it.
11542         (readdgetnetgrent): Likewise.
11544 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11546         * string/memmem.c: Use memcmp for first match.
11548 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
11550         [BZ #17426]
11551         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
11553 2018-08-27  DJ Delorie  <dj@redhat.com>
11555         * support/Makefile (others): Don't list programs explicitly as a
11556         dependency of "others".
11558 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
11560         * sysdeps/generic/math-tests-trap-force.h: New file.
11561         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
11562         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
11563         * sysdeps/powerpc/math-tests.h: Remove file.
11564         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
11566 2018-08-27  Martin Kuchta  <martin.kuchta@netapp.com>
11567             Torvald Riegel  <triegel@redhat.com>
11569         [BZ #23538]
11570         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
11571         Update r to include the set wake-request flag if waiters are
11572         remaining after spinning.
11574 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
11576         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
11578 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11580         [BZ #23578]
11581         regex: fix uninitialized memory access
11582         I introduced this bug into gnulib in commit
11583         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
11584         eventually it was merged into glibc.  The bug was found by
11585         project-repo <bugs@feusi.co> and reported here:
11586         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
11587         Diagnosis and draft fix reported by Assaf Gordon here:
11588         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
11589         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
11590         * posix/regex_internal.c (build_wcs_upper_buffer):
11591         Fix bug when mbrtowc returns 0.
11593 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
11595         * po/be.po: Update translation.
11597 2018-08-24  DJ Delorie  <dj@delorie.com>
11599         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
11600         $(libunwind).
11602 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
11604         [BZ #23400]
11605         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
11606         create temporary files in source tree.
11608 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
11610         * sysdeps/generic/math-tests-trap.h: New file.
11611         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
11612         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
11613         * sysdeps/aarch64/math-tests.h: Remove file.
11614         * sysdeps/arm/math-tests.h: Likewise.
11615         * sysdeps/riscv/math-tests.h: Likewise.
11616         * sysdeps/aarch64/math-tests-trap.h: New file.
11617         * sysdeps/arm/math-tests-trap.h: Likewise.
11618         * sysdeps/riscv/math-tests-trap.h: Likewise.
11620 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
11622         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
11623         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
11624         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
11625         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
11626         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
11627         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
11628         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11629         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
11630         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
11631         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11632         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11633         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11634         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11635         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
11636         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
11637         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
11638         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11639         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11641 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
11643         * sysdeps/generic/math-tests-exceptions.h: New file.
11644         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
11645         (EXCEPTION_TESTS_float): Do not define here.
11646         (EXCEPTION_TESTS_double): Likewise.
11647         (EXCEPTION_TESTS_long_double): Likewise.
11648         (EXCEPTION_TESTS_float128): Likewise.
11649         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
11650         Likewise.
11651         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
11652         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
11653         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
11654         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
11655         * sysdeps/mips/math-tests.h: Likewise.
11656         * sysdeps/nios2/math-tests.h: Likewise.
11657         * sysdeps/riscv/math-tests.h [!__riscv_flen]
11658         (EXCEPTION_TESTS_float): Do not define here.
11659         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
11660         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
11661         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
11663 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
11665         * NEWS: Move optimized sinf entry to 2.29.
11667 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
11669         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
11671 2018-08-22  DJ Delorie  <dj@redhat.com>
11673         * Makefile (testroot.pristine): New rules to initialize the
11674         test-in-container "testroot".
11675         * Makerules (all-testsuite): Add tests-container.
11676         * Rules (tests-expected): Add tests-container.
11677         (binaries-all-tests): Likewise.
11678         (tests-container): New, run these tests in the testroot container.
11679         * support/Makefile (others): Add *-container, support_paths.c,
11680         xmkdirp, and links-dso-program.
11681         * support/links-dso-program-c.c: New.
11682         * support/links-dso-program.cc: New.
11683         * support/test-container.c: New.
11684         * support/shell-container.c: New.
11685         * support/echo-container.c: New.
11686         * support/true-container.c: New.
11687         * support/xmkdirp.c: New.
11688         * support/xsymlink.c: New.
11689         * support/support_paths.c: New.
11690         * support/support.h: Add support paths prototypes.
11691         * support/xunistd.h: Add xmkdirp () and xsymlink ().
11693         * nss/tst-nss-test3.c: Convert to test-in-container.
11694         * nss/tst-nss-test3.root/: New.
11696 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
11698         regex: port Gnulib code to z/OS POSIX environment
11699         Problem reported by Arnold Robbins in:
11700         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
11701         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
11702         Undef.
11704 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
11706         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
11707         (ROUNDING_TESTS_double): Remove.
11708         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
11709         (ROUNDING_TESTS_double): Remove.
11710         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
11711         (ROUNDING_TESTS_double): Remove.
11712         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
11713         (ROUNDING_TESTS_float): Remove.
11714         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
11715         (ROUNDING_TESTS_float): Remove.
11716         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
11717         (ROUNDING_TESTS_float): Remove.
11718         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
11719         !TEST_MATHVEC here.
11720         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
11721         (IF_ROUND_INIT_FE_UPWARD): Likewise.
11723         * sysdeps/generic/math-tests-rounding.h: New file.
11724         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
11725         (ROUNDING_TESTS_float): Do not define here.
11726         (ROUNDING_TESTS_double): Likewise.
11727         (ROUNDING_TESTS_long_double): Likewise.
11728         (ROUNDING_TESTS_float128): Likewise.
11729         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
11730         (ROUNDING_TESTS_double): Undefine before defining.
11731         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
11732         (ROUNDING_TESTS_double): Undefine before defining.
11733         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
11734         (ROUNDING_TESTS_double): Undefine before defining.
11735         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
11736         (ROUNDING_TESTS_float): Undefine before defining.
11737         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
11738         (ROUNDING_TESTS_float): Undefine before defining.
11739         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
11740         (ROUNDING_TESTS_float): Undefine before defining.
11741         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
11742         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
11743         not define here.
11744         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
11745         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
11746         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
11747         * sysdeps/riscv/math-tests.h [!__riscv_flen]
11748         (ROUNDING_TESTS_float): Do not define here.
11749         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
11750         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
11751         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
11752         (ROUNDING_TESTS_float): Likewise.
11753         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
11754         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
11755         * sysdeps/mips/math-tests.h [__mips_soft_float]
11756         (ROUNDING_TESTS_float): Likewise.
11757         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
11758         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
11759         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
11760         (ROUNDING_TESTS_double): Likewise.
11761         (ROUNDING_TESTS_long_double): Likewise.
11763 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
11765         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
11766         (PF_XDP): New macro.
11767         (AF_XDP): New macro.
11768         (SOL_XDP): New macro.
11770 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
11772         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
11773         (TCP_INQ): Likewise.
11774         (TCP_CM_INQ): Likewise.
11775         (TCP_REPAIR_ON): Likewise.
11776         (TCP_REPAIR_OFF): Likewise.
11777         (TCP_REPAIR_OFF_NO_WP): Likewise.
11778         (struct tcp_zerocopy_receive): New type.
11780 2018-08-21  Florian Weimer  <fweimer@redhat.com>
11782         * support/support.h (support_descriptor_supports_holes): Declare.
11783         * support/Makefile (libsupport-routines): Add
11784         support_descriptor_supports_holes.
11785         * support/support_descriptor_supports_holes.c: New file.
11786         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
11787         and stop testing if holes are not supported.
11788         * io/test-lfs.c (do_prepare): Likewise.
11789         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
11790         Likewise.
11791         * timezone/tst-tzset.c (create_tz_file): Likewise.
11792         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
11793         variable.
11794         (do_prepare): Set it.
11795         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
11797 2018-08-21  Florian Weimer  <fweimer@redhat.com>
11799         [BZ #17248]
11800         * Makeconfig (+cflags): Do not sort (and deduplicate).
11802 2018-08-21  Florian Weimer  <fweimer@redhat.com>
11804         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
11805         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
11807 2018-08-20  Florian Weimer  <fweimer@redhat.com>
11809         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
11810         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
11812 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
11814         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
11815         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
11816         and ssi_arch members.
11818         * elf/elf.c (NT_VMCOREDD): New macro.
11819         (AT_MINSIGSTKSZ): Likewise.
11821 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11823         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
11824         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
11825         s_cosf-ppc64 and s_cosf-power8.
11826         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
11827         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11828         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11829         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
11831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
11832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
11833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
11834         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
11835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
11836         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
11837         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
11839 2018-08-17  Florian Weimer  <fweimer@redhat.com>
11841         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
11843 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
11845         * malloc/malloc.c (_int_malloc): Additional binning code checks.
11847 2018-08-16  Florian Weimer  <fweimer@redhat.com>
11849         * configure.ac: Add --with-nonshared-cflags option.
11850         * config.make.in (extra-nonshared-cflags): Set variable.
11851         * Makeconfig (CFLAGS-.oS): Use it.
11852         * manual/install.texi (Configuring and compiling): Document
11853         --with-nonshared-cflags.
11854         * configure: Regenerate.
11855         * INSTALL: Likewise.
11857 2018-08-16  Florian Weimer  <fweimer@redhat.com>
11859         * Makeconfig (ASFLAGS): Always append required assembler flags.
11861 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
11863         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
11864         (malloc_consolidate): Likewise.
11866 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
11868         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
11870 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11872         * benchtests/bench-strlen.c (do_test): Allocate buffers before
11873         every strlen call.
11875         * benchtests/bench-strlen.c: Print performance numbers in json.
11877 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11879         * sysdeps/powerpc/powerpc64/multiarch/Makefile
11880         (sysdep_routines): Build strcmp-power9 and strncmp-power9
11881         only for little endian.
11882         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11883         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
11884         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
11885         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
11886         Add check for little endian.
11887         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
11888         (__strcmp_power9): Add check for little endian.
11889         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
11890         Add check for little endian.
11891         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
11892         (__strncmp_power9): Add check for little endian.
11893         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
11894         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
11895         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
11896         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
11897         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
11899 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11901         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
11902         [!STRLEN](STRLEN): Set to __strlen.
11903         * sysdeps/aarch64/multiarch/strlen.c: New file.
11904         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
11905         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
11906         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
11907         (__libc_ifunc_impl_list): Add strlen.
11908         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
11909         strlen_generic and strlen_asimd.
11911 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
11913         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
11914         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
11915         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11917 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
11919         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
11921 2018-08-14  Florian Weimer  <fweimer@redhat.com>
11923         [BZ #23519]
11924         * include/stdio.h (__vfxprintf): Declare.
11925         * stdio-common/fxprintf.c (__vfxprintf): New function.
11926         (__fxprintf): Call it.
11927         * misc/err.c (convert_and_print): Remove function.
11928         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
11929         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
11930         * misc/Makefile (tests): Add tst-warn-wide.
11931         * misc/tst-warn-wide.c: New file.
11933 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
11934             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11936         * NEWS: Mention sinf, cosf, sincosf.
11937         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
11938         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
11939         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
11940         constants rather than including generic sincosf.h.
11941         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
11942         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
11943         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
11944         (reduced_cos): Remove.
11945         (sinf_poly): New function.
11946         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
11948 2018-08-14  Florian Weimer  <fweimer@redhat.com>
11950         [BZ #23521]
11951         [BZ #23522]
11952         * nss/nss_files/files-alias.c (get_next_alias): During :include:
11953         processing, bail out if no room, and close the stream before
11954         returning ERANGE.
11955         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
11956         (tst-nss-files-alias-leak): Link with libdl.
11957         (tst-nss-files-alias-leak.out): Depend on nss_files.
11959         * nss/tst-nss-files-alias-leak.c: New file.
11961 2018-08-14  Florian Weimer  <fweimer@redhat.com>
11963         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
11964         server_user, stat_user.
11966 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
11968         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11969         version to 4.18.
11970         (io_pgetevents): New syscall.
11971         (rseq): Likewise.
11973         * manual/install.texi (Configuring and compiling): Do not list
11974         tools used for testing pretty printers here.
11975         (Tools for Compilation): List Python, PExpect and GDB here.
11976         Update descriptions of uses of Perl and Python.
11977         * INSTALL: Regenerate.
11979         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11980         version to 4.18.
11982 2018-08-13  Florian Weimer  <fweimer@redhat.com>
11984         * misc/error.c (error): Add missing va_end call.
11985         (error_at_line): Likewise.
11987 2018-08-13  Florian Weimer  <fweimer@redhat.com>
11989         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
11991 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11993         * benchtests/scripts/benchout.schema.json (properties): Add
11994         new properties.
11996         * benchtests/bench-skeleton.c (main): Add duration and
11997         iterations attributes.
11999 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12001         regex: Gnulib unibyte RRI uses bytes not chars
12002         Adjust the non-glibc code to agree with what Gawk needs for
12003         rational range interpretation (RRI) for regular expression ranges.
12004         In unibyte locales, Gawk wants ranges to use the underlying byte
12005         rather than the character code point.  This change does not affect
12006         glibc proper.
12007         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
12008         In unibyte locales, use the byte value rather than
12009         running it through btowc.
12011 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
12013         * sysdeps/generic/math-tests-snan.h: New file.
12014         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
12015         (SNAN_TESTS_float): Do not define here.
12016         (SNAN_TESTS_double): Likewise.
12017         (SNAN_TESTS_long_double): Likewise.
12018         (SNAN_TESTS_float128): Likewise.
12019         * sysdeps/i386/fpu/math-tests-snan.h: New file.
12020         * sysdeps/i386/fpu/math-tests.h: Remove file.
12021         * sysdeps/ia64/math-tests-snan.h: New file.
12022         * sysdeps/ia64/math-tests.h: Remove file.
12023         * sysdeps/x86/math-tests.h: Likewise.
12024         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
12026 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
12027             Szabolcs Nagy  <szabolcs.nagy@arm.com>
12029         * math/Makefile: Add s_sincosf_data.c.
12030         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
12031         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
12032         (sincosf_poly): Likewise.
12033         (reduce_small): Likewise.
12034         (reduce_large): Likewise.
12035         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
12036         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
12037         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
12038         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
12040 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
12041             Szabolcs Nagy  <szabolcs.nagy@arm.com>
12043         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
12044         (converttoint): Use lround.
12045         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
12046         document the semantics when TOINT_INTRINSICS is set.
12047         (converttoint): Likewise.
12048         (TOINT_RINT): Remove.
12049         (TOINT_SHIFT): Remove.
12050         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
12051         path.
12053 2018-08-10  Florian Weimer  <fweimer@redhat.com>
12055         [BZ #23497]
12056         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
12057         function.
12058         (__old_getdents64): Use getdents64.  Convert entries without
12059         moving them.
12060         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
12061         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
12062         tst-readdir64-compat.
12064 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12066         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
12067         Fix unwind.
12069 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12071         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
12072         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
12073         code to s390x-mcount.h and #include it.
12074         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
12075         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
12076         (__fentry__): Add.
12078 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12080         * stdlib/Versions: Remove __fentry__.
12081         * sysdeps/i386/Versions: Add __fentry__.
12082         * sysdeps/x86_64/Versions: Add __fentry__.
12084 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12086         * sysdeps/s390/Makefile: Register the new tests.
12087         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
12088         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
12089         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
12090         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
12091         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
12092         * sysdeps/s390/tst-dl-runtime.c: New file.
12094 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12096         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
12097         Do not clobber R0.
12099 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12101         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
12102         Do not clobber R0.
12104 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12106         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
12107         Do not clobber R0.
12109 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12111         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
12112         Do not clobber R0.
12114 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12116         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
12117         Use symbolic offsets for stack variables.
12119 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12121         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
12122         Use symbolic offsets for stack variables.
12124 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12126         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
12127         Use symbolic offsets for stack variables.
12129 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
12131         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
12132         Use symbolic offsets for stack variables.
12134 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
12136         * math/gen-libm-test.py: New file.
12137         * math/gen-libm-test.pl: Remove.
12138         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
12139         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
12140         gen-libm-test.pl.
12141         ($(libm-test-c-noauto-obj)): Likewise.
12142         ($(libm-test-c-auto-obj)): Likewise.
12143         ($(libm-test-c-narrow-obj)): Likewise.
12144         (regen-ulps): Likewise.
12145         * math/README.libm-test: Update references to gen-libm-test.pl.
12146         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
12147         referencing gen-libm-test.pl.
12148         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
12149         * math/libm-test-support.c: Likewise.
12150         * math/libm-test-support.h: Likewise.
12151         * sysdeps/generic/libm-test-ulps: Likewise.
12153 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12155         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
12156         Fix value.
12158 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
12160         * math/libm-test-nextdown.inc (do_test): Move comment to ....
12161         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
12163 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12165         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
12166         symbols.
12167         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
12168         __pthread_setspecific): Add hidden proto.
12169         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
12170         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
12172 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12174         * benchtests/bench-string.h (buf1_size, buf2_size): New
12175         variables.
12176         (init_sizes): New function.
12177         (test_init): Use it.
12178         (alloc_buf, exit_error): New functions.
12179         (alloc_bufs): Use ALLOC_BUF.
12180         (realloc_bufs): Remove.
12181         * benchtests/bench-memcmp.c (do_test): Adjust.
12182         * benchtests/bench-memset-large.c (do_test): Likewise.
12183         * benchtests/bench-memset-walk.c (do_test): Likewise.
12184         * benchtests/bench-memset.c (do_test): Likewise.
12185         * benchtests/bench-strncmp.c (do_test): Likewise.
12187 2018-08-06  Andreas Schwab  <schwab@suse.de>
12189         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
12190         of CONST_THREAD_AREA.
12192 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
12194         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
12195         (STATE_SAVE_MASK): Likewise.
12196         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
12197         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
12198         (STATE_SAVE_MASK): Likewise.
12199         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
12200         instead of <cpu-features.h>.
12202 2018-08-03  DJ Delorie  <dj@redhat.com>
12204         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
12205         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
12207         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
12209 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
12211         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
12212         after TEST_* calls.
12213         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
12214         * math/libm-test-logb.inc (logb_test_data): Likewise.
12216 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
12218         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
12219         * string/strstr.c (AVAILABLE): Likewise.
12221 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
12223         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
12224         <init-arch.h>.
12225         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
12226         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
12227         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
12229 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
12231         * po/be.po: Update translation.
12233         * po/be.po: Update translation.
12235 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
12237         * sysdeps/x86/cpu-features-offsets.sym
12238         (rtld_global_ro_offsetof): Removed.
12239         (CPU_FEATURES_SIZE): Likewise.
12240         (CPUID_OFFSET): Likewise.
12241         (CPUID_SIZE): Likewise.
12242         (CPUID_EAX_OFFSET): Likewise.
12243         (CPUID_EBX_OFFSET): Likewise.
12244         (CPUID_ECX_OFFSET): Likewise.
12245         (CPUID_EDX_OFFSET): Likewise.
12246         (FAMILY_OFFSET): Likewise.
12247         (MODEL_OFFSET): Likewise.
12248         (FEATURE_OFFSET): Likewise.
12249         (FEATURE_SIZ): Likewise.
12250         (COMMON_CPUID_INDEX_1): Likewise.
12251         (COMMON_CPUID_INDEX_7): Likewise.
12252         (FEATURE_INDEX_1): Likewise.
12253         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
12255 2018-08-02  Carlos O'Donell  <carlos@redhat.com>
12257         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
12258         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
12259         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
12260         (install-locales): Depend on install-locale-archive.
12261         (install-locale-archive): Define.
12262         (install-locale-files): Define.
12263         (build-one-locale): Define macro.
12264         * manual/install.texi (Running make install): Document.
12265         * manual/INSTALL: Regenerate.
12267 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12269         * benchtests/scripts/compare_strings.py: Import traceback.
12270         (parse_file): Pretty-print error.
12272         * NEWS: Mention the change.
12273         * elf/dl-tunables.list: Rename tune namespace to cpu.
12274         * sysdeps/powerpc/dl-tunables.list: Likewise.
12275         * sysdeps/x86/dl-tunables.list: Likewise.
12276         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
12277         cpu.name.
12278         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
12279         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
12280         * manual/README.tunables: Likewise.
12281         * manual/tunables.texi: Likewise.
12282         * sysdeps/powerpc/cpu-features.c: Likewise.
12283         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
12284         (init_cpu_features): Likewise.
12285         * sysdeps/x86/cpu-features.c: Likewise.
12286         * sysdeps/x86/cpu-features.h: Likewise.
12287         * sysdeps/x86/cpu-tunables.c: Likewise.
12288         * sysdeps/x86_64/Makefile: Likewise.
12289         * sysdeps/x86/dl-cet.c: Likewise.
12291 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
12293         [BZ #23479]
12294         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
12295         [__mips_hard_float].
12296         (FE_UNDERFLOW): Likewise.
12297         (FE_OVERFLOW): Likewise.
12298         (FE_DIVBYZERO): Likewise.
12299         (FE_INVALID): Likewise.
12300         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
12301         (FE_TOWARDZERO): Define only if [__mips_hard_float].
12302         (FE_UPWARD): Likewise.
12303         (FE_DOWNWARD): Likewise.
12304         (__FE_UNDEFINED): Define if [!__mips_hard_float]
12305         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
12306         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
12307         [__mips_hard_float].
12308         (FP_ROUNDMODE): Likewise.
12309         (FP_RND_NEAREST): Likewise.
12310         (FP_RND_ZERO): Likewise.
12311         (FP_RND_PINF): Likewise.
12312         (FP_RND_MINF): Likewise.
12313         (FP_EX_INVALID): Likewise.
12314         (FP_EX_OVERFLOW): Likewise.
12315         (FP_EX_UNDERFLOW): Likewise.
12316         (FP_EX_DIVZERO): Likewise.
12317         (FP_EX_INEXACT): Likewise.
12318         (FP_INIT_ROUNDMODE): Likewise.
12319         * sysdeps/mips/nofpu/fesetenv.c: New file.
12320         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
12322 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
12324         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
12325         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
12326         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
12327         conditional on [FE_UPWARD].
12329 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
12331         regex: fix memory leak in Gnulib
12332         Problem and fix reported by Assaf Gordon in:
12333         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
12334         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
12335         range_ends members too, as they are defined in 'struct
12336         re_charset_t' even if not _LIBC.  This affects only Gnulib.
12338 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
12340         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
12341         ...
12342         (get_common_indices): This.
12343         (init_cpu_features): Updated.
12345 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
12347         * sysdeps/generic/math-tests-snan-payload.h: New file.
12348         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
12349         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
12350         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
12351         * sysdeps/generic/math-tests.h: Include
12352         <math-tests-snan-payload.h>.
12353         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
12354         * sysdeps/hppa/math-tests.h: Remove file.
12355         * sysdeps/mips/math-tests.h [!__mips_nan2008]
12356         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
12357         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
12358         Likewise.
12360         * sysdeps/generic/math-tests-snan-cast.h: New file.
12361         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
12362         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
12363         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
12364         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
12366 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
12368         * version.h (RELEASE): Set to "development".
12369         (VERSION): Set to "2.28.9000".
12370         * NEWS (2.29): New section.
12372         * version.h (RELEASE): Set to "stable".
12373         (VERSION): Set to "2.28".
12374         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
12375         * NEWS: Add the list of bugs fixed in 2.28.
12377         * po/ca.po: Update to latest version.
12378         * po/cs.po: Likewise
12379         * po/da.po: Likewise
12380         * po/el.po: Likewise
12381         * po/eo.po: Likewise
12382         * po/es.po: Likewise
12383         * po/fi.po: Likewise
12384         * po/fr.po: Likewise
12385         * po/gl.po: Likewise
12386         * po/hu.po: Likewise
12387         * po/ia.po: Likewise
12388         * po/id.po: Likewise
12389         * po/it.po: Likewise
12390         * po/ja.po: Likewise
12391         * po/ko.po: Likewise
12392         * po/lt.po: Likewise
12393         * po/nb.po: Likewise
12394         * po/nl.po: Likewise
12395         * po/pt_BR.po: Likewise
12396         * po/ru.po: Likewise
12397         * po/rw.po: Likewise
12398         * po/sk.po: Likewise
12399         * po/sl.po: Likewise
12400         * po/tr.po: Likewise
12401         * po/zh_CN.po: Likewise
12402         * po/zh_TW.po: Likewise
12404 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12406         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
12407         initialization...
12408         (init): ... before initializing libpthread.
12410         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
12411         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
12412         (__mach_setup_tls): ... new function.
12413         (mach_setup_tls): New alias.
12414         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
12415         __mach_setup_thread.
12416         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
12417         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
12418         * mach/Versions [libc] (mach_setup_tls): Add symbol.
12419         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
12421 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
12423         * manual/install.texi: Update versions.
12424         * INSTALL: Regenerate.
12426         * manual/contrib.texi (Contributors): Update contributions.
12428 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
12430         * po/be.po: Update translations.
12432 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12434         * sysdeps/sh/libm-test-ulps: Update.
12436 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
12438         * po/bg.po: Update translations.
12439         * po/de.po: Likewise.
12440         * po/hr.po: Likewise.
12441         * po/pt_BR.po: Likewise.
12442         * po/sv.po: Likewise.
12443         * po/vi.po: Likewise.
12445 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
12447         [BZ #23467]
12448         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
12449         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
12450         (CFLAGS-tst-cet-property-1.o): New.
12451         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
12452         ($(objpfx)tst-cet-property-2): Likewise.
12453         ($(objpfx)tst-cet-property-2.out): Likewise.
12454         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
12455         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
12456         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
12457         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
12458         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
12460 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
12462         [BZ #23458]
12463         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
12465 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12467         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
12468         __sbrk): Do not set attribute_hidden.
12469         * sysdeps/mach/hurd/not-errno.h: New file.
12470         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
12471         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
12473 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
12475         * po/uk.po: Update translations.
12476         * po/cs.po: Likewise.
12477         * po/pl.po: Likewise.
12479 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
12481         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
12482         parse beyond the note end.
12484 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12486         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
12487         kernel does not support OFD locks.
12488         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
12490 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12492         * sysdeps/mach/hurd/Versions (libc): Make __access and
12493         __access_noerrno external so they can override the ld symbols.
12494         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
12495         __writev, __open64, __access_noerrno extern so they can be overrided.
12496         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
12497         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
12499 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
12501         * po/libc.pot: Regenerate.
12503 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
12505         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
12507 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
12509         [BZ #23459]
12510         * sysdeps/x86/cpu-features.c (get_extended_indices): New
12511         function.
12512         (init_cpu_features): Call get_extended_indices for both Intel
12513         and AMD CPUs.
12514         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
12515         Remove "for AMD" comment.
12517 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
12519         [BZ # 23456]
12520         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
12521         COMMON_CPUID_INDEX_80000001.
12523 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
12525         * string/tst-xbzero-opt.c (use_test_buffer): New function.
12526         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
12528 2018-07-26  Florian Weimer  <fweimer@redhat.com>
12530         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
12531         aliases for symbols not in the implementation namespace.
12533 2018-07-25  Carlos O'Donell  <carlos@redhat.com>
12535         [BZ #23393]
12536         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
12537         lowercase in LATIN script.
12538         * localedata/Makefile (test-input): Add en_US.UTF-8.
12539         * localedata/en_US.UTF-8.in: New file.
12540         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
12541         and restore old tests.
12542         * posix/tst-regexloc.c (do_test): Add back range expression test.
12544 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
12546         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
12548 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12550         * nptl/threads.h: Move to ...
12551         * sysdeps/nptl/threads.h: ... here.
12552         * sysdeps/hurd/stdc-predef.h: New file.
12554 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
12556         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
12557         tst-cet-setcontext-1 if CET is enabled.
12558         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
12559         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
12561 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12563         * include/threads.h: Move to ...
12564         * sysdeps/nptl/threads.h: ... here.
12565         * sysdeps/htl/threads.h: New file.
12566         * conform/Makefile (linknamespace-libs-ISO11): Use
12567         static-thread-library instead of linking libpthread.
12568         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
12570 2018-07-25  Florian Weimer  <fweimer@redhat.com>
12572         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
12573         nanoseconds into seconds.
12574         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
12575         (do_test): Likewise.
12576         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
12577         (do_test): Likewise.  Avoid nanosecond overflow and spurious
12578         timeouts due to system load.
12579         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
12580         (child_wait): Increment it.
12581         (do_test): Wait as long as necessary until all expected threads
12582         have arrived.
12584 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
12585             H.J. Lu  <hongjiu.lu@intel.com>
12587         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
12588         __ssp.
12589         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
12590         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
12591         (__push___start_context): New.
12592         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
12593         <asm/prctl.h>.
12594         (__getcontext): Record the current shadow stack base.  Save the
12595         caller's shadow stack pointer and base.
12596         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
12597         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
12598         (__push___start_context): New prototype.
12599         (__makecontext): Call __push___start_context to allocate a new
12600         shadow stack, push __start_context onto the new stack as well
12601         as the new shadow stack.
12602         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
12603         <asm/prctl.h>.
12604         (__setcontext): Restore the target shadow stack.
12605         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
12606         <asm/prctl.h>.
12607         (__swapcontext): Record the current shadow stack base.  Save
12608         the caller's shadow stack pointer and base. Restore the target
12609         shadow stack.
12610         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
12611         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
12612         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
12614 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
12616         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
12617         tst-setcontext8 and tst-setcontext9.
12618         * stdlib/tst-setcontext6.c: New file.
12619         * stdlib/tst-setcontext7.c: Likewise.
12620         * stdlib/tst-setcontext8.c: Likewise.
12621         * stdlib/tst-setcontext9.c: Likewise.
12623 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
12625         * stdlib/Makefile ((tests): Add tst-setcontext5.
12626         * stdlib/tst-setcontext5.c: New file.
12628 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
12630         * stdlib/Makefile (tests): Add tst-setcontext4.
12631         * stdlib/tst-setcontext4.c: New file.
12633 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
12635         * stdlib/Makefile (tests): Add tst-swapcontext1.
12636         * stdlib/tst-swapcontext1.c: New test.
12638 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
12640         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
12641         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
12642         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
12643         and tst-cet-legacy-4c.
12644         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
12645         and tst-cet-legacy-mod-4.
12646         (CFLAGS-tst-cet-legacy-2.c): New.
12647         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
12648         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
12649         (CFLAGS-tst-cet-legacy-3.c): Likewise.
12650         (CFLAGS-tst-cet-legacy-4.c): Likewise.
12651         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
12652         ($(objpfx)tst-cet-legacy-1): Likewise.
12653         ($(objpfx)tst-cet-legacy-2): Likewise.
12654         ($(objpfx)tst-cet-legacy-2.out): Likewise.
12655         ($(objpfx)tst-cet-legacy-2a): Likewise.
12656         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
12657         ($(objpfx)tst-cet-legacy-4): Likewise.
12658         ($(objpfx)tst-cet-legacy-4.out): Likewise.
12659         ($(objpfx)tst-cet-legacy-4a): Likewise.
12660         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
12661         (tst-cet-legacy-4a-ENV): Likewise.
12662         ($(objpfx)tst-cet-legacy-4b): Likewise.
12663         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
12664         (tst-cet-legacy-4b-ENV): Likewise.
12665         ($(objpfx)tst-cet-legacy-4c): Likewise.
12666         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
12667         (tst-cet-legacy-4c-ENV): Likewise.
12668         * sysdeps/x86/tst-cet-legacy-1.c: New file.
12669         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
12670         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
12671         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
12672         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
12673         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
12674         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
12675         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
12676         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
12677         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
12678         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
12680 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
12682         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
12683         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
12684         with ssp_base.
12685         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
12686         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
12687         with ssp_base.
12689 2018-07-25  Andreas Schwab  <schwab@suse.de>
12691         [BZ #23442]
12692         * locale/weightwc.h (findidx): Handle the case where usrc is a
12693         prefix of cp but one character too short.
12695 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12697         * NEWS: Add ISO C threads addition.
12699 2018-07-24  Florian Weimer  <fweimer@redhat.com>
12701         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12702         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
12703         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
12704         4.13.
12706 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12708         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
12709         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
12710         <sys/prctl.h> and <asm/prctl.h>.
12711         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
12712         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
12713         and <asm/prctl.h>.
12714         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
12715         ARCH_CET_LEGACY_BITMAP.
12716         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
12717         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
12718         * sysdeps/x86/libc-start.c: Include <startup.h>.
12720 2018-07-24  Florian Weimer  <fweimer@redhat.com>
12722         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
12723         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
12725 2018-07-24  Rical Jasan  <rj@2c3t.io>
12726             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12727             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
12729         [BZ #14092]
12730         * manual/debug.texi: Update adjacent chapter name.
12731         * manual/probes.texi: Likewise.
12732         * manual/threads.texi (ISO C Threads): New section.
12733         (POSIX Threads): Convert to a section.
12735 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12736             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
12738         [BZ# 14092]
12739         * nptl/Makefile (tests): Add new test files.
12740         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
12741         * nptl/tst-cnd-basic.c: Likewise.
12742         * nptl/tst-cnd-broadcast.c: Likewise.
12743         * nptl/tst-cnd-timedwait.c: Likewise.
12744         * nptl/tst-mtx-basic.c: Likewise.
12745         * nptl/tst-mtx-recursive.c: Likewise.
12746         * nptl/tst-mtx-timedlock.c: Likewise.
12747         * nptl/tst-mtx-trylock.c: Likewise.
12748         * nptl/tst-thrd-basic.c: Likewise.
12749         * nptl/tst-thrd-detach.c: Likewise.
12750         * nptl/tst-thrd-sleep.c: Likewise.
12751         * nptl/tst-tss-basic.c: Likewise.
12753 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12755         [BZ #14092]
12756         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12757         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
12758         symbols.
12759         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12760         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12761         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12762         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12763         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12764         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12765         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12766         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12767         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12768         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12769         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12770         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12772         Likewise.
12773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12774         Likewise.
12775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
12776         Likewise.
12777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12778         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12779         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12780         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12781         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12782         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12783         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12784         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12785         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12786         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
12787         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
12788         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
12789         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
12790         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
12791         Likewise.
12792         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12793         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12794         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12795         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12796         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12797         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12798         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12799         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12800         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12801         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12802         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12803         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12804         ikewise.
12805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12807         Likewise.
12808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12809         Likewise.
12810         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12811         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12812         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12813         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12814         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12815         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12816         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12817         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12819         [BZ #14092]
12820         * conform/data/threads.h-data (thread_local): New macro.
12821         (TSS_DTOR_ITERATIONS): Likewise.
12822         (tss_t): New type.
12823         (tss_dtor_t): Likewise.
12824         (tss_create): New function.
12825         (tss_get): Likewise.
12826         (tss_set): Likewise.
12827         (tss_delete): Likewise.
12828         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
12829         tss_get, and tss_set objects.
12830         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
12831         * nptl/tss_create.c: New file.
12832         * nptl/tss_delete.c: Likewise.
12833         * nptl/tss_get.c: Likewise.
12834         * nptl/tss_set.c: Likewise.
12835         * sysdeps/nptl/threads.h (thread_local): New define.
12836         (TSS_DTOR_ITERATIONS): Likewise.
12837         (tss_t): New typedef.
12838         (tss_dtor_t): Likewise.
12839         (tss_create): New prototype.
12840         (tss_get): Likewise.
12841         (tss_set): Likewise.
12842         (tss_delete): Likewise.
12844         [BZ #14092]
12845         * conform/data/threads.h-data (cnd_t): New type.
12846         (cnd_init): New function.
12847         (cnd_signal): Likewise.
12848         (cnd_broadcast): Likewise.
12849         (cnd_wait): Likewise.
12850         (cnd_timedwait): Likewise.
12851         (cnd_destroy): Likewise.
12852         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
12853         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
12854         object.
12855         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
12856         * nptl/cnd_broadcast.c: New file.
12857         * nptl/cnd_destroy.c: Likewise.
12858         * nptl/cnd_init.c: Likewise.
12859         * nptl/cnd_signal.c: Likewise.
12860         * nptl/cnd_timedwait.c: Likewise.
12861         * nptl/cnd_wait.c: Likewise.
12862         * sysdeps/nptl/threads.h (cnd_t): New type.
12863         (cnd_init): New prototype.
12864         (cnd_signa): Likewise.
12865         (cnd_broadcast): Likewise.
12866         (cnd_wait): Likewise.
12867         (cnd_timedwait): Likewise.
12868         (cnd_destroy): Likewise.
12870         [BZ #14092]
12871         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
12872         (once_flag): New type.
12873         (call_once): New function.
12874         * nptl/Makefile (libpthread-routines): Add call_once object.
12875         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
12876         * nptl/call_once.c: New file.
12877         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
12878         (once_flag): New type.
12879         (call_once): New prototype.
12881         [BZ #14092]
12882         * conform/data/threads.h-data (mtx_plain): New constant.
12883         (mtx_recursive): Likewise.
12884         (mtx_timed): Likewise.
12885         (mtx_t): New type.
12886         (mtx_init): New function.
12887         (mtx_lock): Likewise.
12888         (mtx_timedlock): Likewise.
12889         (mtx_trylock): Likewise.
12890         (mtx_unlock): Likewise.
12891         (mtx_destroy): Likewise.
12892         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
12893         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
12894         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
12895         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
12896         * nptl/mtx_destroy.c: New file.
12897         * nptl/mtx_init.c: Likewise.
12898         * nptl/mtx_lock.c: Likewise.
12899         * nptl/mtx_timedlock.c: Likewise.
12900         * nptl/mtx_trylock.c: Likewise.
12901         * nptl/mtx_unlock.c: Likewise.
12902         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
12903         (mtx_recursive): Likewise.
12904         (mtx_timed): Likewise.
12905         (mtx_t): New type.
12906         (mtx_init): New prototype.
12907         (mtx_lock): Likewise.
12908         (mtx_timedlock): Likewise.
12909         (mtx_trylock): Likewise.
12910         (mtx_unlock): Likewise.
12911         (mtx_destroy): Likewise.
12913         [BZ #14092]
12914         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
12915         (linknamespace-libs-ISO11): Add libpthread.a.
12916         * conform/data/threads.h-data: New file: add C11 thrd_* types and
12917         functions.
12918         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
12919         * nptl/Makefile (headers): Add threads.h.
12920         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
12921         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
12922         thrd_yield.
12923         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
12924         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
12925         thrd_join, thrd_sleep, and thrd_yield symbols.
12926         * nptl/descr.h (struct pthread): Add c11 field.
12927         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
12928         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
12929         routine with expected function prototype.
12930         (__pthread_create_2_1): Add C11 threads check based on attribute
12931         value.
12932         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
12933         * nptl/thrd_create.c: New file.
12934         * nptl/thrd_current.c: Likewise.
12935         * nptl/thrd_detach.c: Likewise.
12936         * nptl/thrd_equal.c: Likewise.
12937         * nptl/thrd_exit.c: Likewise.
12938         * nptl/thrd_join.c: Likewise.
12939         * nptl/thrd_priv.h: Likewise.
12940         * nptl/thrd_sleep.c: Likewise.
12941         * nptl/thrd_yield.c: Likewise.
12942         * include/threads.h: Likewise.
12944 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12946         * bits/indirect-return.h: New file.
12947         * misc/sys/cdefs.h (__glibc_has_attribute): New.
12948         * sysdeps/x86/bits/indirect-return.h: Likewise.
12949         * stdlib/Makefile (headers): Add bits/indirect-return.h.
12950         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
12951         (swapcontext): Add __INDIRECT_RETURN.
12952         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
12953         (prepare_test_buffer): Use it.
12955 2018-07-24  Andreas Schwab  <schwab@suse.de>
12957         [BZ #23448]
12958         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
12959         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
12961 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12963         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
12964         Redefine if shadow stack is enabled.
12965         (SYSCALL_ERROR_LABEL): Likewise.
12966         (__vfork): Pop shadow stack and jump back to to caller directly
12967         when shadow stack is in use.
12968         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
12969         Redefine if shadow stack is enabled.
12970         (SYSCALL_ERROR_LABEL): Likewise.
12971         (__vfork): Pop shadow stack and jump back to to caller directly
12972         when shadow stack is in use.
12974 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12976         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
12977         enabled.
12978         (foo): Likewise.
12979         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
12980         (foo): Likewise.
12982 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
12984         * scripts/build-many-glibcs.py (Context.checkout): Default
12985         binutils version to 2.31 branch.
12987 2018-07-20  Zong Li  <zong@andestech.com>
12989         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
12990         URL of gcc's tarball.
12992 2018-07-20  Florian Weimer  <fweimer@redhat.com>
12994         [BZ #23396]
12995         * posix/regcomp.c (build_equiv_class): When comparing weights, do
12996         not compare an extra byte after the end of the weights.
12998 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13000         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
13001         to 1.
13002         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
13003         hidden prototypes.
13004         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
13005         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
13006         * scripts/check-execstack.awk: Consider `xfail' variable containing a
13007         list of libraries whose stack executability is expected.
13008         * elf/Makefile ($(objpfx)check-execstack.out): Pass
13009         $(check-execstack-xfail) to check-execstack.awk through `xfail'
13010         variable.
13011         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
13012         libc.so libpthread.so.
13014 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
13016         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
13017         SOCK_NONBLOCK.
13018         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
13019         and SOCK_NONBLOCK.
13020         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
13021         implement __pipe2.
13022         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
13024 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13026         * benchtests/scripts/compare_bench.py (__main__): use the argparse
13027         library to improve command line parsing.
13028         (__main__): make schema file as optional parameter (--schema),
13029         defaulting to benchtests/scripts/benchout.schema.json.
13030         (main): move out of the parsing stuff to __main_  and leave it
13031         only as caller of main comparison functions.
13033 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
13035         * NEWS: Add a note for Intel CET status.
13036         * manual/install.texi: Likewise.
13037         * INSTALL: Regenerated.
13039 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
13041         [BZ #23140]
13042         * localedata/locales/oc_FR (mon): Rename to...
13043         (alt_mon): This, then update October (typo fix).
13044         (mon): New content (genitive case, month names preceded by
13045         "de" or "d’").
13047         [BZ #23422]
13048         * localedata/locales/oc_FR (abday): Update all items.
13049         (day): Update Wednesday and Saturday (typo fixes).
13050         (abmon): Update all items, except May.
13051         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
13052         (LC_IDENTIFICATION): Bump the revision number and date.
13053         Keep the "category" entries in alphabetic order.
13054         (LC_ADDRESS): Remove no longer needed comment.
13055         (LC_COLLATE): Use “copy "ca_ES"”.
13056         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
13057         "name_mrs".
13059 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
13061         * grp/tst_fgetgrent.c: Include <unistd.h>.
13062         (main): Use mkstemp instead of tmpnam.
13063         * io/test-utime.c (main): Likewise.
13064         * posix/annexc.c (macrofile): Change to modifiable array.
13065         (main): Remove macrofile here.
13066         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
13067         macrofile here.
13068         (check_header): Do not remove macrofile here.
13069         * posix/bug-getopt1.c: Include <stdlib.h>.
13070         (do_test): Use mkstemp instead of tmpnam.
13071         * posix/bug-getopt2.c: Include <stdlib.h>.
13072         (do_test): Use mkstemp instead of tmpnam.
13073         * posix/bug-getopt3.c: Include <stdlib.h>.
13074         (do_test): Use mkstemp instead of tmpnam.
13075         * posix/bug-getopt4.c: Include <stdlib.h>.
13076         (do_test): Use mkstemp instead of tmpnam.
13077         * posix/bug-getopt5.c: Include <stdlib.h>.
13078         (do_test): Use mkstemp instead of tmpnam.
13079         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
13080         (main): Use mkstemp instead of tmpnam.
13081         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
13082         (main): Use mkstemp instead of tmpnam.
13083         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
13084         (main): use mkstemp instead of tmpnam.
13085         * stdlib/isomac.c (macrofile): Change to modifiable array.
13086         (main): Remove macrofile here.
13087         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
13088         macrofile here.
13089         (check_header): Do not remove macrofile here.
13091 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13093         * manual/tunables.texi: Document glibc.tune.x86_ibt and
13094         glibc.tune.x86_shstk.
13096 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13098         * NEWS: Mention --enable-cet.
13099         * manual/install.texi: Document --enable-cet.
13100         * INSTALL: Regenerated.
13102 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13104         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
13105         Add _CET_NOTRACK before indirect jump to jump table.
13107 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13109         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
13110         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13111         to jump table.
13113 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13115         * sysdeps/i386/i686/multiarch/strcat-sse2.S
13116         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13117         to jump table.
13119 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13121         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
13122         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13123         to jump table.
13125 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13127         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
13128         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13129         to jump table.
13131 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13133         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
13134         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13135         to jump table.
13136         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
13138 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13140         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
13141         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13142         to jump table.
13144 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13146         * sysdeps/i386/i686/multiarch/memset-sse2.S
13147         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13148         to jump table.
13150 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13152         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
13153         indirect jump to jump table.
13155 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13157         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
13158         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13159         to jump table.
13160         (MEMCPY): Likewise.
13162 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13164         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
13165         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13166         to jump table.
13167         (MEMCPY): Likewise.
13169 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13171         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
13172         _CET_NOTRACK before indirect jump to jump table.
13174 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13176         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
13177         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13178         to jump table.
13180 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13182         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
13183         indirect jump to jump table.
13185 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
13187         [BZ #22241]
13188         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
13189         (LOCALES): Likewise.
13190         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
13191         * localedata/locales/sah_RU: New file.
13192         * localedata/sah_RU.UTF-8.in: New file.
13194 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
13196         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
13197         "sysdep.h".
13198         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
13199         _CET_ENDBR to indirect jump targets and adjust jump destination
13200         for _CET_ENDBR.
13201         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
13202         "sysdep.h".
13203         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
13204         _CET_ENDBR to indirect jump targets and adjust jump destination
13205         for _CET_ENDBR.
13206         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
13207         "sysdep.h".
13208         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
13209         _CET_ENDBR to indirect jump targets and adjust jump destination
13210         for _CET_ENDBR.
13212 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
13214         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
13215         _CET_ENDBR.
13217 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
13219         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
13220         _CET_ENDBR.
13221         (_dl_tlsdesc_undefweak): Likewise.
13222         (_dl_tlsdesc_dynamic): Likewise.
13223         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
13224         (_dl_tlsdesc_resolve_rel): Likewise.
13225         (_dl_tlsdesc_resolve_rela): Likewise.
13226         (_dl_tlsdesc_resolve_hold): Likewise.
13227         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
13228         (_dl_tlsdesc_undefweak): Likewise.
13229         (_dl_tlsdesc_dynamic): Likewise.
13230         (_dl_tlsdesc_resolve_rela): Likewise.
13231         (_dl_tlsdesc_resolve_hold): Likewise.
13233 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
13235         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
13236         (_fini): Likewise.
13237         * sysdeps/x86_64/crti.S (_init): Likewise.
13238         (_fini): Likewise.
13240 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
13242         [BZ #23140]
13243         * localedata/locales/os_RU (mon): Rename to...
13244         (alt_mon): This.
13245         (mon): Import from CLDR (genitive case).
13247 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
13249         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
13250         cet-tunables.h> when CET is enabled.
13252 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
13254         [BZ #21598]
13255         * configure.ac: Add --enable-cet.
13256         * configure: Regenerated.
13257         * elf/Makefille (all-built-dso): Add a comment.
13258         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
13259         Include <dl-prop.h>.
13260         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
13261         segment.
13262         * elf/dl-open.c: Include <dl-prop.h>.
13263         (dl_open_worker): Call _dl_open_check.
13264         * elf/rtld.c: Include <dl-prop.h>.
13265         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
13266         _rtld_main_check.
13267         * sysdeps/generic/dl-prop.h: New file.
13268         * sysdeps/i386/dl-cet.c: Likewise.
13269         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
13270         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
13271         * sysdeps/x86/cet-tunables.h: Likewise.
13272         * sysdeps/x86/check-cet.awk: Likewise.
13273         * sysdeps/x86/configure: Likewise.
13274         * sysdeps/x86/configure.ac: Likewise.
13275         * sysdeps/x86/dl-cet.c: Likewise.
13276         * sysdeps/x86/dl-procruntime.c: Likewise.
13277         * sysdeps/x86/dl-prop.h: Likewise.
13278         * sysdeps/x86/libc-start.h: Likewise.
13279         * sysdeps/x86/link_map.h: Likewise.
13280         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
13281         _CET_ENDBR.
13282         (_dl_runtime_profile): Likewise.
13283         (_dl_runtime_resolve_shstk): New.
13284         (_dl_runtime_profile_shstk): Likewise.
13285         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
13286         if CET is enabled.
13287         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
13288         (CFLAGS-.os): Likewise.
13289         (CFLAGS-.op): Likewise.
13290         (CFLAGS-.oS): Likewise.
13291         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
13292         is enabled.
13293         (tests-special): Add $(objpfx)check-cet.out.
13294         (cet-built-dso): New.
13295         (+$(cet-built-dso:=.note)): Likewise.
13296         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
13297         ($(objpfx)check-cet.out): New.
13298         (generated): Add check-cet.out.
13299         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
13300         <cet-tunables.h>.
13301         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
13302         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
13303         (init_cpu_features): Call get_cet_status to check CET status
13304         and update dl_x86_feature_1 with CET status.  Call
13305         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
13306         (set_x86_shstk).  Disable and lock CET in libc.a.
13307         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
13308         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
13309         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
13310         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
13311         (_CET_ENDBR): Define if not defined.
13312         (ENTRY): Add _CET_ENDBR.
13313         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
13314         x86_shstk.
13315         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
13316         _CET_ENDBR.
13317         (_dl_runtime_profile): Likewise.
13319 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
13321         [BZ #21895]
13322         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
13323         restore r2 on longjmp.
13324         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
13325         test list.
13326         Added rules to build test tst-setjmp-bug21895-static.
13327         Added module setjmp-bug21895 and rules to build a shared object from it.
13328         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
13329         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
13331 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
13333         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
13334         * benchtests/bench-strstr.c: Likewise.
13335         * string/memmem.c (FASTSEARCH): Define.
13336         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
13337         Add support for FASTSEARCH.
13338         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
13339         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
13340         (FASTSEARCH): Define.
13341         * string/test-strcasestr.c: Rename __strnlen to strnlen.
13342         * string/test-strstr.c: Likewise.
13344 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
13346         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
13347         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
13349 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
13350             H.J. Lu  <hongjiu.lu@intel.com>
13352         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
13353         (__longjmp): Restore shadow stack pointer if shadow stack is
13354         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
13355         isn't defined for __longjmp_cancel.
13356         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
13357         (_setjmp): Save shadow stack pointer if shadow stack is enabled
13358         and SHADOW_STACK_POINTER_OFFSET is defined.
13359         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
13360         (setjmp): Save shadow stack pointer if shadow stack is enabled
13361         and SHADOW_STACK_POINTER_OFFSET is defined.
13362         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
13363         (__sigsetjmp): Save shadow stack pointer if shadow stack is
13364         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
13365         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
13366         <jmp_buf-ssp.h>.
13367         (____longjmp_chk): Restore shadow stack pointer if shadow stack
13368         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
13369         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
13370         Remove jmp_buf-ssp.sym.
13371         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
13372         <jmp_buf-ssp.h>.
13373         (____longjmp_chk): Restore shadow stack pointer if shadow stack
13374         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
13375         * sysdeps/x86/Makefile (gen-as-const-headers): Add
13376         jmp_buf-ssp.sym.
13377         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
13378         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
13379         (__longjmp): Restore shadow stack pointer if shadow stack is
13380         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
13381         isn't defined for __longjmp_cancel.
13382         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
13383         (__sigsetjmp): Save shadow stack pointer if shadow stack is
13384         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
13386 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
13388         [BZ #22563]
13389         * nptl/pthread_create.c: Include <tls-setup.h>.
13390         (__pthread_create_2_1): Call tls_setup_tcbhead.
13391         * sysdeps/generic/tls-setup.h: New file.
13392         * sysdeps/x86/nptl/tls-setup.h: Likewise.
13393         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13394         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
13395         Likewise.
13396         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
13397         to feature_1.
13398         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13399         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
13400         (X86_FEATURE_1_SHSTK): Likewise.
13401         (CET_ENABLED): Likewise.
13402         (IBT_ENABLED): Likewise.
13403         (SHSTK_ENABLED): Likewise.
13405 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
13407         [BZ #23208]
13408         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
13409         (LOCALES): Likewise.
13410         * localedata/dsb_DE.UTF-8.in: New file.
13411         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
13413 2018-07-12  Florian Weimer  <fweimer@redhat.com>
13415         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
13416         __mprotect, not mprotect.
13418 2018-07-11  Florian Weimer  <fweimer@redhat.com>
13420         * io/Makefile (headers): Add bits/statx.h.
13422 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
13424         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
13425         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
13426         and headers.
13427         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
13428         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
13429         for utf8_gen.py
13431 2018-07-10  Florian Weimer  <fweimer@redhat.com>
13433         * io/Makefile (routines): Add statx.
13434         (tests-internal): Add tst-statx.
13435         * io/Versions (GLIBC_2.28): Export statx.
13436         * io/bits/statx.h: New file.
13437         * io/sys/stat.h [__USE_GNU]: Include it.
13438         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
13439         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
13440         Define.
13441         * io/statx.c: New file.
13442         * io/statx_generic.: Likewise.
13443         * io/tst-statx.: Likewise.
13444         * include/bits/statx.h: Likewise.
13445         * sysdeps/unix/sysv/linux/kernel-features.h
13446         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
13447         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
13448         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
13449         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
13450         Undefine.
13451         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
13452         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
13453         * sysdeps/unix/sysv/linux/statx.c: New file.
13454         * manual/filesys.texi: Note that statx is undocumented.
13455         * sysdeps/**/libc*.abilist: Update.
13457 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13459         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
13460         a kernel issue which lead to test failure in some cases.
13462 2018-07-10  Florian Weimer  <fweimer@redhat.com>
13464         [BZ #23036]
13465         * posix/regexec.c (check_node_accept_bytes): When comparing
13466         weights, do not compare an extra byte after the end of the
13467         weights.
13469 2018-07-10  Florian Weimer  <fweimer@redhat.com>
13471         * libio/readline.c: Fix copyright year.
13472         * libio/tst-readline.c Likewise.
13473         * nss/tst-nss-files-hosts-getent.c: Likewise.
13475 2018-07-06  Florian Weimer  <fweimer@redhat.com>
13477         [BZ #18991]
13478         * nss/nss_files/files-XXX.c (internal_getent): Use
13479         __libc_readline_unlocked.  Seek back to the start of the line if
13480         parsing failes with ERANGE.
13481         (get_contents_ret, get_contents): Remove.
13482         * nss/tst-nss-files-hosts-getent.c: New file.
13483         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
13484         (tst-nss-files-hosts-getent): Link with -ldl.
13486 2018-07-06  Florian Weimer  <fweimer@redhat.com>
13488         * include/stdio.h (__libc_readline_unlocked): Declare.
13489         (__ftello64, __fseeko64): Declare aliases.
13490         * libio/readline.c: New file.
13491         * libio/tst-readline.c: Likewise.
13492         (routines): Add readline.
13493         (tests-internal): Add tst-readlime.
13494         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
13495         __libc_readline_unlocked.
13496         * libio/fseeko.c (__fseeko): Rename from fseeko.
13497         (fseeko): Add alias.
13498         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
13499         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
13500         (fseeko64): Add alias.
13501         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
13502         * libio/ftello64.c (__ftello64): Rename from ftello64.
13503         (ftello64): Add alias.
13505 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13507         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
13508         HWCAP_ATOMICS.
13510 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13512         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
13513         Use dl_hwcap without masking.
13514         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
13515         Remove HWCAP_CPUID.
13517 2018-07-06  Florian Weimer  <fweimer@redhat.com>
13519         * conform/conformtest.pl (checknamespace): Escape literal braces
13520         in regular expressions.
13522 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
13524         * sysdeps/x86/cpu-features.c (get_common_indeces):
13525         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
13526         * sysdeps/x86/cpu-features.c (init_cpu_features):
13527         AVX_Fast_Unaligned_Load is disabled for Excavator core.
13529 2018-07-05  Florian Weimer  <fweimer@redhat.com>
13531         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
13532         protector.
13533         (CFLAGS-elf-init.oS): Likewise.
13535 2018-07-05  Florian Weimer  <fweimer@redhat.com>
13536             Carlos O'Donell  <carlos@redhat.com>
13538         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
13539         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
13540         with stack protector enabled because there is no risk of infinite
13541         recursion.
13543 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
13545         [BZ #19818]
13546         [BZ #23307]
13547         * libc-abis (ABSOLUTE): New ABI.
13548         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
13549         * NEWS: Mention the new ABI.
13551 2018-07-05  Florian Weimer  <fweimer@redhat.com>
13553         [BZ # 17662]
13554         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
13555         (RENAME_WHITEOUT): Define.
13556         [__USE_GNU] (renameat2): Declare.
13557         * stdio-common/Makefile (routines): Add renameat2.
13558         (tests): Add tst-renameat2.
13559         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
13560         * stdio-common/renameat2.c: New file.
13561         * stdio-common/tst-renameat2.c: Likewise.
13562         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
13563         * manual/filesys.texi (Temporary Files): Note that renameat2 is
13564         undocumented.
13565         * sysdeps/unix/sysv/linux/kernel-features.h
13566         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
13567         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
13568         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
13569         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
13570         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
13571         * sysdeps/unix/sysv/linux/sh/kernel-features.h
13572         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
13573         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13574         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
13575         * include/stdio.h (__renameat): Add alias for renameat.
13576         * stdio-common/renameat.c (__renameat): Rename from renameat.
13577         Add hidden definition and alias.
13578         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
13579         * sysdeps/mach/hurd/renameat.c: Likewise.
13580         * sysdeps/**/libc*.abilist: Add renameat2.
13582 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13584         * posix/bug-regex33.c: Fix build after regex sync.
13586 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
13588         [BZ #23164]
13589         * localedata/tst-langinfo-setlocale.c: New file.
13590         * localedata/tst-langinfo-setlocale-static.c: New file.
13591         * localedata/tst-langinfo-newlocale.c: New file.
13592         * localedata/tst-langinfo-newlocale-static.c: New file.
13593         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
13594         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
13595         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
13596         (tests-static): Remove tst-langinfo-static. Add
13597         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
13598         (tests-special): Remove $(objpfx)tst-langinfo.out,
13599         $(objpfx)tst-langinfo-static.out. Add
13600         $(objpfx)tst-langinfo-setlocale.out,
13601         $(objpfx)tst-langinfo-newlocale.out,
13602         $(objpfx)tst-langinfo-setlocale-static.out,
13603         $(objpfx)tst-langinfo-newlocale-static.out.
13604         ($(objpfx)tst-langinfo.out): Remove.
13605         ($(objpfx)tst-langinfo-static.out): Remove.
13606         ($(objpfx)tst-langinfo-newlocale.out): New target.
13607         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
13608         (test-xfail-tst-langinfo-newlocale-static): Add.
13609         ($(objpfx)tst-langinfo-setlocale.out): New target.
13610         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
13611         * localedata/tst-langinfo.c: Call test_locale.
13612         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
13613         data.
13615 2018-07-04  Florian Weimer  <fweimer@redhat.com>
13617         testrun.sh: Implement --tool=strace, --tool=valgrind
13618         * Makefile (testrun-script): Define variable.
13619         (testrun.sh): Use variable.
13620         * manual/install.texi (Tools for Compilation): make 4.0 or later
13621         is required.
13622         * configure.ac: Check for make 4.0 or later.
13623         * INSTALL: Regenerate.
13624         * configure: Likewise.
13626 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13628         [BZ #23233]
13629         [BZ #21163]
13630         [BZ #18986]
13631         [BZ #13762]
13632         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
13633         * posix/PCRE.tests: Remove invalid test.
13634         * posix/bug-regex28.c: Fix expected values for used syntax.
13635         * posix/bug-regex37.c: New file.
13636         * posix/bug-regex38.c: Likewise.
13637         * posix/regcomp.c: Sync with gnulib.
13638         * posix/regex.c: Likewise.
13639         * posix/regex.h: Likewise.
13640         * posix/regex_internal.c: Likewise.
13641         * posix/regex_internal.h: Likewise.
13642         * posix/regexec.c: Likewise.
13644 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
13646         [BZ #23308]
13647         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
13648         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
13649         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
13650         * localedata/unicode-gen/PropList.txt: likewise.
13651         * localedata/unicode-gen/UnicodeData.txt: likewise.
13652         * localedata/charmaps/UTF-8: Regenerate.
13653         * localedata/locales/i18n_ctype: likewise.
13654         * localedata/locales/tr_TR: likewise.
13655         * localedata/locales/translit_circle: likewise.
13656         * localedata/locales/translit_cjk_compat: likewise.
13657         * localedata/locales/translit_combining: likewise.
13658         * localedata/locales/translit_compat: likewise.
13659         * localedata/locales/translit_font: likewise.
13660         * localedata/locales/translit_fraction: likewise.
13662 2018-07-03  Florian Weimer  <fweimer@redhat.com>
13664         [BZ #23363]
13665         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
13666         * stdio-common/tst-printf.sh: Adjust expected output.
13667         * LICENSES: Update.
13669 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13671         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
13672         symbol.
13674 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13676         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
13677         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
13678         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
13679         * stdio-common/tst-printfsz-islongdouble.c: New file.
13680         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
13681         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
13682         [subdir == stdio-common] (routines): Add ieee128-printf_size.
13683         [subdir == stdio-common] (tests-internal): Add
13684         test-printf-size-ieee128, and test-printf-size-ibm128.
13685         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
13686         (CFLAGS-test-printf-size-ibm128.c): New variables.
13687         [subdir == stdio-common] (tests-special): Add
13688         $(objpfx)test-printf-size-ieee128.out and
13689         $(objpfx)test-printf-size-ibm128.out.
13690         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
13691         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
13692         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
13693         __printf_sizeieee128.
13694         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
13695         New file.
13696         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
13697         Likewise.
13698         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
13699         Likewise.
13701 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13703         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
13704         (exp2f_inline): Likewise.
13705         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
13706         (__math_uflowf): Likewise.
13707         (__math_may_uflowf): Likewise.
13708         (__math_divzerof): Likewise.
13709         (__math_invalidf): Likewise.
13710         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
13711         (__math_oflowf): Likewise.
13712         (__math_uflowf): Likewise.
13713         (__math_may_uflowf): Likewise.
13714         (__math_divzerof): Likewise.
13715         (__math_invalidf): Likewise.
13717 2018-06-29  DJ Delorie  <dj@redhat.com>
13718             Carlos O'Donell  <carlos@redhat.com>
13720         [BZ #23329]
13721         * include/libc-symbols.h: Comment the freeres framework.
13722         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
13723         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
13724         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
13725         * dlfcn/dlerror.c: Include libc-symbols.h
13726         (__dlerror_main_freeres): New function.
13727         * dlfcn/dlfreeres.c: New file.
13728         * dlfcn/sdlfreeres.c: New file.
13729         * include/dlfcn.h: Declare __dlerror_main_freeres.
13730         * malloc/set-freeres.c: Declare __libdl_freeres, and
13731         __libpthread_freeres.
13732         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
13733         the releavant libraries are loaded.
13734         * malloc/thread-freeres.c: Add comments.
13735         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
13736         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
13737         * nptl/allocatestack.c (__nptl_free_stacks): New function.
13738         (__free_stacks): Rename to...
13739         (free_stacks): ...this. Mark static.
13740         (queue_stack): Call free_stacks.
13741         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
13742         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
13743         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
13744         ptr_freeres element from struct.
13745         (pthread_functions): Remove .ptr_freeres from struct initializer.
13746         [SHARED] (nptl_freeres): Remove.
13747         * nptl/nptlfreeres.c: New file.
13748         * nptl/pthreadP.h
13749         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
13750         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
13751         attribute_hidden.
13752         (__free_stacks): Rename to...
13753         (__nptl_stacks_freeres): ...this.
13754         (__shm_directory_freeres): Declare.
13755         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
13756         (__nptl_unwind_freeres): ...this.
13757         * resolv/res-close.c: Add comment.
13758         * resolv/resolv_conf.c: Include libc-symbols.h.
13759         * string/strerror_l.c: Include libc-symbols.h.
13760         * sunrpc/rpc_thread.c: Include libc-symbols.h.
13761         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
13762         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
13763         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
13765 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13767         * stdlib/tst-strfmon_l.c: Add tests for long double.
13769 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
13771         [BZ #23208]
13772         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
13773         * localedata/locales/dsb_DE: New file.
13775 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
13777         [BZ #23140]
13778         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
13779         genitive case).
13780         (alt_mon): New entry, import from CLDR (nominative case).
13782 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
13784         [BZ #22996]
13785         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
13787 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13789         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13790         Use vector registers.
13792         * sysdeps/aarch64/multiarch/memmove_falkor.S
13793         (__memcpy_falkor): Use vector registers.
13795 2018-06-29  Martin Sebor  <msebor@redhat.com>
13797         * manual/stdio.texi (Customizing Printf): Mention interaction
13798         with GCC built-ins.
13800 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
13802         [BZ #23307]
13803         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
13804         `st_value' is 0 if `st_shndx' is SHN_ABS.
13805         * elf/tst-absolute-zero.c: New file.
13806         * elf/tst-absolute-zero-lib.c: New file.
13807         * elf/tst-absolute-zero-lib.lds: New file.
13808         * elf/Makefile (tests): Add `tst-absolute-zero'.
13809         (modules-names): Add `tst-absolute-zero-lib'.
13810         (LDLIBS-tst-absolute-zero-lib.so): New variable.
13811         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
13812         ($(objpfx)tst-absolute-zero: New dependency.
13814 2018-06-29  Zack Weinberg  <zackw@panix.com>
13816         * configure.ac: New command-line option --disable-crypt.
13817         Force --disable-nss-crypt when --disable-crypt is given, with a
13818         warning if it was explicitly enabled.
13819         * configure: Regenerate.
13820         * config.make.in: New boolean substitution variable $(build-crypt).
13821         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
13822         when $(build-crypt).
13823         * manual/install.texi: Document --disable-crypt.
13824         * INSTALL: Regenerate.
13826         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
13827         which is never set.
13828         * conform/Makefile: Only include libcrypt.a in
13829         linknamespace-libs-xsi and linknamespace-libs-XPG4
13830         when $(build-crypt).
13831         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
13832         USE_CRYPT to 1 when $(build-crypt).
13833         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
13834         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
13835         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
13837 2018-06-29  Zack Weinberg  <zackw@panix.com>
13839         * crypt/crypt.h, posix/unistd.h: Update comments and
13840         prototypes for crypt and crypt_r.
13842         * manual/crypt.texi (Cryptographic Functions): New initial
13843         exposition.
13844         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
13845         (Unpredictable Bytes): Improve initial exposition.  Clarify error
13846         behavior of getentropy and getrandom.
13847         * manual/examples/genpass.c: Generate a salt using getentropy
13848         instead of the current time. Use hash $5$ (SHA-2-256).
13849         * manual/examples/testpass.c: Demonstrate validation against
13850         hashes generated with three different one-way functions.
13852         * manual/intro.texi: crypt.texi does not need an overview
13853         anymore.
13855         * manual/nss.texi, manual/memory.texi, manual/socket.texi
13856         * manual/terminal.texi: Consistently refer to "passphrases"
13857         * instead of "passwords", and to the "user database" instead
13858         * of the "password database".
13859         * manual/users.texi: Similarly.  Add notes about how actual
13860         passphrase hashes are now stored in the shadow database.
13861         Remove 20-year-old junk todo note.
13863 2018-06-29  Zack Weinberg  <zackw@panix.com>
13865         * manual/crypt.texi: Use a normal top-level @node declaration.
13866         Move most of the introductory text to the 'crypt' section.
13867         Move the example programs below the @deftypefun for 'crypt_r'.
13868         Move the 'getpass' section...
13869         * manual/terminal.texi: ...here.
13871 2018-06-29  Zack Weinberg  <zackw@panix.com>
13872             Florian Weimer <fweimer@redhat.com>
13874         * posix/unistd.h: Do not declare encrypt.
13875         (_XOPEN_CRYPT): Remove macro definition.
13876         (crypt): Declare only for _USE_MISC.
13877         * stdlib/stdlib.h: Do not declare setkey.
13878         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
13879         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
13881         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
13882         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
13883         into compat symbols.  Don't define initial_perm if it's not
13884         going to be used.
13885         * crypt/cert.c: Link explicitly with the expected versions for
13886         setkey and encrypt.  If they are not available at all, mark
13887         the test as unsupported.
13889         * sunrpc/des_crypt.c: Unconditionally block linkage with
13890         cbc_crypt and ecb_crypt for new binaries.
13891         * sunrpc/des_soft.c: Unconditionally block linkage with
13892         des_setparity for new binaries.
13894         * manual/crypt.texi: Remove the entire "DES Encryption"
13895         section.  Also remove the paragraph talking about FIPS 140-2
13896         from the introduction.
13897         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
13898         of libgcrypt for "real" encryption, not DES.
13899         * manual/conf.texi (Constants for Sysconf): Mention that
13900         _XOPEN_CRYPT is no longer impelemented.
13902         * conform/data/unistd.h-data: Remove crypt function declaration.
13904 2018-06-29  Florian Weimer  <fweimer@redhat.com>
13906         [BZ #23351]
13907         * malloc/hooks.c: Update comments on restoring of dumped heaps.
13908         (disallow_malloc_check): Remove variable.
13909         (__malloc_check_init): Adjust.
13910         (malloc_set_state): Update comment.
13911         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
13912         declarations.
13914 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
13916         [BZ #23140]
13917         * localedata/locales/ast_ES (mon): Rename to...
13918         (alt_mon): This.
13919         (mon): Import from CLDR (genitive case).
13921 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
13922             Jakub Sitnicki  <jkbs@redhat.com>
13924         [BZ #21812]
13925         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
13926         on NLM_F_DUMP_INTR.
13928 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13930         * manual/llio.texi: Remove spurious space.
13932 2018-06-28  Florian Weimer  <fweimer@redhat.com>
13934         [BZ #23349]
13935         * time/bits/types/struct_timespec.h: Change header inclusion guard to
13936         _STRUCT_TIMESPEC.
13938 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13940         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
13941         __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
13942         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
13943         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
13944         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
13945         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
13946         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
13948 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
13950         [BZ #23266]
13951         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
13952         Copy and null-terminate entries that are not terminated, in
13953         addition to empty ones.
13955 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13957         [BZ #18023]
13958         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
13959         (extend_alloca_account): Remove.
13960         * manual/stdio.texi (Variable Arguments Output): Update comment.
13962 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
13964         * nptl/sockperf.c: Remove file.
13966 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13968         [BZ #18023]
13969         * elf/dl-deps.c (_dl_map_object_deps): Use struct
13970         scratch_buffer instead of extend_alloca.
13972 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13974         [BZ #18023]
13975         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
13976         scratch_buffer instead of extend_alloca.  Update comments.
13978 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13980         [BZ #18023]
13981         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
13982         instead of extend_alloca.
13984 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
13986         [BZ #13888]
13987         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
13988         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
13989         /tmp.
13990         * scripts/test-installation.pl: Put temporary files in build
13991         directory, not /tmp.
13992         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
13993         (CFLAGS-bug4.c): Likewise.
13994         (CFLAGS-bug5.c): Likewise.
13995         (CFLAGS-test-fseek.c): Likewise.
13996         (CFLAGS-test-popen.c): Likewise.
13997         (CFLAGS-test_rdwr.c): Likewise.
13998         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
13999         /tmp.
14000         * stdio-common/bug4.c (main): Likewise.
14001         * stdio-common/bug5.c (main): Likewise.
14002         * stdio-common/test-fseek.c (TESTFILE): Likewise.
14003         * stdio-common/test-popen.c (do_test): Likewise.
14004         * stdio-common/test_rdwr.c (main): Likewise.
14006 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
14008         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
14009         (sem_open): Set sem.newsem.pad to zero for valgrind.
14011 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14013         [BZ #20251]
14014         * NEWS: Mention fcntl64 addition.
14015         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
14016         * login/utmp_file.c: Likewise.
14017         * sysdeps/posix/fdopendir.c: Likewise.
14018         * sysdeps/posix/opendir.c: Likewise.
14019         * sysdeps/unix/pt-fcntl.c: Likewise.
14020         * include/fcntl.h (__libc_fcntl64, __fcntl64,
14021         __fcntl64_nocancel_adjusted): New prototype.
14022         (__fcntl_nocancel_adjusted): Remove prototype.
14023         * io/Makefile (routines): Add fcntl64.
14024         (CFLAGS-fcntl64.c): New rule.
14025         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
14026         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
14027         * io/fcntl.h (fcntl64): Add prototype and redirect if
14028         __USE_FILE_OFFSET64 is defined.
14029         * io/fcntl64.c: New file.
14030         * manual/llio.text: Add a note for which commands fcntl acts a
14031         cancellation point.
14032         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
14033         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
14034         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
14035         New symbols.
14036         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
14037         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
14038         non-LFS case.
14039         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
14040         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
14041         to __fcntl64_nocancel.
14042         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
14043         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
14044         to __fcntl64_nocancel.
14045         * sysdeps/generic/not-cancel.h: Likewise.
14046         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
14047         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
14048         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14049         (fcntl64): New symbol.
14050         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14051         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14052         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14055         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14056         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14057         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14058         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14059         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14060         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
14061         fcntl64): Likewise.
14062         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14063         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
14064         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14065         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14066         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14067         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14068         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14069         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14070         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14072         Likewise.
14073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14074         Likewise.
14075         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14076         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14077         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14079 2018-06-26  Florian Weimer  <fweimer@redhat.com>
14081         Run thread shutdown functions in an explicit order.
14082         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
14083         definition.
14084         (__libc_thread_freeres): Call thread shutdown functions
14085         explicitly.
14086         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
14087         * include/string.h (__strerror_thread_freeres): Declare.
14088         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
14089         arena_thread_freeres.  No longer static.  Remove thread shutdown
14090         hook registration.
14091         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
14092         Declare.
14093         * resolv/res-close.c (__res_thread_freeres): Renamed from
14094         res_thread_freeres.  No longer static.  Remove thread shutdown
14095         hook registration.
14096         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
14097         * resolv/resolv_conf.c (freeres): Remove incorrect section
14098         attribute and use libc_freeres_fn.
14099         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
14100         strerror_thread_freeres.  No longer static.  Remove thread
14101         shutdown hook registration.
14102         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
14103         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
14104         shutdown hook registration.
14105         * Makerules (shlib.lds): Do not provide section boundary symbols
14106         for __libc_thread_subfreeres.
14107         * manual/memory.texi (Basic Allocation): Update comment.
14109 2018-06-26  Florian Weimer  <fweimer@redhat.com>
14111         Remove always-defined _RPC_THREAD_SAFE_ macro.
14112         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
14113         Do not define _RPC_THREAD_SAFE_.
14114         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
14115         conditional.
14116         * sunrpc/clnt_perr.c: Likewise.
14117         * sunrpc/clnt_raw.c: Likewise.
14118         * sunrpc/clnt_simp.c: Likewise.
14119         * sunrpc/key_call.c: Likewise.
14120         * sunrpc/rpc_common.c: Likewise.
14121         * sunrpc/rpc_main.c: Likewise.
14122         * sunrpc/rpc_thread.c: Likewise.
14123         * sunrpc/svc.c: Likewise.
14124         * sunrpc/svc_raw.c: Likewise.
14125         * sunrpc/svc_simple.c: Likewise.
14126         * sumrpc/svcauth_des.c: Likewise.
14128 2018-06-26  Florian Weimer  <fweimer@redhat.com>
14130         * libio/Makefile (tests-internal): Add tst-vtables,
14131         tst-vtables-interposed.
14132         * libio/tst-vtables.c: New file.
14133         * libio/tst-vtables-common.c: Likewise.
14134         * libio/tst-vtables-interposed.c: Likewise.
14136 2018-06-26  Florian Weimer  <fweimer@redhat.com>
14138         * support/support_test_main.c (support_test_main): Only call
14139         setvbuf if not disables.
14140         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
14141         * support/test-driver.h (struct test_config): Add no_setvbuf member.
14143 2018-06-26  Florian Weimer  <fweimer@redhat.com>
14145         [BZ #23313]
14146         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
14148 2018-06-25  Florian Weimer  <fweimer@redhat.com>
14150         [BZ #18023]
14151         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14152         Use struct scratch_buffer instead of extend_alloca.
14154 2018-06-25  Florian Weimer  <fweimer@redhat.com>
14156         [BZ #18023]
14157         * nss/getent.c (initgroups_keys): Use dynarray instead of
14158         extend_alloca.
14160 2018-06-25  Florian Weimer  <fweimer@redhat.com>
14162         [BZ #18023]
14163         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
14164         Use struct scratch_buffer instead of extend_alloca.
14166 2018-06-25  Florian Weimer  <fweimer@redhat.com>
14168         [BZ #18023]
14169         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
14170         back to malloc directly, without stack allocations.
14172 2018-06-25  Florian Weimer  <fweimer@redhat.com>
14174         [BZ #18023]
14175         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
14176         of extend_alloca.
14178 2018-06-25  Florian Weimer  <fweimer@redhat.com>
14180         [BZ #18023]
14181         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
14182         of extend_alloca.
14183         * nscd/hstcache.c (addhstbyX): Likewise.
14184         * nscd/pwdcache.c (addpwbyX): Likewise.
14185         * nscd/servicescache.c (addservbyX): Likewise.
14187 2018-06-25  Florian Weimer  <fweimer@redhat.com>
14189         [BZ #18023]
14190         * nscd/connections.c (read_cmdline): New function.
14191         (restart): Use it.  Update comment.
14193 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
14195         [BZ #23140]
14196         * localedata/locales/csb_PL (mon): Rename to...
14197         (alt_mon): This.
14198         (abmon): Rename to...
14199         (ab_alt_mon): This.
14200         (mon): Add with proper genitive forms, copy from Wikipedia.
14201         (abmon): Likewise.
14203 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
14205         [BZ #19485]
14206         * localedata/locales/csb_PL (mon): Fix typos:
14207         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
14208         (yesstr): Add, value is "jo".
14209         (nostr): Add, value is "nié".
14211 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14213         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
14214         all log1p and significand functions on m680x0.
14215         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
14216         of s_significand.c..
14217         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
14218         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
14219         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
14220         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
14221         s_log1p.c and include it..
14223 2018-06-21  Vincent Chen  <vincentc@andestech.com>
14225         * elf/elf.h (R_NDS32_NONE): New define.
14226         (R_NDS32_32_RELA): Likewise.
14227         (R_NDS32_COPY): Likewise.
14228         (R_NDS32_GLOB_DAT): Likewise.
14229         (R_NDS32_JUMP_SLOT): Likewise.
14230         (R_NDS32_RELATIVE): Likewise.
14231         (R_NDS32_TLS_TPOFF): Likewise.
14232         (R_NDS32_TLS_DESC): Likewise.
14234 2018-06-21  Mark Wielaard  <mark@klomp.org>
14236         * elf/elf.h (R_BPF_MAP_FD): Removed.
14237         (R_BPF_64_64, R_BPF_64_32): New.
14239 2018-06-21  Florian Weimer  <fweimer@redhat.com>
14241         [BZ #23253]
14242         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
14243         Renamed from libc_feholdsetround_ctx.
14244         (default_libc_feresetround_ctx): Renamed from
14245         libc_feresetround_ctx.
14246         (default_libc_feholdsetround_noex_ctx): Renamed from
14247         libc_feholdsetround_noex_ctx.
14248         (default_libc_feresetround_noex_ctx): Renamed from
14249         libc_feresetround_noex_ctx.
14250         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
14251         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
14252         forwardning to the old implementations under the new names.
14253         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
14254         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
14255         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
14256         (libc_feresetround_ctx): Forward to default implements for i386
14257         and MATH_SET_BOTH_ROUNDING_MODES.
14258         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
14259         Add -DMATH_SET_BOTH_ROUNDING_MODES.
14261 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
14263         * string/tst-cmp.c: Include <libc-diag.h>.
14264         (strncmp_max): Disable -Wstringop-overflow= around call to
14265         strncmp.
14266         (strncasecmp_max): Disable -Wstringop-overflow= around call to
14267         strncasecmp.
14269         * string/bug-strpbrk1.c: Include <libc-diag.h>.
14270         (main): Disable -Wunused-value around call to strpbrk.
14271         * string/bug-strspn1.c: Include <libc-diag.h>.
14272         (main): Disable -Wunused-value around call to strspn.
14274 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14275             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14277         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
14278         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
14280 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14282         * math/Makefile (libm-calls): Move s_significandF to...
14283         (gen-libm-calls): ... here.
14284         * math/s_significand_template.c: New file.
14285         * math/s_significand.c: Removed.
14286         * math/s_significandf.c: Removed.
14287         * math/s_significandl.c: Removed.
14288         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
14289         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
14291         * math/e_exp2_template.c (declare_mgen_finite_alias,
14292         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
14293         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
14294         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
14296 2018-06-20  Florian Weimer  <fweimer@redhat.com>
14298         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
14300 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
14302         [BZ #23280]
14303         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
14304         floating-point number to strtod functions rather than possibly
14305         negating result of those functions.
14306         * stdio-common/tst-scanf-round.c: New file.
14307         * stdio-common/Makefile (tests): Add tst-scanf-round.
14308         ($(objpfx)tst-scanf-round): Depend on $(libm).
14310 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14312         * sysdeps/mach/hurd/localplt.data: Move to...
14313         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
14314         R_386_GLOB_DAT like on Linux i386.
14316 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
14318         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
14319         (SHM_STAT_ANY): New macro.
14320         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
14321         (SHM_STAT_ANY): Likewise.
14322         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
14323         (SHM_STAT_ANY): Likewise.
14324         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
14325         (SHM_STAT_ANY): Likewise.
14326         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
14327         (SHM_STAT_ANY): Likewise.
14328         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
14329         (SHM_STAT_ANY): Likewise.
14330         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
14331         (SHM_STAT_ANY): Likewise.
14332         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
14333         (SHM_STAT_ANY): Likewise.
14334         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
14335         (SHM_STAT_ANY): Likewise.
14336         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
14337         (SHM_STAT_ANY): Likewise.
14338         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
14339         (SHM_STAT_ANY): Likewise.
14340         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
14341         (SHM_STAT_ANY): Likewise.
14343         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
14344         (SEM_STAT_ANY): New macro.
14345         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
14346         (SEM_STAT_ANY): Likewise.
14347         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
14348         (SEM_STAT_ANY): Likewise.
14349         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
14350         (SEM_STAT_ANY): Likewise.
14351         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
14352         (SEM_STAT_ANY): Likewise.
14353         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
14354         (SEM_STAT_ANY): Likewise.
14355         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
14356         (SEM_STAT_ANY): Likewise.
14357         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
14358         (SEM_STAT_ANY): Likewise.
14359         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
14360         (SEM_STAT_ANY): Likewise.
14361         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
14362         (SEM_STAT_ANY): Likewise.
14364         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
14365         (MSG_STAT_ANY): New macro.
14366         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
14367         (MSG_STAT_ANY): Likewise.
14368         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
14369         (MSG_STAT_ANY): Likewise.
14370         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
14371         (MSG_STAT_ANY): Likewise.
14372         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
14373         (MSG_STAT_ANY): Likewise.
14374         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
14375         (MSG_STAT_ANY): Likewise.
14376         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
14377         (MSG_STAT_ANY): Likewise.
14378         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
14379         (MSG_STAT_ANY): Likewise.
14380         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
14381         (MSG_STAT_ANY): Likewise.
14382         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
14383         (MSG_STAT_ANY): Likewise.
14385         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
14386         (MAP_TYPE): Change value to 0x2b.
14388 2018-06-18  Florian Weimer  <fweimer@redhat.com>
14390         [BZ #15722]
14391         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
14392         socket with SOCK_CLOEXEC.
14394 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
14396         [BZ #23303]
14397         * sysdeps/powerpc/powerpc64/le/Makefile
14398         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
14399         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
14400         (gnulib-tests): Also add $(f128-loader-link) for
14401         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
14403 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14405         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
14406         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
14407         of sendfile.
14408         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
14409         (sendfile64): New strong alias.
14410         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
14411         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
14412         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
14413         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
14414         attribute.
14415         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
14416         ___pthread_get_cleanup_stack.
14417         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
14418         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
14419         * mach/shortcut.awk: Make syscall stubs include
14420         <mach-shortcuts-hidden.h> and add hidden definition.
14421         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
14422         (__mach_msg): Add hidden prototype.
14423         * mach/msg.c: Include <mach.h>.
14424         (__mach_msg): Add hidden definition.
14425         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
14426         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
14427         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
14428         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
14429         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
14430         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
14431         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
14432         prototype and definition.
14433         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
14434         hidden target for _hurd_self_sigstate.
14436 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
14438         [BZ #23007]
14439         * stdlib/tst-strtod-nan-sign-main.c: New file.
14440         * stdlib/tst-strtod-nan-sign.c: Likewise.
14441         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
14442         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
14443         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
14444         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
14445         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
14447 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
14449         [BZ #23007]
14450         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
14451         appropriate sign.
14453 2018-06-14  Florian Weimer  <fweimer@redhat.com>
14455         [BZ #23290]
14456         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
14457         that the result stays within the ISO-8859-1 range.
14458         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
14459         characters are defined in IBM273.
14461 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14463         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
14464         __mach_task_self): Remove attribute_hidden.
14466 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
14468         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
14469         ignore -Wrestrict for one test.
14471 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
14472             Szabolcs Nagy  <szabolcs.nagy@arm.com>
14474         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
14476 2018-06-14  Florian Weimer  <fweimer@redhat.com>
14478         * scripts/update-abilist.sh: Accept empty list of files to patch.
14480 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14482         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
14483         test-xfail-check-abi-libmachuser): Add.
14484         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
14485         __libc_read and __libc_write to __read and __write.
14486         * sysdeps/hurd/include/hurd/port.h: New file.
14487         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
14488         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
14489         __thread_switch, __evc_wait): Move declarations to...
14490         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
14491         attribute_hidden.
14492         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
14493         use PLT to call _hurd_self_sigstate.
14495 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
14497         [BZ #23279]
14498         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
14499         MAX_EXP as overflowing.
14500         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
14501         overflow flag.
14502         (round_str): Output also whether result overflows in each rounding
14503         mode.
14504         * stdlib/tst-strtod-round-data: Add more tests.
14505         * stdlib/tst-strtod-round-data.h: Regenerated.
14506         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
14507         (TEST): Handle extra arguments for overflow flags.
14508         (struct test_overflow): New type.
14509         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
14510         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
14511         (test_in_one_mode): Take argument with overflow information.
14512         (do_test): Update calls to test_in_one_mode.
14514 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
14516         * elf/dl-load (_dl_dst_substitute): Correct comment.
14517         (_dl_dst_count): Likewise.
14519         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
14520         lll_futex_timed_wait.
14522 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
14524         [BZ #23277]
14525         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
14526         attribute.
14527         * math/test-nan-const.c: New file.
14528         * math/Makefile (tests): Add test-nan-const.
14529         (CFLAGS-test-nan-const.c): New variable.
14531 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
14533         * benchtests/scripts/compare_strings.py (process_results): Add
14534         funcs argument.  Compare only functions which are selected.
14535         (main): Check if base function is among selected functions.
14536         Pass selected functions to process_results.
14537         (__main__): Add -f/--functions argument.
14539 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
14540             Hongbo Zhang  <hongbo.zhang@linaro.org>
14542         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
14543         __memcpy_falkor for phecda core.
14544         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
14545         __memmove_falkor for phecda core.
14546         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
14547         __memset_falkor for phecda core.
14548         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
14549         for phecda core.
14550         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
14551         macro to identify phecda core.
14553 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
14554             Andreas Schwab  <schwab@suse.de>
14555             Dmitry V. Levin  <ldv@altlinux.org>
14556             Florian Weimer  <fweimer@redhat.com>
14558         [BZ #23102]
14559         [BZ #21942]
14560         [BZ #18018]
14561         [BZ #23259]
14562         CVE-2011-0536
14563         * elf/dl-dst.h: Remove DL_DST_COUNT.
14564         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
14565         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
14566         (is_dst): Comment.  Support ELF gABI.
14567         (_dl_dst_count): Comment.  Simplify and count DSTs.
14568         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
14569         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
14570         locals.
14572 2018-06-12  Zack Weinberg  <zackw@panix.com>
14574         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
14575         * sysdeps/unix/sysv/linux/dl-sysdep.c
14576         Include not-cancel.h.  Use __close_nocancel instead of __close,
14577         __open64_nocancel instead of __open, __read_nocancel instead of
14578         __libc_read, and __write_nocancel instead of __libc_write.
14580         * csu/check_fds.c (check_one_fd)
14581         * sysdeps/posix/fdopendir.c (__fdopendir)
14582         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
14583         instead of __fcntl and/or __libc_fcntl.
14585         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
14586         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
14587         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
14588         Use __open64_nocancel instead of __open_nocancel.
14590         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
14591         hidden_proto declarations to the end and issue them if either
14592         IS_IN(libc) or IS_IN(rtld).
14593         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
14594         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
14595         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
14596         read_nocancel, waitpid_nocancel, write_nocancel.
14598         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
14599         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
14600         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
14602         * nptl/pt-fcntl.c: New file.
14603         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
14604         (libpthread-routines): Add pt-fcntl.
14605         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
14606         (__libc_fcntl): Remove attribute_hidden.
14607         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
14608         __fcntl_nocancel_adjusted, not fcntl_common.
14609         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
14610         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
14611         to fcntl_nocancel.c.
14612         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
14613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
14614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
14615         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
14617         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
14618         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
14619         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
14620         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
14621         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
14622         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
14623         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
14624         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
14625         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
14626         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
14627         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
14628         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
14629         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
14630         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
14631         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
14632         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
14633         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
14634         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
14635         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
14636         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
14638         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
14639         libpthread-routines.
14640         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
14641         defines nothing.
14643         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
14644         __libc_read, and __write instead of __libc_write.  Define
14645         __open64 in addition to __open.
14647 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
14649         [BZ #23250]
14650         [BZ #10686]
14651         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
14652         to _private_tm[3] and add __glibc_reserved2.
14653         Add _Static_assert of offset of __private_ss == 0x30.
14654         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
14655         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
14657 2018-06-12  Florian Weimer  <fweimer@redhat.com>
14659         x86: Make strncmp usable from rtld.
14660         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
14661         __strncmp_ia32 if in libc (and not in rtld).
14662         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
14663         strncmp if not in libc (and not to __strncmp_sse2).
14665 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
14667         [BZ #23140]
14668         * localedata/locales/gd_GB (mon): Rename to...
14669         (alt_mon): This.
14670         (mon): Import from CLDR (genitive case).
14671         * localedata/locales/hsb_DE (mon): Rename to...
14672         (alt_mon): This.
14673         (mon): Import from CLDR (genitive case).
14674         * localedata/locales/wa_BE (mon): Rename to...
14675         (alt_mon): This.
14676         (mon): Add, fill with the proper genitive forms, but CLDR data
14677         is incomplete; completed according to the comments in this file.
14678         (d_t_fmt): Do not use "di" before the month name, no longer needed.
14680         * localedata/locales/wa_BE (country_name): Reword
14681         "Beljike" -> "Beldjike".
14683 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
14685         [BZ #23272]
14686         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
14687         cases of non-finite arguments.
14688         * math/libm-test-fma.inc (fma_test_data): Add more tests.
14690 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
14692         [BZ #23174]
14693         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
14695 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14697         [BZ #23264]
14698         * include/unistd.h (__execvpex): New prototype.
14699         * posix/Makefile (tests): Add tst-spawn4.
14700         (tests-internal): Add tst-spawn4-compat.
14701         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
14702         * posix/tst-spawn4-compat.c: New file.
14703         * posix/tst-spawn4.c: Likewise.
14704         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
14705         binaries as shell scripts.
14706         * sysdeps/posix/spawni.c (__spawni): Likewise.
14708 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14710         [BZ #23145]
14711         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
14712         ($(all-built-dso:=.dynsym): New target.
14713         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
14714         ($(objpfx)check-initfini.out): New target.
14715         (generated): Add check-initfini.out.
14716         * scripts/check-initfini.awk: New file.
14717         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
14718         (_fini): Likewise.
14719         * sysdeps/alpha/crti.S (_init): Mark as hidden.
14720         (_fini): Likewise.
14721         * sysdeps/arm/crti.S (_init): Mark as hidden.
14722         (_fini): Likewise.
14723         * sysdeps/hppa/crti.S (_init): Mark as hidden.
14724         (_fini): Likewise.
14725         * sysdeps/i386/crti.S (_init): Mark as hidden.
14726         (_fini): Likewise.
14727         * sysdeps/ia64/crti.S (_init): Mark as hidden.
14728         (_fini): Likewise.
14729         * sysdeps/m68k/crti.S (_init): Mark as hidden.
14730         (_fini): Likewise.
14731         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
14732         (_fini): Likewise.
14733         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
14734         (_fini): Likewise.
14735         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
14736         (_fini): Likewise.
14737         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
14738         (_fini): Likewise.
14739         * sysdeps/nios2/crti.S (_init): Mark as hidden.
14740         (_fini): Likewise.
14741         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
14742         (_fini): Likewise.
14743         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
14744         (_fini): Likewise.
14745         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
14746         (_fini): Likewise.
14747         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
14748         (_fini): Likewise.
14749         * sysdeps/sh/crti.S (_init): Mark as hidden.
14750         (_fini): Likewise.
14751         * sysdeps/sparc/crti.S (_init): Mark as hidden.
14752         (_fini): Likewise.
14753         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
14754         (_fini): Likewise.
14756 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14758         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
14759         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
14760         and TF redirection to KFtype and KF only when the default
14761         long double type is not the IEEE 128-bit floating point type.
14763 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
14765         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
14766         macro.
14767         (HWCAP_USCAT): Likewise.
14768         (HWCAP_ILRCPC): Likewise.
14769         (HWCAP_FLAGM): Likewise.
14770         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14771         Increase to 28.
14772         (_dl_aarch64_cap_flags): Add new flag names.
14774         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
14775         (MAP_FIXED_NOREPLACE): New macro.
14776         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
14777         (MAP_FIXED_NOREPLACE): Likewise.
14778         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
14779         (MAP_FIXED_NOREPLACE): Likewise.
14780         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
14781         (MAP_FIXED_NOREPLACE): Likewise.
14782         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
14783         (MAP_FIXED_NOREPLACE): Likewise.
14784         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
14785         (MAP_FIXED_NOREPLACE): Likewise.
14786         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
14787         (MAP_FIXED_NOREPLACE): Likewise.
14788         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
14789         (MAP_FIXED_NOREPLACE): Likewise.
14790         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
14791         (MAP_FIXED_NOREPLACE): Likewise.
14792         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
14793         (MAP_FIXED_NOREPLACE): Likewise.
14794         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
14795         (MAP_FIXED_NOREPLACE): Likewise.
14796         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
14797         (MAP_FIXED_NOREPLACE): Likewise.
14798         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
14799         (MAP_FIXED_NOREPLACE): Likewise.
14800         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
14801         (MAP_FIXED_NOREPLACE): Likewise.
14802         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
14803         (MAP_FIXED_NOREPLACE): Likewise.
14805         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14806         version to 4.17.
14808 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
14810         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
14811         version to 4.17
14813 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14815         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
14816         int.
14817         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
14819 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
14821         * benchtests/scripts/compare_string.py: (process_results) Catch
14822         exception in non-existent base_func and catch exception in
14823         non-existent attribute.
14824         (parse_file) Catch exception if input file does not exist.
14826 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
14828         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
14829         options to avoid diff calculation and omit header, respectively.
14830         (main): process --no-diff and --no-header
14832 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
14833             H.J. Lu  <hongjiu.lu@intel.com>
14835         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14836         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
14837         wcsncmp-sse2.
14838         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14839         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
14840         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
14841         and __wcsncmp_sse2.
14842         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
14843         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
14844         AVX unaligned load is fast and vzeroupper is preferred.
14845         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
14846         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
14847         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
14848         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
14849         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
14850         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
14851         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
14852         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
14853         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
14854         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
14855         is undefined.
14857 2018-06-01  Florian Weimer  <fweimer@redhat.com>
14859         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
14860         configuring with --disable-multi-arch, building with
14861         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
14862         Haswell-era CPU.
14864 2018-06-01  Florian Weimer  <fweimer@redhat.com>
14866         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
14867         results from building with “-march=x86-64 -mtune=generic
14868         -mfpmath=sse” and running on a Haswell-era CPU.
14870 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
14872         [BZ #18473]
14873         * soft-fp/sqrttf2.c: Remove file.
14874         * soft-fp/sqrtdf2.c: Move to ....
14875         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
14876         <shlib-compat.h>.
14877         (__sqrtdf2): Make conditional on
14878         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
14879         symbol.
14880         * soft-fp/sqrtsf2.c: Move to ....
14881         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
14882         <shlib-compat.h>.
14883         (__sqrtsf2): Make conditional on
14884         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
14885         symbol.
14886         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
14887         (gcc-double-routines): Remove sqrtdf2.
14888         (gcc-quad-routines): Remove sqrttf2.
14889         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
14890         Do not filter out sqrtsf2 and sqrtdf2.
14891         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
14892         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
14894 2018-06-01  Florian Weimer  <fweimer@redhat.com>
14896         * sysdeps/generic/libcidn.abilist: Remove file.
14898 2018-06-01  Florian Weimer  <fweimer@redhat.com>
14900         [BZ #23236]
14901         * libio/strfile.h (struct _IO_str_fields): Rename members to
14902         discourage their use and add comment.
14903         (_IO_STR_DYNAMIC): Remove unused macro.
14904         * libio/strops.c (_IO_str_init_static_internal): Do not use
14905         callback pointers.  Call malloc and free.
14906         (_IO_str_overflow): Do not use callback pointers.  Call malloc
14907         and free.
14908         (enlarge_userbuf): Likewise.
14909         (_IO_str_finish): Call free.
14910         * libio/wstrops.c (_IO_wstr_init_static): Initialize
14911         _allocate_buffer_unused.
14912         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
14913         and free.
14914         (enlarge_userbuf): Likewise.
14915         (_IO_wstr_finish): Call free.
14916         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
14917         _allocate_buffer_unused, _free_buffer_unused.
14918         * libio/memstream.c (__open_memstream): Likewise.
14919         * libio/vasprintf.c (_IO_vasprintf): Likewise.
14920         * libio/wmemstream.c (open_wmemstream): Likewise.
14922 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
14924         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
14925         AMD Ryzen 7 1800X.
14927 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14929         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
14930         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
14931         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
14932         New file.
14933         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
14934         Likewise.
14935         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
14937 2018-05-29  Florian Weimer  <fweimer@redhat.com>
14939         * support/Makefile (libsupport-routines): Add
14940         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
14941         xpthread_barrierattr_setpshared.
14942         * support/xpthread_barrierattr_destroy.c: New file.
14943         * support/xpthread_barrierattr_init.c: Likewise.
14944         * support/xpthread_barrierattr_setpshared.c: Likewise.
14946 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14948         [BZ #23206]
14949         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
14950         _r_debug and update DT_DEBUG for debugger.
14952 2018-05-29  Florian Weimer  <fweimer@redhat.com>
14954         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
14955         (tst-strtod5i.out): Likewise.
14957 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
14959         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
14960         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
14961         (sparc64-quad-routines): New variable.  Moved from ....
14962         [$(subdir) = soft-fp] (sysdep_routines): Add
14963         $(sparc64-quad-routines).  Moved from ....
14964         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
14965         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
14966         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
14967         moved from ....
14968         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
14969         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
14970         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
14971         * sysdeps/sparc/sparc64/qp_add.c: ... here.
14972         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
14973         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
14974         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
14975         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
14976         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
14977         * sysdeps/sparc/sparc64/qp_div.c: ... here.
14978         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
14979         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
14980         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
14981         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
14982         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
14983         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
14984         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
14985         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
14986         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
14987         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
14988         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
14989         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
14990         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
14991         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
14992         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
14993         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
14994         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
14995         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
14996         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
14997         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
14998         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
14999         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
15000         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
15001         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
15002         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
15003         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
15004         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
15005         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
15006         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
15007         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
15008         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
15009         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
15010         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
15011         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
15012         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
15013         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
15014         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
15015         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
15016         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
15017         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
15018         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
15019         * sysdeps/sparc/sparc64/qp_util.c: ... here.
15020         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
15021         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
15022         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
15023         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
15024         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
15025         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
15027         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
15028         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
15029         (sparc32-quad-routines): New variable.  Moved from ....
15030         [$(subdir) = soft-fp] (sysdep_routines): Add
15031         $(sparc32-quad-routines).  Moved from ....
15032         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
15033         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
15034         moved from ....
15035         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
15036         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
15037         * sysdeps/sparc/sparc32/q_add.c: ... here.
15038         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
15039         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
15040         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
15041         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
15042         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
15043         * sysdeps/sparc/sparc32/q_div.c: ... here.
15044         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
15045         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
15046         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
15047         * sysdeps/sparc/sparc32/q_feq.c: ... here.
15048         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
15049         * sysdeps/sparc/sparc32/q_fge.c: ... here.
15050         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
15051         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
15052         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
15053         * sysdeps/sparc/sparc32/q_fle.c: ... here.
15054         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
15055         * sysdeps/sparc/sparc32/q_flt.c: ... here.
15056         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
15057         * sysdeps/sparc/sparc32/q_fne.c: ... here.
15058         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
15059         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
15060         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
15061         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
15062         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
15063         * sysdeps/sparc/sparc32/q_mul.c: ... here.
15064         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
15065         * sysdeps/sparc/sparc32/q_neg.c: ... here.
15066         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
15067         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
15068         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
15069         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
15070         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
15071         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
15072         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
15073         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
15074         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
15075         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
15076         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
15077         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
15078         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
15079         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
15080         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
15081         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
15082         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
15083         * sysdeps/sparc/sparc32/q_sub.c: ... here.
15084         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
15085         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
15086         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
15087         * sysdeps/sparc/sparc32/q_util.c: ... here.
15088         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
15089         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
15090         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
15091         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
15093 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15094             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
15096         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
15097         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
15098         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
15099         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
15101 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
15103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
15104         powerpc/soft-fp.
15105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
15106         Likewise.
15107         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
15108         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
15110 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
15112         [BZ #23171]
15113         * math/math.h [C++] (iseqsig): Fix parameter type for the long
15114         double version.
15116 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
15118         * sysdeps/sh/Implies: Remove sh/soft-fp.
15119         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
15120         * sysdeps/sh/sfp-machine.h: ... here.
15122 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15124         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
15125         (__mempcpy_erms): Skip zero length.
15126         (__memmove_erms): Likewise.
15127         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
15128         (__memset_erms): Likewise.
15130 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
15132         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
15133         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
15134         Add functions moved from ....
15135         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
15136         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
15137         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
15138         from ....
15139         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
15140         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
15141         * sysdeps/alpha/e_sqrtl.c: ... here.
15142         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
15143         * sysdeps/alpha/local-soft-fp.h: ... here.
15144         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
15145         * sysdeps/alpha/ots_add.c: ... here.
15146         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
15147         * sysdeps/alpha/ots_cmp.c: ... here.
15148         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
15149         * sysdeps/alpha/ots_cmpe.c: ... here.
15150         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
15151         * sysdeps/alpha/ots_cvtqux.c: ... here.
15152         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
15153         * sysdeps/alpha/ots_cvtqx.c: ... here.
15154         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
15155         * sysdeps/alpha/ots_cvttx.c: ... here.
15156         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
15157         * sysdeps/alpha/ots_cvtxq.c: ... here.
15158         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
15159         * sysdeps/alpha/ots_cvtxt.c: ... here.
15160         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
15161         * sysdeps/alpha/ots_div.c: ... here.
15162         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
15163         * sysdeps/alpha/ots_mul.c: ... here.
15164         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
15165         * sysdeps/alpha/ots_nintxq.c: ... here.
15166         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
15167         * sysdeps/alpha/ots_sub.c: ... here.
15168         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
15169         * sysdeps/alpha/sfp-machine.h: ... here.
15171 2018-05-23  Florian Weimer  <fweimer@redhat.com>
15173         [BZ #19728]
15174         [BZ #19729]
15175         [BZ #22247]
15176         CVE-2016-6261
15177         CVE-2016-6263
15178         CVE-2017-14062
15179         Switch to extern IDNA implementation (libidn2).
15180         * libidn: Remove subdirectory.
15181         * LICENSES: Do not mention licensing conditions for the removed
15182         libidn code.
15183         * config.h.in (HAVE_LIBIDN): Remove.
15184         * include/dlfcn.h (__libc_dlopen): Update comment.
15185         * include/idna.h: Remove file.
15186         * inet/Makefile (routines): Add idna.
15187         (tests-static, tests-internal): Add tst-idna_name_classify.
15188         (LOCALES): Generate locales for tests.
15189         (tst-idna_name_classify.out): Depend on generated locales.
15190         * inet/idna_name_classify.c: New file.
15191         * inet/tst-idna_name_classify.c: Likewise.
15192         * inet/net-internal.h (__idna_to_dns_encoding)
15193         (__idna_from_dns_encoding): Declare.
15194         * inet/net-internal.h (enum idna_name_classification): Define.
15195         (__idna_name_classify): Declare.
15196         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
15197         __idna_from_dns_encoding.
15198         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
15199         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
15200         name as a fallback in case of encoding errors.
15201         (getnameinfo): Use DEPRECATED_NI_IDN.
15202         * inet/idna.c: New file.
15203         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
15204         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
15205         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
15206         (modules-names): Add tst-no-libidn2.
15207         (extra-test-objs): Add tst-no-libidn2.os.
15208         (LDFLAGS-tst-no-libidn2.so): Set soname.
15209         (LOCALES): Set, and generate locales.
15210         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
15211         (tst-resolv-ai_idn-latin1): Likewise.
15212         (tst-resolv-ai_idn-nolibidn2): Likewise.
15213         (tst-resolv-ai_idn.out): Depend on locales.
15214         (tst-resolv-ai_idn-latin1.out): Depend on locales.
15215         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
15216         tst-no-libidn2.so.
15217         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
15218         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
15219         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
15220         * resolv/tst-resolv-ai_idn.c: New file.
15221         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
15222         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
15223         * resolv/tst-no-libidn2.c: Likewise.
15224         * support/support_format_addrinfo.c (format_ai_flags): Do not
15225         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
15226         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
15227         (gaih_inet): Call __idna_to_dns_encoding and
15228         __idna_from_dns_encoding, and use the original (punycode) name if
15229         __idna_from_dns_encoding fails due to an encoding error.
15230         (getaddrinfo): Use DEPRECATED_AI_IDN.
15231         * sysdeps/unix/inet/Subdirs (libidn): Remove.
15232         * sysdeps/unix/inet/configure: Remove file.
15233         * sysdeps/unix/inet/configure.ac: Likewise.
15235 2018-05-23  Florian Weimer  <fweimer@redhat.com>
15237         Implement allocate_once.
15238         * include/allocate_once.h: New file.
15239         * misc/allocate_once.c: Likewise.
15240         * misc/tst-allocate_once.c: Likewise.
15241         * misc/Makefile (routines): Add allocate_once.
15242         (tests-internal): Add tst-allocate_once.
15243         (generated): Add tst-allocate_once.mtrace,
15244         tst-allocate_once-mem.out.
15245         (tests-special): Add tst-allocate_once-mem.out.
15246         (tst-allocate_once-ENV): Set MALLOC_TRACE.
15247         (tst-allocate_once-mem.out): Call mtrace.
15248         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
15250 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15252         [BZ #23196]
15253         * string/test-memcpy.c (do_test1): New function.
15254         (test_main): Call it.
15256 2018-05-23  Andreas Schwab  <schwab@suse.de>
15258         [BZ #23196]
15259         CVE-2018-11237
15260         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
15261         (L(preloop_large)): Save initial destination pointer in %r11 and
15262         use it instead of %rax after the loop.
15263         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
15265 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
15267         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
15268         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
15269         -I../soft-fp.  Moved from ....
15270         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
15271         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
15272         * sysdeps/aarch64/e_sqrtl.c: ... here.
15273         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
15274         * sysdeps/aarch64/sfp-machine.h: ... here.
15276         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
15277         -Wmaybe-uninitialized around access to fq[0].
15278         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
15279         Likewise.
15281         [BZ #18471]
15282         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
15283         aliases for non-libc case of versioned symbols.
15284         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
15285         (llseek): Define as compat symbol if
15286         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
15287         with link warning.
15288         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
15289         Make into a compat symbol, disabled for minimum symbol version
15290         GLIBC_2.28 and later.
15291         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
15293 2018-05-22  Florian Weimer  <fweimer@redhat.com>
15295         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
15296         not add -mpreferred-stack-boundary=4.
15297         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
15298         (stack-align-test-flags): Likewise.
15299         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
15300         Likewise.
15301         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
15302         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
15303         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
15304         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
15305         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
15306         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
15307         (CFLAGS-tst-align2.c): Likewise.
15309 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15311         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
15312         (index_arch_Prefer_FSRM): Likewise.
15313         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
15314         Also check Prefer_FSRM.
15315         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
15316         Also return OPTIMIZE (erms) for Prefer_FSRM.
15318 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15320         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
15321         (index_cpu_FSRM): Likewise.
15322         (reg_FSRM): Likewise.
15324 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
15326         * math/gen-tgmath-tests.py: Import sys.
15327         (Tests.__init__): Initialize macros_seen.
15328         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
15329         if requested to do so for this macro.
15330         (Tests.add_all_tests): Take argument for macro for which to
15331         generate tests.
15332         (Tests.check_macro_list): New function.
15333         (main): Handle check-list argument and argument specifying macro
15334         for which to generate tests.
15335         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
15336         [PYTHON] (tgmath3-macro-tests): Likewise.
15337         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
15338         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
15339         not test-tgmath3.c.
15340         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
15341         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
15342         to CFLAGS.
15343         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
15344         [PYTHON] ($(foreach
15345         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
15346         rule.
15347         [PYTHON] (tests-special): Add
15348         $(objpfx)test-tgmath3-macro-list.out.
15349         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
15351         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
15352         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
15353         later.
15355         [BZ #22639]
15356         * time/tzset.c (SECSPERDAY): Cast to time_t.
15357         * time/tst-y2039.c: New file.
15358         * time/Makefile (tests): Add tst-y2039.
15360 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
15362         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
15363         (PREFETCH_ONE_SET): Remove duplicate line.
15365 2018-05-17  Florian Weimer  <fweimer@redhat.com>
15367         * sysdeps/generic/math-type-macros-double.h: Include
15368         <math-nan-payload-double.h> after <libm-alias-double.h>.
15369         * sysdeps/generic/math-type-macros-float.h: Include
15370         <math-nan-payload-float.h> after <libm-alias-float.h>.
15371         * sysdeps/generic/math-type-macros-float128.h: Include
15372         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
15373         * sysdeps/generic/math-type-macros-ldouble.h: Include
15374         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
15376 2018-05-17  Andreas Schwab  <schwab@suse.de>
15378         * resolv/res_send.c (__res_context_send): Don't set errno when
15379         returing error after malloc failure.
15381 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15383         * nptl/allocatestack.c (allocate_stack): Remove the
15384         !__ASSUME_PRIVATE_FUTEX paths.
15385         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
15386         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
15387         Likewise.
15388         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
15389         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
15390         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
15391         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
15392         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
15393         !__ASSUME_PRIVATE_FUTEX path.
15394         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
15395         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
15396         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15397         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
15398         !__ASSUME_PRIVATE_FUTEX macros.
15399         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
15400         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
15401         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
15402         * sysdeps/unix/sysv/linux/kernel-features.h
15403         (__ASSUME_PRIVATE_FUTEX): Removed.
15405 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
15407         * math/Makefile (libm-narrow-fns): Add div.
15408         (libm-test-funcs-narrow): Likewise.
15409         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
15410         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
15411         * math/gen-auto-libm-tests.c (test_functions): Add div.
15412         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
15413         (NARROW_DIV_ROUND_TO_ODD): Likewise.
15414         (NARROW_DIV_TRIVIAL): Likewise.
15415         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
15416         macro.
15417         (__ddivl): Likewise.
15418         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
15419         ddiv.
15420         (CFLAGS-nldbl-ddiv.c): New variable.
15421         (CFLAGS-nldbl-fdiv.c): Likewise.
15422         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15423         __nldbl_ddivl.
15424         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
15425         prototype.
15426         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
15427         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
15428         * math/auto-libm-test-in: Add tests of div.
15429         * math/auto-libm-test-out-narrow-div: New generated file.
15430         * math/libm-test-narrow-div.inc: New file.
15431         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
15432         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
15433         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
15434         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
15435         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
15436         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
15437         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
15438         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
15439         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
15440         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
15441         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
15442         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
15443         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
15444         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
15445         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
15446         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
15447         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
15448         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
15449         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15450         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15451         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15452         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15453         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15454         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15455         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15456         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15457         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15458         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15459         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15460         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15461         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15462         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15467         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15468         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15469         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15470         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15471         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15472         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15473         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15474         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15476 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15478         [BZ #23178]
15479         * nscd/nscd-client.h (sendfileall): Remove prototype.
15480         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
15481         (handle_request): Use writeall instead of sendfileall.
15482         * nscd/aicache.c (addhstaiX): Likewise.
15483         * nscd/grpcache.c (cache_addgr): Likewise.
15484         * nscd/hstcache.c (cache_addhst): Likewise.
15485         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15486         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
15487         * nscd/pwdcache.c (cache_addpw): Likewise.
15488         * nscd/servicescache.c (cache_addserv): Likewise.
15489         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
15490         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
15491         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
15492         Remove define.
15494 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15496         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
15497         Include <string/strncat.c>.
15498         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
15499         alias.
15500         (__GI___strncat): New hidden alias.
15502 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
15504         * sysdeps/mips/mips32/libm-test-ulps: Update.
15505         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15507 2018-05-16  Florian Weimer  <fweimer@redhat.com>
15509         * support/Makefile (libsupport-routines): Add support_quote_blob,
15510         support_test_compare_blob.
15511         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
15512         * support/check.h (TEST_COMPARE_BLOB): Define.
15513         (support_test_compare_blob): Declare.
15514         * support/support.h (support_quote_blob): Declare.
15515         * support/support_quote_blob.c: New file.
15516         * support/support_test_compare_blob.c: Likewise.
15517         * support/tst-support_quote_blob.c: Likewise.
15518         * support/tst-test_compare_blob.c: Likewise.
15520 2018-05-16  Florian Weimer  <fweimer@redhat.com>
15522         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
15523         of <strtod_nan_double.h>.
15524         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
15525         instead of SET_MANTISSA.
15526         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
15527         of include <strtod_nan_float.h>.
15528         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
15529         instead of <strtod_nan_ldouble.h>.
15530         * stdlib/strtod_nan_double.h: Move to ...
15531         * sysdeps/generic/math-nan-payload-double.h: ... here.
15532         (FLOAT): Remove definition.
15533         (SET_MANTISSA): Rename to ...
15534         (SET_NAN_PAYLOAD): ... this.
15535         * stdlib/strtod_nan_float.h: Move to ...
15536         * sysdeps/generic/math-nan-payload-float.h: ... here.
15537         (FLOAT): Remove definition.
15538         (SET_MANTISSA): Rename to ...
15539         (SET_NAN_PAYLOAD): ... this.
15540         * sysdeps/generic/math-type-macros-double.h: Include
15541         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
15542         instead of <math-svid-compat.h>.
15543         * sysdeps/generic/math-type-macros-float.h: Include
15544         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
15545         instead of <math-svid-compat.h>.
15546         * sysdeps/generic/math-type-macros-float128.h: Include
15547         <math-nan-payload-float128.h>.
15548         * sysdeps/generic/math-type-macros-ldouble.h: Include
15549         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
15550         instead of <math-svid-compat.h>.
15551         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
15552         check for definition.
15553         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
15554         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
15555         Include <ieee754_float128.h>.
15556         (FLOAT): Remove definition.
15557         (SET_MANTISSA): Rename to ...
15558         (SET_NAN_PAYLOAD): ... this.
15559         * sysdeps/ieee754/float128/strtof128_nan.c: Include
15560         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
15561         Do not include <float128_private.h>.
15562         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
15563         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
15564         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
15565         (FLOAT): Remove definition.
15566         (SET_MANTISSA): Rename to ...
15567         (SET_NAN_PAYLOAD): ... this.
15568         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
15569         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
15570         (FLOAT): Remove definition.
15571         (SET_MANTISSA): Rename to ...
15572         (SET_NAN_PAYLOAD): ... this.
15573         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
15574         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
15575         (FLOAT): Remove definition.
15576         (SET_MANTISSA): Rename to ...
15577         (SET_NAN_PAYLOAD): ... this.
15578         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
15579         of "../stdlib/strtod_nan_double.h".
15580         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
15581         of "../stdlib/strtod_nan_float.h".
15582         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
15583         instead of "../stdlib/strtod_nan_ldouble.h".
15584         * manual/arith.texi (Parsing of Floats): Adjust comment.
15586 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
15588         * math/Makefile (libm-narrow-fns): Add mul.
15589         (libm-test-funcs-narrow): Likewise.
15590         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
15591         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
15592         * math/gen-auto-libm-tests.c (test_functions): Add mul.
15593         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
15594         (NARROW_MUL_ROUND_TO_ODD): Likewise.
15595         (NARROW_MUL_TRIVIAL): Likewise.
15596         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
15597         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
15598         macro.
15599         (__dmull): Likewise.
15600         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
15601         dmul.
15602         (CFLAGS-nldbl-dmul.c): New variable.
15603         (CFLAGS-nldbl-fmul.c): Likewise.
15604         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15605         __nldbl_dmull.
15606         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
15607         prototype.
15608         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
15609         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
15610         * math/auto-libm-test-in: Add tests of mul.
15611         * math/auto-libm-test-out-narrow-mul: New generated file.
15612         * math/libm-test-narrow-mul.inc: New file.
15613         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
15614         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
15615         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
15616         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
15617         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
15618         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
15619         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
15620         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
15621         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
15622         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
15623         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
15624         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
15625         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
15626         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
15627         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
15628         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
15629         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
15630         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
15631         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15632         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15633         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15634         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15635         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15636         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15637         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15638         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15639         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15640         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15641         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15642         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15643         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15644         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15649         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15650         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15651         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15652         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15653         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15654         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15655         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15656         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15658 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15660         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
15661         with *%eax in call.
15663 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15665         * sysdeps/i386/ldsodefs.h: Removed.
15666         * sysdeps/x86_64/ldsodefs.h: Moved to ...
15667         * sysdeps/x86/ldsodefs.h: This.
15668         (La_i86_regs): New.
15669         (La_i86_retval): Likewise.
15670         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
15671         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
15673 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15675         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
15676         unnecessary testl.
15678 2018-05-13  Alan Modra  <amodra@gmail.com>
15680         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
15681         R_PARISC_TLS_DTPOFF32 reloc addend.
15683 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15685         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
15686         * math/math.h: Restrict the prototype definition for the functions
15687         issignaling(_Float128) and iszero(_Float128); and template
15688         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
15689         __HAVE_FLOAT128_UNLIKE_LDBL.
15690         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
15691         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
15692         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
15693         __f128() constants; define the type _Float128 as long double;
15694         and reuse long double in __CFLOAT128.
15696 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
15698         * sysdeps/generic/math_private.h: Do not include
15699         <math-barriers.h>.
15700         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
15701         <math_private.h>.
15702         * math/fromfp.h: Include <math-barriers.h>.
15703         * math/math-narrow.h: Likewise.
15704         * math/s_nextafter.c: Likewise.
15705         * math/s_nexttowardf.c: Likewise.
15706         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
15707         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
15708         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
15709         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
15710         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
15711         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
15712         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
15713         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15714         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15715         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15716         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15717         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15718         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15719         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15720         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
15721         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15722         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15723         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
15724         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
15725         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15726         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15727         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15728         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15729         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15730         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
15731         * sysdeps/ieee754/k_standardl.c: Likewise.
15732         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15733         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15734         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15735         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
15736         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
15737         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
15738         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15739         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15740         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15741         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
15742         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15743         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15744         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15745         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
15746         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15747         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15748         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
15749         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
15750         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15751         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15752         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
15753         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
15755 2018-05-11  Florian Weimer  <fweimer@redhat.com>
15757         Use 64-bit epoch values in the time zone file parser.
15758         * include/time.h (internal_time_t): Define.
15759         (__tzfile_compute): Use it.
15760         * time/tzfile.c (struct leap): Use internal_time_t for epoch
15761         member.
15762         (transitions): Switch to internal_time_t.
15763         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
15764         types.
15765         (__tzfile_compute): Use internal_time_t for timer argument.  Check
15766         for truncation before calling __offtime.
15768 2018-05-11  Florian Weimer  <fweimer@redhat.com>
15770         [BZ #23166]
15771         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
15772         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
15773         Likewise.
15774         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
15775         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
15776         export without --enable-obsolete-rpc.
15777         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
15778         symbol.  This should not have been exported, ever.
15780 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
15782         [BZ #23152]
15783         * localedata/locales/gd_GB (abmon): Fix typo in May:
15784         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
15786 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15788         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15789         Use multiple registers to copy data in loop tail.
15791         * sysdeps/aarch64/multiarch/memmove_falkor.S
15792         (__memmove_falkor): Use multiple registers to move data in
15793         loop tail.
15795 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
15797         * math/math-underflow.h: New file.
15798         * sysdeps/generic/math_private.h: Do not include <float.h>.
15799         (fabs_tg): Remove macro.  Moved to math-underflow.h.
15800         (min_of_type_f): Likewise.
15801         (min_of_type_): Likewise.
15802         (min_of_type_l): Likewise.
15803         (min_of_type_f128): Likewise.
15804         (min_of_type): Likewise.
15805         (math_check_force_underflow): Likewise.
15806         (math_check_force_underflow_nonneg): Likewise.
15807         (math_check_force_underflow_complex): Likewise.
15808         * math/e_exp2_template.c: Include <math-underflow.h>.
15809         * math/k_casinh_template.c: Likewise.
15810         * math/s_catan_template.c: Likewise.
15811         * math/s_catanh_template.c: Likewise.
15812         * math/s_ccosh_template.c: Likewise.
15813         * math/s_cexp_template.c: Likewise.
15814         * math/s_clog10_template.c: Likewise.
15815         * math/s_clog_template.c: Likewise.
15816         * math/s_csin_template.c: Likewise.
15817         * math/s_csinh_template.c: Likewise.
15818         * math/s_csqrt_template.c: Likewise.
15819         * math/s_ctan_template.c: Likewise.
15820         * math/s_ctanh_template.c: Likewise.
15821         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15822         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15823         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15824         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15825         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15826         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15827         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15828         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15829         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15830         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15831         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15832         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15833         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15834         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15835         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15836         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
15837         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15838         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
15839         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15840         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15841         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15842         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15843         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15844         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15845         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15846         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15847         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15848         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15849         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15850         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15851         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15852         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
15853         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15854         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15855         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15856         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15857         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15858         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15859         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15860         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15861         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
15862         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
15863         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15864         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
15865         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
15866         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15867         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
15868         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
15869         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
15870         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15871         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15872         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15873         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15874         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
15875         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15876         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15877         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15878         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
15879         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
15880         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
15881         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
15882         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
15883         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15884         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
15885         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15886         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15887         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15888         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15889         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15890         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15891         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15892         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15893         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
15894         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
15895         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15896         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15897         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15898         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15899         * sysdeps/x86/fpu/powl_helper.c: Likewise.
15900         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
15901         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
15902         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
15903         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
15904         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
15906 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
15908         * sysdeps/generic/math-barriers.h: New file.
15909         * sysdeps/generic/math_private.h [!math_opt_barrier]
15910         (math_opt_barrier): Move to math-barriers.h.
15911         [!math_opt_barrier] (math_force_eval): Likewise.
15912         * sysdeps/aarch64/fpu/math-barriers.h: New file.
15913         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
15914         math-barriers.h.
15915         (math_force_eval): Likewise.
15916         * sysdeps/alpha/fpu/math-barriers.h: New file.
15917         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
15918         math-barriers.h.
15919         (math_force_eval): Likewise.
15920         * sysdeps/x86/fpu/math-barriers.h: New file.
15921         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
15922         math-barriers.h.
15923         (math_force_eval): Likewise.
15924         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
15925         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
15926         multiple-include guard for rename.
15927         * sysdeps/powerpc/fpu/math-barriers.h: New file.
15928         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
15929         math-barriers.h.
15930         (math_force_eval): Likewise.
15932 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
15934         [BZ #22786]
15935         CVE-2018-11236
15936         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
15937         computation.
15938         * stdlib/Makefile (test-bz22786): New test.
15939         * stdlib/test-bz22786.c: New test.
15941 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
15943         * include/math-narrow-eval.h: New file.  Contents moved from ....
15944         * sysdeps/generic/math_private.h: ... here.
15945         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
15946         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
15947         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
15948         * stdlib/strtod_l.c: Likewise.
15949         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15950         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15951         * sysdeps/i386/fpu/s_fdim.c: Likewise.
15952         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15953         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15954         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15955         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15956         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15957         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15958         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
15959         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15960         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
15961         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15962         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
15963         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
15964         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15965         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15966         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15967         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15968         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15969         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15970         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15971         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15972         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15973         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
15974         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15975         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
15976         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
15977         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
15979 2018-05-08  Andreas Schwab  <schwab@suse.de>
15981         * sysdeps/nptl/internaltypes.h: Fix comment.
15983 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
15985         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
15986         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
15987         hidden.
15989 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15991         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
15992         of I into loop header.
15993         * benchtests/bench-memmove-walk.c
15994         (test_main): Likewise.
15996 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
15998         Revert:
15999         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
16000         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
16002 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16004         [BZ #20419]
16005         * elf/dl-load.c (open_verify): Fix stack overflow.
16006         * elf/Makefile (tst-big-note): New test.
16007         * elf/tst-big-note-lib.S: New.
16008         * elf/tst-big-note.c: New.
16010 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
16012         * scripts/abilist.awk: Ignore absolute symbols.
16013         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
16014         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
16015         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
16016         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
16017         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
16018         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
16019         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16020         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
16021         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
16022         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
16023         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
16024         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
16025         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
16026         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
16027         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
16028         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
16029         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
16030         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
16031         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16032         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
16033         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
16034         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
16035         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
16036         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
16037         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
16038         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
16039         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
16040         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
16041         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16042         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
16043         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
16044         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16045         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
16046         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
16047         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
16048         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
16049         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
16050         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
16051         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
16052         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
16053         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
16054         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
16055         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
16056         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
16057         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16058         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
16059         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
16060         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
16061         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
16062         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
16063         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
16064         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
16065         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
16066         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
16067         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
16068         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
16069         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
16070         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16071         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
16072         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
16073         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
16074         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
16075         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
16076         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
16077         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
16078         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
16079         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
16080         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
16081         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
16082         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
16083         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16084         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
16085         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
16086         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
16087         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
16088         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
16089         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
16090         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
16091         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
16092         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
16093         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16094         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
16095         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
16096         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16097         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
16098         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
16099         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
16100         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
16101         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
16102         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
16103         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
16104         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
16105         Likewise.
16106         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
16107         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
16108         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
16109         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
16110         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16111         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
16112         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
16113         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
16114         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
16115         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
16116         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
16117         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
16118         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
16119         Likewise.
16120         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
16121         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
16122         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
16123         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
16124         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16125         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
16126         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
16127         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
16128         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
16129         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
16130         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
16131         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
16132         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
16133         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
16134         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
16135         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
16136         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
16137         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16138         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
16139         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
16140         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
16141         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
16142         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
16143         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
16144         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
16145         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
16146         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
16147         Likewise.
16148         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
16149         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
16150         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
16151         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
16152         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16153         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
16154         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
16155         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
16156         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
16157         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
16158         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
16159         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
16160         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
16161         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
16162         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
16163         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
16164         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
16165         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
16166         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
16167         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
16168         Likewise.
16169         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
16170         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
16171         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
16172         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16173         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
16174         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
16175         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
16176         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
16177         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
16178         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
16179         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
16180         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
16181         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
16182         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
16183         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
16184         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
16185         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
16186         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
16187         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
16188         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
16189         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
16190         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16191         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
16192         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
16193         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
16194         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
16195         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
16196         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
16197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
16198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
16200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
16201         Likewise.
16202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
16203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
16204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
16205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
16206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
16207         Likewise.
16208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
16209         Likewise.
16210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
16211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
16212         Likewise.
16213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
16214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
16215         Likewise.
16216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
16217         Likewise.
16218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
16219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
16220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
16221         Likewise.
16222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
16223         Likewise.
16224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
16225         Likewise.
16226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
16227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
16228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
16229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
16230         Likewise.
16231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
16232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
16233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
16234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
16237         Likewise.
16238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
16239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
16240         Likewise.
16241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
16242         Likewise.
16243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
16244         Likewise.
16245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
16246         Likewise.
16247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
16248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
16249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
16250         Likewise.
16251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
16252         Likewise.
16253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
16254         Likewise.
16255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
16256         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16257         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
16258         Likewise.
16259         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16260         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16261         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
16262         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16263         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16264         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16265         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
16266         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
16267         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16268         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
16269         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16270         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
16271         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
16272         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
16273         Likewise.
16274         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
16275         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
16276         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
16277         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16278         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
16279         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
16280         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
16281         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
16282         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
16283         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
16284         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
16285         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
16286         Likewise.
16287         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
16288         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
16289         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
16290         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16291         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
16292         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
16293         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
16294         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
16295         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
16296         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
16297         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
16298         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
16299         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
16300         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
16301         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
16302         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
16303         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16304         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
16305         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
16306         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
16307         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
16308         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
16309         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
16310         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
16311         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
16312         Likewise.
16313         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
16314         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
16315         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
16316         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
16317         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16318         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
16319         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
16320         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
16321         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
16322         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
16323         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
16324         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
16325         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
16326         Likewise.
16327         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
16328         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
16329         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
16330         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
16331         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16332         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
16333         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
16334         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
16335         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
16336         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
16337         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
16338         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
16339         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
16340         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
16341         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
16342         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
16343         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
16344         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16345         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
16346         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
16347         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
16348         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
16349         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
16350         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
16351         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
16352         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
16353         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
16354         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
16355         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
16356         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
16357         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
16358         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16359         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
16360         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
16361         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
16362         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
16363         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
16364         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
16366 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
16368         [BZ #23137]
16369         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
16370         Use atomic_load_acquire to load __tid.
16372 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
16374         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
16375         Restore the pointer into %rdx, after syscall and use %rdx,
16376         instead of %rsi, to restore context.
16378 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
16380         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
16381         Pop the pointer into %rdx after syscall and use %rdx, instead
16382         of %rsi, to restore context.
16384 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
16386         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
16387         handlers after setjmp.
16388         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
16389         defined.
16390         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
16391         <libc-pointer-arith.h>.
16392         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
16393         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
16394         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
16395         _JUMP_BUF_SIGSET_BITS_PER_WORD.
16396         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
16397         * sysdeps/x86/__longjmp_cancel.S: New file.
16398         * sysdeps/x86/longjmp.c: Likewise.
16399         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
16401 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16403         * NEWS: Add ustat.h deprecation entry.
16404         * bits/ustat.h: Remove file.
16405         * misc/sys/ustat.h: Likewise.
16406         * misc/ustat.h: Likewise.
16407         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
16408         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
16409         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
16410         compatibility mode.
16411         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
16412         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
16413         generic Linux implementation.
16415 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
16417         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
16418         * math/w_expl_compat.c: Likewise.
16419         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
16421 2018-04-30  Raymond Nicholson  <rain1@airmail.cc>
16423         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
16425 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16427         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
16428         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
16429         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
16430         Remove.
16431         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
16432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
16433         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16434         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
16435         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
16436         and SYSCALL_LL64.
16438 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
16440         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
16442         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
16443         * math/w_asin_template.c: Likewise.
16444         * math/w_atanh_template.c: Likewise.
16446 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
16448         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
16449         to powerpc/powerpc64/be for big-endian.
16450         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
16451         little-endian.
16453         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
16454         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
16455         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
16456         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
16457         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
16458         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
16459         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
16460         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
16461         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
16462         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
16463         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
16464         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
16465         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
16466         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
16467         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
16468         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
16469         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
16470         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
16471         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
16472         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
16473         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
16474         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
16475         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
16476         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
16477         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
16478         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
16479         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
16480         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
16481         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
16482         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
16483         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
16484         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
16486         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
16487         adjusted to imply powerpc64 and older processors on powerpc64/be.
16488         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
16489         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
16490         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
16491         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
16492         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
16493         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
16494         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
16495         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
16496         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
16497         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
16498         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
16499         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
16500         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
16501         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
16502         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
16503         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
16504         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
16505         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
16506         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
16507         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
16508         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
16509         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
16510         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
16511         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
16512         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
16513         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
16514         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
16515         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
16516         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
16517         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
16518         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
16520         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
16521         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
16522         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
16523         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
16525         * sysdeps/powerpc/powerpc64/be/Implies: New file.
16526         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
16527         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
16528         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
16530         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
16531         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
16532         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
16533         * sysdeps/powerpc/powerpc64le/configure: Likewise.
16534         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
16535         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
16536         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
16537         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
16538         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
16539         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
16540         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
16542         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
16543         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
16544         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
16545         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
16546         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
16547         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
16548         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
16549         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
16550         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
16551         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
16552         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
16554         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
16555         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
16556         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
16557         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
16558         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
16559         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
16560         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
16561         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
16562         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
16563         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
16564         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
16565         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
16567         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
16568         and adjusted to imply olders processors.
16569         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
16570         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
16571         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
16572         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
16573         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
16574         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
16575         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
16576         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
16577         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
16578         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
16579         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
16581         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
16582         powerpc64/le.
16583         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
16584         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
16586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
16587         powerpc64le.
16588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
16589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
16591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
16592         powerpc64/be.
16593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
16594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
16595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
16597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
16598         powerpc64 and adjusted.
16599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
16600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
16601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
16602         Likewise.
16604 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
16606         * sysdeps/tile: Remove.
16607         * sysdeps/unix/sysv/linux/tile: Likewise.
16608         * README (tilegx-*-linux-gnu): Remove from list of supported
16609         configurations.
16610         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
16611         contribution of support for generic Linux kernel syscall
16612         interface.
16613         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
16614         tilegx configurations.
16615         (Config.install_linux_headers): Do not handle tile.
16616         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
16617         in comment.
16618         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
16619         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
16620         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
16621         conditional undefine and redefine.
16622         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
16623         in comment.
16624         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
16625         conditional undefine and redefine.
16627 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
16629         * signal/tst-sigaction.c: New file to test BZ #23069.
16630         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
16632 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
16634         [BZ #22766]
16635         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
16636         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
16637         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
16638         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
16640 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16642         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
16643         _DIRENT_MATCHES_DIRENT64 is not defined.
16644         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
16645         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
16646         is defined.
16647         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
16648         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
16650 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
16652         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
16653         version to GCC 8 branch.
16655 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
16657         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
16658         (check_no_hidden): Use type of original function when declaring
16659         alias.
16661         * sysdeps/unix/sysv/linux/sys/ptrace.h
16662         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
16663         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
16664         (struct __ptrace_seccomp_metadata): New type.
16665         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
16666         (PTRACE_SECCOMP_GET_METADATA): Likewise.
16667         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
16668         (PTRACE_SECCOMP_GET_METADATA): Likewise.
16669         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
16670         (PTRACE_SECCOMP_GET_METADATA): Likewise.
16671         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
16672         (PTRACE_SECCOMP_GET_METADATA): Likewise.
16673         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
16674         (PTRACE_SECCOMP_GET_METADATA): Likewise.
16675         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
16676         (PTRACE_SECCOMP_GET_METADATA): Likewise.
16677         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
16678         (PTRACE_SECCOMP_GET_METADATA): Likewise.
16679         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
16680         (PTRACE_SECCOMP_GET_METADATA): Likewise.
16682 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16684         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
16685         defined.
16686         * dirent/versionsort.c (versionsort): Likewise.
16687         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
16688         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
16689         * dirent/versionsort64.c (versionsort64): Likewise.
16690         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
16691         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
16692         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
16693         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
16694         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
16695         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
16696         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
16697         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
16698         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
16699         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
16700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
16701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
16702         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
16703         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
16705 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
16707         * elf/elf.h (NT_PPC_PKEY): New macro.
16709 2018-04-23  Dragan Stanojevic - Nevidljivi  <invisible@hidden-city.net>
16711         [BZ #23094]
16712         * localedata/locales/hr_HR: fix thousands_sep and
16713         mon_thousands_sep
16715 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
16717         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
16718         (XTABS): Define to TAB3.
16720 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16722         * sysdeps/hppa/fpu/libm-test-ulps: Update.
16724         * dirent/scandir-tail-common.c: New file.
16725         * dirent/scandir-tail.c: Use scandir-tail-common.c.
16726         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
16727         * dirent/scandir.c: Use scandir-tail-common.c.
16728         * dirent/scandirat.c: Likewise.
16729         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
16730         * dirent/scandir64.c (scandir64): Always build and alias to scandir
16731         if _DIRENT_MATCHES_DIRENT64 is defined.
16732         * dirent/scandirat64.c (scandirat64): Likewise.
16733         * include/dirent.h (__scandir_tail): Only define iff
16734         _DIRENT_MATCHES_DIRENT64 is not defined.
16735         (__scandir64_tail): Define regardless.
16736         (__scandirat, scandirat64): Remove libc_hidden_proto.
16737         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
16738         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
16739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
16740         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
16741         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16742         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
16743         * sysdeps/unix/sysv/linux/scandir64.c: New file.
16745 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
16747         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
16748         New macro.
16749         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16750         Increase to 24.
16751         (_dl_aarch64_cap_flags): Add asimdfhm.
16753 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
16755         * sysdeps/nios2/libm-test-ulps: Update.
16757 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16759         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
16760         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
16762         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
16763         requirements.
16764         (_DIRENT_MATCHES_DIRENT64): Undef
16765         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
16766         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
16767         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
16768         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
16769         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
16770         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
16771         use getdents64 syscalls as base.
16772         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
16773         symbol if required.
16774         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
16775         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
16776         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
16777         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
16778         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
16779         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
16780         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
16781         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
16782         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16783         (__get_clockfreq_via_proc_openprom): Use __getdents64.
16784         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
16786 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16788         * scripts/test_printers_common.py (init_test): Disable lock elision.
16790 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16792         * math/test-tgmath.c (count_double, count_float,
16793         count_ldouble, count_cdouble, count_cfloat,
16794         count_cldouble): Use volatile int.
16796 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16798         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
16799         (conformtest-xfail-conds): Add i386-gnu.
16800         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
16801         i386-gnu.
16802         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
16803         ipc_perm.cuid, ipc_perm.cgid): Likewise.
16804         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
16805         msqid_ds.msg_lrpid): Likewise.
16806         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
16807         Likewise.
16808         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
16809         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
16810         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
16811         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
16812         unsigned int.
16813         (struct statvfs64): Likewise.
16814         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
16815         Likewise.
16816         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
16817         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
16818         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
16819         instead of wait_queue.
16820         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
16821         instead of vm_area_struct.
16822         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
16823         struct sched_param definition to it.
16824         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
16825         * bits/types/struct_sched_param.h: New file.
16826         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
16827         <bits/types/struct_sched_param.h> instead of <sched.h>.
16828         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
16829         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
16830         generic version but include <bits/pthreadtypes.h> to make struct
16831         sigevent's sigev_notify_attributes field a pthread_attr_t*.
16832         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
16833         non-compliant.
16834         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
16835         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
16836         [__USE_XOPEN] (OFDEL): New macro.
16837         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
16838         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
16839         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
16840         prototypes.
16841         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
16842         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
16843         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
16844         non-compliant.
16845         * sysdeps/i386/sys/ucontext.h: Likewise.
16846         * sysdeps/m68k/sys/ucontext.h: Likewise.
16847         * sysdeps/mips/sys/ucontext.h: Likewise.
16848         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
16849         * sysdeps/mach/hurd/i386/Makefile
16850         (test-xfail-POSIX/fcntl.h/conform): Add.
16851         (test-xfail-POSIX/signal.h/conform): Add.
16852         (test-xfail-POSIX/semaphore.h/conform): Add.
16853         (test-xfail-POSIX/regex.h/conform): Add.
16854         (test-xfail-POSIX/aio.h/conform): Add.
16855         (test-xfail-POSIX/mqueue.h/conform): Add.
16856         (test-xfail-POSIX/sys/types.h/conform): Add.
16857         (test-xfail-UNIX98/fcntl.h/conform): Add.
16858         (test-xfail-UNIX98/netdb.h/conform): Add.
16859         (test-xfail-UNIX98/signal.h/conform): Add.
16860         (test-xfail-UNIX98/semaphore.h/conform): Add.
16861         (test-xfail-UNIX98/regex.h/conform): Add.
16862         (test-xfail-UNIX98/aio.h/conform): Add.
16863         (test-xfail-UNIX98/ftw.h/conform): Add.
16864         (test-xfail-UNIX98/mqueue.h/conform): Add.
16865         (test-xfail-UNIX98/netinet/in.h/conform): Add.
16866         (test-xfail-UNIX98/sys/wait.h/conform): Add.
16867         (test-xfail-UNIX98/sys/sem.h/conform): Add.
16868         (test-xfail-UNIX98/sys/uio.h/conform): Add.
16869         (test-xfail-UNIX98/sys/socket.h/conform): Add.
16870         (test-xfail-UNIX98/sys/types.h/conform): Add.
16871         (test-xfail-UNIX98/stdlib.h/conform): Add.
16872         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
16873         (test-xfail-POSIX2008/fcntl.h/conform): Add.
16874         (test-xfail-POSIX2008/netdb.h/conform): Add.
16875         (test-xfail-POSIX2008/signal.h/conform): Add.
16876         (test-xfail-POSIX2008/semaphore.h/conform): Add.
16877         (test-xfail-POSIX2008/regex.h/conform): Add.
16878         (test-xfail-POSIX2008/aio.h/conform): Add.
16879         (test-xfail-POSIX2008/mqueue.h/conform): Add.
16880         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
16881         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
16882         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
16883         (test-xfail-POSIX2008/sys/types.h/conform): Add.
16884         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
16885         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
16886         (test-xfail-XOPEN2K/netdb.h/conform): Add.
16887         (test-xfail-XOPEN2K/signal.h/conform): Add.
16888         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
16889         (test-xfail-XOPEN2K/regex.h/conform): Add.
16890         (test-xfail-XOPEN2K/aio.h/conform): Add.
16891         (test-xfail-XOPEN2K/ftw.h/conform): Add.
16892         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
16893         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
16894         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
16895         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
16896         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
16897         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
16898         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
16899         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
16900         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
16901         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
16902         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
16903         (test-xfail-XOPEN2K8/signal.h/conform): Add.
16904         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
16905         (test-xfail-XOPEN2K8/regex.h/conform): Add.
16906         (test-xfail-XOPEN2K8/aio.h/conform): Add.
16907         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
16908         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
16909         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
16910         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
16911         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
16912         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
16913         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
16914         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
16915         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
16916         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
16917         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
16918         i386-gnu.
16919         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
16920         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
16922 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
16924         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
16925         --enable-obsolete for powerpc-linux-gnuspe.
16927 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16929         * conform/data/sys/un.h-data: Allow sun_ prefix.
16930         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
16931         prototypes.
16932         * sysdeps/mach/include/mach.h: Likewise.
16933         * sysdeps/mach/include/mach/mig_support.h: Likewise.
16934         * sysdeps/mach/include/mach_error.h: Likewise.
16936 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16938         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
16939         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
16940         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
16941         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
16943 2018-04-16  Andreas Schwab  <schwab@suse.de>
16945         [BZ #19527]
16946         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
16948 2018-04-15  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
16950         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
16951         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
16953 2018-04-12  DJ Delorie  <dj@redhat.com>
16955         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16956         version to 4.16.
16958 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
16960         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
16961         (struct kernel_sigaction): Use the same definition on 31bit as is used
16962         on 64bit.
16964 2018-04-09  Florian Weimer  <fweimer@redhat.com>
16966         [BZ #23037]
16967         * resolv/res_send.c (send_dg): Use designated initializers instead
16968         of assignment to zero-initialize other fields of struct mmsghdr.
16970 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16972         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
16973         __READDIR_ALIAS): Undefine after usage.
16974         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
16975         __READDIR_R_ALIAS): Likewise.
16976         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
16977         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
16978         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
16979         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
16980         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
16981         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
16982         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
16983         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
16984         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
16985         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
16986         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
16987         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
16988         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
16989         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
16990         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
16991         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
16992         * sysdeps/unix/sysv/linux/readdir.c: New file.
16993         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
16994         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
16995         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
16997         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
16999 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
17001         * manual/charset.texi (Converting a Character): Fix typo.
17003 2018-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17005         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17007         * sysdeps/arm/libm-test-ulps: Update.
17009         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
17010         as base implementation.
17011         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
17012         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
17013         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
17014         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
17015         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
17016         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
17017         remove unrequired definitions and update comments.
17018         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
17019         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
17020         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
17021         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
17022         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
17023         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
17024         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
17025         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
17026         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
17027         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
17028         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
17029         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
17030         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
17031         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
17032         and RESET_SA_RESTORER hooks.
17034 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
17036         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17038 2018-04-05  Florian Weimer  <fweimer@redhat.com>
17040         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
17041         integer overflow, memory leak on error, and indeterminate errno
17042         value.  Add a null wide character to terminate the result string.
17043         * manual/charset.texi (Converting a Character): Mention embedded
17044         null bytes in the mbrtowc input string.  Explain what happens in
17045         the -2 result case.  Do not claim that mbrtowc is simple or
17046         obvious to use.  Adjust the description of the code example.  Use
17047         @code, not @var, for concrete variables.
17049 2018-04-05  Florian Weimer  <fweimer@redhat.com>
17051         * manual/examples/mbstouwcs.c: New file.
17052         * manual/charset.texi (Converting a Character): Include it.
17054 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17056         * include/dirent.h (dirfd): Add hidden proto.
17057         * dirent/dirfd.c (dirfd): Add hidden def.
17058         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
17059         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
17061 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
17063         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
17064         sin, cos and sincos to 1 ULP.
17066 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
17068         [BZ #19818]
17069         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
17070         symbols.
17071         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
17072         * elf/tst-absolute-sym.c: New file.
17073         * elf/tst-absolute-sym-lib.c: New file.
17074         * elf/tst-absolute-sym-lib.lds: New file.
17075         * elf/Makefile (tests): Add `tst-absolute-sym'.
17076         (modules-names): Add `tst-absolute-sym-lib'.
17077         (LDLIBS-tst-absolute-sym-lib.so): New variable.
17078         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
17079         ($(objpfx)tst-absolute-sym): New dependency.
17081         [BZ #19818]
17082         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
17083         parameter.
17084         (SYMBOL_ADDRESS): New macro.
17085         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
17086         SYMBOL_ADDRESS for symbol address calculation.
17087         * elf/dl-runtime.c (_dl_fixup): Likewise.
17088         (_dl_profile_fixup): Likewise.
17089         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
17090         * elf/rtld.c (dl_main): Likewise.
17091         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
17092         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
17093         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
17094         (elf_machine_rela): Likewise.
17095         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
17096         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
17097         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
17098         (elf_machine_rela): Likewise.
17099         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17100         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
17101         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
17102         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
17103         Likewise.
17104         (elf_machine_reloc): Likewise.
17105         (elf_machine_got_rel): Likewise.
17106         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
17107         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
17108         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17109         Likewise.
17110         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17111         Likewise.
17112         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
17113         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
17114         Likewise.
17115         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
17116         Likewise.
17117         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17118         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
17119         Likewise.
17120         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
17121         Likewise.
17122         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
17123         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17125 2018-04-04  Zack Weinberg  <zackw@panix.com>
17127         * sysdeps/generic/internal-signals.h: Include signal.h,
17128         sigsetops.h, and stdbool.h.
17129         (__libc_signal_block_all): Actually block all signals.
17130         (__libc_signal_block_app): Likewise.
17131         (__libc_signal_restore_set): Actually restore the signal mask.
17133 2018-04-04  Florian Weimer  <fweimer@redhat.com>
17135         inet: Actually build and run tst-deadline.
17136         * inet/Makefile (tests-internal): Add tst-deadline and do not
17137         overwrite the variable.
17138         (tests-static-internal): Remove variable.
17140 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
17142         [BZ #22947]
17143         * bits/uio-ext.h (RWF_APPEND): New.
17144         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
17145         * manual/llio.texi: Document RWF_APPEND.
17146         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
17147         (RWF_SUPPORTED): Add RWF_APPEND.
17149 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17151         [BZ #22391]
17152         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
17153         check for internal nptl signals.
17154         * nptl/sigaction.c (__sigaction): Likewise.
17155         * signal/sigaddset.c (sigaddset): Likewise.
17156         * signal/sigdelset.c (sigdelset): Likewise.
17157         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
17158         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
17159         value.
17160         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
17161         to filter out internal nptl signals.
17162         * signal/tst-sigset.c (do_test): Check ech signal indidually and
17163         also check realtime signals using standard macros.
17164         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
17165         __is_internal_signal, __libc_signal_block_all,
17166         __libc_signal_block_app, __libc_signal_restore_set): New functions.
17167         * sysdeps/nptl/sigfillset.c: Remove file.
17168         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
17169         Change return to bool.
17170         (__clear_internal_signals): Remove SIGTIMER clean since it is
17171         equal to SIGCANEL on Linux.
17172         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
17173         signal set was constructed using standard functions.
17175 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17177         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
17178         ifname is too long.
17179         * hurd/hurdsig.c (interrupted_reply_port_location): Use
17180         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
17181         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
17182         hidden def.
17183         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
17184         * signal/sigaddset.c: Include <sigsetopts.h>.
17185         * signal/sigdelset.c: Likewise.
17187 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
17189         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
17190         (__cos): Likewise.
17191         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
17192         logic as sin and cos.
17194 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
17196         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
17197         inputs.  Return correct sign.
17198         (do_sincos): Remove small input check before do_sin, let do_sin set
17199         the sign.
17200         (__sin): Likewise.
17201         (__cos): Likewise.
17203 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
17205         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
17206         (do_cos_slow): Likewise.
17207         (do_sin_slow): Likewise.
17208         (reduce_and_compute): Likewise.
17209         (slow): Likewise.
17210         (slow1): Likewise.
17211         (slow2): Likewise.
17212         (sloww): Likewise.
17213         (sloww1): Likewise.
17214         (sloww2): Likewise.
17215         (bslow): Likewise.
17216         (bslow1): Likewise.
17217         (bslow2): Likewise.
17218         (cslow2): Likewise.
17220 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
17222         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
17223         (do_cos): Remove corp parameter and calculations.
17224         (do_sin): Likewise.
17225         (do_sincos): Remove cor variable.
17226         (__sin): Use do_sincos for huge inputs.
17227         (__cos): Likewise.
17228         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
17229         (reduce_and_compute_sincos): Remove unused function.
17231 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
17233         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
17234         reduce_sincos, improve accuracy to 136 bits.
17235         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
17236         (__sin): Use improved reduction and simplified do_sincos calculation.
17237         (__cos): Likewise.
17238         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
17240 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
17242         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
17243         (do_sincos_2): Likewise.
17244         (__sin): Remove middle range reduction case.
17245         (__cos): Likewise.
17246         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
17247         reduction case.
17249 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
17251         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
17252         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
17253         inputs.
17254         (__cos): Likewise.
17255         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
17257 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
17259         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17260         version to 4.16
17262 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17264         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
17265         Remove definitions.
17266         (opendir_oflags): Use O_DIRECTORY regardless.
17267         (__opendir, __opendirat): Remove need_isdir_precheck usage.
17268         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
17270 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17272         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
17273         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
17274         macros.
17275         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
17276         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
17277         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
17278         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
17279         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
17280         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
17282         * htl/Makefile: Bump licence to LGPL 2.1+.
17283         * htl/alloca_cutoff.c: Likewise.
17284         * htl/cthreads-compat.c: Likewise.
17285         * htl/lockfile.c: Likewise.
17286         * htl/pt-alloc.c: Likewise.
17287         * htl/pt-cancel.c: Likewise.
17288         * htl/pt-cleanup.c: Likewise.
17289         * htl/pt-create.c: Likewise.
17290         * htl/pt-dealloc.c: Likewise.
17291         * htl/pt-detach.c: Likewise.
17292         * htl/pt-exit.c: Likewise.
17293         * htl/pt-getattr.c: Likewise.
17294         * htl/pt-initialize.c: Likewise.
17295         * htl/pt-internal.h: Likewise.
17296         * htl/pt-join.c: Likewise.
17297         * htl/pt-self.c: Likewise.
17298         * htl/pt-setcancelstate.c: Likewise.
17299         * htl/pt-setcanceltype.c: Likewise.
17300         * htl/pt-sigmask.c: Likewise.
17301         * htl/pt-spin-inlines.c: Likewise.
17302         * htl/pt-testcancel.c: Likewise.
17303         * htl/pt-yield.c: Likewise.
17304         * htl/tests/test-1.c: Likewise.
17305         * htl/tests/test-10.c: Likewise.
17306         * htl/tests/test-11.c: Likewise.
17307         * htl/tests/test-12.c: Likewise.
17308         * htl/tests/test-13.c: Likewise.
17309         * htl/tests/test-14.c: Likewise.
17310         * htl/tests/test-15.c: Likewise.
17311         * htl/tests/test-16.c: Likewise.
17312         * htl/tests/test-17.c: Likewise.
17313         * htl/tests/test-2.c: Likewise.
17314         * htl/tests/test-3.c: Likewise.
17315         * htl/tests/test-4.c: Likewise.
17316         * htl/tests/test-5.c: Likewise.
17317         * htl/tests/test-6.c: Likewise.
17318         * htl/tests/test-7.c: Likewise.
17319         * htl/tests/test-8.c: Likewise.
17320         * htl/tests/test-9.c: Likewise.
17321         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
17322         * sysdeps/htl/bits/cancelation.h: Likewise.
17323         * sysdeps/htl/bits/pthread-np.h: Likewise.
17324         * sysdeps/htl/bits/pthread.h: Likewise.
17325         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
17326         * sysdeps/htl/bits/semaphore.h: Likewise.
17327         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
17328         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
17329         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
17330         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
17331         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
17332         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
17333         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
17334         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
17335         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
17336         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
17337         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
17338         * sysdeps/htl/old_pt-atfork.c: Likewise.
17339         * sysdeps/htl/pt-atfork.c: Likewise.
17340         * sysdeps/htl/pt-attr-destroy.c: Likewise.
17341         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
17342         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
17343         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
17344         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
17345         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
17346         * sysdeps/htl/pt-attr-getscope.c: Likewise.
17347         * sysdeps/htl/pt-attr-getstack.c: Likewise.
17348         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
17349         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
17350         * sysdeps/htl/pt-attr-init.c: Likewise.
17351         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
17352         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
17353         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
17354         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
17355         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
17356         * sysdeps/htl/pt-attr-setscope.c: Likewise.
17357         * sysdeps/htl/pt-attr-setstack.c: Likewise.
17358         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
17359         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
17360         * sysdeps/htl/pt-attr.c: Likewise.
17361         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
17362         * sysdeps/htl/pt-barrier-init.c: Likewise.
17363         * sysdeps/htl/pt-barrier-wait.c: Likewise.
17364         * sysdeps/htl/pt-barrier.c: Likewise.
17365         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
17366         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
17367         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
17368         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
17369         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
17370         * sysdeps/htl/pt-cond-destroy.c: Likewise.
17371         * sysdeps/htl/pt-cond-init.c: Likewise.
17372         * sysdeps/htl/pt-cond-signal.c: Likewise.
17373         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
17374         * sysdeps/htl/pt-cond-wait.c: Likewise.
17375         * sysdeps/htl/pt-cond.c: Likewise.
17376         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
17377         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
17378         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
17379         * sysdeps/htl/pt-condattr-init.c: Likewise.
17380         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
17381         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
17382         * sysdeps/htl/pt-destroy-specific.c: Likewise.
17383         * sysdeps/htl/pt-equal.c: Likewise.
17384         * sysdeps/htl/pt-getconcurrency.c: Likewise.
17385         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
17386         * sysdeps/htl/pt-getschedparam.c: Likewise.
17387         * sysdeps/htl/pt-getspecific.c: Likewise.
17388         * sysdeps/htl/pt-init-specific.c: Likewise.
17389         * sysdeps/htl/pt-key-create.c: Likewise.
17390         * sysdeps/htl/pt-key-delete.c: Likewise.
17391         * sysdeps/htl/pt-key.h: Likewise.
17392         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
17393         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
17394         * sysdeps/htl/pt-mutex-init.c: Likewise.
17395         * sysdeps/htl/pt-mutex-lock.c: Likewise.
17396         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
17397         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
17398         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
17399         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
17400         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
17401         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
17402         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
17403         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
17404         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
17405         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
17406         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
17407         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
17408         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
17409         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
17410         * sysdeps/htl/pt-mutexattr.c: Likewise.
17411         * sysdeps/htl/pt-once.c: Likewise.
17412         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
17413         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
17414         * sysdeps/htl/pt-rwlock-init.c: Likewise.
17415         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
17416         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
17417         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
17418         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
17419         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
17420         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
17421         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
17422         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
17423         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
17424         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
17425         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
17426         * sysdeps/htl/pt-setconcurrency.c: Likewise.
17427         * sysdeps/htl/pt-setschedparam.c: Likewise.
17428         * sysdeps/htl/pt-setschedprio.c: Likewise.
17429         * sysdeps/htl/pt-setspecific.c: Likewise.
17430         * sysdeps/htl/pt-spin.c: Likewise.
17431         * sysdeps/htl/pt-startup.c: Likewise.
17432         * sysdeps/htl/pthread.h: Likewise.
17433         * sysdeps/htl/sem-close.c: Likewise.
17434         * sysdeps/htl/sem-destroy.c: Likewise.
17435         * sysdeps/htl/sem-getvalue.c: Likewise.
17436         * sysdeps/htl/sem-init.c: Likewise.
17437         * sysdeps/htl/sem-open.c: Likewise.
17438         * sysdeps/htl/sem-post.c: Likewise.
17439         * sysdeps/htl/sem-timedwait.c: Likewise.
17440         * sysdeps/htl/sem-trywait.c: Likewise.
17441         * sysdeps/htl/sem-unlink.c: Likewise.
17442         * sysdeps/htl/sem-wait.c: Likewise.
17443         * sysdeps/hurd/htl/pt-kill.c: Likewise.
17444         * sysdeps/i386/htl/pt-machdep.h: Likewise.
17445         * sysdeps/mach/htl/pt-block.c: Likewise.
17446         * sysdeps/mach/htl/pt-spin.c: Likewise.
17447         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
17448         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
17449         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
17450         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
17451         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
17452         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
17453         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
17454         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
17455         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
17456         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
17457         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
17458         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
17459         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
17460         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
17461         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
17462         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
17463         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
17464         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
17465         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
17466         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
17467         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
17468         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
17469         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
17470         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
17471         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
17472         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
17473         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
17474         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
17475         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
17476         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
17477         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
17478         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
17479         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
17480         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
17481         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
17482         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
17483         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
17484         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
17485         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
17486         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
17487         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
17488         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
17489         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
17491         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
17492         * README: Remove the mention of out-of-tree patches needed for
17493         GNU/Hurd.
17495         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
17496         (UTIME_NOW, UTIME_OMIT): Define macros.
17498         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
17499         instead of pthread_detach.
17500         (__cthread_fork): Call __pthread_create instead of pthread_create.
17501         (__cthread_keycreate): Call __pthread_key_create instead of
17502         pthread_key_create.
17503         (__cthread_getspecific): Call __pthread_getspecific instead of
17504         pthread_getspecific.
17505         (__cthread_setspecific): Call __pthread_setspecific instead of
17506         pthread_setspecific.
17507         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
17508         __pthread_mutex_unlock instead of pthread_mutex_lock and
17509         pthread_mutex_unlock.
17510         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
17511         ___pthread_get_cleanup_stack.
17512         (__pthread_get_cleanup_stack): New strong alias.
17513         * htl/pt-create.c: Include <pthreadP.h>.
17514         (entry_point): Call __pthread_exit instead of pthread_exit.
17515         (pthread_create): Rename to __pthread_create.
17516         (pthread_create): New strong alias.
17517         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
17518         (pthread_detach): New strong alias.
17519         (__pthread_detach): Call __pthread_cond_broadcast instead of
17520         pthread_cond_broadcast.
17521         * htl/pt-exit.c: Include <pthreadP.h>.
17522         (__pthread_exit): Call __pthread_setcancelstate and
17523         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
17524         __pthread_get_cleanup_stack.
17525         * htl/pt-testcancel.c: Include <pthreadP.h>.
17526         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
17527         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
17528         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
17529         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
17530         pthread_attr_getstacksize.
17531         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
17532         Rename to __pthread_attr_getstackaddr.
17533         (pthread_attr_getstackaddr): New strong alias.
17534         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
17535         Rename to __pthread_attr_getstacksize.
17536         (pthread_attr_getstacksize): New strong alias.
17537         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
17538         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
17539         (pthread_attr_setstack): New strong alias.
17540         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
17541         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
17542         pthread_attr_getstacksize, pthread_attr_setstacksize and
17543         pthread_attr_setstackaddr.
17544         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
17545         Rename to __pthread_attr_setstackaddr.
17546         (pthread_attr_setstackaddr): New strong alias.
17547         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
17548         Rename to __pthread_attr_setstacksize.
17549         (pthread_attr_setstacksize): New strong alias.
17550         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
17551         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
17552         pthread_exit.
17553         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
17554         (__pthread_key_create): New hidden def.
17555         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
17556         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
17557         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
17558         __pthread_exit, __pthread_key_create, __pthread_getspecific,
17559         __pthread_setspecific, __pthread_setcancelstate,
17560         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
17561         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
17562         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
17563         declarations.
17564         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
17565         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
17566         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
17567         (pthread_attr_setstackaddr): New strong alias.
17568         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
17569         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
17570         (pthread_attr_setstacksize): New strong alias.
17571         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
17572         (call_exit): Call __pthread_exit instead of pthread_exit.
17573         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
17574         (_pthread_mutex_init): New hidden definition.
17575         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
17576         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
17577         instead of pthread_attr_init and pthread_attr_setstack.
17579         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
17580         __vm_deallocate instead of vm_allocate and vm_deallocate.
17581         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
17582         setenv.
17583         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
17584         of geteuid.
17585         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
17586         strdup.
17587         * hurd/siginfo.c: Include <libioP.h>.
17588         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
17589         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
17590         munmap.
17591         * mach/devstream.c: Include <libioP.h>.
17592         (dealloc_ref): Call __mach_port_deallocate instead of
17593         mach_port_deallocate.
17594         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
17595         Call __mach_port_deallocate instead of mach_port_deallocate.
17596         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
17597         pathconf.
17598         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
17599         munmap.
17600         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
17601         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
17602         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
17603         of munmap.
17604         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
17605         of close.
17606         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
17607         instead of sysconf.
17608         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
17609         __clock_gettime instead of clock_gettime.
17610         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
17611         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
17612         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
17613         * sysdeps/unix/bsd/stty.c (stty): Likewise.
17614         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
17615         tcgetattr.
17616         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
17617         __clock_gettime and __nanosleep instead of clock_gettime and
17618         nanosleep.
17619         * hurd/catch-signal.c (hurd_catch_signal): Rename to
17620         __hurd_catch_signal.
17621         (hurd_catch_signal): New strong alias.
17622         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
17623         __hurd_catch_signal instead of hurd_catch_signal.
17624         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
17625         * hurd/hurdexec.c (_hurd_init): Add hidden def.
17626         * hurd/hurdinit.c (_hurd_init): Add hidden def.
17627         * hurd/hurdsig.c: Include <mach/mig_support.h>.
17628         (_hurd_thread_sigstate): Add hidden def.
17629         (_hurd_internal_post_signal): Use __mutex_unlock instead of
17630         mutex_unlock.
17631         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
17632         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
17633         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
17634         __hurd_file_name_path_lookup.
17635         (hurd_file_name_path_lookup): New strong alias.
17636         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
17637         hurd_file_name_path_lookup.
17638         * mach/errstring.c (mach_error_type): Add hidden def.
17639         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
17640         * mach/mutex-init.c (__mutex_init): Add hidden def.
17641         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
17642         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
17643         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
17644         * sysdeps/mach/hurd/getcwd.c
17645         (_hurd_canonicalize_directory_name_internal): Rename to
17646         __hurd_canonicalize_directory_name_internal.
17647         (_hurd_canonicalize_directory_name_internal): New strong alias.
17648         (__canonicalize_directory_name_internal, __getcwd): Call
17649         __hurd_canonicalize_directory_name_internal instead of
17650         _hurd_canonicalize_directory_name_internal.
17651         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
17652         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
17653         hidden defs.
17654         * sysdeps/hurd/include/hurd.h: New file.
17655         * sysdeps/hurd/include/hurd/fd.h: New file.
17656         * sysdeps/hurd/include/hurd/signal.h: New file.
17657         * sysdeps/mach/include/lock-intern.h: New file.
17658         * sysdeps/mach/include/mach.h: New file.
17659         * sysdeps/mach/include/mach/mig_support.h: New file.
17660         * sysdeps/mach/include/mach_error.h: New file.
17661         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
17662         prototype.
17663         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
17664         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
17665         _HEADER_H_HIDDEN_DEF macro.
17666         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
17667         _hurd_fd_error_signal): Add hidden prototype.
17668         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
17669         hidden def.
17670         * libio/iolibio.h (_IO_puts): New hidden prototype.
17671         * libio/ioputs.c (_IO_puts): New hidden def.
17672         * sysdeps/mach/hurd/localplt.data: New file.
17674 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
17675             Amos Jeffries  <squid3@treenet.co.nz>
17676             David Michael  <fedora.dm0@gmail.com>
17677             Marco Gerards  <marco@gnu.org>
17678             Marcus Brinkmann  <marcus@gnu.org>
17679             Neal H. Walfield  <neal@gnu.org>
17680             Pino Toscano  <toscano.pino@tiscali.it>
17681             Richard Braun  <rbraun@sceen.net>
17682             Roland McGrath  <roland@gnu.org>
17683             Samuel Thibault  <samuel.thibault@ens-lyon.org>
17684             Thomas DiModica  <ricinwich@yahoo.com>
17685             Thomas Schwinge  <tschwinge@gnu.org>
17687         * htl: New directory.
17688         * sysdeps/htl: New directory.
17689         * sysdeps/hurd/htl: New directory.
17690         * sysdeps/i386/htl: New directory.
17691         * sysdeps/mach/htl: New directory.
17692         * sysdeps/mach/hurd/htl: New directory.
17693         * sysdeps/mach/hurd/i386/htl: New directory.
17694         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
17695         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
17696         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
17698 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17700         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
17701         signals in thread created for runing timers.
17703 2018-04-01  Florian Weimer  <fweimer@redhat.com>
17705         * support/support_format_addrinfo.c (support_format_addrinfo):
17706         Include unknown error number in formatted result.
17708 2018-03-29  Florian Weimer  <fweimer@redhat.com>
17710         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
17711         capture SIGBUS.
17713 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17715         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
17716         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
17717         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
17718         (__ASSUME_CLONE_BACKWARDS): Define.
17720 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
17722         [BZ #23024]
17723         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
17724         early when linux sentinel value is set.
17726 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17728         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
17730 2018-03-27  Andreas Schwab  <schwab@suse.de>
17732         [BZ #23005]
17733         * resolv/res_send.c (__res_context_send): Return ENOMEM if
17734         allocation of private copy of nsaddr_list fails.
17736 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
17738         [BZ #16552]
17739         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
17740         * sysdeps/unix/sysv/linux/umount.c: ... here.
17741         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
17742         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
17743         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
17744         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
17745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
17746         * sysdeps/unix/sysv/linux/umount.S: Likewise.
17747         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
17749 2018-03-26  Andreas Schwab  <schwab@suse.de>
17751         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
17752         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
17753         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
17754         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
17755         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
17756         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
17757         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
17758         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
17759         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
17760         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
17761         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
17762         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
17763         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
17764         (R_RISCV_NUM): Define.
17766 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17768         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
17769         TLS declaration of errno.
17770         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
17771         __libc_setup_tls.
17772         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
17773         (ARCH_SETUP_TLS): Likewise.
17774         * sysdeps/mach/hurd/libc-start.h: New file copied from
17775         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
17776         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
17777         instead of __libc_setup_tls.
17778         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
17779         __libc_setup_tls before initializing libpthread and running _hurd_init
17780         which starts the signal thread.
17781         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
17782         Declare function.
17783         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
17785 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
17787         [BZ #22998]
17788         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
17789         after it is defined.
17791 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
17792             Max Horn  <max@quendi.de>
17794         [BZ #22644]
17795         CVE-2017-18269
17796         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
17797         branch conditions.
17798         * string/test-memmove.c (do_test2): New testcase.
17800 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
17802         * sysdeps/generic/frame.h: Remove file.
17803         * sysdeps/arm/frame.h: Likewise.
17804         * sysdeps/hppa/frame.h: Likewise.
17805         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
17806         macro.
17807         (GET_FRAME): Likewise.
17808         (GET_STACK): Likewise.
17809         (CALL_SIGHANDLER): Likewise.
17810         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
17811         Likewise.
17812         (GET_FRAME): Likewise.
17813         (GET_STACK): Likewise.
17814         (CALL_SIGHANDLER): Likewise.
17815         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
17816         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17817         (GET_FRAME): Likewise.
17818         (GET_STACK): Likewise.
17819         (CALL_SIGHANDLER): Likewise.
17820         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
17821         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17822         (GET_FRAME): Likewise.
17823         (GET_STACK): Likewise.
17824         (ADVANCE_STACK_FRAME): Likewise.
17825         (CALL_SIGHANDLER): Likewise.
17826         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
17827         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17828         (GET_FRAME): Likewise.
17829         (GET_STACK): Likewise.
17830         (CALL_SIGHANDLER): Likewise.
17831         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
17832         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17833         (GET_FRAME): Likewise.
17834         (GET_STACK): Likewise.
17835         (CALL_SIGHANDLER): Likewise.
17836         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
17837         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17838         (GET_FRAME): Likewise.
17839         (GET_STACK): Likewise.
17840         (CALL_SIGHANDLER): Likewise.
17841         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
17842         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17843         (GET_FRAME): Likewise.
17844         (GET_STACK): Likewise.
17845         (CALL_SIGHANDLER): Likewise.
17846         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
17847         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17848         (GET_FRAME): Likewise.
17849         (GET_STACK): Likewise.
17850         (CALL_SIGHANDLER): Likewise.
17851         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
17852         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17853         (GET_FRAME): Likewise.
17854         (GET_STACK): Likewise.
17855         (CALL_SIGHANDLER): Likewise.
17856         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
17857         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17858         (GET_FRAME): Likewise.
17859         (GET_STACK): Likewise.
17860         (CALL_SIGHANDLER): Likewise.
17861         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
17862         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17863         (GET_FRAME): Likewise.
17864         (GET_STACK): Likewise.
17865         (CALL_SIGHANDLER): Likewise.
17866         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
17867         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17868         (GET_FRAME): Likewise.
17869         (GET_STACK): Likewise.
17870         (CALL_SIGHANDLER): Likewise.
17871         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
17872         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17873         (FIRST_FRAME_POINTER): Likewise.
17874         (ADVANCE_STACK_FRAME): Likewise.
17875         (GET_STACK): Likewise.
17876         (GET_FRAME): Likewise.
17877         (CALL_SIGHANDLER): Likewise.
17878         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
17879         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17880         (ADVANCE_STACK_FRAME): Likewise.
17881         (GET_STACK): Likewise.
17882         (GET_FRAME): Likewise.
17883         (CALL_SIGHANDLER): Likewise.
17884         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
17885         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17886         (GET_FRAME): Likewise.
17887         (GET_STACK): Likewise.
17888         (CALL_SIGHANDLER): Likewise.
17889         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
17890         (SIGCONTEXT_EXTRA_ARGS): Likewise.
17891         (GET_FRAME): Likewise.
17892         (GET_STACK): Likewise.
17893         (CALL_SIGHANDLER): Likewise.
17895 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
17897         * sysdeps/x86_64/backtrace.c: Move to ....
17898         * debug/backtrace.c: ... here.
17899         * sysdeps/aarch64/backtrace.c: Remove file.
17900         * sysdeps/alpha/backtrace.c: Likewise.
17901         * sysdeps/hppa/backtrace.c: Likewise.
17902         * sysdeps/ia64/backtrace.c: Likewise.
17903         * sysdeps/mips/backtrace.c: Likewise.
17904         * sysdeps/nios2/backtrace.c: Likewise.
17905         * sysdeps/riscv/backtrace.c: Likewise.
17906         * sysdeps/sh/backtrace.c: Likewise.
17907         * sysdeps/tile/backtrace.c: Likewise.
17909 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
17911         [BZ #22987]
17912         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
17913         function.
17914         (fdimf): Likewise.
17915         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
17917         [BZ #17343]
17918         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
17919         possibly overflowing computations.
17921 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17923         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
17924         values from Linux-specific section now that it is in the GNU section.
17925         * sysdeps/gnu/errlist.c: Regenerate.
17927 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
17929         * math/Makefile (libm-narrow-fns): Add sub.
17930         (libm-test-funcs-narrow): Likewise.
17931         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
17932         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
17933         * math/gen-auto-libm-tests.c (test_functions): Add sub.
17934         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
17935         (NARROW_SUB_ROUND_TO_ODD): Likewise.
17936         (NARROW_SUB_TRIVIAL): Likewise.
17937         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
17938         macro.
17939         (__dsubl): Likewise.
17940         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
17941         dsub.
17942         (CFLAGS-nldbl-dsub.c): New variable.
17943         (CFLAGS-nldbl-fsub.c): Likewise.
17944         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17945         __nldbl_dsubl.
17946         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
17947         prototype.
17948         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
17949         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
17950         * math/auto-libm-test-in: Add tests of sub.
17951         * math/auto-libm-test-out-narrow-sub: New generated file.
17952         * math/libm-test-narrow-sub.inc: New file.
17953         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17954         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
17955         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
17956         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
17957         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
17958         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
17959         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
17960         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
17961         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
17962         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
17963         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
17964         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
17965         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
17966         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
17967         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
17968         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
17969         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
17970         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
17971         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17972         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17973         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17974         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17975         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17976         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17977         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17978         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17979         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17980         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17981         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17982         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17983         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17984         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17989         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17990         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17991         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17992         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17993         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17994         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17995         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17996         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17997         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17998         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18000 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
18002         [BZ #20079]
18003         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
18005 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
18007         * benchtests/bench-timing.h (attribute_hidden): Undefine.
18009 2018-03-18  Richard Braun  <rbraun@sceen.net>
18011         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
18012         thread reference.
18014 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
18016         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
18017         (__libc_cleanup_fct): Define function.
18018         (__libc_cleanup_region_start, __libc_cleanup_region_end,
18019         __libc_cleanup_end): Rewrite implementation using
18020         __attribute__ ((__cleanup__)).
18021         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
18022         * hurd/Makefile (routines): Add hurdlock.
18023         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
18024         interface.
18025         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
18026         * hurd/hurdpid.c: Include <lowlevellock.h>
18027         (_S_msg_proc_newids): Use lll_wait to synchronize.
18028         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
18029         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
18030         * mach/Makefile (lock-headers): Remove machine-lock.h.
18031         * mach/lock-intern.h: Include <lowlevellock.h> instead of
18032         <machine-lock.h>.
18033         (__spin_lock_t): New type.
18034         (__SPIN_LOCK_INITIALIZER): New macro.
18035         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
18036         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
18037         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
18038         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
18039         (__mutex_init): Initialize with lll.
18040         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
18041         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
18042         needing lll.
18043         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
18044         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
18045         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
18046         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
18047         (__setpgid): Use lll for synchronization.
18048         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
18049         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
18050         instead of <cthreads.h>.
18051         (_IO_lock_inexpensive): New macro
18052         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
18053         (__libc_lock_self0): New declaration.
18054         (__libc_lock_owner_self): New macro.
18055         (__libc_key_t): Remove type.
18056         (_LIBC_LOCK_INITIALIZER): New macro.
18057         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
18058         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
18059         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
18060         __libc_lock_define_initialized_recursive,
18061         __rtld_lock_define_initialized_recursive,
18062         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
18063         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
18064         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
18065         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
18066         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
18067         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
18068         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
18069         New macros.
18070         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
18071         * hurd/hurdlock.c: New file.
18072         * hurd/hurdlock.h: New file.
18073         * mach/lowlevellock.h: New file
18075 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18077         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
18078         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
18079         when opening a symlink with O_NOFOLLOW.
18080         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
18081         path when flags contains O_NOFOLLOW.
18082         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
18083         if flags contains O_DIRECTORY and the result is a directory.
18084         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
18085         oneself when the pointer given in D is nul (as set by ext2fs).
18086         * sysdeps/mach/hurd/mlockall.c: New file.
18087         * sysdeps/mach/hurd/munlockall.c: New file.
18089 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18091         * hurd/hurdsig.c: Include <pthread.h>.
18092         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
18093         get the signal thread stack layout.
18094         * hurd/Makefile (headers): Remove threadvar.h.
18095         (inline-headers): Remove threadvar.h.
18096         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
18097         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
18098         __hurd_threadvar_max, __hurd_errno_location.
18099         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
18100         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
18101         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
18102         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
18103         unless TLS is not initialized yet, in which case we do not need a
18104         critical section yet anyway.
18105         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
18106         <machine-sp.h>.
18107         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
18108         declarations.
18109         (__hurd_threadvar_index): Remove enum.
18110         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
18111         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
18112         inlines.
18113         (__hurd_reply_port0): New variable declaration.
18114         (__hurd_local_reply_port): New macro.
18115         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
18116         (interrupted_reply_port_location): Add thread_t parameter.  Use it
18117         with THREAD_TCB to access thread-local variables.
18118         (_hurdsig_abort_rpcs): Pass ss->thread to
18119         interrupted_reply_port_location.
18120         (_hurd_internal_post_signal): Likewise.
18121         (_hurdsig_init): Use presence of cthread_fork instead of
18122         __hurd_threadvar_stack_mask to start signal thread by hand.
18123         Remove signal thread threadvar initialization.
18124         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
18125         * hurd/sigunwind.c: Include <hurd/threadvar.h>
18126         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
18127         of threadvar.
18128         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
18129         __libc_lock_self0.
18130         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
18131         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
18132         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
18133         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
18134         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
18135         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
18136         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
18137         define variables.
18138         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
18139         <hurd/threadvar.h>.
18140         [IS_IN(rtld)] (rtld_errno): New variable.
18141         [IS_IN(rtld)] (__errno_location): New weak function.
18142         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
18143         * sysdeps/mach/hurd/errno.c: Remove file.
18144         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
18145         (__fork): Remove THREADVAR_SPACE macro and its use.
18146         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
18147         variable.
18148         (init): Do not initialize threadvar.
18149         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
18150         symbol.
18151         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
18152         __hurd_local_reply_port instead of threadvar.
18153         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
18154         _hurd_sigstate fields.
18155         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
18156         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
18157         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
18158         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
18159         instead of threadvar.
18160         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
18161         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
18162         (use_threadvar, global_reply_port): Remove variables.
18163         (__hurd_reply_port0): New variable.
18164         (__mig_get_reply_port): Use __hurd_local_reply_port and
18165         __hurd_reply_port0 instead of threadvar.
18166         (__mig_dealloc_reply_port): Likewise.
18167         (__mig_init): Do not initialize threadvar.
18168         * sysdeps/mach/hurd/profil.c: Fix comment.
18169         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
18170         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
18171         cthread_keycreate, cthread_getspecific, cthread_setspecific to
18172         __cthread_fork, __cthread_detach, __pthread_getattr_np,
18173         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
18174         __cthread_setspecific.
18175         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
18176         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
18177         __cthread_t instead of cthread_fork, cthread_detach,
18178         pthread_getattr_np, pthread_attr_getstack.
18179         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
18180         __cthread_keycreate.
18181         (cthread_getspecific): Rename to __cthread_getspecific.
18182         (cthread_setspecific): Rename to __cthread_setspecific.
18183         (__libc_getspecific): Use __cthread_getspecific instead of
18184         cthread_getspecific.
18185         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
18186         __cthread_keycreate instead of cthread_keycreate.
18187         (__libc_setspecific): Use __cthread_setspecific instead of
18188         cthread_setspecific.
18189         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
18190         Likewise.
18191         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
18192         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
18193         testing whether it is defined.
18195 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18197         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
18198         Define macro.
18199         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
18200         * sysdeps/mach/i386/thread_state.h
18201         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
18202         i386_THREAD_STATE.
18203         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
18204         i386_THREAD_STATE.
18205         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
18207         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
18208         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
18210         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
18211         macros.
18212         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
18213         descriptor instead of creating a new one.
18214         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
18216         * mach/setup-thread.c: Include <ldsodefs.h>.
18217         (__mach_setup_thread): Call _dl_allocate_tls, pass
18218         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
18219         MACHINE_THREAD_STATE_FLAVOR, before getting
18220         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
18221         MACHINE_THREAD_STATE_FLAVOR with the result.
18222         * hurd/hurdfault.c (_hurdsig_fault_init): Call
18223         MACHINE_THREAD_STATE_FIX_NEW.
18224         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
18225         too.  Add original thread parameter.
18227 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
18229         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
18230         Remove inline function.
18232         * sysdeps/i386/fpu/libm-test-ulps: Update.
18233         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18235 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
18237         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
18238         commit.
18240 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
18242         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
18243         (__sincos_code): Remove define and undefine.
18244         [__FAST_MATH__] (__sincos): Remove inline function.
18245         [__FAST_MATH__] (__sincosf): Remove inline function.
18246         [__FAST_MATH__] (__sincosl): Remove inline function.
18247         (__atan2l): Remove inline functions.
18248         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
18249         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
18250         function.
18251         (floor): Remove inline function.
18252         (ceil): Likewise.
18253         [__FAST_MATH__] (__ldexp_code): Remove macro.
18254         [__FAST_MATH__] (ldexp): Remove inline function.
18255         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
18256         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
18257         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
18258         [__USE_ISOC99] (__lrint_code): Remove macro.
18259         [__USE_ISOC99] (__llrint_code): Likewise.
18260         [__USE_ISOC99] (lrintf): Remove inline function.
18261         [__USE_ISOC99] (lrint): Likewise.
18262         [__USE_ISOC99] (lrintl): Likewise.
18263         [__USE_ISOC99] (llrint): Likewise.
18264         [__USE_ISOC99] (llrintf): Likewise.
18265         [__USE_ISOC99] (llrintl): Likewise.
18267 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
18269         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
18270         (__ieee754_sqrtf): Remove.
18271         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
18272         (__ieee754_sqrtf): Remove.
18273         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
18274         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
18275         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
18276         (__ieee754_sqrtf): Remove.
18277         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
18278         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
18279         (sqrtf): Remove.
18280         (sqrtl): Remove.
18281         (__ieee754_sqrt): Remove.
18282         (__ieee754_sqrtf): Remove.
18283         (__ieee754_sqrtl): Remove.
18284         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
18285         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
18286         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
18287         (__ieee754_sqrtf): Remove.
18288         (__ieee754_sqrtl): Remove.
18290 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
18292         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
18293         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
18294         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
18295         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
18296         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
18297         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
18298         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
18299         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
18300         Likewise.
18301         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
18302         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
18303         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
18304         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
18305         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
18306         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
18307         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
18308         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
18309         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
18310         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
18311         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
18312         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
18313         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
18314         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
18315         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
18316         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
18317         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
18318         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
18319         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
18320         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
18321         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
18322         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
18323         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
18324         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
18325         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
18326         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
18327         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
18328         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
18329         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
18330         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
18331         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
18332         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
18333         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
18334         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
18335         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
18336         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
18337         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
18338         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
18339         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
18340         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
18342 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
18344         * include/math.h (sqrt): Declare with asm redirect.
18345         (sqrtf): Likewise.
18346         (sqrtl): Likewise.
18347         (sqrtf128): Likewise.
18348         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
18349         nonlib and libnldbl with -fmath-errno.
18350         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
18351         * math/w_sqrt_template.c: Likewise.
18352         * math/w_sqrtf_compat.c: Likewise.
18353         * math/w_sqrtl_compat.c: Likewise.
18354         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
18355         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
18356         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
18357         complex.h.
18359 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
18361         * benchtests/Makefile: Define _ISOMAC.
18362         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
18363         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
18364         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
18365         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
18366         * benchtests/bench-timing.h: Define attribute_hidden.
18368 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18370         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
18371         mov + lsr.
18373 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
18375         [BZ #22963]
18376         * localedata/locales/cs_CZ (mon): Rename to...
18377         (alt_mon): This.
18378         (mon): Import from CLDR (genitive case).
18380 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
18382         [BZ #22937]
18383         * localedata/locales/el_CY (abmon): Rename to...
18384         (ab_alt_mon): This.
18385         (abmon): Import from CLDR (abbreviated genitive case).
18386         * localedata/locales/el_GR (abmon): Rename to...
18387         (ab_alt_mon): This.
18388         (abmon): Import from CLDR (abbreviated genitive case).
18390 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
18392         [BZ #22932]
18393         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
18395 2018-03-15  Robert Buj  <robert.buj@gmail.com>
18397         [BZ #22848]
18398         * localedata/locales/ca_ES (abmon): Rename to...
18399         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18400         (mon): Rename to...
18401         (alt_mon): This.
18402         (abmon): Import from CLDR (genitive case, month names preceded by
18403         "de" or "d’").
18404         (mon): Likewise.
18405         (abday): Synchronize with CLDR.
18406         (d_t_fmt): Likewise.
18407         (d_fmt): Likewise.
18408         (am_pm): Likewise.
18410         (LC_TIME): Improve indentation.
18411         (LC_TELEPHONE): Likewise.
18412         (LC_NAME): Likewise.
18413         (LC_ADDRESS): Likewise.
18415 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
18417         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
18418         (lrintf): Remove definitions used only with old GCC.
18419         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
18420         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
18421         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
18422         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
18423         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
18424         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
18425         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
18426         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
18427         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
18428         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
18429         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
18430         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
18431         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
18432         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
18433         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
18434         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
18435         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
18436         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
18437         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
18438         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
18439         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
18440         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
18441         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
18442         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
18443         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
18444         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
18445         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
18446         [__FAST_MATH__] (__M_SQRT2): Remove macro.
18448 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18450         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
18451         instruction to unbreak builds with binutils 2.26 and older.
18453 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18455         * sysdeps/aarch64/strncmp.S (count): New macro.
18456         (strncmp): Store misaligned length in SRC1 in COUNT.
18457         (mutual_align): Adjust.
18458         (misaligned8): Load dword at a time when it is safe.
18460 2018-03-12  Zack Weinberg  <zackw@panix.com>
18462         [BZ #1190]
18463         [BZ #19476]
18464         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
18465         if the _IO_EOF_SEEN bit is already set; update commentary.
18466         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
18467         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
18469         * support/support_openpty.c, support/tty.h: New files.
18470         * support/Makefile (libsupport-routines): Add support_openpty.
18472         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
18473         New test cases.
18474         * libio/Makefile (tests): Add tst-fgetc-after-eof.
18475         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
18477 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
18479         * po/pt_BR.po: Update translations.
18481 2018-03-12  David Michael  <fedora.dm0@gmail.com>
18483         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
18484         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
18485         get a port to the startup server.
18487 2018-03-11  Zack Weinberg  <zackw@panix.com>
18489         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
18490         before nldbl-compat.h.
18492 2018-03-10  Zack Weinberg  <zackw@panix.com>
18494         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
18495         math.h or math_private.h.
18497         * sysdeps/alpha/fpu/s_isnan.c
18498         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
18499         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
18500         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
18501         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
18502         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
18503         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
18504         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
18505         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
18506         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
18507         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
18508         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
18509         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
18510         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
18511         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
18512         Include math_private.h.
18514         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
18515         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
18516         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
18517         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
18518         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
18519         * sysdeps/powerpc/power7/fpu/s_logb.c:
18520         Include math.h and math_private.h.
18522         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
18523         uses of $at in .set noat / .set at.
18525 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18527         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
18528         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
18529         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
18530         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
18531         Likewise.
18533 2018-03-09  Florian Weimer  <fweimer@redhat.com>
18535         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
18536         in comment.
18538 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
18540         [BZ #22919]
18541         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
18542         Add nop before __startcontext, add explaining comments.
18544 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18546         [BZ #22926]
18547         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
18548         empty for __SPE__.
18549         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
18550         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
18551         Do not build hardware transactional code for __SPE__.
18552         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
18553         (__lll_trylock_elision): Likewise.
18554         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
18555         (__lll_unlock_elision): Likewise.
18557         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
18558         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
18559         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18560         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
18561         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
18562         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
18563         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
18564         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
18565         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
18566         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
18567         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
18568         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
18569         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
18570         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
18571         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
18572         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
18573         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
18574         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
18575         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
18576         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
18577         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
18578         * sysdeps/unix/sysv/linux/arm/kernel-features.h
18579         (__ASSUME_CLONE_BACKWARDS): Define.
18580         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
18581         __clone2 if __NR_clone2 is defined.
18582         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
18583         (__ASSUME_CLONE_BACKWARDS): Likewise.
18584         * sysdeps/unix/sysv/linux/i386/kernel-features.h
18585         (__ASSUME_CLONE_BACKWARDS): Likewise.
18586         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18587         (__ASSUME_CLONE2): Likewise.
18588         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18589         (__ASSUME_CLONE_BACKWARDS3): Likewise.
18590         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
18591         variants and the define architecture can use.
18592         (__ASSUME_CLONE_DEFAULT): Define as default.
18593         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18594         (__ASSUME_CLONE_BACKWARDS): Likewise.
18595         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18596         (__ASSUME_CLONE_BACKWARDS): Likewise.
18597         * sysdeps/unix/sysv/linux/s390/kernel-features.h
18598         (__ASSUME_CLONE_BACKWARDS2): Likewise.
18600 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18602         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
18604         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
18605         time.
18607         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
18608         (do_test_limit): Likewise.
18610         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
18611         for every implementation.
18612         (do_test): Likewise.
18614         * benchtests/bench-strncmp.c: Convert output to json.
18616 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18618         * io/futimens.c: Add missing start-of-file descriptive comment.
18619         * io/utime.c: Likewise.
18620         * misc/futimesat.c: Likewise.
18621         * misc/utimes.c: Likewise.
18622         * sysdeps/mach/hurd/futimesat.c: Likewise.
18623         * sysdeps/mach/hurd/utimes.c: Likewise.
18624         * sysdeps/posix/utime.c: Likewise.
18625         * sysdeps/posix/utimes.c: Likewise.
18626         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
18627         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
18628         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
18629         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
18631 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18633         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
18634         hurd_futimes.
18635         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
18636         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
18637         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
18638         (__futimens): Move implementation to...
18639         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
18640         utime_tvalue_from_tspec): ... new helper functions.
18641         (hurd_futimens): New function.
18642         * sysdeps/mach/hurd/futimesat.c: New file.
18643         * sysdeps/mach/hurd/utimensat.c: New file.
18645 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
18647         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
18648         UTIME_OMIT): New macros.
18649         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
18650         before reverting to converting time spec to time value and calling
18651         __file_utimes.
18652         * sysdeps/mach/hurd/utime-helper.c: New file.
18653         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
18654         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
18655         reverting to utime_tvalue_from_tval and __file_utimes.
18656         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
18657         (__lutimes): Just call hurd_futimens after lookup.
18658         * sysdeps/mach/hurd/utimes.c: Likewise.
18660 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18662         * bits/sigaction.h: Add include guard.
18663         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
18664         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
18665         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
18666         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
18667         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
18668         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
18669         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
18670         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
18671         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
18673 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
18675         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
18676         -Wmaybe-uninitialized for -Os.
18677         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
18678         this disabling.
18680 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18682         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
18683         __INO_T_MATCHES_INO64_T is defined.
18684         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
18685         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
18686         of definition.
18687         * dirent/alphasort64.c: Likewise.
18688         * dirent/scandir.c: Likewise.
18689         * dirent/scandir64-tail.c: Likewise.
18690         * dirent/scandir64.c: Likewise.
18691         * dirent/scandirat.c: Likewise.
18692         * dirent/scandirat64.c: Likewise.
18693         * dirent/versionsort.c: Likewise.
18694         * dirent/versionsort64.c: Likewise.
18695         * include/dirent.h: Likewise.
18697         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
18698         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
18699         for socketpair endpoint.
18700         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
18701         WRITE_BUFFER_SIZE as buffer size for sending socket.
18702         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
18703         issue on system where send is implemented with sendto syscall.
18704         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
18705         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
18706         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
18707         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
18709         [BZ #21269]
18710         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
18711         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
18712         sa_restorer for vDSO case.
18713         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
18715 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18717         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
18718         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
18719         * hurd/hurd/ioctl.h: Include <mach/port.h>
18720         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
18721         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
18722         <mach/mach_types.h> and <mach/message.h>.
18723         (headers): Move mach/param.h to bits/mach/param.h.
18724         * sysdeps/mach/i386/mach/param.h: Move file to ...
18725         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
18726         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
18727         of <mach/param.h>.
18728         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
18729         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
18730         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
18731         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
18732         trivial, for C++ conformity.
18733         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
18734         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
18735         Process mig output through $(migheadersed).
18736         * hurd/Makefile (migheadersed): Define variable.
18737         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
18738         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
18739         headers.
18740         * hurd/hurd.h: Include <bits/types/sigset_t.h>
18741         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
18742         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
18743         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
18744         <bits/types/sigset_t.h>.
18745         [!defined __USE_GNU]: Do not #error out.
18746         (struct hurd_sigstate): Use _NSIG instead of NSIG.
18747         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
18748         Include <stddef.h> and <bits/types/sigset_t.h>
18749         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
18750         instead of sighandler_t.
18751         * stdlib/errno.h (error_t): Move definition to...
18752         * bits/types/error_t.h: ... new header.
18753         * stdlib/Makefile (headers): Add bits/types/error_t.h.
18754         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
18755         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
18756         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
18757         * hurd/hurd.h: Include <bits/types/error_t.h>
18758         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
18759         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
18760         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
18761         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
18762         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
18763         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
18764         * sysdeps/mach/hurd/futimens.c: New file.
18766 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
18768         [BZ #22918]
18769         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
18770         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
18771         * nscd/gai.c (__nss_hosts_database): Readd definition.
18772         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
18773         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
18774         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
18776 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
18778         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
18779         (ifunc_one): Likewise.
18781 2018-03-01  DJ Delorie  <dj@delorie.com>
18783         [BZ #22342]
18784         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
18785         key value.
18787 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
18789         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
18790         `match_pid' parameter.
18791         (td_ta_thr_iter): Update accordingly.
18793 2018-03-01  Florian Weimer  <fweimer@redhat.com>
18795         * nptl/Makefile (install-lib-ldscripts): Remove.
18796         (install): Remove rule.
18797         ($(inst_libdir)/libpthread.so): Likewise.
18799 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
18801         [BZ #22896]
18802         * localedata/locales/an_ES: update month and day names,
18803         improve d_fmt, improve postal_fmt, add country_post,
18804         add country_isbn
18806 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
18808         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
18809         Ukrainian instead of Bulgarian.
18811 2018-03-01  Florian Weimer  <fweimer@redhat.com>
18813         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
18814         reference.
18816 2018-03-01  Florian Weimer  <fweimer@redhat.com>
18818         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
18819         * nptl/Makefile (routines): Add pthread_atfork.
18820         (static-only-routines): Set to pthread_atfork.
18821         (libpthread-routines): Remove pthread_atfork.
18822         (libpthread-static-only-routines): Remove.
18823         (install): Update comment.
18824         (libpthread.so): Do not install libpthread_nonshared.a.
18825         (tests): Do not link with libpthread_nonshared.a.
18826         (generated): Remove libpthread_nonshared.a.
18827         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
18828         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
18829         with libpthread_nonshared.a.
18831 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
18833         [BZ #22902]
18834         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
18835         (libc_feholdexcept_setroundf128): New macro.
18836         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
18838         [BZ #15105]
18839         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
18840         libc_hidden_def.
18841         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
18842         * include/inttypes.h: New file.
18844 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
18846         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
18847         -Os in two more places.
18849 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18851         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
18852         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
18853         be sorted correctly at the moment because of a bug.
18855 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18857         [BZ #22550] - es_ES locale (and other es_* locales): collation should
18858         treat ñ as a primary different character, sync the collation
18859         for Spanish with CLDR.
18860         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
18861         * localedata/Makefile: Add new test files.
18862         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
18863         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
18864         collation order.
18865         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
18866         * localedata/am_ET.UTF-8.in: New test file.
18867         * localedata/az_AZ.UTF-8.in: Likewise.
18868         * localedata/be_BY.UTF-8.in: Likewise.
18869         * localedata/ber_DZ.UTF-8.in: Likewise.
18870         * localedata/ber_MA.UTF-8.in: Likewise.
18871         * localedata/bg_BG.UTF-8.in: Likewise.
18872         * localedata/br_FR.UTF-8.in: Likewise.
18873         * localedata/cmn_TW.UTF-8.in: Likewise.
18874         * localedata/crh_UA.UTF-8.in: Likewise.
18875         * localedata/csb_PL.UTF-8.in: Likewise.
18876         * localedata/cv_RU.UTF-8.in: Likewise.
18877         * localedata/cy_GB.UTF-8.in: Likewise.
18878         * localedata/dz_BT.UTF-8.in: Likewise.
18879         * localedata/eo.UTF-8.in: Likewise.
18880         * localedata/es_ES.UTF-8.in: Likewise.
18881         * localedata/fa_IR.UTF-8.in: Likewise.
18882         * localedata/fi_FI.UTF-8.in: Likewise.
18883         * localedata/fil_PH.UTF-8.in: Likewise.
18884         * localedata/fur_IT.UTF-8.in: Likewise.
18885         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
18886         * localedata/ha_NG.UTF-8.in: Likewise.
18887         * localedata/ig_NG.UTF-8.in: Likewise.
18888         * localedata/ik_CA.UTF-8.in: Likewise.
18889         * localedata/kk_KZ.UTF-8.in: Likewise.
18890         * localedata/ku_TR.UTF-8.in: Likewise.
18891         * localedata/ky_KG.UTF-8.in: Likewise.
18892         * localedata/ln_CD.UTF-8.in: Likewise.
18893         * localedata/mi_NZ.UTF-8.in: Likewise.
18894         * localedata/ml_IN.UTF-8.in: Likewise.
18895         * localedata/mn_MN.UTF-8.in: Likewise.
18896         * localedata/mr_IN.UTF-8.in: Likewise.
18897         * localedata/mt_MT.UTF-8.in: Likewise.
18898         * localedata/nb_NO.UTF-8.in: Likewise.
18899         * localedata/om_KE.UTF-8.in: Likewise.
18900         * localedata/os_RU.UTF-8.in: Likewise.
18901         * localedata/ps_AF.UTF-8.in: Likewise.
18902         * localedata/ro_RO.UTF-8.in: Likewise.
18903         * localedata/ru_RU.UTF-8.in: Likewise.
18904         * localedata/sc_IT.UTF-8.in: Likewise.
18905         * localedata/se_NO.UTF-8.in: Likewise.
18906         * localedata/sq_AL.UTF-8.in: Likewise.
18907         * localedata/sv_SE.UTF-8.in: Likewise.
18908         * localedata/szl_PL.UTF-8.in: Likewise.
18909         * localedata/tg_TJ.UTF-8.in: Likewise.
18910         * localedata/tk_TM.UTF-8.in: Likewise.
18911         * localedata/tt_RU.UTF-8.in: Likewise.
18912         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
18913         * localedata/ug_CN.UTF-8.in: Likewise.
18914         * localedata/uz_UZ.UTF-8.in: Likewise.
18915         * localedata/vi_VN.UTF-8.in: Likewise.
18916         * localedata/yi_US.UTF-8.in: Likewise.
18917         * localedata/yo_NG.UTF-8.in: Likewise.
18918         * localedata/zh_CN.UTF-8.in: Likewise.
18919         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
18920         file and fix bugs in the collation.
18921         * localedata/locales/az_AZ: Likewise.
18922         * localedata/locales/be_BY: Likewise.
18923         * localedata/locales/ber_DZ: Likewise.
18924         * localedata/locales/ber_MA: Likewise.
18925         * localedata/locales/bg_BG: Likewise.
18926         * localedata/locales/br_FR: Likewise.
18927         * localedata/locales/br_FR@euro: Likewise.
18928         * localedata/locales/ca_ES: Likewise.
18929         * localedata/locales/cns11643_stroke: Likewise.
18930         * localedata/locales/crh_UA: Likewise.
18931         * localedata/locales/cs_CZ: Likewise.
18932         * localedata/locales/csb_PL: Likewise.
18933         * localedata/locales/cv_RU: Likewise.
18934         * localedata/locales/cy_GB: Likewise.
18935         * localedata/locales/da_DK: Likewise.
18936         * localedata/locales/dz_BT: Likewise.
18937         * localedata/locales/en_CA: Likewise.
18938         * localedata/locales/eo: Likewise.
18939         * localedata/locales/es_CU: Likewise.
18940         * localedata/locales/es_EC: Likewise.
18941         * localedata/locales/es_ES: Likewise.
18942         * localedata/locales/es_US: Likewise.
18943         * localedata/locales/et_EE: Likewise.
18944         * localedata/locales/fa_IR: Likewise.
18945         * localedata/locales/fi_FI: Likewise.
18946         * localedata/locales/fil_PH: Likewise.
18947         * localedata/locales/fur_IT: Likewise.
18948         * localedata/locales/gez_ER@abegede: Likewise.
18949         * localedata/locales/ha_NG: Likewise.
18950         * localedata/locales/hr_HR: Likewise.
18951         * localedata/locales/hsb_DE: Likewise.
18952         * localedata/locales/hu_HU: Likewise.
18953         * localedata/locales/ig_NG: Likewise.
18954         * localedata/locales/ik_CA: Likewise.
18955         * localedata/locales/is_IS: Likewise.
18956         * localedata/locales/iso14651_t1_pinyin: Likewise.
18957         * localedata/locales/kk_KZ: Likewise.
18958         * localedata/locales/ku_TR: Likewise.
18959         * localedata/locales/ky_KG: Likewise.
18960         * localedata/locales/ln_CD: Likewise.
18961         * localedata/locales/lt_LT: Likewise.
18962         * localedata/locales/lv_LV: Likewise.
18963         * localedata/locales/mi_NZ: Likewise.
18964         * localedata/locales/ml_IN: Likewise.
18965         * localedata/locales/mn_MN: Likewise.
18966         * localedata/locales/mr_IN: Likewise.
18967         * localedata/locales/mt_MT: Likewise.
18968         * localedata/locales/nb_NO: Likewise.
18969         * localedata/locales/om_KE: Likewise.
18970         * localedata/locales/os_RU: Likewise.
18971         * localedata/locales/pl_PL: Likewise.
18972         * localedata/locales/ps_AF: Likewise.
18973         * localedata/locales/ro_RO: Likewise.
18974         * localedata/locales/ru_RU: Likewise.
18975         * localedata/locales/ru_UA: Likewise.
18976         * localedata/locales/sc_IT: Likewise.
18977         * localedata/locales/se_NO: Likewise.
18978         * localedata/locales/si_LK: Likewise.
18979         * localedata/locales/sq_AL: Likewise.
18980         * localedata/locales/sv_FI: Likewise.
18981         * localedata/locales/sv_FI@euro: Likewise.
18982         * localedata/locales/sv_SE: Likewise.
18983         * localedata/locales/szl_PL: Likewise.
18984         * localedata/locales/tg_TJ: Likewise.
18985         * localedata/locales/ti_ER: Likewise.
18986         * localedata/locales/tk_TM: Likewise.
18987         * localedata/locales/tl_PH: Likewise.
18988         * localedata/locales/tr_TR: Likewise.
18989         * localedata/locales/tt_RU: Likewise.
18990         * localedata/locales/tt_RU@iqtelif: Likewise.
18991         * localedata/locales/ug_CN: Likewise.
18992         * localedata/locales/uk_UA: Likewise.
18993         * localedata/locales/uz_UZ: Likewise.
18994         * localedata/locales/uz_UZ@cyrillic: Likewise.
18995         * localedata/locales/vi_VN: Likewise.
18996         * localedata/locales/yi_US: Likewise.
18997         * localedata/locales/yo_NG: Likewise.
18999 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19001         * gen-locales.mk: Make test files which contain @ modifiers in their
19002         name work.
19003         * localedata/gen-locale.sh: Likewise.
19005 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19007         * posix/tst-fnmatch.input: Fix results for range expressions
19008         for non C locales.
19009         * posix/tst-regexloc.c: Do not use a range expression for
19010         de_DE.ISO-8859-1 locale.
19012 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19014         * posix/bug-regex5.c: Fix test case because with the new
19015         iso14651_t1_common file, the da_DK locale now has 6 collating elements
19016         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
19017         file.
19019 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19021         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
19022         downloaded from ISO, the collation order of @-. and space has changed.
19023         Therefore, this test file needed to be adapted.
19024         * localedata/fr_CA.UTF-8.in: Likewise.
19025         * localedata/fr_FR.UTF-8.in: Likewise.
19026         * localedata/uk_UA.UTF-8.in: Likewise.
19028 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19030         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
19031         order of ȥ in the new iso14651_t1_common file.
19032         * localedata/pl_PL.UTF-8.in: Likewise.
19034 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19036         * localedata/locales/iso14651_t1_common: Add sections for various
19037         scripts to the iso14651_t1_common file.
19039 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19041         * localedata/locales/iso14651_t1_common: Use the code point of a
19042         character in the fourth collation level instead of IGNORE for all
19043         entries which have IGNORE on all 4 levels.
19045 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19047         * localedata/locales/iso14651_t1_common: Add some convenient collation
19048         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
19049         rules similar to those in CLDR.
19051 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19053         * localedata/locales/iso14651_t1_common: The new version of this
19054         file downloaded from ISO contained several syntax errors which
19055         are fixed by this patch.
19057 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19059         * localedata/locales/iso14651_t1_common: replace all <U.....>
19060         with <U000.....> because glibc understands only 4 digit or 8 digit
19062 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19064         * localedata/locales/iso14651_t1_common: Necessary changes
19065         to make the file downloaded from ISO usable by glibc.
19067 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
19069         [BZ #14095]
19070         * localedata/locales/iso14651_t1_common: Update file to
19071         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
19073 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19075         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
19076         of <nptl/pthreadP.h>
19077         (thread_attr_compare): Move function to...
19078         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
19079         * sysdeps/nptl/timer_routines.h: ... new header.
19080         * sysdeps/mach/hurd/gai_misc.h: New file.
19082 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
19084         * string/strcoll_l.c: Include <libc-diag.h>.
19085         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
19086         declarations of seq1 and seq2.
19088         [BZ #15105]
19089         * stdlib/atoi.c (atoi): Use libc_hidden_def.
19090         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
19092 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
19094         [BZ #22433]
19095         [BZ #22807]
19096         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
19097         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
19098         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
19099         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
19100         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
19101         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
19103 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19105         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
19106         macros used in __ptrace_request.
19108 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19110         [BZ #22792]
19111         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
19112         to $(CC).
19113         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
19114         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
19115         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
19116         <tcb-offsets.h>.
19118 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
19120         [BZ #15105]
19121         * ctype/ctype.c (tolower): Use libc_hidden_def.
19122         (toupper): Likewise.
19123         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
19124         [!_ISOMAC] (toupper): Likewise.
19126 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
19128         * localedata/Makefile: Remove --quiet argument when
19129         installing locales
19131 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
19133         [BZ #17438]
19134         * localedata/locales/pt_BR (LC_TIME): use / instead of -
19135         in d_fmt.
19136         * localedata/locales/pt_PT (LC_TIME): likewise
19138 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
19140         [BZ #22646]
19141         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
19142         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
19143         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
19145 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19147         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19149         * nptl/Makefile (routines): Remove unregister-atfork.
19150         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
19151         (fork_handler_alloc): Remove function.
19152         (fork_handlers, fork_handler_init): New variables.
19153         (__fork_lock): Rename to atfork_lock.
19154         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
19155         to use a dynamic array to add/remove atfork handlers.
19156         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
19157         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
19158         Remove declaration.
19159         (fork_handler): Remove next, refcntr, and need_signal member.
19160         (__run_fork_handler_type): New enum.
19161         (__run_fork_handlers): New prototype.
19162         * nptl/register-atfork.c: Remove file.
19163         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
19165         * sysdeps/nptl/nptl-signals.h: Move to ...
19166         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
19167         comments.
19168         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
19169         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
19170         unnecessary check for SIGTIMER.
19171         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
19172         remove unnecessary removal of SIGTIMER.
19173         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
19174         include-signals.h rename.
19175         * nptl/pthreadP.h: Likewise.
19176         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
19177         __is_internal_signal instead of __nptl_is_internal_signal.
19179 2018-02-22  Andrew Waterman  <andrew@sifive.com>
19181         [BZ # 22884]
19182         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
19183         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
19184         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
19185         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
19187 2018-02-22  DJ Delorie  <dj@delorie.com>
19189         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
19191 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
19193         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
19194         do_misaligned, not misaligned8.
19196 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
19198         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
19199         Add memcpy_thunderx2.
19200         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
19201         Increment to 4.
19202         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
19203         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
19204         and IS_THUNDERX2PA checks.
19205         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
19206         Use macro to set name appropriately.
19207         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
19208         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
19209         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
19210         New macro.
19211         (IS_THUNDERX2): New macro.
19213 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
19215         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19217 2018-02-21  Zack Weinberg  <zackw@panix.com>
19219         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
19220         Define here, unconditionally.
19221         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
19222         * libio/libioP.h: Remove #if 0 blocks.
19223         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
19224         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
19225         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
19227         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
19228         Assume weak_alias is always defined.
19230         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
19231         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
19232         Remove #if 0 and #ifdef TODO blocks.
19233         Assume text_set_element is always defined.
19235         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
19236         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
19237         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
19239         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
19240         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
19241         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
19242         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
19243         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
19244         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
19245         Reformat bit flags for _flags field to make occupancy clearer.
19246         Update commentary.
19247         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
19248         Keep definitions consistent with those in libio/libio.h.
19250         * libio/libio.h (_IO_file_flags): Remove macro.
19251         All uses changed to _flags.
19253         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
19254         (__HAVE_COLUMN, _IO_BE): Don't define.
19255         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
19256         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
19257         * libio/libioP.h (EOF): Don't define.
19258         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
19259         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
19260         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
19261         testing _IO_UNIFIED_JUMPTABLES.
19263         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
19264         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
19265         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
19266         (_IO_size_t): Delete; all uses changed to size_t.
19267         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
19268         (_IO_off_t): Delete; all uses changed to off_t.
19269         (_IO_off64_t): Delete; all uses changed to off64_t.
19270         (_IO_pid_t): Delete; all uses changed to pid_t.
19271         (_IO_uid_t): Delete; all uses changed to uid_t.
19272         (_IO_wint_t): Delete; all uses changed to wint_t.
19273         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
19274         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
19275         (_IO_cookie_io_functions_t): Delete; all uses changed to
19276         cookie_io_functions_t.
19277         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
19278         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
19279         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
19280         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
19282         * libio/iofopncook.c: Remove unnecessary forward declarations.
19283         * libio/iolibio.h: Correct outdated commentary.
19284         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
19285         * stdio-common/fxprintf.c (__fxprintf_nocancel):
19286         Remove unnecessary casts.
19287         * stdio-common/getline.c: Use _IO_getdelim directly.
19288         Don't redefine ssize_t.
19289         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
19290         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
19291         Remove outdated comments.
19292         * stdio-common/vfscanf.c: Don't redefine va_list.
19294         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
19295         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
19296         Remove preprocessor conditionals on _LIBC and __USE_GNU,
19297         which are always true, and __cplusplus, which is always false.
19299 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
19301         [BZ #15105]
19302         [BZ #19463]
19303         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
19304         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
19305         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
19306         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
19307         libc_hidden_proto.
19308         [!_ISOMAC] (putc_unlocked): Likewise.
19309         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
19310         define inline if [__USE_EXTERN_INLINES].
19311         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
19312         putc_unlocked.
19314         [BZ #15105]
19315         [BZ #19463]
19316         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
19317         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
19318         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
19319         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
19320         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
19321         getc_unlocked.
19322         * time/tzfile.c (__tzfile_read): Likewise.
19324 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
19326         [BZ #22517]
19327         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
19329 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
19331         * io/fcntl.h: Fix a typo in a comment.
19333 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
19335         [BZ #22862]
19336         * include/features.h: Add _ISOC11_SOURCE to test for whether to
19337         define _DEFAULT_SOURCE.
19338         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
19340 2018-02-21  Florian Weimer  <fweimer@redhat.com>
19342         [BZ #20890]
19343         * elf/cache.c (save_cache): Call fsync on temporary file before
19344         renaming it.
19345         (save_aux_cache): Call fdatasync on temporary file before renaming
19346         it.
19348 2018-02-21  Florian Weimer  <fweimer@redhat.com>
19350         [BZ #22787]
19351         * include/caller.h: Remove file.
19352         * elf/dl-caller.c: Likewise.
19353         * elf/Makefile (dl-routines): Remove dl-caller.
19354         (shared-only-routines): Do not add dl-caller.
19355         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
19356         __check_caller.
19357         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
19358         member.
19359         (dl_open_worker): Do not call __check_caller.
19360         (_dl_open): Do not set caller_dl_open member.
19361         * elf/rtld.c (_rtld_global_ro): Do not initialize
19362         _dl_check_caller member.
19363         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
19364         _dl_check_caller member.
19365         (_dl_check_caller): Remove declaration.
19366         * sysdeps/unix/sysv/linux/dl-execstack.c
19367         (_dl_make_stack_executable): Do not call __check_caller.
19369 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19371         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
19372         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
19374 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
19376         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
19377         description.
19379 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
19381         [BZ #16335]
19382         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
19383         of 199606L, 200112L, and 200809L.
19384         (_XOPEN_SOURCE): Document special values of 600 and 700.
19385         (_ISOC11_SOURCE): Document macro.
19386         (_ATFILE_SOURCE): Likewise.
19387         (_FORTIFY_SOURCE): Likewise.
19389 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
19391         [BZ #15105]
19392         [BZ #19463]
19393         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
19394         and define as weak alias of __ferror_unlocked.  Use
19395         libc_hidden_weak.
19396         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
19397         libc_hidden_proto.
19398         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
19399         function if [__USE_EXTERN_INLINES].
19400         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
19401         ferror_unlocked.
19403 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
19405         [BZ #6889]
19406         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
19408 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
19410         [BZ #22818]
19411         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
19412         the GLIBC_2.1 version.
19414 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
19416         [BZ #21508]
19417         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
19418         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
19419         intl/tst-gettext-de.po from po/de.po by removing the
19420         POT-Creation-Date line.
19421         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
19422         ../po/de.po.
19423         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
19424         ../po/de.po.
19426 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19428         * mach/Makefile (headers): Add mach/param.h.
19429         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
19430         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
19431         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
19432         (__ptsname_r): Move implementation to...
19433         (__ptsname_internal): ... new function.  Add filling the STP
19434         structure.
19436 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
19438         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
19439         idouble to 1 ULP.
19441 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
19443         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
19444         syntax.
19446 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
19448         * nptl/Makefile (tst-mutex8-ENV): Delete.
19449         * nptl/tst-mutex8.c (check_type):
19450         Add runtime check if mutex will be elided.
19452 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
19454         [BZ #20980]
19455         [BZ #21234]
19456         * manual/install.texi (Configuring and compiling): Describe
19457         passing CC and CFLAGS on configure command line, not as
19458         environment variables.  Use @code markup on those variables.
19459         Specify what options go in CC and what go in CFLAGS.  Note the
19460         requirement to compile with optimization.
19461         * INSTALL: Regenerated.
19463         [BZ #18124]
19464         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
19465         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
19466         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
19467         __sigprocmask instead of sigprocmask.
19468         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
19469         Likewise.
19470         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
19471         __sigsetjmp and sigprocmask.
19473         [BZ #15105]
19474         * include/argz.h (argz_next): Use libc_hidden_proto.
19475         (__argz_next): Likewise.
19476         * string-argz-next.c (__argz_next): Use libc_hidden_def.
19477         (argz_next): Use libc_hidden_weak.
19479         [BZ #15105]
19480         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
19481         libc_hidden_proto.
19482         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
19483         libc_hidden_def.
19485         [BZ #15105]
19486         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
19487         libc_hidden_proto.
19488         * libio/iofputs.c (fputs): Use libc_hidden_weak.
19490         [BZ #15105]
19491         [BZ #19463]
19492         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
19493         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
19494         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
19495         (__feof_unlocked): New declaration, and inline function if
19496         [__USE_EXTERN_INLINES].
19497         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
19498         instead of feof_unlocked.
19499         * intl/localealias.c [_LIBC] (FEOF): Likewise.
19500         * nss/nsswitch.c (nss_parse_file): Likewise.
19501         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
19502         Likewise.
19503         * time/getdate.c (__getdate_r): Likewise.
19504         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
19505         Define as macro to call __feof_unlocked.
19507 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
19509         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
19511 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
19513         * math/Makefile: Remove mpexp.c and mplog.c
19514         * sysdeps/i386/fpu/mpexp.c: Delete file.
19515         * sysdeps/i386/fpu/mplog.c: Likewise.
19516         * sysdeps/ia64/fpu/mpexp.c: Likewise.
19517         * sysdeps/ia64/fpu/mplog.c: Likewise.
19518         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
19519         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
19520         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
19521         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
19522         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
19523         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
19524         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
19525         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
19526         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
19527         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
19528         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
19529         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
19530         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
19531         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
19532         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
19533         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
19535 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
19537         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19539 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19541         * sysdeps/sh/libm-test-ulps: Update.
19543 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19545         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
19546         idouble to 1 ULP.
19548 2018-02-12  Zack Weinberg  <zackw@panix.com>
19550         [BZ #19239]
19551         * posix/sys/types.h: Don't include sys/sysmacros.h.
19552         * misc/sys/sysmacros.h: Remove the conditional deprecation
19553         warnings for the macros defined by this header.
19555 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19557         * manual/probes.texi: Remove slowexp probes.
19558         * math/Makefile: Remove slowexp.
19559         * sysdeps/generic/math_private.h (__slowexp): Remove.
19560         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
19561         document error bounds.
19562         * sysdeps/i386/fpu/slowexp.c: Remove.
19563         * sysdeps/ia64/fpu/slowexp.c: Remove.
19564         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
19565         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
19566         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
19567         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
19568         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
19569         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
19570         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
19571         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
19572         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
19573         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
19574         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
19576 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
19578         [BZ #13932]
19579         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
19580         * benchtests/pow-inputs: Update comment for slow path cases.
19581         * manual/probes.texi (slowpow_p10): Delete removed probe.
19582         (slowpow_p10): Likewise.
19583         * math/Makefile: Remove halfulp.c and slowpow.c.
19584         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
19585         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
19586         (__halfulp): Remove.
19587         (__slowpow): Remove.
19588         * sysdeps/i386/fpu/halfulp.c: Delete file.
19589         * sysdeps/i386/fpu/slowpow.c: Likewise.
19590         * sysdeps/ia64/fpu/halfulp.c: Likewise.
19591         * sysdeps/ia64/fpu/slowpow.c: Likewise.
19592         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
19593         improve comments and add error analysis.
19594         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
19595         (power1): Remove function:
19596         (log1): Remove error argument, add error analysis.
19597         (my_log2): Remove function.
19598         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
19599         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
19600         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
19601         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
19602         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
19603         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
19604         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
19605         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
19606         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
19607         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
19608         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
19609         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
19610         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
19611         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
19613 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19615         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
19616         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
19618 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
19620         [BZ #22433]
19621         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
19622         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
19623         and PTRACE_SETHBPREGS.
19625 2018-02-10  Zack Weinberg  <zackw@panix.com>
19627         [BZ #22830]
19628         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
19629         correctly.
19630         * malloc/tst-malloc-stats-cancellation.c: New test case.
19631         * malloc/Makefile: Add new test case.
19633 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
19635         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
19637 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
19639         * math/Makefile (libm-narrow-fns): Add add.
19640         (libm-test-funcs-narrow): Likewise.
19641         * math/Versions (GLIBC_2.28): Add narrowing add functions.
19642         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
19643         * math/gen-auto-libm-tests.c (test_functions): Add add.
19644         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
19645         (NARROW_ADD_ROUND_TO_ODD): Likewise.
19646         (NARROW_ADD_TRIVIAL): Likewise.
19647         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
19648         macro.
19649         (__daddl): Likewise.
19650         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
19651         dadd.
19652         (CFLAGS-nldbl-dadd.c): New variable.
19653         (CFLAGS-nldbl-fadd.c): Likewise.
19654         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19655         __nldbl_daddl.
19656         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
19657         prototype.
19658         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
19659         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
19660         * math/auto-libm-test-in: Add tests of add.
19661         * math/auto-libm-test-out-narrow-add: New generated file.
19662         * math/libm-test-narrow-add.inc: New file.
19663         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
19664         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
19665         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
19666         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
19667         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
19668         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
19669         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
19670         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
19671         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
19672         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
19673         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
19674         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
19675         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
19676         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
19677         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
19678         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
19679         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
19680         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
19681         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19682         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19683         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19684         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19685         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19686         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19687         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19688         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19689         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19690         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19691         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19692         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19693         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19694         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19699         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19700         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19701         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19702         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19703         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19704         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19705         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19706         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19707         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19708         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19710         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
19711         (f128-pairs): New variable.
19712         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
19713         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
19714         to CFLAGS.
19715         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
19716         Also make tests add $(f128-loader-link) to gnulib-tests.
19718 2018-02-09  DJ Delorie  <dj@redhat.com>
19720         [BZ #22827]
19721         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
19722         64-bit ELF type for 64-bit ELF objects.
19724 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
19726         * math/libm-test-driver.c (snan_tests_arg): New variable.
19727         * math/libm-test-support.h (snan_tests_arg): New declaration.
19728         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
19730         * math/Makefile (test-type-pairs): New variable.
19731         (test-type-pairs-f64xf128-yes): Likewise.
19732         (tests): Add test-narrow-macros.
19733         (libm-test-funcs-narrow): New variable.
19734         (libm-test-c-narrow): Likewise.
19735         (generated): Add $(libm-test-c-narrow).
19736         (libm-tests-base-narrow): New variable.
19737         (libm-tests-narrow): Likewise.
19738         (libm-tests): Add $(libm-tests-narrow).
19739         (libm-tests-for-type): Handle $(libm-tests-narrow).
19740         (libm-test-c-narrow-obj): New variable.
19741         ($(libm-test-c-narrow-obj)): New rule.
19742         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
19743         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
19744         $(o-iterator) to set dependencies and CFLAGS.
19745         * math/gen-auto-libm-tests.c: Document use for narrowing
19746         functions.
19747         (output_for_one_input_case): Take argument NARROW.
19748         (generate_output): Likewise.  Update call to
19749         output_for_one_input_case.
19750         (main): Take --narrow option.  Update call to generate_output.
19751         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
19752         (apply_lit): Update call to _apply_lit.
19753         (apply_arglit): New function.
19754         (parse_args): Handle "a" arguments.
19755         (parse_auto_input): Handle format names using ":".
19756         * math/README.libm-test: Document "a" parameter type.
19757         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
19758         (ARG_TYPE_TRUE_MIN): Likewise.
19759         (ARG_TYPE_MAX): Likwise.
19760         (ARG_MIN_EXP): Likewise.
19761         (ARG_MAX_EXP): Likewise.
19762         (ARG_MANT_DIG): Likewise.
19763         (TEST_COND_arg_ibm128): Likewise.
19764         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
19765         (TEST_COND_arg_fmt): New macro.
19766         (init_max_error): Update prototype.
19767         * math/libm-test-support.c (test_ibm128): New variable.
19768         (init_max_error): Take argument testing_ibm128 and set test_ibm128
19769         instead of using [TEST_COND_ibm128] conditional.
19770         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
19771         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
19772         [TEST_NARROW] (TEST_MSG): New definition.
19773         (arg_plus_zero): New macro.
19774         (arg_minus_zero): Likewise.
19775         (arg_plus_infty): Likewise.
19776         (arg_minus_infty): Likewise.
19777         (arg_qnan_value_pl): Likewise.
19778         (arg_qnan_value): Likewise.
19779         (arg_snan_value_pl): Likewise.
19780         (arg_snan_value): Likewise.
19781         (arg_max_value): Likewise.
19782         (arg_min_value): Likewise.
19783         (arg_min_subnorm_value): Likewise.
19784         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
19785         (RUN_TEST_LOOP_aa_f): New macro.
19786         (TEST_SUFF): New macro.
19787         (TEST_SUFF_STR): Likewise.
19788         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
19789         (TEST_COND_any_ibm128): New macro.
19790         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
19791         this_func.  Update call to init_max_error.
19792         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
19793         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
19794         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
19795         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
19796         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
19797         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
19798         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
19799         * math/test-math-scalar.h (TEST_NARROW): Likewise.
19800         * math/test-math-vector.h (TEST_NARROW): Likewise.
19801         * math/test-arg-double.h: New file.
19802         * math/test-arg-float128.h: Likewise.
19803         * math/test-arg-float32x.h: Likewise.
19804         * math/test-arg-float64.h: Likewise.
19805         * math/test-arg-float64x.h: Likewise.
19806         * math/test-arg-ldouble.h: Likewise.
19807         * math/test-math-narrow.h: Likewise.
19808         * math/test-narrow-macros.c: Likewise.
19809         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
19810         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
19811         test-narrow-macros-ldbl-64.
19812         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
19814         * math/bits/mathcalls-narrow.h: New file.
19815         * include/bits/mathcalls-narrow.h: Likewise.
19816         * math/math-narrow.h: Likewise.
19817         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
19818         (__MATHCALL_NARROW_ARGS_2): Likewise.
19819         (__MATHCALL_NARROW_ARGS_3): Likewise.
19820         (__MATHCALL_NARROW_NORMAL): Likewise.
19821         (__MATHCALL_NARROW_REDIR): Likewise.
19822         (__MATHCALL_NARROW): Likewise.
19823         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
19824         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
19825         defined.
19826         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19827         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
19828         (libm-narrow-fns): New variable.
19829         (libm-narrow-types-basic): Likewise.
19830         (libm-narrow-types-ldouble-yes): Likewise.
19831         (libm-narrow-types-float128-yes): Likewise.
19832         (libm-narrow-types-float128-alias-yes): Likewise.
19833         (libm-narrow-types): Likewise.
19834         (libm-routines): Add narrowing functions.
19835         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
19836         (libc_feholdexcept_setroundf128): New macro.
19837         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
19838         * sysdeps/ieee754/float128/float128_private.h: Include
19839         <math/math-narrow.h>.
19840         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
19841         Undefine and redefine.
19842         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
19843         (libm_alias_float_ldouble): Undefine and redefine.
19844         (libm_alias_double_ldouble): Likewise.
19846         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
19848 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
19850         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
19851         FPCR/FPSR.
19853 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
19855         * manual/creature.texi: Convert references to gcc.info to gcc.
19856         * manual/stdio.texi: Likewise.
19857         * manual/string.texi: Likewise.
19859 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
19861         [BZ #17979]
19862         * posix/bits/types.h (__int_least8_t): New typedef.
19863         (__uint_least8_t): Likewise.
19864         (__int_least16_t): Likewise.
19865         (__uint_least16_t): Likewise.
19866         (__int_least32_t): Likewise.
19867         (__uint_least32_t): Likewise.
19868         (__int_least64_t): Likewise.
19869         (__uint_least64_t): Likewise.
19870         * sysdeps/generic/stdint.h (int_least8_t): Define using
19871         __int_least8_t.
19872         (int_least16_t): Define using __int_least16_t.
19873         (int_least32_t): Define using __int_least32_t.
19874         (int_least64_t): Define using __int_least64_t.
19875         (uint_least8_t): Define using __uint_least8_t.
19876         (uint_least16_t): Define using __uint_least16_t.
19877         (uint_least32_t): Define using __uint_least32_t.
19878         (uint_least64_t): Define using __uint_least64_t.
19879         * wcsmbs/uchar.h: Include <bits/types.h>.
19880         (char16_t): Define using __uint_least16_t conditional only on
19881         [!__USE_ISOCXX11].
19882         (char32_t): Define using __uint_least32_t conditional only on
19883         [!__USE_ISOCXX11].
19884         * wcsmbs/test-char-types.c: New file.
19885         * wcsmbs/Makefile (tests): Add test-char-types.
19887         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
19888         version to 4.0.1.
19890 2018-02-07  Zack Weinberg  <zackw@panix.com>
19892         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
19893         Delete all contents except for definitions of _G_HAVE_MMAP and
19894         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
19895         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
19896         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
19897         change as above.
19899         * libio/libio.h: Don't include bits/_G_config.h here.
19900         Include stddef.h with __need_wchar_t defined.  Include
19901         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
19902         Define _IO_iconv_t here, directly.
19903         Don't define _IO_HAVE_ST_BLKSIZE.
19904         * libio/libioP.h: Include _G_config.h here.  Move include of
19905         shlib-compat.h up with rest of includes.  Simplify conditionals
19906         controlling definition of _IO_JUMPS_OFFSET.
19908         * csu/init.c: Remove always-true #if around entire file.
19909         Don't include stdio.h.  Set _IO_stdin_used to hardwired
19910         constant 0x20001, and update commentary.
19911         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
19912         Replace all uses of _G_va_list with __gnuc_va_list.
19913         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
19914         instead of #if _IO_HAVE_ST_BLKSIZE.
19915         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
19916         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
19917         not #ifdef.
19919         * libio/bits/libio.h: Move back to libio/libio.h and adjust
19920         multiple-include guard to match.
19921         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
19922         into this file.
19923         Remove preprocessor conditionals that are always true and/or
19924         redundant to other preprocessor conditionals in the same nest.
19925         Include shlib-compat.h unconditionally.
19926         Error out if _LIBC is not defined, or if _ISOMAC is defined,
19927         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
19928         defined after including stdio.h.
19929         Use __BEGIN_DECLS/__END_DECLS.
19931         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
19932         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
19933         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
19935 2018-02-07  Zack Weinberg  <zackw@panix.com>
19937         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
19938         New single-type headers split from _G_config.h.
19939         * libio/bits/types/cookie_io_functions_t.h
19940         * libio/bits/types/struct_FILE.h
19941         New single-type headers split from libio.h.
19943         * libio/Makefile: Install the above new headers.  Don't install
19944         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
19945         bits/libio-ldbl.h.
19946         * libio/_G_config.h, libio/libio.h: Delete file.
19948         * libio/bits/libio.h: Remove improper-inclusion guard.
19949         Include stdio.h and don't repeat anything that it does.
19950         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
19951         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
19952         __io_read_fn as cookie_read_function_t,
19953         __io_write_fn as cookie_write_function_t,
19954         __io_seek_fn as cookie_seek_function_t,
19955         __io_close_fn as cookie_close_function_t,
19956         and _IO_cookie_io_functions_t as cookie_io_functions_t.
19957         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
19958         here, in the "compatibility defines" section.  Remove an #if 0
19959         block.  Use the "body" macros from bits/types/struct_FILE.h to
19960         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
19961         and _IO_ferror_unlocked.
19962         Move prototypes of __uflow and __overflow...
19964         * libio/stdio.h: ...here.  Don't include bits/libio.h.
19965         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
19966         directly from stdarg.h.  Include bits/types/__fpos_t.h,
19967         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
19968         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
19969         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
19970         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
19971         cookie_io_functions_t, not _IO_cookie_io_functions_t;
19972         __ssize_t, not _IO_ssize_t.  Unconditionally define
19973         BUFSIZ as 8192 and EOF as (-1).
19975         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
19976         macros from bits/types/struct_FILE.h instead of _IO_* macros
19977         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
19978         instead of _IO_ssize_t.
19979         * libio/bits/stdio2.h: Similarly.
19981         * libio/iolibio.h: Add multiple-include guard.
19982         Include bits/libio.h after stdio.h.
19983         * libio/libioP.h: Add multiple-include guard.
19984         Include stdio.h and bits/libio.h before iolibio.h.
19986         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
19987         * include/bits/types/cookie_io_functions_t.h
19988         * include/bits/types/struct_FILE.h: New wrappers.
19990         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
19991         Get definitions of _G_fpos_t and _G_fpos64_t from
19992         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
19993         respectively.  Remove improper-inclusion guards.
19995         * conform/data/stdio.h-data: Update expectations of va_list.
19996         * scripts/check-installed-headers.sh: Remove special case for
19997         libio.h and _G_config.h.
19999 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
20001         [BZ #15105]
20002         [BZ #19463]
20003         * include/sys/sysmacros.h [!_ISOMAC]
20004         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
20005         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
20006         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
20007         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
20008         libc_hidden_proto.
20009         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
20010         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
20011         Likewise.
20012         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
20013         Undefine and redefine to add use __gnu_dev_ prefix.
20014         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
20015         Likewise.
20016         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
20017         and define as hidden inline function.
20018         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
20019         Likewise.
20020         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
20021         Likewise.
20022         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
20023         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
20024         (gnu_dev_minor): Likewise.
20025         (gnu_dev_makedev): Likewise.
20026         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
20027         makedev.
20028         * posix/wordexp.c (exec_comm_child): Likewise.
20029         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
20030         instead of minor and __gnu_dev_major instead of major.
20031         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
20032         __gnu_dev_major instead of major.
20033         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
20034         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
20035         instead of gnu_dev_minor.
20036         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
20037         (SLAVE_P): Likewise.
20038         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
20039         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
20040         instead of major.
20042         [BZ #21313]
20043         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
20044         in another place.
20045         * locale/weightwc.h (findidx): Likewise.
20047 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
20049         * manual/probes.texi (slowlog): Delete documentation of removed probe.
20050         (slowlog_inexact): Likewise
20051         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
20052         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
20054 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
20056         [BZ #22797]
20057         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
20058         missing second underscore to parameter name.
20060 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
20062         [BZ #14508]
20063         [BZ #15512]
20064         [BZ #17082]
20065         [BZ #20530]
20066         * bits/byteswap.h: Update file comment.  Do not include
20067         <bits/byteswap-16.h>.
20068         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
20069         constant.
20070         (__bswap_16): Define as inline function.
20071         (__bswap_constant_32): Reformat definition.
20072         (__bswap_32): Always define as inline function, not macro, using
20073         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
20074         otherwise __bswap_constant_32.
20075         (__bswap_constant_64): Reformat definition.  Do not use
20076         __extension__ here.
20077         (__bswap_64): Always define as inline function, not macro.  Use
20078         __extension__ on function definition.  Use __builtin_bswap64 if
20079         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
20080         * string/test-endian-file-scope.c: New file.
20081         * string/test-endian-sign-conversion.c: Likewise.
20082         * string/Makefile (headers): Remove bits/byteswap-16.h.
20083         (tests): Add test-endian-file-scope and
20084         test-endian-sign-conversion.
20085         (CFLAGS-test-endian-sign-conversion.c): New variable.
20086         * bits/byteswap-16.h: Remove file.
20087         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
20088         * sysdeps/ia64/bits/byteswap.h: Likewise.
20089         * sysdeps/m68k/bits/byteswap.h: Likewise.
20090         * sysdeps/s390/bits/byteswap-16.h: Likewise.
20091         * sysdeps/s390/bits/byteswap.h: Likewise.
20092         * sysdeps/tile/bits/byteswap.h: Likewise.
20093         * sysdeps/x86/bits/byteswap-16.h: Likewise.
20094         * sysdeps/x86/bits/byteswap.h: Likewise.
20096         [BZ #17721]
20097         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
20098         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
20099         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
20100         199901L] (__restrict): Define to restrict.
20102         [BZ #19667]
20103         * string/testcopy.c: Include <support/support.h>.  Do not include
20104         <malloc.h>.  Use <support/test-driver.c>.
20105         (main): Rename to do_test.  Make static.  Use xmalloc instead of
20106         malloc.
20108         [BZ #13575]
20109         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
20110         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
20111         (SSIZE_MAX): Define to INT_MAX.
20112         * posix/test-ssize-max.c: New file.
20113         * posix/Makefile (tests): Add test-ssize-max.
20115         [BZ #19668]
20116         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
20117         <support/support.h>.  Do not include <malloc.h>.
20118         (query_auxv): Use xmalloc instead of malloc.
20120         [BZ #14553]
20121         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
20122         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
20123         instead of loff_t.
20125 2018-02-06  Florian Weimer  <fweimer@redhat.com>
20127         [BZ #18023]
20128         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20129         Use scratch_buffer instead of extend_alloca.
20131 2018-02-06  Zack Weinberg  <zackw@panix.com>
20133         * libio/stdio.h: Don't define getc or putc as macros.
20134         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
20135         not _IO_getc and _IO_putc.
20137         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
20138         * stdio-common/tstgetln.c: Don't redefine ssize_t.
20140 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
20142         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
20143         (TCP_FASTOPEN_NO_COOKIE): Likewise.
20145         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
20147         [BZ #14890]
20148         * elf/elf.h (NT_PRFPREG): New macro.
20149         (NT_S390_VXRS_LOW): Likewise.
20150         (NT_S390_VXRS_HIGH): Likewise.
20151         (NT_S390_GS_CB): Likewise.
20152         (NT_S390_GS_BC): Likewise.
20153         (NT_S390_RI_CB): Likewise.
20155         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
20156         (MAP_SYNC): New macro.
20157         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
20158         Likewise.
20159         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
20160         (MAP_SYNC): Likewise.
20161         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
20162         (MAP_SYNC): Likewise.
20163         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
20164         (MAP_SYNC): Likewise.
20165         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
20166         (MAP_SYNC): Likewise.
20167         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
20168         (MAP_SYNC): Likewise.
20169         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
20170         (MAP_SYNC): Likewise.
20171         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
20172         Likewise.
20173         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
20174         Likewise.
20176         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
20177         (MAP_SHARED_VALIDATE): New macro.
20178         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
20179         (MAP_SHARED_VALIDATE): Likewise.
20181 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
20183         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
20184         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
20185         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20187 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
20189         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
20190         (DT_NUM): Updated to 35.
20192 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
20194         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
20195         __builtin_expect with __glibc_likely and __glibc_unlikely.
20196         (elf_machine_rela): Likewise.
20197         (elf_machine_lazy_rel): Likewise.
20199 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
20201         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
20202         __builtin_expect with __glibc_likely and __glibc_unlikely.
20203         (elf_machine_lazy_rel): Likewise.
20205 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
20207         [BZ #22638]
20208         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
20209         SHARED.
20210         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
20212 2018-02-05  Andreas Schwab  <schwab@suse.de>
20214         [BZ #22761]
20215         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
20216         string.
20218 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20220         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
20221         not check against PTHREAD_STACK_MIN.
20223 2018-02-02  Sean McKean  <smckean83@gmail.com>
20225         [BZ #22735]
20226         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
20228 2018-02-02  Florian Weimer  <fweimer@redhat.com>
20230         [BZ #22753]
20231         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
20232         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
20233         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
20234         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
20235         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
20236         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
20237         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
20238         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
20239         * manual/llio.texi (Scatter-Gather): Mention offset -1.
20240         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
20241         * misc/tst-preadvwritev2.c (do_test): Call it.
20242         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
20244 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20246         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
20248         * benchtests/bench-memcmp.c: Print json instead of plain text.
20250         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
20251         every test run.
20253 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
20255         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
20256         version to 4.15.
20257         (s390_sthyi): New syscall.
20259         * sysdeps/generic/ldbl-classify-compat.h: New file.
20260         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
20261         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
20262         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
20263         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
20264         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
20265         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
20266         * sysdeps/ieee754/dbl-64/s_finite.c: Include
20267         <ldbl-classify-compat.h>.
20268         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
20269         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
20270         <ldbl-classify-compat.h>.
20271         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
20272         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
20273         <ldbl-classify-compat.h>.
20274         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
20275         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
20276         <ldbl-classify-compat.h>.
20277         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
20278         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
20279         <ldbl-classify-compat.h>.
20280         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
20281         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
20282         <ldbl-classify-compat.h>.
20283         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
20284         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
20285         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
20286         * sysdeps/m68k/coldfire/math_private.h: Remove file.
20287         * sysdeps/microblaze/math_private.h: Likewise.
20288         * sysdeps/nios2/math_private.h: Likewise.
20289         * sysdeps/sh/math_private.h: Likewise.
20291         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
20292         * sysdeps/m68k/coldfire/math_private.h: ... here.
20293         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
20294         * sysdeps/tile/math_private.h: Likewise.
20295         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
20296         Remove macro.
20297         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
20298         Likewise.
20300         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
20301         Remove macro.
20302         (libc_fetestexcept): Likewise.
20303         (libc_feupdateenv_test): Likewise.
20304         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
20305         (libc_fetestexcept): Likewise.
20306         (libc_feupdateenv_test): Likewise.
20307         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
20308         (libc_fetestexcept): Likewise.
20309         (libc_feupdateenv_test): Likewise.
20310         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
20311         (libc_fetestexcept): Likewise.
20312         (libc_feupdateenv_test): Likewise.
20314         * sysdeps/generic/math_private.h
20315         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
20316         New inline function.
20317         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
20318         Likewise.
20320         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
20321         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
20322         * sysdeps/generic/math_private.h
20323         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
20324         inline function.
20325         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
20326         Likewise.
20327         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
20328         Likewise.
20329         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
20330         Likewise.
20331         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
20332         Likewise.
20333         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
20334         Likewise.
20335         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
20336         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
20337         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
20338         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
20339         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
20340         (__fegetenv): Likewise.
20341         (fesetenv): Likewise.
20342         (__fesetenv): Likewise.
20343         (feupdateenv): Likewise.
20344         (__feupdateenv): Likewise.
20345         (fegetround): Likewise.
20346         (__fegetround): Likewise.
20347         (fesetround): Likewise.
20348         (__fesetround): Likewise.
20350         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
20351         (feraiseexcept): New macro.
20352         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
20353         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
20354         Remove macro.
20355         (__feraiseexcept): Likewise.
20356         (feclearexcept): Likewise.
20357         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
20358         (__feraiseexcept): Likewise.
20359         (feclearexcept): Likewise.
20360         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
20361         (__feraiseexcept): Likewise.
20362         (feclearexcept): Likewise.
20363         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
20364         (__feraiseexcept): Likewise.
20365         (feclearexcept): Likewise.
20366         (fetestexcept): Likewise.
20368         * sysdeps/m68k/coldfire/math-tests.h: New file.
20370         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
20371         * sysdeps/m68k/bits/fenv.h: ... here.
20372         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
20373         not define.
20374         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
20375         Likewise.
20376         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
20377         Likewise.
20378         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
20379         Likewise.
20380         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
20381         Likewise.
20382         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
20383         Define to 0.
20384         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
20385         (__FE_UNDEFINED): New enum constant.
20386         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
20387         Do not define.
20388         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
20389         Likewise.
20390         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
20391         Likewise.
20392         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
20393         to match generic bits/fenv.h.
20394         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
20395         Do not define.
20397         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
20398         packed on bits.
20399         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
20400         * soft-fp/half.h (union _FP_UNION_H): Likewise.
20401         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
20402         * soft-fp/single.h (union _FP_UNION_S): Likewise.
20404 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
20405             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
20406             Joseph Myers  <joseph@codesourcery.com>
20408         [BZ #21314]
20409         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
20410         (__log1p): Disable -Wmaybe-uninitialized for -Os around
20411         computation using c.
20412         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
20413         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
20414         computation using c.
20416 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
20418         * version.h (RELEASE): Set to "development".
20419         (VERSION): Set to "2.27.9000".
20420         * NEWS (2.28): New section.
20422         * version.h (RELEASE): Set to "stable".
20423         (VERSION): Set to "2.27".
20424         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
20426         * NEWS: Add the list of bugs fixed in 2.27.
20428 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20430         * stdlib/test-atexit-race-common.c (do_test): Check stack size
20431         against PTHREAD_STACK_MIN.
20433 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
20435         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
20436         New entries.
20437         (Rafal Luzynski, Andreas Schwab): Update.
20439 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
20441         [BZ #10871]
20442         * NEWS: List the languages which actually use the alternative
20443         months feature in this release.  Also explain that "alt_mon" and
20444         "ab_alt_mon" are optional.
20446 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
20448         [BZ #22765]
20449         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
20451 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
20453         * manual/install.texi (Tools for Compilation): Update the newest
20454         versions of gcc, binutils, texinfo, gawk, bison, and sed.
20455         * INSTALL: Regenerated.
20457 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20459         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
20460         instead of __builtin_expect.
20462 2018-01-30  Florian Weimer  <fweimer@redhat.com>
20464         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
20465         data.
20466         * nss/tst-nss-getpwent.c (do_test): Likewise.
20468 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
20470         [BZ #10871]
20471         * localedata/locales/hr_HR (mon): Rename to...
20472         (alt_mon): This.
20473         (mon): Import from CLDR (genitive case).
20474         (d_t_fmt): Update the comment.
20476 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
20478         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
20479         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
20480         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
20482 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20484         * mach/Versions: Fix version when __mach_host_self_ was added.
20485         * hurd/Versions: Fix version when _hurd_exec_paths was added.
20486         * sysdeps/mach/hurd/i386/ld.abilist: New file.
20487         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
20488         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
20489         * sysdeps/mach/hurd/i386/libc.abilist: New file.
20490         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
20491         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
20492         * sysdeps/mach/hurd/i386/libm.abilist: New file.
20493         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
20494         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
20495         * sysdeps/mach/hurd/i386/librt.abilist: New file.
20496         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
20497         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
20498         || to respect codestyle.
20499         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
20500         (do_test_bz20181): Rename accordingly.
20501         * malloc/malloc.c: Include <assert.h>.
20502         (assert): Do not define.
20503         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
20504         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
20505         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
20506         * sysdeps/mach/hurd/hp-timing.h: New file.
20507         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
20509 2018-01-29  Darius Rad  <darius@bluespec.com>
20511         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
20513 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
20515         * sysdeps/init_array/crti.S (.section .init_array): Add
20516         PREINIT_FUNCTION when defined.
20517         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
20518         * config.h.in: Regenerate.
20519         * manual/platform.texi: Add RISC-V documenation for
20520         __riscv_flush_icache.
20521         * sysdeps/riscv/__longjmp.S: New file.
20522         * sysdeps/riscv/backtrace.c: Likewise.
20523         * sysdeps/riscv/bits/endian.h: Likewise.
20524         * sysdeps/riscv/bits/setjmp.h: Likewise.
20525         * sysdeps/riscv/bits/wordsize.h: Likewise.
20526         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
20527         * sysdeps/riscv/bsd-setjmp.c: Likewise.
20528         * sysdeps/riscv/dl-trampoline.S: Likewise.
20529         * sysdeps/riscv/gccframe.h: Likewise.
20530         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
20531         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
20532         * sysdeps/riscv/machine-gmon.h: Likewise.
20533         * sysdeps/riscv/memusage.h: Likewise.
20534         * sysdeps/riscv/setjmp.S: Likewise.
20535         * sysdeps/riscv/sys/asm.h: Likewise.
20536         * sysdeps/riscv/tls-macros.h: Likewise.
20537         * sysdeps/riscv/dl-tls.h: New file.
20538         * sysdeps/riscv/libc-tls.c: Likewise.
20539         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
20540         * sysdeps/riscv/nptl/tls.h: Likewise.
20541         * sysdeps/riscv/stackinfo.h: Likewise.
20542         * sysdeps/riscv/bits/fenv.h: New file.
20543         * sysdeps/riscv/e_sqrtl.c: Likewise.
20544         * sysdeps/riscv/fpu_control.h: Likewise.
20545         * sysdeps/riscv/math-tests.h: Likewise.
20546         * sysdeps/riscv/nofpu/Implies: Likewise.
20547         * sysdeps/riscv/sfp-machine.h: Likewise.
20548         * sysdeps/riscv/tininess.h: Likewise.
20549         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
20550         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
20551         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
20552         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
20553         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
20554         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
20555         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
20556         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
20557         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
20558         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
20559         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
20560         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
20561         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
20562         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
20563         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
20564         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
20565         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
20566         * sysdeps/riscv/rvd/s_finite.c: Likewise.
20567         * sysdeps/riscv/rvd/s_fma.c: Likewise.
20568         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
20569         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
20570         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
20571         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
20572         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
20573         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
20574         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
20575         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
20576         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
20577         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
20578         * sysdeps/riscv/rvf/fegetround.c: Likewise.
20579         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
20580         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
20581         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
20582         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
20583         * sysdeps/riscv/rvf/fesetround.c: Likewise.
20584         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
20585         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
20586         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
20587         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
20588         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
20589         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
20590         * sysdeps/riscv/rvf/math_private.h: Likewise.
20591         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
20592         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
20593         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
20594         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
20595         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
20596         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
20597         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
20598         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
20599         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
20600         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
20601         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
20602         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
20603         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
20604         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
20605         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
20606         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
20607         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
20608         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
20609         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
20610         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
20611         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
20612         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20613         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
20614         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
20615         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
20616         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
20617         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
20618         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
20619         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
20620         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
20621         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
20622         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
20623         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
20624         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
20625         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
20626         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
20627         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
20628         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
20629         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
20630         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
20631         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
20632         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
20633         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
20634         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
20635         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
20636         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
20637         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
20638         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
20639         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
20640         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
20641         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
20642         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
20643         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
20644         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
20645         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
20646         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
20647         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
20648         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
20649         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
20650         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
20651         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
20652         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
20653         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
20654         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
20655         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
20656         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
20657         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
20658         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
20659         * sysdeps/riscv/Implies: New file.
20660         * sysdeps/riscv/Makefile: Likewise.
20661         * sysdeps/riscv/configure: Likewise.
20662         * sysdeps/riscv/configure.ac: Likewise.
20663         * sysdeps/riscv/nptl/Makefile: Likewise.
20664         * sysdeps/riscv/preconfigure: Likewise.
20665         * sysdeps/riscv/rv64/Implies-after: Likewise.
20666         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
20667         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
20668         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
20669         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
20670         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
20671         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
20672         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
20673         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
20674         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
20675         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
20676         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
20677         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
20678         (Config): Likewise.
20680 2018-01-29  Florian Weimer  <fweimer@redhat.com>
20682         [BZ #22701]
20683         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
20684         libnsl_hidden_proto.
20685         * include/rpcsvc/yp.h (yp_xdrall): Declare with
20686         libnsl_hidden_proto.
20687         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
20688         * nis/Makefile (libnsl-routines): Add nss-default only for
20689         build-obsolete-nsl.
20690         * nis/nis_defaults.c (__nis_default_ttl): Add
20691         libnsl_hidden_nolink_def.
20692         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
20693         declaration.
20694         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
20695         * nis/ypclnt.c (yp_maplist): Likewise.
20697 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
20699         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20700         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
20702 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
20704         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
20705         clean -dxfq for git updates when replacing sources.
20707         * scripts/build-many-glibcs.py (Config.build_gcc): Use
20708         --disable-libcilkrts unconditionally, not just for the final GCC
20709         build for Hurd.
20711         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
20712         version to 4.15.
20714 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
20716         [BZ #10871]
20717         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
20718         case).
20720 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
20722         [BZ #10871]
20723         * localedata/locales/be_BY (mon): Rename to...
20724         (alt_mon): This, then synchronize with CLDR (nominative case).
20725         (abmon): Rename to...
20726         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20727         (mon): Import from CLDR (genitive case).
20728         (abmon): Likewise.
20729         * localedata/locales/be_BY@latin (mon): Rename to...
20730         (alt_mon): This.
20731         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
20733         * localedata/locales/be_BY@latin (lang_name): Reworded to
20734         "biełaruskaja mova".
20736 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
20738         [BZ #10871]
20739         * localedata/locales/el_CY (mon): Renamed to...
20740         (alt_mon): This.
20741         (mon): Import from CLDR (genitive case).
20742         * localedata/locales/el_GR: Likewise.
20744 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
20746         [BZ #10871]
20747         * localedata/locales/ru_RU (mon): Rename to...
20748         (alt_mon): This.
20749         (abmon): Rename to...
20750         (ab_alt_mon): This.
20751         (mon): Import from CLDR (genitive case).
20752         (abmon): Copy from the old content except the 5th month which is
20753         now in the genitive case, even when abbreviated.
20754         * localedata/locales/ru_UA: Likewise.
20755         * time/tst-strptime.c (day_tests): Add an actual example of
20756         a difference between %b and %Ob in Russian.
20758 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20760         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
20761         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
20762         a `c' variable.
20763         * resolv/res-close.c: Include <stdlib.h>.
20764         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
20765         <sys/wait.h>, <time.h>, <sys/uio.h>.
20766         (NOT_CANCEL_H): Add inclusion guard.
20767         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
20768         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
20769         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
20770         return 0.
20771         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
20772         vm_address_t * to ElfW(Addr) * for dl_main parameter.
20773         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
20774         instead of void *.
20775         * sysdeps/pthread/timer_create.c (timer_create): Do not use
20776         timer_ptr2id to cast struct timer_node * to void *.
20777         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
20778         --disable-libcilkrts to gcc configure.
20779         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
20780         and make them the default for now.
20781         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
20782         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
20783         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
20784         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
20785         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
20786         MACH_IPC_COMPAT.
20787         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
20788         __task_terminate would ever return successfully.
20789         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
20790         to global scope.
20791         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
20792         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
20793         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
20794         critical section to make code simpler and avoid warning.
20795         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
20796         critical section to make code simpler and avoid warning.
20797         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
20798         const char * instead of char *.
20799         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
20800         __hurd_file_name_split, hurd_file_name_split,
20801         __hurd_directory_name_split, hurd_directory_name_split,
20802         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
20803         hurd_file_name_path_lookup): Make lookup function parameter take a
20804         const char *name instead of char *name.
20805         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
20806         __hurd_directory_name_split): Likewise.
20807         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
20808         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
20809         * sysdeps/mach/hurd/check_native.c: New file.
20810         * sysdeps/mach/hurd/check_pf.c: New file.
20811         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
20812         (__freeifaddrs): Define macro to freeifaddrs.
20813         * sysdeps/mach/hurd/libhurduser.abilist: New file.
20814         * sysdeps/mach/libmachuser.abilist: New file.
20815         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
20816         (do_test_bz20181): Rename accordingly.
20817         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
20818         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
20819         <sys/mount.h>.
20820         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
20821         version only if __USE_EXTERN_INLINES is defined.
20822         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
20823         __hurd_sockfail): Likewise.
20824         (_hurd_fd_get): Always declare functions, and provide inline versions
20825         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
20826         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
20827         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
20828         _hurd_port_set): Always declare functions, and provide inline versions
20829         only if __USE_EXTERN_INLINES and _LIBC are defined and
20830         IS_IN(libc).
20831         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
20832         _hurd_critical_section_unlock): Likewise.
20833         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
20834         * __hurd_threadvar_location): Likewise.
20835         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
20836         _hurd_userlink_clear): Likewise.
20837         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
20838         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
20839         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
20840         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
20841         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
20842         __spin_lock_locked): Likewise.
20843         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
20844         __spin_lock_locked): Likewise.
20845         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
20846         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
20847         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
20848         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
20849         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
20850         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
20851         _POSIX_NO_TRUNC): Define to 0.
20852         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
20853         check size against PTHREAD_STACK_MIN.
20854         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
20855         IS_IN(libpthread)]: Include <sigsetops.h>.
20856         * mach/Makefile (user-interfaces): Add mach/gnumach.
20857         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
20858         * sysdeps/mach/configure (mach_interface_list): Regenerate.
20859         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
20860         instead of invalid -1.
20861         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
20862         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
20863         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
20864         <net/ppp_defs.h>.
20866 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
20868         * hurd/fcntl-internal.h: New file.
20870 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
20872         * sysdeps/hppa/fpu/libm-test-ulps: Update.
20874         * sysdeps/alpha/fpu/libm-test-ulps: Update.
20876 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
20878         [BZ #22701]
20879         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
20880         Build only shared objects.
20882 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
20884         * README: Update for hppa.
20886 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
20888         * sysdeps/sparc/fpu/libm-test-ulps: Update
20889         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
20891 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
20893         Revert:
20895         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20897         [BZ #22563]
20898         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20899         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20900         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20901         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20902         to feature_1.
20904         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20906         [BZ #22563]
20907         * bits/types/__cancel_jmp_buf_tag.h: New file.
20908         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20909         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20910         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20911         * nptl/Makefile (headers): Add
20912         bits/types/__cancel_jmp_buf_tag.h.
20913         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20914         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20915         * sysdeps/nptl/pthread.h: Include
20916         <bits/types/__cancel_jmp_buf_tag.h>.
20917         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20918         __cancel_jmp_buf.
20919         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20921 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
20923         [BZ #10871]
20924         * localedata/locales/uk_UA (mon): Renamed to...
20925         (alt_mon): This.
20926         (alt_digits): "0" removed and then renamed to...
20927         (mon): This.
20928         (date_fmt): Definition changed not to use the alternative
20929         digits hack.
20931 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
20933         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
20934         FLAG_RISCV_FLOAT_ABI_DOUBLE.
20935         * elf/elf.h (EF_RISCV_RVC): New define.
20936         (EF_RISCV_FLOAT_ABI): Likewise.
20937         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
20938         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
20939         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
20940         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
20941         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
20942         define.
20943         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
20945 2018-01-25  Andreas Schwab  <schwab@suse.de>
20947         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
20948         single quotes.
20949         * sysdeps/gnu/configure: Regenerate.
20950         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
20951         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
20953         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
20954         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
20955         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
20956         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
20957         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
20959 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20961         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
20962         URL, and run autoconf, make it the default for now.
20964 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
20966         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20967         soft-float ColdFire configuration.
20969         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
20970         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
20971         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
20973         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
20974         MicroBlaze file.
20976         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
20977         ....
20978         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
20979         ... here.
20980         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
20981         New file.
20983         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
20984         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
20985         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
20986         file.
20988 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20990         [BZ #22742]
20991         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
20992         Rename to __reserved and add comment.
20993         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
20994         Rename to __reserved.
20996 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
20998         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20999         i686-gnu configurations.
21000         (Context.run_builds): Include mig, gnumach and hurd in components
21001         considered.
21002         (Context.checkout): Add mig, gnumach and hurd to components.
21003         (Context.checkout_tar): Add URL mappings for mig, gnumach and
21004         hurd.
21005         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
21006         (Config.build): Install gnumach headers, build mig and install
21007         hurd headers for 'gnu' OS.
21008         (Config.install_gnumach_headers): New function.
21009         (Config.install_hurd_headers): Likewise.
21010         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
21011         when building for 'gnu' OS.
21013 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
21015         * manual/tunables.texi (Hardware Capability Tunables): Fix
21016         spelling.
21018 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
21020         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
21021         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
21022         (ALTMON_11, ALTMON_12): Improve documentation.
21023         * manual/time.texi (strftime): Likewise.
21025 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
21027         [BZ #10871]
21028         * localedata/locales/pl_PL: Alternative month names added,
21029         primary month names are genitive now.
21030         * time/tst-strptime.c (day_tests): Actually use a genitive case
21031         of a month name in Polish language.
21033 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
21035         [BZ #10871]
21036         * manual/locale.texi: Document ALTMON_1..12 constants for
21037         nl_langinfo.  Specify when to use ALTMON instead of MON.
21038         * manual/time.texi (strftime, strptime): Document GNU extension
21039         permitting O modifier with %B and %b.  Specify when to use
21040         %OB instead of %B.
21042 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
21044         [BZ #10871]
21045         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
21046         names, define them as the same as abbreviated month names explicitly.
21047         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
21048         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
21049         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
21050         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
21051         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
21052         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
21053         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
21054         _NL_WABALTMON_12): New enum constants.
21055         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
21056         wab_alt_mon, and ab_alt_mon_defined members.
21057         (time_output): Output ab_alt_mon and wab_alt_mon members.
21058         (time_read): Read them, initialize them as copies of abmon and wabmon
21059         respectively if they are missing, initialize ab_alt_mon_defined.
21060         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
21061         * locale/programs/locfile-kw.h: Regenerate.
21062         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
21063         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
21064         and ru_RU.UTF-8.
21065         * time/strftime_l.c (a_altmonth, aam_len): New macros.
21066         [!COMPILE_WIDE] (ABALTMON_1): New macro.
21067         (__strftime_internal): Handle %Ob and %Oh formats.
21068         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
21069         (__strptime_internal): Handle %Ob and %Oh formats.
21070         * time/tst-strptime.c (day_tests): Add more tests to parse different
21071         forms of month names including the new %Ob format specifier.
21073 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
21075         [BZ #10871]
21076         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
21077         define them as the same as primary full month names explicitly.
21078         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
21079         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
21080         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
21081         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
21082         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
21083         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
21084         _NL_WALTMON_12): New enum constants.
21085         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
21086         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
21087         macros.
21088         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
21089         walt_mon, and alt_mon_defined members.
21090         (time_output): Output alt_mon and walt_mon members.
21091         (time_read): Read them, initialize them as copies of mon and wmon
21092         respectively if they are missing, initialize alt_mon_defined.
21093         * locale/programs/locfile-kw.gperf (alt_mon): Define.
21094         * locale/programs/locfile-kw.h: Regenerate.
21095         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
21096         * localedata/tst-langinfo.c (map): Add tests for the new constants
21097         ALTMON_1 .. ALTMON_12.
21098         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
21099         and pl_PL.UTF-8.
21100         * time/strftime_l.c (f_altmonth): New macro.
21101         (__strftime_internal): Handle %OB format.
21102         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
21103         (__strptime_internal): Handle %OB format.
21104         * time/tst-strptime.c (day_tests): Add tests to parse different forms
21105         of month names including the new %OB format specifier.
21107 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21109         [BZ #22685]
21110         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
21111         from ABORT_TRANSACTION.
21112         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
21113         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
21114         ABORT_TRANSACTION_IMPL): Likewise.
21115         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
21116         Linux code, but remove the code that aborts transactions.
21118 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21120         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
21122 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
21124         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
21125         in date: "2004-14-09" should be "2004-09-14".
21126         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
21127         "2003-15-09" should be "2003-09-15".
21129 2018-01-18  Arjun Shankar  <arjun@redhat.com>
21131         [BZ #22343]
21132         [BZ #22774]
21133         CVE-2018-6485
21134         CVE-2018-6551
21135         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
21136         after padding.
21137         (_int_memalign): check for integer overflow before calling
21138         _int_malloc.
21139         * malloc/tst-malloc-too-large.c: New test.
21140         * malloc/Makefile: Add tst-malloc-too-large.
21142 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
21144         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
21145         in date: "2017-24-07" should be "2017-07-24".
21146         * localedata/locales/mai_IN: Likewise.
21147         * localedata/locales/mai_NP: Likewise.
21149 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
21151         * po/ru.po: Update translations.
21153 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
21155         [BZ #22719]
21156         * sysdeps/hppa/backtrace.c: New file.
21158 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
21160         [BZ #22715]
21161         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
21162         align La_x86_64_retval to VEC_SIZE.
21164 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
21166         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
21167         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
21169 2018-01-16  Florian Weimer  <fweimer@redhat.com>
21171         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
21172         Move tst-thread-exit-clobber ...
21173         [$(CXX)] (tests-unsupported): ... to here.
21175 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21177         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
21178         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
21179         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
21180         (_dl_aarch64_cap_flags): Update.
21181         (_DL_HWCAP_COUNT): Update.
21183 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21185         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
21186         (_DL_HWCAP_LAST): Remove.
21187         (_DL_HWCAP_COUNT): Move to ...
21188         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
21189         (_DL_HWCAP_COUNT): ... here.
21191 2018-01-16  Florian Weimer  <fweimer@redhat.com>
21193         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
21194         mode with GNU extensions.
21196 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
21198         * elf/elf.h (NT_ARM_SVE): Define.
21200 2018-01-15  Florian Weimer  <fweimer@redhat.com>
21202         [BZ #22636]
21203         * nptl/tst-minstack-throw.cc: New file.
21204         * nptl/Makefile (tests): Add tst-minstack-throw.
21205         (LDLIBS-tst-minstack-throw): Link with libstdc++.
21206         [!CXX] (tests-unsupported): Add tst-minstack-throw.
21208 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
21210         * scripts/build-many-glibcs.py (Context.checkout): Default
21211         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
21212         version to 1.1.0.
21214 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
21216         [BZ #22707]
21217         * elf/elf.h (DF_1_STUB): Define.
21218         (DF_1_PIE): Define.
21220 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21222         [BZ #22697]
21223         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
21224         Do not add 0.5 to integer or out-of-range arguments.
21226 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
21228         * po/bg.po: Update translations.
21229         * po/cs.po: Likewise.
21230         * po/de.po: Likewise.
21231         * po/ko.po: Likewise.
21232         * po/pl.po: Likewise.
21233         * po/sv.po: Likewise.
21234         * po/uk.po: Likewise.
21235         * po/vi.po: Likewise.
21237 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21239         * aarch64/start.S (_start): Use __wrap_main.
21240         (__wrap_main): New local symbol.
21242 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
21244         [BZ #22679]
21245         CVE-2018-1000001
21246         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
21247         generic_getcwd if the path returned by getcwd syscall is not absolute.
21248         * io/tst-getcwd-abspath.c: New test.
21249         * io/Makefile (tests): Add tst-getcwd-abspath.
21251 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
21253         * malloc/malloc.c (malloc_consolidate): Add size check.
21255 2018-01-12  Florian Weimer  <fweimer@redhat.com>
21257         * support/write_message.c (write_message): Preserve errno.
21258         * support/check.c (print_failure): Likewise.
21259         * support/support_test_verify_impl.c (support_test_verify_impl):
21260         Likewise.
21261         * support/support_test_compare_failure.c
21262         (support_test_compare_failure): Likewise.
21264 2018-01-12  Florian Weimer  <fweimer@redhat.com>
21266         [BZ #22701]
21267         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
21268         Prevent installation of libnsl.so.
21269         (libnsl-inhibit-o): Do not build (or install) static libraries.
21271 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
21273         [BZ #22657]
21274         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
21275         before the day number which may produce a double space.
21276         (date_fmt): Likewise.
21278 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
21280         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
21281         instead of fegetenv.
21283 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
21285         [BZ #22702]
21286         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
21287         comment to say exceptions are discarded.
21288         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
21289         __fegetenv.
21290         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
21291         be enabled.
21293 2018-01-11  Florian Weimer  <fweimer@redhat.com>
21295         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
21296         and error message.
21298 2018-01-11  Florian Weimer  <fweimer@redhat.com>
21300         [BZ #22636]
21301         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
21302         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
21304 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
21306         [BZ #22693]
21307         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
21308         negative arguments in test for NaN or infinity argument.
21310 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
21312         * po/libc.pot: Regenerate.
21314 2018-01-10  Florian Weimer  <fweimer@redhat.com>
21316         [BZ #22636]
21317         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
21318         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
21320 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21322         * hurd/hurd/fd.h: Include <fcntl.h>
21323         (__hurd_at_flags): New function.
21324         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
21325         with call to __hurd_at_flags.
21326         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
21327         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
21328         __faccessat
21329         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
21330         (__access_noerrno): Use __faccessat_common instead of access_common.
21331         (__access): Likewise.
21332         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
21333         with a call to __faccessat.
21334         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
21335         (__faccessat_common): ... this. Move implementation of __access into it when
21336         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
21337         reauthenticate_cwdir_at helper to implement AT mechanism.
21338         (__faccessat_noerrno): New function, just calls __faccessat_common.
21339         (__faccessat): New function, just calls __faccessat_common.
21340         (faccessat): Define weak alias.
21342 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
21344         [BZ #22691]
21345         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
21346         (CFLAGS-s_fmaxmagl.c): New variable.
21347         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
21349         [BZ #22690]
21350         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
21351         long int for arguments of possibly overflowing addition or
21352         subtraction.
21353         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
21355 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
21357         [BZ #22688]
21358         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
21359         (CFLAGS-e_remainderl.c): New variable.
21361         [BZ #22687]
21362         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
21363         variable.
21364         (CFLAGS-s_cacoshl.c): Likewise.
21365         (CFLAGS-s_casinhl.c): Likewise.
21366         (CFLAGS-s_catanl.c): Likewise.
21367         (CFLAGS-s_catanhl.c): Likewise.
21368         (CFLAGS-s_cexpl.c): Likewise.
21369         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
21370         (CFLAGS-s_csinhl.c): Likewise.
21371         (CFLAGS-s_clogl.c): Likewise.
21372         (CFLAGS-s_clog10l.c): Likewise.
21373         (CFLAGS-s_csinl.c): Likewise.
21374         (CFLAGS-s_csqrtl.c): Likewise.
21376 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21377 2017-01-09  Svante Signell  <svante.signell@gmail.com>
21379         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
21380         (_hurd_exec_paths): New function.
21381         * hurd/hurd.h (_hurd_exec): Deprecate function.
21382         (_hurd_exec_paths): Declare function.
21383         * hurd/Versions: Export _hurd_exec_paths.
21384         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
21385         (__execve): Use __getcwd to build absolute path, and use
21386         _hurd_exec_paths instead of _hurd_exec.
21387         * sysdeps/mach/hurd/spawni.c: Likewise.
21388         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
21389         _hurd_exec.
21391 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
21393         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
21394         test instead of failing in case of ENOENT returned by posix_openpt.
21396 2018-01-08  Florian Weimer  <fweimer@redhat.com>
21398         resolv: Support binary labels in test framework.
21399         * support/resolv_test.c (struct to_be_freed): Remove.
21400         (struct compressed_name): New.
21401         (allocate_compressed_name, ascii_tolower)
21402         (compare_compressed_name): New functions.
21403         (struct resolv_response_builder): Update type of
21404         compression_offsets for use with tsearch.  Rempve to_be_freed.
21405         (response_push_pointer_to_free): Remove function.
21406         (resolv_response_add_name): Rewrite using struct compressed_name
21407         and tsearch instead of hsearch_r.
21408         (response_builder_allocate): Remove initialization of
21409         compression_offsets.
21410         (response_builder_free): Update for removal of to_be_freed.  Use
21411         tdestroy instead of hdestroy_r.
21412         * resolv/Makefile (tests): Add tst-resolv-binary.
21413         (tst-resolv-binary): Link with -lresolv -lpthread.
21415 2018-01-08  Florian Weimer  <fweimer@redhat.com>
21417         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
21418         time.  Pass positive flag instead of negative flag to
21419         support_test_compare_failure.
21420         (support_test_compare_failure): Change negative parameter to
21421         positive.
21422         * support/support_test_compare_failure.c (report)
21423         (support_test_compare_failure): Likewise.
21424         * support/tst-test_compare.c (return_ssize_t, return_int): New.
21425         (do_test): Check int/size_t, ssize_t/size_t comparisons.
21427 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21429         [BZ #22637]
21430         * nptl/descr.h (stackblock, stackblock_size): Update comments.
21431         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
21432         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
21433         stacksize.
21434         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
21436 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
21438         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21439         Add s_sincosf-sse2 and s_sincosf-fma.
21440         (CFLAGS-s_sincosf-fma.c): New.
21441         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
21442         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
21443         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
21444         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
21445         __sincosf is defined.
21447 2018-01-08  Florian Weimer  <fweimer@redhat.com>
21449         * nptl/tst-thread-exit-clobber.cc: New file.
21450         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
21451         C++11 mode.
21452         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
21453         (tests): Add tst-thread-exit-clobber.
21454         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
21456 2018-01-08  Florian Weimer  <fweimer@redhat.com>
21458         * support/check.h (support_static_assert): Define.
21459         (TEST_COMPARE): Use it.
21461 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
21463         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
21464         [!__RLIM_T_MATCHES_RLIM64_T]
21465         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
21466         __getrlimit64. Add libc_hidden_weak.
21468 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
21470         * elf/elf.h (R_RISCV_NONE): New define.
21471         (R_RISCV_32): Likewise.
21472         (R_RISCV_64): Likewise.
21473         (R_RISCV_RELATIVE): Likewise.
21474         (R_RISCV_COPY): Likewise.
21475         (R_RISCV_JUMP_SLOT): Likewise.
21476         (R_RISCV_TLS_DTPMOD32): Likewise.
21477         (R_RISCV_TLS_DTPMOD64): Likewise.
21478         (R_RISCV_TLS_DTPREL32): Likewise.
21479         (R_RISCV_TLS_DTPREL64): Likewise.
21480         (R_RISCV_TLS_TPREL32): Likewise.
21481         (R_RISCV_TLS_TPREL64): Likewise.
21482         * Makerules (make-link-multidir): Make directories before linking into
21483         them.
21484         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
21485         define.
21486         (VDSO_HASH_LINUX_4_15): Likewise.
21487         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
21488         in subdirectories of lib.
21489         * nptl/Makefile (/librt.so): Always depend on
21490         "$(shared-thread-library)".
21492 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21494         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
21495         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
21496         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
21497         (___tls_get_addr).
21498         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
21499         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
21500         "-O2 -march=i686".
21501         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
21502         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
21503         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
21504         * sysdeps/gnu/glob-lstat-compat.c: New file.
21505         * sysdeps/gnu/glob64-lstat-compat.c: New file.
21506         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
21508 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21510         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
21511         Reserve 16 chars to reloc_addr before calling _itoa_word.
21513 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
21515         [BZ #22678]
21516         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
21517         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
21519         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
21520         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
21522         * resource/tst-getrlimit.c: Add copyright header.
21524 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
21525             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21527         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
21528         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
21529         Define __GI_getrlimit64 as weak alias of __getrlimit64.
21530         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
21531         instead.
21532         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
21533         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
21534         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
21535         RLIM64_INFINITY): Fix values to match the kernel ones.
21536         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
21537         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
21538         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
21539         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
21540         getrlimit64@@GLIBC_2_27.
21541         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
21542         and setrlimit64.
21543         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
21544         getrlimit, setrlimit, getrlimit64 and setrlimit64.
21545         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
21546         setrlimit, getrlimit64 and setrlimit64.
21548 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
21550         [BZ #22648]
21551         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
21552         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
21554 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
21556         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
21557         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
21558         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
21560 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21562         [BZ #15479]
21563         [BZ #22666]
21564         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
21565         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
21567         [BZ #15479]
21568         [BZ #22665]
21569         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
21570         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
21571         * sysdeps/alpha/fpu/s_floor.c: Likewise.
21572         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
21574 2018-01-04  Florian Weimer  <fweimer@redhat.com>
21576         [BZ #22667]
21577         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
21578         Align the stack before calling exit.
21579         * stdlib/tst-makecontext-align.c: New file.
21580         * stdlib/Makefile (tests): Add tst-makecontext-align.
21582 2018-01-04  Florian Weimer  <fweimer@redhat.com>
21584         Add support for calling dlvsym from libc.so.
21585         * include/dlfcn.h (__libc_dlvsym): Declare.
21586         * elf/Makefile (tests-static-internal): Add
21587         tst-libc_dlvsym-static.
21588         (tests-internal): Add tst-libc_dlvsym.
21589         (modules-names): Add tst-libc_dlvsym-dso.
21590         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
21591         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
21592         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
21593         object tst-libc_dlvsym-dso.so needs to be built before running
21594         these tests.
21595         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
21596         * elf/Versions: Export __libc_dlvsym.
21597         * elf/dl-libc.c (struct do_dlvsym_args): New.
21598         (do_dlvsym, __libc_dlvsym): New functions.
21599         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
21600         (_dl_open_hook2): New variable.
21601         (__libc_register_dl_open_hook): Set it.
21602         * elf/tst-libc_dlvsym-dso.c: New file.
21603         * elf/tst-libc_dlvsym-static.c: Likewise.
21604         * elf/tst-libc_dlvsym.c: Likewise.
21605         * elf/tst-libc_dlvsym.h: Likewise.
21607 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21609         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
21610         include <sys/mount.h>.
21612 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
21614         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
21615         Add __NO_MATH_ERRNO__ check.
21617 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
21619         * sysdeps/mips/mips32/libm-test-ulps: Update.
21620         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
21622 2018-01-02  Florian Weimer  <fweimer@redhat.com>
21624         * misc/tst-pselect.c: Add copyright header.
21626 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
21628         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
21629         comment.
21630         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
21631         comment.
21632         (settrlimit): Rename into setrlimit.
21633         (__sttrlimit): Rename into __setrlimit.
21635         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
21636         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
21637         never defined in that case.
21639 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
21641         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
21643         * sysdeps/arm/libm-test-ulps: Update.
21645         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
21646         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
21648 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21650         * NEWS: Add cosf and sincosf to list of optimized functions.
21652 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
21654         [BZ #22660]
21655         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
21656         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
21657         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
21658         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
21660 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
21662         [BZ #22433]
21663         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
21665         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
21666         making a copy of it.
21668 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
21670         * manual/texinfo.tex: Update to version 2017-12-26.21 with
21671         trailing whitespace removed.
21672         * scripts/config.guess: Update to version 2018-01-01.
21673         * scripts/config.sub: Update to version 2018-01-01.
21674         * scripts/move-if-change: Update from gnulib.
21676         * NEWS: Update copyright dates.
21677         * catgets/gencat.c (print_version): Likewise.
21678         * csu/version.c (banner): Likewise.
21679         * debug/catchsegv.sh: Likewise.
21680         * debug/pcprofiledump.c (print_version): Likewise.
21681         * debug/xtrace.sh (do_version): Likewise.
21682         * elf/ldconfig.c (print_version): Likewise.
21683         * elf/ldd.bash.in: Likewise.
21684         * elf/pldd.c (print_version): Likewise.
21685         * elf/sotruss.sh: Likewise.
21686         * elf/sprof.c (print_version): Likewise.
21687         * iconv/iconv_prog.c (print_version): Likewise.
21688         * iconv/iconvconfig.c (print_version): Likewise.
21689         * locale/programs/locale.c (print_version): Likewise.
21690         * locale/programs/localedef.c (print_version): Likewise.
21691         * login/programs/pt_chown.c (print_version): Likewise.
21692         * malloc/memusage.sh (do_version): Likewise.
21693         * malloc/memusagestat.c (print_version): Likewise.
21694         * malloc/mtrace.pl: Likewise.
21695         * manual/libc.texinfo: Likewise.
21696         * nptl/version.c (banner): Likewise.
21697         * nscd/nscd.c (print_version): Likewise.
21698         * nss/getent.c (print_version): Likewise.
21699         * nss/makedb.c (print_version): Likewise.
21700         * posix/getconf.c (main): Likewise.
21701         * scripts/test-installation.pl: Likewise.
21702         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
21704         * All files with FSF copyright notices: Update copyright dates
21705         using scripts/update-copyrights.
21706         * locale/programs/charmap-kw.h: Regenerated.
21707         * locale/programs/locfile-kw.h: Likewise.
21709 2017-12-31  Zack Weinberg  <zackw@panix.com>
21711         * libio/bits/libio-ldbl.h: Correct check for improper
21712         inclusion.  Add own multiple include guard.
21714 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
21715             Dmitry V. Levin  <ldv@altlinux.org>
21717         [BZ #22625]
21718         CVE-2017-16997
21719         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
21720         string token expansion. Check for NULL pointer or empty string possibly
21721         returned by expand_dynamic_string_token.
21722         (decompose_rpath): Check for empty path after dynamic string
21723         token expansion.
21725 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
21727         [BZ #22433]
21728         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
21730         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
21731         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
21732         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
21733         and PTRACE_SYSCALL.
21734         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
21735         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
21736         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
21737         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
21738         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
21739         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
21741         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
21742         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
21743         __ptrace_peeksiginfo_flags, ptrace): Move to ...
21744         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
21745         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21746         bits/ptrace-shared.h.
21747         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
21748         <bits/ptrace-shared.h>.
21749         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
21750         __ptrace_peeksiginfo_flags, ptrace): Remove.
21751         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
21752         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
21753         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
21754         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
21755         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
21757 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
21759         [BZ #17804]
21760         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
21761         end of the loop. Improve comments.
21763 2017-12-29  Zack Weinberg  <zackw@panix.com>
21765         [BZ #22615]
21766         * manual/errno.texi (Checking for Errors): Explicitly say that errno
21767         might be set on success.
21769 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
21771         [BZ #22611]
21772         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
21773         is unchanged on success.
21775 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
21777         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
21778         updated.
21779         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
21780         expand_dynamic_string_token): Likewise.
21781         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
21782         is_path argument.
21784         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
21785         contains ':'.
21787         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
21788         is set and name contains ':', and all code depending on these checks.
21790 2017-12-24  Zack Weinberg  <zackw@panix.com>
21792         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
21793         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
21794         respectively.
21795         * libio/libio.h: Rename the original version of this file to
21796         libio/bits/libio.h.  Error out if not included by stdio.h or the
21797         stub libio.h.
21798         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
21799         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
21800         if not included by bits/libio.h or the stub _G_config.h.
21801         * sysdeps/unix/sysv/linux/_G_config.h: Move to
21802         sysdeps/unix/sysv/linux/bits.  Error out if not included by
21803         bits/libio.h or the stub _G_config.h.
21804         * libio/stdio.h: Include bits/libio.h, not libio.h.
21805         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
21806         well as libio.h and _G_config.h.
21808         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
21809         * libio/strfile.h, stdio-common/vfscanf.c
21810         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
21811         Include stdio.h, not _G_config.h nor libio.h.
21812         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
21813         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
21815         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
21817 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
21819         [BZ #22347]
21820         * stdlib/getrandom.c (getrandom): Fix comment.
21821         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
21823 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
21825         [BZ #21161]
21826         * manual/arith.texi (strtoul): Fix a typo.
21828         [BZ #22596]
21829         * manual/arith.texi (finite): Fix the description of the return
21830         value.
21832 2017-12-22  Eric Blake  <ebb9@byu.net>
21834         Avoid gcc warnings on cygwin
21835         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21836         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21837         Avoid unused variable.
21839 2017-12-22  Florian Weimer  <fweimer@redhat.com>
21841         * io/Makefile (routines): Add copy_file_range.
21842         (tests): Add tst-copy_file_range.
21843         (tests-static, tests-internal): Add tst-copy_file_range-compat.
21844         * io/Versions (GLIBC_2.27): Export copy_file_range.
21845         * io/copy_file_range-compat.c: New file.
21846         * io/copy_file_range.c: Likewise.
21847         * io/tst-copy_file_range-compat.c: Likewise.
21848         * io/tst-copy_file_range.c: Likewise.
21849         * manual/llio.texi (Copying File Data): New section.
21850         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
21851         * support/Makefile (libsupport-routines): Add support-xfstat,
21852         xftruncate, xlseek.
21853         * support/support-xfstat.c: New file.
21854         * support/xftruncate.c: Likewise.
21855         * support/xlseek.c: Likewise.
21856         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
21857         * sysdeps/unix/sysv/linux/**.abilist: Update.
21858         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
21860 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21862         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21863         disable-multi-arch variant to aarch64-linux-gnu.
21865 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
21867         * manual/texinfo.tex: Update to version 2017-12-18.20 with
21868         trailing whitespace removed.
21869         * scripts/config.guess: Update to version 2017-12-17.
21870         * scripts/config.sub: Update to version 2017-11-23.
21871         * scripts/install-sh: Update to version 2017-09-23.17.
21872         * scripts/move-if-change: Update to version 2017-09-13 06:45.
21874 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21876         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
21877         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
21878         * sysdeps/tile/_mcount.S (__mcount): Likewise.
21879         * sysdeps/tile/crti.S (_init, _fini): Likewise.
21880         * sysdeps/tile/crtn.S: Likewise.
21881         * sysdeps/tile/dl-start.S (_start): Likewise.
21882         * sysdeps/tile/dl-trampoline.S: Likewise.
21883         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
21884         * sysdeps/tile/start.S (_start): Likewise.
21885         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
21886         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
21887         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
21888         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
21889         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
21890         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
21891         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
21893         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
21894         comment.
21895         * sysdeps/tile/preconfigure: Remove tilegx folder.
21896         * sysdeps/tile/tilegx/Implies: Move definitions to ...
21897         * sysdeps/tile/Implies: ... here.
21898         * sysdeps/tile/tilegx/Makefile: Move rules to ...
21899         * sysdeps/tile/Makefile: ... here.
21900         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
21901         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
21902         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
21903         * sysdeps/tile/bits/wordsize.h: ... here.
21904         * sysdeps/tile/tilegx/*: Move to ...
21905         * sysdeps/tile/*: ... here.
21906         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
21907         * sysdeps/tile/tilegx32/Implies: ... here.
21908         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
21909         * sysdeps/tile/tilegx64/Implies: ... here.
21910         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
21911         to ...
21912         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
21913         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
21914         * sysdeps/unix/sysv/linux/tile/*: ... here.
21915         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
21916         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
21917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
21918         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
21920         * README: Remove tilepro-*-linux-gnu from supported architecture.
21921         * scripts/build-many-glibcs.py: Likewise.
21922         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
21923         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
21924         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
21925         elf_machine_matches_host, elf_machine_dynamic,
21926         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
21927         howto, elf_machine_rela): Likewise.
21928         * sysdeps/tile/dl-start.S (_start): Likewise.
21929         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
21930         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
21931         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
21932         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
21933         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
21934         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
21935         Likewise.
21936         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
21937         * sysdeps/tile/preconfigure: Likewise.
21938         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
21939         POINTER_CHK_GUARD): Likewise.
21940         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
21941         * sysdeps/tile/start.S (_start): Likewise.
21942         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
21943         Likewise.
21944         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
21945         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
21946         CMOVNEZ): Remove.
21947         * sysdeps/unix/sysv/linux/tile/bits/environments.h
21948         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
21949         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
21950         Likewise.
21951         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
21952         * sysdeps/tile/tilepro/Implies: Remove file.
21953         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
21954         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
21955         * sysdeps/tile/tilepro/memchr.c: Likewise.
21956         * sysdeps/tile/tilepro/memcpy.S: Likewise.
21957         * sysdeps/tile/tilepro/memset.c: Likewise.
21958         * sysdeps/tile/tilepro/memusage.h: Likewise.
21959         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
21960         * sysdeps/tile/tilepro/strchr.c: Likewise.
21961         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
21962         * sysdeps/tile/tilepro/strlen.c: Likewise.
21963         * sysdeps/tile/tilepro/strrchr.c: Likewise.
21964         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
21965         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
21966         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
21967         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
21968         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
21969         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
21970         Likewise.
21971         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
21972         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21973         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
21974         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
21975         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21976         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
21977         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
21978         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
21979         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
21980         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
21981         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
21982         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
21983         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
21984         tilepro mention in comment.
21986         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
21987         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
21988         * nptl/pthread_join_common.c: New file: common function used on
21989         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
21990         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
21991         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
21992         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21993         (cleanup): Move definition to pthread_join_common.c.
21994         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
21995         Remove superflous checks.
21996         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
21997         Likewise.
21999 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22001         * sysdeps/aarch64/libm-test-ulps: Update.
22003 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22005         * sysdeps/aarch64/memset.S (MEMSET): Define.
22007 2017-12-20  Florian Weimer  <fweimer@redhat.com>
22009         [BZ #22635]
22010         nptl: Provide full implementation of pthread_self in libc.so.
22011         * nptl/Makefile (routines): Add pthread_self.
22012         (libpthread-routines): Replace pthread_self with
22013         compat-pthread_self.
22014         * nptl/forward.c (pthread_self): Remove.
22015         * nptl/nptl-init.c (pthread_functions): Do not initialize
22016         ptr_pthread_self.
22017         * nptl/pthread_self.c (pthread_self): Remove weak alias.
22018         * nptl/compat-pthread_self.c: New file.
22019         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
22020         Remove ptr_pthread_self.
22022 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
22024         * posix/regcomp.c: Fix spelling in comments.
22025         * posix/regex.h: Likewise.
22026         * posix/regex_internal.c: Likewise.
22027         * posix/regexec.c: Likewise.
22029 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
22031         [BZ #22377]
22032         * math/Makefile [C++] (tests): Add test for iseqsig.
22033         * math/math.h [C++] (iseqsig): New implementation, which does
22034         not rely on __MATH_TG/__builtin_types_compatible_p.
22035         * math/test-math-iseqsig.cc: New file.
22036         * sysdeps/powerpc/powerpc64le/Makefile
22037         (CFLAGS-test-math-iseqsig.cc): New variable.
22039 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
22041         * elf/dl-load.c (is_trusted_path): Remove.
22042         (fillin_rpath): Remove check_trusted argument and its use,
22043         all callers changed.
22045 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22047         [BZ #22630]
22048         * Makeconfig (link-pie-before-libc): Replace -pie with
22049         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
22050         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
22051         (tst-dlopen-aout-no-pie): New.
22052         (LDFLAGS-tst-prelink): Removed.
22053         (tst-prelink-no-pie): New.
22054         (LDFLAGS-tst-main1): Removed.
22055         (tst-main1-no-pie): New.
22056         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
22057         (tst-gmon-no-pie): New.
22059 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22061         * manual/install.texi: Document that --enable-static-pie
22062         implies PIE.
22063         * INSTALL: Regenerated.
22065 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22067         [BZ #21309]
22068         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
22069         unsigned.
22071 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
22073         Revert:
22075         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
22077         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22079         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
22081         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
22082         <errno.h>.  Include "eexp.tbl".
22083         (half): New constant.
22084         (one): Likewise.
22085         (__ieee754_exp): Rewrite.
22086         (__slowexp): Remove prototype.
22087         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
22088         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
22089         * sysdeps/i386/fpu/slowexp.c: Likewise.
22090         * sysdeps/ia64/fpu/slowexp.c: Likewise.
22091         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
22092         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
22093         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
22094         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
22095         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
22096         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
22097         comment.
22098         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
22099         (CPPFLAGS-slowexp.c): Remove variable.
22100         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22101         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
22102         (CFLAGS-slowexp-fma.c): Remove variable.
22103         (CFLAGS-slowexp-fma4.c): Likewise.
22104         (CFLAGS-slowexp-avx.c): Likewise.
22105         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
22106         define as macro.
22107         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
22108         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
22109         * math/Makefile (type-double-routines): Remove slowexp.
22110         * manual/probes.texi (slowexp_p6): Remove.
22111         (slowexp_p32): Likewise.
22113 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22115         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
22116         arithmetic.
22118         * lib/glob.c (glob): Do not pass NULL to mempcpy.
22120 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
22122         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22124 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
22126         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
22127         <errno.h>.  Include "eexp.tbl".
22128         (half): New constant.
22129         (one): Likewise.
22130         (__ieee754_exp): Rewrite.
22131         (__slowexp): Remove prototype.
22132         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
22133         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
22134         * sysdeps/i386/fpu/slowexp.c: Likewise.
22135         * sysdeps/ia64/fpu/slowexp.c: Likewise.
22136         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
22137         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
22138         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
22139         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
22140         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
22141         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
22142         comment.
22143         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
22144         (CPPFLAGS-slowexp.c): Remove variable.
22145         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22146         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
22147         (CFLAGS-slowexp-fma.c): Remove variable.
22148         (CFLAGS-slowexp-fma4.c): Likewise.
22149         (CFLAGS-slowexp-avx.c): Likewise.
22150         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
22151         define as macro.
22152         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
22153         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
22154         * math/Makefile (type-double-routines): Remove slowexp.
22155         * manual/probes.texi (slowexp_p6): Remove.
22156         (slowexp_p32): Likewise.
22158 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22159             James Clarke  <jrtc27@jrtc27.com>
22161         [BZ #22603]
22162         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
22163         addition.
22165 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22167         [BZ #22605]
22168         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
22169         code.
22171 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22173         [BZ #22563]
22174         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22175         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22176         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22177         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22178         to feature_1.
22180 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22182         [BZ #22563]
22183         * bits/types/__cancel_jmp_buf_tag.h: New file.
22184         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22185         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22186         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22187         * nptl/Makefile (headers): Add
22188         bits/types/__cancel_jmp_buf_tag.h.
22189         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22190         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22191         * sysdeps/nptl/pthread.h: Include
22192         <bits/types/__cancel_jmp_buf_tag.h>.
22193         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22194         __cancel_jmp_buf.
22195         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22197 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
22199         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22200         --enable-static-pie variants to x86_64, x32 and i686.
22202 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
22204         [BZ #22631]
22205         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
22206         argument for attrubutes.  All callers changed.
22207         (__inline_mathop1): Likewise.  All callers changed.
22208         (__inline_mathop): Likewise.  All callers changed.
22209         [__USE_MISC] (scalbn): Use __inline_forward instead of
22210         __inline_forward_c.
22211         [__USE_ISOC99] (scalbln): Likewise.
22212         [__USE_ISOC99] (nearbyint): Likewise.
22213         [__USE_ISOC99] (lrint): Likewise.
22214         [__USE_MISC] (scalbnf): Likewise.
22215         [__USE_ISOC99] (scalblnf): Likewise.
22216         [__USE_ISOC99] (nearbyintf): Likewise.
22217         [__USE_ISOC99] (lrintf): Likewise.
22218         [__USE_MISC] (scalbnl): Likewise.
22219         [__USE_ISOC99] (scalblnl): Likewise.
22220         [__USE_ISOC99] (nearbyintl): Likewise.
22221         [__USE_ISOC99] (lrintl): Likewise.
22222         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
22223         __inline_mathop and __m81_defun changed.
22225         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
22226         CPU or FPU for ARM hard-float configurations.
22228 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
22230         * nptl/tst-attr3.c: Include <libc-diag.h>.
22231         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
22233         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
22235         * string/tester.c (test_strncat): Also disable -Warray-bounds
22236         warnings for two tests.
22238 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
22240         [BZ #22614]
22241         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
22242         $(cc-pie-default) == yes.
22243         * config.make.in (cc-pie-default): New.
22244         * configure.ac (libc_cv_pie_default): Renamed to ...
22245         (libc_cv_cc_pie_default): This.
22246         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
22247         * configure: Regenerated.
22249 2017-12-18  Florian Weimer  <fweimer@redhat.com>
22251         [BZ #20204]
22252         ld.so: Harden dl-libc/libdl hooks.
22253         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
22254         (rtld_active): New function.
22255         * dlfcn/dladdr.c (__dladdr): Call it.
22256         * dlfcn/dladdr1.c (__dladdr1): Likewise.
22257         * dlfcn/dlclose.c (__dlcose): Likewise.
22258         * dlfcn/dlerror.c (__dlerror): Likewise.
22259         * dlfcn/dlinfo.c (__dlinfo): Likewise.
22260         * dlfcn/dlmopen.c (__dlmopen): Likewise.
22261         * dlfcn/dlopen.c (__dlopen): Likewise.
22262         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
22263         * dlfcn/dlsym.c (__dlsym): Likewise.
22264         * dlfcn/dlvsym.c (__dlvsym): Likewise.
22265         * libio/vtables.c (_IO_vtable_check): Likewise.
22266         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
22267         (__libc_dlclose): Likewise.
22268         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
22269         assignment.
22271 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
22273         [BZ #22446]
22274         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
22275         buffers for readlink input and output.
22277 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
22279         [BZ #22624]
22280         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
22281         inhibit_stack_protector.
22283         [BZ #22624]
22284         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
22285         inhibit_stack_protector.
22287 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
22289         [BZ #22627]
22290         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
22291         code and invocation.
22293 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22295         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
22297 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
22299         [BZ #22505]
22300         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
22302 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22304         * sysdeps/s390/fpu/libm-test-ulps: Update.
22306 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22308         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22310 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22312         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
22313         constants to s_sincosf.h file.
22314         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
22315         * sysdeps/ieee754/flt-32/s_sincosf.c: New
22316         implementation.
22317         * sysdeps/ieee754/flt-32/s_sincosf.h:
22318         New file.
22320 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
22322         [BZ #14681]
22323         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
22324         before mtrace.
22326 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
22328         [BZ #19574]
22329         * INSTALL: Regenerated.
22330         * Makeconfig (real-static-start-installed-name): New.
22331         (pic-default): Updated for --enable-static-pie.
22332         (pie-default): New for --enable-static-pie.
22333         (default-pie-ldflag): Likewise.
22334         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
22335         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
22336         Replace $(static-start-installed-name) with
22337         $(real-static-start-installed-name).
22338         (+prectorT): Updated for --enable-static-pie.
22339         (+postctorT): Likewise.
22340         (CFLAGS-.o): Add $(pie-default).
22341         (CFLAGS-.op): Likewise.
22342         * NEWS: Mention --enable-static-pie.
22343         * config.h.in (ENABLE_STATIC_PIE): New.
22344         * configure.ac (--enable-static-pie): New configure option.
22345         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
22346         (have-static-pie): Likewise.
22347         Enable static PIE if linker supports --no-dynamic-linker.
22348         (ENABLE_STATIC_PIE): New AC_DEFINE.
22349         (enable-static-pie): New LIBC_CONFIG_VAR.
22350         * configure: Regenerated.
22351         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
22352         gr$(start-installed-name) for --enable-static-pie.
22353         (extra-objs): Likewise.
22354         (install-lib): Likewise.
22355         (extra-objs): Add static-reloc.o and static-reloc.os
22356         ($(objpfx)$(start-installed-name)): Also depend on
22357         $(objpfx)static-reloc.o.
22358         ($(objpfx)r$(start-installed-name)): New.
22359         ($(objpfx)g$(start-installed-name)): Also depend on
22360         $(objpfx)static-reloc.os.
22361         ($(objpfx)gr$(start-installed-name)): New.
22362         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
22363         in libc.a.
22364         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
22365         initimage.
22366         * csu/static-reloc.c: New file.
22367         * elf/Makefile (routines): Add dl-reloc-static-pie.
22368         (elide-routines.os): Likewise.
22369         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
22370         (tst-tls1-static-non-pie-no-pie): New.
22371         * elf/dl-reloc-static-pie.c: New file.
22372         * elf/dl-support.c (_dl_get_dl_main_map): New function.
22373         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
22374         STATIC_PIE_BOOTSTRAP.
22375         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
22376         * gmon/Makefile (tests): Add tst-gmon-static-pie.
22377         (tests-static): Likewise.
22378         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
22379         (tst-gmon-static-no-pie): New.
22380         (CFLAGS-tst-gmon-static-pie.c): Likewise.
22381         (CRT-tst-gmon-static-pie): Likewise.
22382         (tst-gmon-static-pie-ENV): Likewise.
22383         (tests-special): Likewise.
22384         ($(objpfx)tst-gmon-static-pie.out): Likewise.
22385         (clean-tst-gmon-static-pie-data): Likewise.
22386         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
22387         * gmon/tst-gmon-static-pie.c: New file.
22388         * manual/install.texi: Document --enable-static-pie.
22389         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
22390         (_dl_get_dl_main_map): Likewise.
22391         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
22392         * sysdeps/x86_64/configure.ac: Likewise.
22393         * sysdeps/i386/configure: Regenerated.
22394         * sysdeps/x86_64/configure: Likewise.
22395         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
22396         (ASFLAGS-.op): Likewise.
22398 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
22400         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
22401         * posix/tst-mmap-offset.c (fname): Use /tmp.
22402         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
22404 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
22406         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
22408 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
22410         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
22411         errno.
22413 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
22415         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
22416         --with-float=hard for arm-linux-gnueabihf configurations.
22418         [BZ #14121]
22419         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
22420         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
22421         ($(mo-installed)): Use $(objpfx)%.mo.
22422         (realclean): Remove rule.
22424         * po/Makefile (linguas): Remove rule and dependencies.
22425         (linguas.mo): Likewise.
22426         (.PHONY): Do not depend on linguas and linguas.mo.
22427         (podir): Remove variable.
22428         (pofiles): Likewise.
22429         [$(pofiles)] (%.po): Remove rule.
22431         * sysdeps/sparc/sparc32/Makefile
22432         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
22433         start-of-line whitespace in argument of echo.
22434         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
22435         with whitespace.  Generate __wrap_.udiv alias.
22436         * sysdeps/sparc/sparc32/rem.S: Regenerated.
22437         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
22438         * sysdeps/sparc/sparc32/udiv.S: Likewise.
22439         * sysdeps/sparc/sparc32/urem.S: Likewise.
22441 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22443         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
22444         for aligned inputs.
22446 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22448         * benchtests/bench-strcmp.c: Print output in JSON format.
22450         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
22452 2017-12-14  Florian Weimer  <fweimer@redhat.com>
22454         [BZ #22607]
22455         CVE-2017-1000409
22456         * elf/dl-load.c (_dl_init_paths): Compute number of components in
22457         the expanded path string.
22459 2017-12-14  Florian Weimer  <fweimer@redhat.com>
22461         [BZ #22606]
22462         CVE-2017-1000408
22463         * elf/dl-load.c (system_dirs): Update comment.
22464         (nsystem_dirs_len): Use array_length.
22465         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
22467 2017-12-14  Florian Weimer  <fweimer@redhat.com>
22469         Simplify compiling most of support/ outside of glibc.
22470         * support/check_addrinfo.c: Include <string.h>.
22471         * support/check_dns_packet.c: Likewise.
22472         * support/check_hostent.c: Likewise.
22473         * support/support_can_chroot.c: Include <support/xunistd.h>.
22474         * support/support_format_addrinfo.c: Include <stdlib.h>
22475         * support/support_format_dns_packet.c: Include <stdbool.h>.
22476         * support/support_format_hostent.c: Include <stdlib.h>.
22477         * support/support_format_netent.c: Likewise.
22478         * support/support_write_string.c: Include <support/xunistd.h>.
22479         * support/xdlfcn.c: Include <stddef.h>.
22481 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
22483         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
22485 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
22486             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22488         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
22489         (sysdeps_routines): Add memset-niagara7.
22490         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
22491         Likewise.
22492         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
22493         file.
22494         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
22495         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
22496         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
22497         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
22498         Add niagara7 option.
22499         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
22500         memset.
22502         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
22503         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
22504         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
22505         Likewise.
22506         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
22507         New file.
22508         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
22509         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
22510         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
22511         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
22512         and __memmove_niagara7.
22513         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
22514         Add niagara7 option.
22515         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
22516         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
22517         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
22518         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
22519         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
22521 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
22523         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
22524         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
22525         * sysdeps/sparc/sparc64/memmove.S: Likewise.
22526         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
22528         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
22529         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
22530         _dl_sparc_cap_flags array.
22531         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
22533 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22535         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
22536         time whenever possible.
22538 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
22540         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
22541         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
22543 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
22545         * soft-fp/fmadf4.c: Move to ....
22546         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
22547         * soft-fp/fmasf4.c: Move to ....
22548         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
22549         * soft-fp/fmatf4.c: Move to ....
22550         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
22551         * sysdeps/ieee754/soft-fp/Makefile: New file.
22552         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
22553         * sysdeps/arm/preconfigure: Regenerated.
22554         * sysdeps/arm/nofpu/Implies: New file.
22555         * sysdeps/arm/s_fma.c: Remove file.
22556         * sysdeps/arm/s_fmaf.c: Likewise.
22557         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
22558         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
22559         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
22560         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
22561         * sysdeps/microblaze/s_fma.c: Remove file.
22562         * sysdeps/microblaze/s_fmaf.c: Likewise.
22563         * sysdeps/mips/mips32/nofpu/Implies: New file.
22564         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
22565         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
22566         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
22567         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
22568         * sysdeps/mips/ieee754/s_fma.c: Remove file.
22569         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
22570         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
22571         implementation.
22572         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
22573         * sysdeps/nios2/s_fma.c: Remove file.
22574         * sysdeps/nios2/s_fmaf.c: Likewise.
22575         * sysdeps/sh/nofpu/Implies: New file.
22576         * sysdeps/sh/s_fma.c: Remove file.
22577         * sysdeps/sh/s_fmaf.c: Likewise.
22578         * sysdeps/tile/Implies: Add ieee754/soft-fp.
22579         * sysdeps/tile/s_fma.c: Remove file.
22580         * sysdeps/tile/s_fmaf.c: Likewise.
22582 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
22584         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22585         Add s_cosf-sse2 and s_cosf-fma.
22586         (CFLAGS-s_cosf-fma.c): New.
22587         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
22588         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
22589         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
22591 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
22593         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
22595 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22597         * libio/Makefile (tests): Add tst-bz22415.
22598         (tst-bz22415-ENV): New rule.
22599         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
22600         (tests-special): Add tst-bz22415-mem.out.
22601         ($(objpfx)tst-bz22415-mem.out): New rule.
22602         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
22603         in case of a successful seek operation.
22604         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
22605         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
22606         buffer is required.
22607         * libio/tst-bz22415.c: New test.
22609         * sysdeps/ia64/fpu/libm-test-ulps: Update.
22611 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
22613         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
22614         __IPC_64 to 0 to avoid IPC_64 being set.
22616 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22618         [BZ #22593]
22619         * math/bits/mathcalls.h (nextafter): Remove const.
22620         (nexttoward): Likewise.
22622 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
22624         * configure.ac (--with-fp): Remove configure option.
22625         (with_fp_cond): New variable.
22626         (libc_cv_with_fp): New configure test.  Use this variable instead
22627         of with_fp.
22628         * configure: Regenerated.
22629         * config.make.in (with-fp): Use @libc_cv_with_fp@.
22630         * manual/install.texi (Configuring and compiling): Remove
22631         --without-fp.
22632         * INSTALL: Regenerated.
22633         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
22634         * sysdeps/mips/preconfigure (with_fp_cond): Define.
22635         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
22636         * sysdeps/sh/preconfigure (with_fp_cond): Define.
22637         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
22638         use --without-fp to configure glibc.
22640 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
22642         * manual/locale.texi (nl_langinfo): Fix a typo.
22644 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
22646         [BZ #22588]
22647         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
22649 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
22651         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
22652         (CFLAGS-argp-parse.c): Likewise.
22653         (CFLAGS-argp-fmtstream.c): Likewise.
22654         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
22655         (CPPFLAGS-sha512-crypt.c): Likewise.
22656         (CPPFLAGS-md5-crypt.c): Likewise.
22657         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
22658         (CFLAGS-stack_chk_fail_local.c): Likewise.
22659         (CFLAGS-backtrace.c): Likewise.
22660         (CFLAGS-sprintf_chk.c): Likewise.
22661         (CFLAGS-snprintf_chk.c): Likewise.
22662         (CFLAGS-vsprintf_chk.c): Likewise.
22663         (CFLAGS-vsnprintf_chk.c): Likewise.
22664         (CFLAGS-asprintf_chk.c): Likewise.
22665         (CFLAGS-vasprintf_chk.c): Likewise.
22666         (CFLAGS-obprintf_chk.c): Likewise.
22667         (CFLAGS-dprintf_chk.c): Likewise.
22668         (CFLAGS-vdprintf_chk.c): Likewise.
22669         (CFLAGS-printf_chk.c): Likewise.
22670         (CFLAGS-fprintf_chk.c): Likewise.
22671         (CFLAGS-vprintf_chk.c): Likewise.
22672         (CFLAGS-vfprintf_chk.c): Likewise.
22673         (CFLAGS-gets_chk.c): Likewise.
22674         (CFLAGS-fgets_chk.c): Likewise.
22675         (CFLAGS-fgets_u_chk.c): Likewise.
22676         (CFLAGS-fread_chk.c): Likewise.
22677         (CFLAGS-fread_u_chk.c): Likewise.
22678         (CFLAGS-swprintf_chk.c): Likewise.
22679         (CFLAGS-vswprintf_chk.c): Likewise.
22680         (CFLAGS-wprintf_chk.c): Likewise.
22681         (CFLAGS-fwprintf_chk.c): Likewise.
22682         (CFLAGS-vwprintf_chk.c): Likewise.
22683         (CFLAGS-vfwprintf_chk.c): Likewise.
22684         (CFLAGS-fgetws_chk.c): Likewise.
22685         (CFLAGS-fgetws_u_chk.c): Likewise.
22686         (CFLAGS-read_chk.c): Likewise.
22687         (CFLAGS-pread_chk.c): Likewise.
22688         (CFLAGS-pread64_chk.c): Likewise.
22689         (CFLAGS-recv_chk.c): Likewise.
22690         (CFLAGS-recvfrom_chk.c): Likewise.
22691         (CFLAGS-tst-longjmp_chk.c): Likewise.
22692         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
22693         (CFLAGS-tst-longjmp_chk2.c): Likewise.
22694         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
22695         (CFLAGS-tst-longjmp_chk3.c): Likewise.
22696         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
22697         (CFLAGS-tst-chk1.c): Likewise.
22698         (CFLAGS-tst-chk2.c): Likewise.
22699         (CFLAGS-tst-chk3.c): Likewise.
22700         (CFLAGS-tst-chk4.cc): Likewise.
22701         (CFLAGS-tst-chk5.cc): Likewise.
22702         (CFLAGS-tst-chk6.cc): Likewise.
22703         (CFLAGS-tst-lfschk1.c): Likewise.
22704         (CFLAGS-tst-lfschk2.c): Likewise.
22705         (CFLAGS-tst-lfschk3.c): Likewise.
22706         (CFLAGS-tst-lfschk4.cc): Likewise.
22707         (CFLAGS-tst-lfschk5.cc): Likewise.
22708         (CFLAGS-tst-lfschk6.cc): Likewise.
22709         (CFLAGS-tst-ssp-1.c): Likewise.
22710         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
22711         (CFLAGS-scandir64.c): Likewise.
22712         (CFLAGS-scandir-tail.c): Likewise.
22713         (CFLAGS-scandir64-tail.c): Likewise.
22714         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
22715         (CFLAGS-dl-tunables.c): Likewise.
22716         (CFLAGS-dl-runtime.c): Likewise.
22717         (CFLAGS-dl-lookup.c): Likewise.
22718         (CFLAGS-dl-iterate-phdr.c): Likewise.
22719         (CFLAGS-vismain.c): Likewise.
22720         (CFLAGS-tst-linkall-static.c): Likewise.
22721         (CFLAGS-tst-linkall-static.c): Likewise.
22722         (CPPFLAGS-dl-load.c): Likewise.
22723         (CFLAGS-ldconfig.c): Likewise.
22724         (CFLAGS-dl-cache.c): Likewise.
22725         (CFLAGS-cache.c): Likewise.
22726         (CFLAGS-rtld.c): Likewise.
22727         (CFLAGS-multiload.c): Likewise.
22728         (CFLAGS-filtmod1.c): Likewise.
22729         (CFLAGS-tst-align.c): Likewise.
22730         (CFLAGS-tst-align2.c): Likewise.
22731         (CFLAGS-tst-alignmod.c): Likewise.
22732         (CFLAGS-tst-alignmod2.c): Likewise.
22733         (CPPFLAGS-tst-execstack.c): Likewise.
22734         (CFLAGS-tst-ptrguard1-static.c): Likewise.
22735         (CFLAGS-tst-latepthreadmod.c): Likewise.
22736         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
22737         (CFLAGS-getgrnam_r.c): Likewise.
22738         (CFLAGS-getgrent_r.c): Likewise.
22739         (CFLAGS-getgrent.c): Likewise.
22740         (CFLAGS-fgetgrent.c): Likewise.
22741         (CFLAGS-fgetgrent_r.c): Likewise.
22742         (CFLAGS-putgrent.c): Likewise.
22743         (CFLAGS-initgroups.c): Likewise.
22744         (CFLAGS-getgrgid.c): Likewise.
22745         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
22746         (CFLAGS-getsgent.c): Likewise.
22747         (CFLAGS-fgetsgent.c): Likewise.
22748         (CFLAGS-fgetsgent_r.c): Likewise.
22749         (CFLAGS-putsgent.c): Likewise.
22750         (CFLAGS-getsgnam.c): Likewise.
22751         (CFLAGS-getsgnam_r.c): Likewise.
22752         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
22753         (CFLAGS-iconv_charmap.c): Likewise.
22754         (CFLAGS-dummy-repertoire.c): Likewise.
22755         (CFLAGS-charmap.c): Likewise.
22756         (CFLAGS-linereader.c): Likewise.
22757         (CFLAGS-simple-hash.c): Likewise.
22758         (CFLAGS-gconv_conf.c): Likewise.
22759         (CFLAGS-iconvconfig.c): Likewise.
22760         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
22761         (CFLAGS-gethstbyad.c): Likewise.
22762         (CFLAGS-gethstbynm_r.c): Likewise.
22763         (CFLAGS-gethstbynm.c): Likewise.
22764         (CFLAGS-gethstbynm2_r.c): Likewise.
22765         (CFLAGS-gethstbynm2.c): Likewise.
22766         (CFLAGS-gethstent_r.c): Likewise.
22767         (CFLAGS-gethstent.c): Likewise.
22768         (CFLAGS-rcmd.c): Likewise.
22769         (CFLAGS-getnetbynm_r.c): Likewise.
22770         (CFLAGS-getnetbynm.c): Likewise.
22771         (CFLAGS-getnetbyad_r.c): Likewise.
22772         (CFLAGS-getnetbyad.c): Likewise.
22773         (CFLAGS-getnetent_r.c): Likewise.
22774         (CFLAGS-getnetent.c): Likewise.
22775         (CFLAGS-getaliasent_r.c): Likewise.
22776         (CFLAGS-getaliasent.c): Likewise.
22777         (CFLAGS-getrpcent_r.c): Likewise.
22778         (CFLAGS-getrpcent.c): Likewise.
22779         (CFLAGS-getservent_r.c): Likewise.
22780         (CFLAGS-getservent.c): Likewise.
22781         (CFLAGS-getprtent_r.c): Likewise.
22782         (CFLAGS-getprtent.c): Likewise.
22783         (CFLAGS-either_ntoh.c): Likewise.
22784         (CFLAGS-either_hton.c): Likewise.
22785         (CFLAGS-getnetgrent.c): Likewise.
22786         (CFLAGS-getnetgrent_r.c): Likewise.
22787         (CFLAGS-tst-checks-posix.c): Likewise.
22788         (CFLAGS-tst-sockaddr.c): Likewise.
22789         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
22790         (CFLAGS-tst-translit.c): Likewise.
22791         (CFLAGS-tst-gettext2.c): Likewise.
22792         (CFLAGS-tst-codeset.c): Likewise.
22793         (CFLAGS-tst-gettext3.c): Likewise.
22794         (CFLAGS-tst-gettext4.c): Likewise.
22795         (CFLAGS-tst-gettext5.c): Likewise.
22796         (CFLAGS-tst-gettext6.c): Likewise.
22797         * io/Makefile (CFLAGS-open.c): Likewise.
22798         (CFLAGS-open64.c): Likewise.
22799         (CFLAGS-creat.c): Likewise.
22800         (CFLAGS-creat64.c): Likewise.
22801         (CFLAGS-fcntl.c): Likewise.
22802         (CFLAGS-poll.c): Likewise.
22803         (CFLAGS-ppoll.c): Likewise.
22804         (CFLAGS-lockf.c): Likewise.
22805         (CFLAGS-statfs.c): Likewise.
22806         (CFLAGS-fstatfs.c): Likewise.
22807         (CFLAGS-statvfs.c): Likewise.
22808         (CFLAGS-fstatvfs.c): Likewise.
22809         (CFLAGS-fts.c): Likewise.
22810         (CFLAGS-fts64.c): Likewise.
22811         (CFLAGS-ftw.c): Likewise.
22812         (CFLAGS-ftw64.c): Likewise.
22813         (CFLAGS-lockf.c): Likewise.
22814         (CFLAGS-posix_fallocate.c): Likewise.
22815         (CFLAGS-posix_fallocate64.c): Likewise.
22816         (CFLAGS-fallocate.c): Likewise.
22817         (CFLAGS-fallocate64.c): Likewise.
22818         (CFLAGS-read.c): Likewise.
22819         (CFLAGS-write.c): Likewise.
22820         (CFLAGS-test-stat.c): Likewise.
22821         (CFLAGS-test-lfs.c): Likewise.
22822         * libio/Makefile (CFLAGS-fileops.c): Likewise.
22823         (CFLAGS-fputc.c): Likewise.
22824         (CFLAGS-fputwc.c): Likewise.
22825         (CFLAGS-freopen64.c): Likewise.
22826         (CFLAGS-freopen.c): Likewise.
22827         (CFLAGS-fseek.c): Likewise.
22828         (CFLAGS-fseeko64.c): Likewise.
22829         (CFLAGS-fseeko.c): Likewise.
22830         (CFLAGS-ftello64.c): Likewise.
22831         (CFLAGS-ftello.c): Likewise.
22832         (CFLAGS-fwide.c): Likewise.
22833         (CFLAGS-genops.c): Likewise.
22834         (CFLAGS-getc.c): Likewise.
22835         (CFLAGS-getchar.c): Likewise.
22836         (CFLAGS-getwc.c): Likewise.
22837         (CFLAGS-getwchar.c): Likewise.
22838         (CFLAGS-iofclose.c): Likewise.
22839         (CFLAGS-iofflush.c): Likewise.
22840         (CFLAGS-iofgetpos64.c): Likewise.
22841         (CFLAGS-iofgetpos.c): Likewise.
22842         (CFLAGS-iofgets.c): Likewise.
22843         (CFLAGS-iofgetws.c): Likewise.
22844         (CFLAGS-iofputs.c): Likewise.
22845         (CFLAGS-iofputws.c): Likewise.
22846         (CFLAGS-iofread.c): Likewise.
22847         (CFLAGS-iofsetpos64.c): Likewise.
22848         (CFLAGS-iofsetpos.c): Likewise.
22849         (CFLAGS-ioftell.c): Likewise.
22850         (CFLAGS-iofwrite.c): Likewise.
22851         (CFLAGS-iogetdelim.c): Likewise.
22852         (CFLAGS-iogetline.c): Likewise.
22853         (CFLAGS-iogets.c): Likewise.
22854         (CFLAGS-iogetwline.c): Likewise.
22855         (CFLAGS-ioputs.c): Likewise.
22856         (CFLAGS-ioseekoff.c): Likewise.
22857         (CFLAGS-ioseekpos.c): Likewise.
22858         (CFLAGS-iosetbuffer.c): Likewise.
22859         (CFLAGS-iosetvbuf.c): Likewise.
22860         (CFLAGS-ioungetc.c): Likewise.
22861         (CFLAGS-ioungetwc.c): Likewise.
22862         (CFLAGS-oldfileops.c): Likewise.
22863         (CFLAGS-oldiofclose.c): Likewise.
22864         (CFLAGS-oldiofgetpos64.c): Likewise.
22865         (CFLAGS-oldiofgetpos.c): Likewise.
22866         (CFLAGS-oldiofsetpos64.c): Likewise.
22867         (CFLAGS-oldiofsetpos.c): Likewise.
22868         (CFLAGS-peekc.c): Likewise.
22869         (CFLAGS-putc.c): Likewise.
22870         (CFLAGS-putchar.c): Likewise.
22871         (CFLAGS-putwc.c): Likewise.
22872         (CFLAGS-putwchar.c): Likewise.
22873         (CFLAGS-rewind.c): Likewise.
22874         (CFLAGS-wfileops.c): Likewise.
22875         (CFLAGS-wgenops.c): Likewise.
22876         (CFLAGS-oldiofopen.c): Likewise.
22877         (CFLAGS-iofopen.c): Likewise.
22878         (CFLAGS-iofopen64.c): Likewise.
22879         (CFLAGS-oldtmpfile.c): Likewise.
22880         (CFLAGS-tst_putwc.c): Likewise.
22881         * locale/Makefile (CFLAGS-md5.c): Likewise.
22882         (CFLAGS-charmap.c): Likewise.
22883         (CFLAGS-locfile.c): Likewise.
22884         (CFLAGS-charmap-dir.c): Likewise.
22885         * login/Makefile (CFLAGS-grantpt.c): Likewise.
22886         (CFLAGS-getpt.c): Likewise.
22887         (CFLAGS-pt_chown.c): Likewise.
22888         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
22889         (CFLAGS-obstack.c): Likewise.
22890         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
22891         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
22892         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
22893         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
22894         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
22895         (CFLAGS-test-tgmath.c): Likewise.
22896         (CFLAGS-test-tgmath2.c): Likewise.
22897         (CFLAGS-test-tgmath-ret.c): Likewise.
22898         (CFLAGS-test-powl.c): Likewise.
22899         (CFLAGS-test-snan.c): Likewise.
22900         (CFLAGS-test-signgam-finite.c): Likewise.
22901         (CFLAGS-test-signgam-finite-c99.c): Likewise.
22902         (CFLAGS-test-signgam-finite-c11.c): Likewise.
22903         (CFLAGS-test-signgam-uchar.c): Likewise.
22904         (CFLAGS-test-signgam-uchar-init.c): Likewise.
22905         (CFLAGS-test-signgam-uchar-static.c): Likewise.
22906         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
22907         (CFLAGS-test-signgam-uint.c): Likewise.
22908         (CFLAGS-test-signgam-uint-init.c): Likewise.
22909         (CFLAGS-test-signgam-uint-static.c): Likewise.
22910         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
22911         (CFLAGS-test-signgam-ullong.c): Likewise.
22912         (CFLAGS-test-signgam-ullong-init.c): Likewise.
22913         (CFLAGS-test-signgam-ullong-static.c): Likewise.
22914         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
22915         (CFLAGS-test-math-cxx11.cc): Likewise.
22916         (CFLAGS-test-math-isinff.cc): Likewise.
22917         (CFLAGS-test-math-iszero.cc): Likewise.
22918         (CFLAGS-test-math-issignaling.cc): Likewise.
22919         (CFLAGS-test-math-iscanonical.cc): Likewise.
22920         (CFLAGS-test-iszero-excess-precision.c): Likewise.
22921         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
22922         (CFLAGS-test-flt-eval-method.c): Likewise.
22923         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
22924         (CFLAGS-test-finite-macros.c): Likewise.
22925         * misc/Makefile (CFLAGS-select.c): Likewise.
22926         (CFLAGS-tsearch.c): Likewise.
22927         (CFLAGS-lsearch.c): Likewise.
22928         (CFLAGS-pselect.c): Likewise.
22929         (CFLAGS-readv.c): Likewise.
22930         (CFLAGS-writev.c): Likewise.
22931         (CFLAGS-preadv.c): Likewise.
22932         (CFLAGS-preadv64.c): Likewise.
22933         (CFLAGS-pwritev.c): Likewise.
22934         (CFLAGS-pwritev64.c): Likewise.
22935         (CFLAGS-preadv2.c): Likewise.
22936         (CFLAGS-preadv64v2.c): Likewise.
22937         (CFLAGS-pwritev2.c): Likewise.
22938         (CFLAGS-pwritev64v2.c): Likewise.
22939         (CFLAGS-usleep.c): Likewise.
22940         (CFLAGS-syslog.c): Likewise.
22941         (CFLAGS-error.c): Likewise.
22942         (CFLAGS-getpass.c): Likewise.
22943         (CFLAGS-mkstemp.c): Likewise.
22944         (CFLAGS-mkstemp64.c): Likewise.
22945         (CFLAGS-getsysstats.c): Likewise.
22946         (CFLAGS-getusershell.c): Likewise.
22947         (CFLAGS-err.c): Likewise.
22948         (CFLAGS-tst-tsearch.c): Likewise.
22949         (CFLAGS-msync.c): Likewise.
22950         (CFLAGS-fdatasync.c): Likewise.
22951         (CFLAGS-fsync.c): Likewise.
22952         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
22953         (CFLAGS-unwind.c): Likewise.
22954         (CFLAGS-unwind-forcedunwind.c): Likewise.
22955         (CFLAGS-pthread_cancel.c): Likewise.
22956         (CFLAGS-pthread_setcancelstate.c): Likewise.
22957         (CFLAGS-pthread_setcanceltype.c): Likewise.
22958         (CFLAGS-cancellation.c): Likewise.
22959         (CFLAGS-libc-cancellation.c): Likewise.
22960         (CFLAGS-pthread_exit.c): Likewise.
22961         (CFLAGS-forward.c): Likewise.
22962         (CFLAGS-pthread_testcancel.c): Likewise.
22963         (CFLAGS-pthread_join.c): Likewise.
22964         (CFLAGS-pthread_timedjoin.c): Likewise.
22965         (CFLAGS-pthread_once.c): Likewise.
22966         (CFLAGS-pthread_cond_wait.c): Likewise.
22967         (CFLAGS-sem_wait.c): Likewise.
22968         (CFLAGS-sem_timedwait.c): Likewise.
22969         (CFLAGS-fcntl.c): Likewise.
22970         (CFLAGS-lockf.c): Likewise.
22971         (CFLAGS-pread.c): Likewise.
22972         (CFLAGS-pread64.c): Likewise.
22973         (CFLAGS-pwrite.c): Likewise.
22974         (CFLAGS-pwrite64.c): Likewise.
22975         (CFLAGS-wait.c): Likewise.
22976         (CFLAGS-waitpid.c): Likewise.
22977         (CFLAGS-sigwait.c): Likewise.
22978         (CFLAGS-msgrcv.c): Likewise.
22979         (CFLAGS-msgsnd.c): Likewise.
22980         (CFLAGS-tcdrain.c): Likewise.
22981         (CFLAGS-open.c): Likewise.
22982         (CFLAGS-open64.c): Likewise.
22983         (CFLAGS-pause.c): Likewise.
22984         (CFLAGS-recv.c): Likewise.
22985         (CFLAGS-send.c): Likewise.
22986         (CFLAGS-accept.c): Likewise.
22987         (CFLAGS-sendto.c): Likewise.
22988         (CFLAGS-connect.c): Likewise.
22989         (CFLAGS-recvfrom.c): Likewise.
22990         (CFLAGS-recvmsg.c): Likewise.
22991         (CFLAGS-sendmsg.c): Likewise.
22992         (CFLAGS-close.c): Likewise.
22993         (CFLAGS-read.c): Likewise.
22994         (CFLAGS-write.c): Likewise.
22995         (CFLAGS-nanosleep.c): Likewise.
22996         (CFLAGS-sigsuspend.c): Likewise.
22997         (CFLAGS-msync.c): Likewise.
22998         (CFLAGS-fdatasync.c): Likewise.
22999         (CFLAGS-fsync.c): Likewise.
23000         (CFLAGS-pt-system.c): Likewise.
23001         (CFLAGS-tst-cleanup2.c): Likewise.
23002         (CFLAGS-tst-cleanupx2.c): Likewise.
23003         (CFLAGS-flockfile.c): Likewise.
23004         (CFLAGS-ftrylockfile.c): Likewise.
23005         (CFLAGS-funlockfile.c): Likewise.
23006         (CFLAGS-tst-initializers1.c): Likewise.
23007         (CFLAGS-tst-initializers1-c89.c): Likewise.
23008         (CFLAGS-tst-initializers1-c99.c): Likewise.
23009         (CFLAGS-tst-initializers1-c11.c): Likewise.
23010         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
23011         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
23012         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
23013         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
23014         (CFLAGS-nscd_getgr_r.c): Likewise.
23015         (CFLAGS-nscd_gethst_r.c): Likewise.
23016         (CFLAGS-nscd_getai.c): Likewise.
23017         (CFLAGS-nscd_initgroups.c): Likewise.
23018         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
23019         (CFLAGS-pause.c): Likewise.
23020         (CFLAGS-pread.c): Likewise.
23021         (CFLAGS-pread64.c): Likewise.
23022         (CFLAGS-pwrite.c): Likewise.
23023         (CFLAGS-pwrite64.c): Likewise.
23024         (CFLAGS-sleep.c): Likewise.
23025         (CFLAGS-wait.c): Likewise.
23026         (CFLAGS-waitid.c): Likewise.
23027         (CFLAGS-waitpid.c): Likewise.
23028         (CFLAGS-getopt.c): Likewise.
23029         (CFLAGS-wordexp.c): Likewise.
23030         (CFLAGS-sysconf.c): Likewise.
23031         (CFLAGS-pathconf.c): Likewise.
23032         (CFLAGS-fpathconf.c): Likewise.
23033         (CFLAGS-spawn.c): Likewise.
23034         (CFLAGS-spawnp.c): Likewise.
23035         (CFLAGS-spawni.c): Likewise.
23036         (CFLAGS-glob.c): Likewise.
23037         (CFLAGS-glob64.c): Likewise.
23038         (CFLAGS-getconf.c): Likewise.
23039         (CFLAGS-nanosleep.c): Likewise.
23040         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
23041         (CFLAGS-getpwent.c): Likewise.
23042         (CFLAGS-getpw.c): Likewise.
23043         (CFLAGS-fgetpwent_r.c): Likewise.
23044         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
23045         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
23046         (CFLAGS-mq_timedreceive.c): Likewise.
23047         (CFLAGS-mq_timedsend.c): Likewise.
23048         (CFLAGS-clock_nanosleep.c): Likewise.
23049         (CFLAGS-librt-cancellation.c): Likewise.
23050         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
23051         (CFLAGS-getspent.c): Likewise.
23052         (CFLAGS-fgetspent.c): Likewise.
23053         (CFLAGS-fgetspent_r.c): Likewise.
23054         (CFLAGS-putspent.c): Likewise.
23055         (CFLAGS-getspnam.c): Likewise.
23056         (CFLAGS-getspnam_r.c): Likewise.
23057         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
23058         (CFLAGS-sigsuspend.c): Likewise.
23059         (CFLAGS-sigtimedwait.c): Likewise.
23060         (CFLAGS-sigwait.c): Likewise.
23061         (CFLAGS-sigwaitinfo.c): Likewise.
23062         (CFLAGS-sigreturn.c): Likewise.
23063         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
23064         (CFLAGS-vfwprintf.c): Likewise.
23065         (CFLAGS-tmpfile.c): Likewise.
23066         (CFLAGS-tmpfile64.c): Likewise.
23067         (CFLAGS-tempname.c): Likewise.
23068         (CFLAGS-psignal.c): Likewise.
23069         (CFLAGS-vprintf.c): Likewise.
23070         (CFLAGS-cuserid.c): Likewise.
23071         (CFLAGS-errlist.c): Likewise.
23072         (CFLAGS-siglist.c): Likewise.
23073         (CFLAGS-scanf15.c): Likewise.
23074         (CFLAGS-scanf17.c): Likewise.
23075         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
23076         (CFLAGS-msort.c): Likewise.
23077         (CFLAGS-qsort.c): Likewise.
23078         (CFLAGS-system.c): Likewise.
23079         (CFLAGS-fmtmsg.c): Likewise.
23080         (CFLAGS-strfmon.c): Likewise.
23081         (CFLAGS-strfmon_l.c): Likewise.
23082         (CFLAGS-strfromd.c): Likewise.
23083         (CFLAGS-strfromf.c): Likewise.
23084         (CFLAGS-strfroml.c): Likewise.
23085         (CFLAGS-tst-bsearch.c): Likewise.
23086         (CFLAGS-tst-qsort.c): Likewise.
23087         (CFLAGS-tst-makecontext2.c): Likewise.
23088         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
23089         (CFLAGS-xnlm_prot.c): Likewise.
23090         (CFLAGS-xrstat.c): Likewise.
23091         (CFLAGS-xyppasswd.c): Likewise.
23092         (CFLAGS-xklm_prot.c): Likewise.
23093         (CFLAGS-xrex.c): Likewise.
23094         (CFLAGS-xsm_inter.c): Likewise.
23095         (CFLAGS-xmount.c): Likewise.
23096         (CFLAGS-xrusers.c): Likewise.
23097         (CFLAGS-xspray.c): Likewise.
23098         (CFLAGS-xnfs_prot.c): Likewise.
23099         (CFLAGS-xrquota.c): Likewise.
23100         (CFLAGS-xkey_prot.c): Likewise.
23101         (CFLAGS-auth_unix.c): Likewise.
23102         (CFLAGS-key_call.c): Likewise.
23103         (CFLAGS-pmap_rmt.c): Likewise.
23104         (CFLAGS-clnt_perr.c): Likewise.
23105         (CFLAGS-openchild.c): Likewise.
23106         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
23107         (CFLAGS-msgsnd.c): Likewise.
23108         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
23109         * time/Makefile (CFLAGS-tzfile.c): Likewise.
23110         (CFLAGS-tzset.c): Likewise.
23111         (CFLAGS-getdate.c): Likewise.
23112         (CFLAGS-test_time.c): Likewise.
23113         (CPPFLAGS-tst-tzname.c): Likewise.
23114         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
23115         (CFLAGS-zic.c): Likewise.
23116         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
23117         (CFLAGS-wcswidth.c): Likewise.
23118         (CFLAGS-wcstol.c): Likewise.
23119         (CFLAGS-wcstoul.c): Likewise.
23120         (CFLAGS-wcstoll.c): Likewise.
23121         (CFLAGS-wcstoull.c): Likewise.
23122         (CFLAGS-wcstod.c): Likewise.
23123         (CFLAGS-wcstold.c): Likewise.
23124         (CFLAGS-wcstof128.c): Likewise.
23125         (CFLAGS-wcstof.c): Likewise.
23126         (CFLAGS-wcstol_l.c): Likewise.
23127         (CFLAGS-wcstoul_l.c): Likewise.
23128         (CFLAGS-wcstoll_l.c): Likewise.
23129         (CFLAGS-wcstoull_l.c): Likewise.
23130         (CFLAGS-wcstod_l.c): Likewise.
23131         (CFLAGS-wcstold_l.c): Likewise.
23132         (CFLAGS-wcstof128_l.c): Likewise.
23133         (CFLAGS-wcstof_l.c): Likewise.
23134         (CPPFLAGS-tst-wchar-h.c): Likewise.
23135         (CPPFLAGS-wcstold_l.c): Likewise.
23137 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
23139         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
23141 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23142             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23144         * manual/tunables.texi (Hardware Capability Tunables): Document
23145         glibc.tune.cached_memopt.
23146         * sysdeps/powerpc/cpu-features.c: New file.
23147         * sysdeps/powerpc/cpu-features.h: New file.
23148         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
23149         _dl_powerpc_cpu_features.
23150         * sysdeps/powerpc/dl-tunables.list: New file.
23151         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
23152         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
23153         (INIT_ARCH): Initialize use_aligned_memopt.
23154         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
23155         IS_IN(rtld))]: Restrict dl_platform_init availability and
23156         initialize CPU features used by tunables.
23157         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
23158         Add memcpy-power8-cached.
23159         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
23160         __memcpy_power8_cached.
23161         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23162         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
23163         New file.
23165 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
23167         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
23168         (CFLAGS-noinl-tester.c): Likewise.
23169         (CFLAGS-tst-strlen.c): Likewise.
23170         (CFLAGS-stratcliff.c): Likewise.
23171         (CFLAGS-test-ffs.c): Likewise.
23172         (CFLAGS-tst-inlcall.c): Likewise.
23173         (CFLAGS-tst-xbzero-opt.c): Likewise.
23174         (CFLAGS-memcpy.c): Likewise.
23175         (CFLAGS-wordcopy.c): Likewise.
23177 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23179         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
23180         Store r15 on stack and add cfi rule.
23181         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
23182         Likewise.
23184 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
23186         [BZ #22577]
23187         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
23188         call.
23190 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
23192         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23193         Add s_sinf-sse2 and s_sinf-fma.
23194         (CFLAGS-s_sinf-fma.c): New.
23195         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
23196         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
23197         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
23199 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
23201         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
23203 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
23205         [BZ #22568]
23206         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
23207         part of result to imaginary part of argument if it is zero and the
23208         real part of the argument is not finite.
23209         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
23210         of result to real part of argument if it is zero and the imaginary
23211         part of the argument is not finite.
23213 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
23215         [BZ #22524]
23216         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
23217         and to the list of locales to be built for testing.
23218         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
23219         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
23220         and build the collation rules upon that.
23222 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
23224         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
23225         * manual/math.texi (Mathematics): Document support for _Float32.
23226         * math/Makefile (test-types): Add float32.
23227         * math/Versions (GLIBC_2.27): Add _Float32 functions.
23228         * stdlib/Versions (GLIBC_2.27): Likewise.
23229         * wcsmbs/Versions (GLIBC_2.27): Likewise.
23230         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23231         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23232         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23233         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23234         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
23235         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
23236         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
23237         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
23238         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23239         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23240         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23241         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23242         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
23243         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
23244         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
23245         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
23246         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
23247         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
23248         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
23249         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
23250         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
23251         Likewise.
23252         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23253         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23254         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23255         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
23256         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
23257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
23258         Likewise.
23259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
23260         Likewise.
23261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
23262         Likewise.
23263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
23264         Likewise.
23266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23267         Likewise.
23268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
23269         Likewise.
23270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23271         Likewise.
23272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
23273         Likewise.
23274         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23275         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23276         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23277         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23278         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
23279         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
23280         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23281         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23282         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23283         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23284         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
23285         Likewise.
23286         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
23287         Likewise.
23288         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
23289         Likewise.
23290         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
23291         Likewise.
23292         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23293         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23294         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23295         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23296         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23297         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23298         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23299         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23301 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
23303         * stdlib/strtof.c: Include <bits/floatn.h>
23304         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
23305         and later undefine as macro.  Define as weak alias if
23306         [!USE_WIDE_CHAR].
23307         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
23308         and later undefine as macro.  Define as weak alias if
23309         [USE_WIDE_CHAR].
23310         * stdlib/strtof_l.c: Include <bits/floatn.h>
23311         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
23312         and later undefine as macro.  Define as weak alias if
23313         [!USE_WIDE_CHAR].
23314         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
23315         and later undefine as macro.  Define as weak alias if
23316         [USE_WIDE_CHAR].
23318         * stdlib/strfromf.c: Include <bits/floatn.h>.
23319         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
23320         and later undefine as macro and define as weak alias.
23322         * math/test-float32.h: New file.
23324         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
23325         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
23326         (libm_alias_float_other_r): Create f32 alias.
23327         (libm_alias_float_r): Use semicolon before call to
23328         libm_alias_float_other_r.
23330         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
23331         second argument to libm_alias_float_other.
23332         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
23333         second argument to libm_alias_float_other.
23334         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
23335         argument to libm_alias_float_other.
23337         [BZ #22561]
23338         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
23339         real part of result for argument 0 + i * NaN.
23340         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
23341         results for tests of 0 + i * NaN.
23343 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23345         * sysdeps/alpha/fpu/libm-test-ulps: Update.
23347 2017-12-06  David S. Miller  <davem@davemloft.net>
23349         * sysdeps/sparc/fpu/libm-test-ulps: Update
23350         exp_{downward,towardzero,upward} ulps.
23352 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
23354         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
23355         variables static.
23357         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
23358         (Y0_2D): Likewise.
23359         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
23360         (Y0_2D): Likewise.
23361         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
23362         (Y0_2D): Likewise.
23363         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
23364         (Y0_2D): Likewise.
23366 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
23368         [BZ #22515]
23369         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
23370         and to the list of locales to be built for testing.
23371         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
23372         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
23373         and build the collation rules upon that.
23375 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
23377         * NEWS: Add sinf to list of optimized functions.
23379 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
23381         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
23382         (__HAVE_FLOAT32X): Likewise.
23383         * manual/math.texi (Mathematics): Document support for _Float64
23384         and _Float32x.
23385         * math/Makefile (test-types): Add float64 and float32x.
23386         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
23387         functions.
23388         * stdlib/Versions (GLIBC_2.27): Likewise.
23389         * wcsmbs/Versions (GLIBC_2.27): Likewise.
23390         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23391         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23392         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23393         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23394         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
23395         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
23396         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
23397         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
23398         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23399         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23400         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23401         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23402         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
23403         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
23404         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
23405         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
23406         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
23407         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
23408         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
23409         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
23410         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
23411         Likewise.
23412         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23413         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23414         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23415         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
23416         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
23417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
23418         Likewise.
23419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
23420         Likewise.
23421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
23422         Likewise.
23423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
23424         Likewise.
23425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23426         Likewise.
23427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
23428         Likewise.
23429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23430         Likewise.
23431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
23432         Likewise.
23433         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23434         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23435         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23436         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23437         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
23438         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
23439         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23440         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23441         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23442         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23443         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
23444         Likewise.
23445         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
23446         Likewise.
23447         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
23448         Likewise.
23449         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
23450         Likewise.
23451         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23452         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23453         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23454         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23455         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23456         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23457         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23458         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23460 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
23462         * bits/floatn-common.h: Include <bits/long-double.h>.
23463         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
23464         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
23465         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
23466         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
23467         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
23468         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
23469         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
23470         (__builtin_huge_valf64): Use __builtin_huge_vall.
23471         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
23472         (__builtin_inff64): Use __builtin_infl.
23473         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
23474         (__builtin_nanf64): Use __builtin_nanl.
23475         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
23476         (__builtin_nansf64): Use __builtin_nansl.
23478 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
23479             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23480             Carlos O'Donnell  <carlos@redhat.com>
23482         * elf/dl-tunables.list: Add elision parameters.
23483         * manual/tunables.texi: Add entries about elision tunable.
23484         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
23485         Add callback functions to dynamically enable/disable elision.
23486         Add multiple callbacks functions to set elision parameters.
23487         Deleted __libc_enable_secure check.
23488         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
23489         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
23490         * configure: Regenerated.
23491         * configure.ac: Option enable_lock_elision was deleted.
23492         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
23493         * config.make.in: Remove references to enable_lock_elision.
23494         * manual/install.texi: Elision configure option was removed.
23495         * INSTALL: Regenerated to remove enable_lock_elision.
23496         * nptl/Makefile:
23497         Disable elision so it can verify error case for destroying a mutex.
23498         * sysdeps/powerpc/nptl/elide.h:
23499         Cleanup ENABLE_LOCK_ELISION check.
23500         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
23501         * sysdeps/s390/configure: Regenerated.
23502         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
23503         * nptl/tst-mutex8.c:
23504         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
23505         * sysdeps/powerpc/powerpc32/sysdep.h:
23506         Deleted all ENABLE_LOCK_ELISION checks.
23507         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
23508         * sysdeps/powerpc/sysdep.h: Likewise.
23509         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
23510         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
23511         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
23512         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
23513         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23514         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
23515         enable-lock-elision.
23517 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
23519         * stdlib/strtod.c: Include <bits/floatn.h>.
23520         (BUILD_DOUBLE): New macro.
23521         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
23522         (strtof64): Define and later undefine as macro.  Define as weak
23523         alias if [!USE_WIDE_CHAR].
23524         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
23525         (wcstof64): Define and later undefine as macro.  Define as weak
23526         alias if [USE_WIDE_CHAR].
23527         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
23528         (strtof32x): Define and later undefine as macro.  Define as weak
23529         alias if [!USE_WIDE_CHAR].
23530         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
23531         (wcstof32x): Define and later undefine as macro.  Define as weak
23532         alias if [USE_WIDE_CHAR].
23533         * stdlib/strtod_l.c: Include <bits/floatn.h>.
23534         (BUILD_DOUBLE): New macro.
23535         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
23536         (strtof64_l): Define and later undefine as macro.  Define as weak
23537         alias if [!USE_WIDE_CHAR].
23538         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
23539         (wcstof64_l): Define and later undefine as macro.  Define as weak
23540         alias if [USE_WIDE_CHAR].
23541         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
23542         (strtof32x_l): Define and later undefine as macro.  Define as weak
23543         alias if [!USE_WIDE_CHAR].
23544         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
23545         (wcstof32x_l): Define and later undefine as macro.  Define as weak
23546         alias if [USE_WIDE_CHAR].
23548 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23550         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
23551         (reduced): Use ones as double instead of integer.
23553 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23555         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
23557 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
23559         * stdlib/strfromd.c: Include <bits/floatn.h>.
23560         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
23561         and later undefine as macro and define as weak alias.
23562         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
23563         Likewise.
23565         * math/test-float32x.h: New file.
23566         * math/test-float64.h: Likewise.
23568         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
23569         (libm_alias_double_other_r_f64): New macro.
23570         (libm_alias_double_other_r_f32x): Likewise.
23571         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
23572         libm_alias_double_other_r_f32x.
23573         (libm_alias_double_r): Use semicolon before call to
23574         libm_alias_double_other_r.
23575         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
23576         <bits/floatn.h>.
23577         (libm_alias_double_other_r_f64): New macro.
23578         (libm_alias_double_other_r_f32x): Likewise.
23579         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
23580         libm_alias_double_other_r_f32x.
23582 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
23584         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
23585         int.
23586         (SINF_FUNC): Likewise.  Replace floor with simple casts.
23588 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
23590         [BZ #22517]
23591         * localedata/Makefile: Add et_EE.UTF-8 to test-input
23592         and to the list of locales to be built for testing.
23593         * localedata/et_EE.UTF-8.in: New file for testing the collation.
23594         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
23595         and build the collation rules upon that.
23597 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
23599         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
23600         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
23601         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
23602         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
23603         instead of __insn__xxx.
23604         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
23605         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
23606         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
23607         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
23608         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
23609         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
23611 2017-12-05  Florian Weimer  <fweimer@redhat.com>
23613         Linux: Implement interfaces for memory protection keys
23614         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
23615         xsignal, xsysconf.
23616         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
23617         * support/xunistd.h (xsysconf): Declare.
23618         * support/xraise.c: New file.
23619         * support/xsigaction.c: Likewise.
23620         * support/xsignal.c: Likewise.
23621         * support/xsysconf.c: Likewise.
23622         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
23623         pkey_set, pkey_get, pkey_mprotect.
23624         [misc] (tests): Add tst-pkey.
23625         (tst-pkey): Link with -lpthread.
23626         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
23627         pkey_free, pkey_set, pkey_get, pkey_mprotect.
23628         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
23629         (PKEY_DISABLE_WRITE): Define.
23630         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
23631         Declare.
23632         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
23633         (SEGV_PKUERR): Add.
23634         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
23635         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
23636         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
23637         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
23638         Add.
23639         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
23640         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
23641         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
23642         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
23643         * sysdeps/unix/sysv/linux/**.abilist: Update.
23645 2017-12-05  Florian Weimer  <fweimer@redhat.com>
23647         * support/tst-test_compare.c (subprocess): Use long long instead
23648         of long argument for consistent type width across 32-bit and
23649         64-bit architectures.
23650         (do_test): Adjust expected output.
23652 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
23654         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
23655         (cosf): Define using libm_alias_float.
23656         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
23657         (fabsf): Define using libm_alias_float.
23658         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
23659         (fmaf): Define using libm_alias_float.
23660         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
23661         (rintf): Define using libm_alias_float.
23662         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
23663         (sinf): Define using libm_alias_float.
23664         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
23665         <libm-alias-float.h>.
23666         (modff): Define using libm_alias_float.
23667         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
23668         <libm-alias-float.h>.
23669         (logbf): Define using libm_alias_float.
23670         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
23671         <libm-alias-float.h>.
23672         (ceilf): Define using libm_alias_float.
23673         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
23674         <libm-alias-float.h>.
23675         (copysignf): Define using libm_alias_float.
23676         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
23677         <libm-alias-float.h>.
23678         (floorf): Define using libm_alias_float.
23679         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
23680         <libm-alias-float.h>.
23681         (llrintf): Define using libm_alias_float.
23682         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
23683         <libm-alias-float.h>.
23684         (llroundf): Define using libm_alias_float.
23685         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
23686         <libm-alias-float.h>.
23687         (lrintf): Define using libm_alias_float.
23688         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
23689         <libm-alias-float.h>.
23690         (lroundf): Define using libm_alias_float.
23691         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
23692         <libm-alias-float.h>.
23693         (nearbyintf): Define using libm_alias_float.
23694         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
23695         <libm-alias-float.h>.
23696         (rintf): Define using libm_alias_float.
23697         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
23698         <libm-alias-float.h>.
23699         (roundf): Define using libm_alias_float.
23700         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
23701         <libm-alias-float.h>.
23702         (truncf): Define using libm_alias_float.
23703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
23704         Include <libm-alias-float.h>.
23705         (ceilf): Define using libm_alias_float.
23706         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
23707         Include <libm-alias-float.h>.
23708         (copysignf): Define using libm_alias_float.
23709         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
23710         Include <libm-alias-float.h>.
23711         (floorf): Define using libm_alias_float.
23712         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
23713         Include <libm-alias-float.h>.
23714         (llrintf): Define using libm_alias_float.
23715         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
23716         Include <libm-alias-float.h>.
23717         (llroundf): Define using libm_alias_float.
23718         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
23719         Include <libm-alias-float.h>.
23720         (logbf): Define using libm_alias_float.
23721         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
23722         Include <libm-alias-float.h>.
23723         (lrintf): Define using libm_alias_float.
23724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
23725         Include <libm-alias-float.h>.
23726         (lroundf): Define using libm_alias_float.
23727         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
23728         Include <libm-alias-float.h>.
23729         (modff): Define using libm_alias_float.
23730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
23731         Include <libm-alias-float.h>.
23732         (roundf): Define using libm_alias_float.
23733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
23734         Include <libm-alias-float.h>.
23735         (truncf): Define using libm_alias_float.
23736         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
23737         <libm-alias-float.h>.
23738         (llrintf): Define using libm_alias_float.
23739         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
23740         <libm-alias-float.h>.
23741         (llroundf): Define using libm_alias_float.
23742         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
23743         <libm-alias-float.h>.
23744         (ceilf): Define using libm_alias_float.
23745         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
23746         <libm-alias-float.h>.
23747         (floorf): Define using libm_alias_float.
23748         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
23749         <libm-alias-float.h>.
23750         (llroundf): Define using libm_alias_float.
23751         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
23752         <libm-alias-float.h>.
23753         (lroundf): Define using libm_alias_float.
23754         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
23755         <libm-alias-float.h>.
23756         (roundf): Define using libm_alias_float.
23757         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
23758         <libm-alias-float.h>.
23759         (truncf): Define using libm_alias_float.
23760         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
23761         <libm-alias-float.h>.
23762         (copysignf): Define using libm_alias_float.
23763         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
23764         <libm-alias-float.h>.
23765         (llrintf): Define using libm_alias_float.
23766         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
23767         <libm-alias-float.h>.
23768         (llroundf): Define using libm_alias_float.
23769         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
23770         <libm-alias-float.h>.
23771         (lrintf): Define using libm_alias_float.
23772         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
23773         <libm-alias-float.h>.
23774         (lroundf): Define using libm_alias_float.
23775         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
23776         <libm-alias-float.h>.
23777         (ceilf): Define using libm_alias_float.
23778         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
23779         <libm-alias-float.h>.
23780         (copysignf): Define using libm_alias_float.
23781         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
23782         <libm-alias-float.h>.
23783         (cosf): Define using libm_alias_float.
23784         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
23785         <libm-alias-float.h>.
23786         (floorf): Define using libm_alias_float.
23787         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
23788         <libm-alias-float.h>.
23789         (llrintf): Define using libm_alias_float.
23790         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
23791         <libm-alias-float.h>.
23792         (llroundf): Define using libm_alias_float.
23793         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
23794         <libm-alias-float.h>.
23795         (logbf): Define using libm_alias_float.
23796         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
23797         <libm-alias-float.h>.
23798         (modff): Define using libm_alias_float.
23799         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
23800         <libm-alias-float.h>.
23801         (roundf): Define using libm_alias_float.
23802         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
23803         <libm-alias-float.h>.
23804         (sinf): Define using libm_alias_float.
23805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
23806         <libm-alias-float.h>.
23807         (truncf): Define using libm_alias_float.
23808         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
23809         <libm-alias-float.h>.
23810         (ceilf): Define using libm_alias_float.
23811         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
23812         <libm-alias-float.h>.
23813         (copysignf): Define using libm_alias_float.
23814         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
23815         <libm-alias-float.h>.
23816         (floorf): Define using libm_alias_float.
23817         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
23818         <libm-alias-float.h>.
23819         (llrintf): Define using libm_alias_float.
23820         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
23821         <libm-alias-float.h>.
23822         (llroundf): Define using libm_alias_float.
23823         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
23824         <libm-alias-float.h>.
23825         (nearbyintf): Define using libm_alias_float.
23826         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
23827         <libm-alias-float.h>.
23828         (rintf): Define using libm_alias_float.
23829         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
23830         <libm-alias-float.h>.
23831         (roundf): Define using libm_alias_float.
23832         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
23833         <libm-alias-float.h>.
23834         (truncf): Define using libm_alias_float.
23835         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
23836         <libm-alias-float.h>.
23837         (ceilf): Define using libm_alias_float.
23838         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
23839         <libm-alias-float.h>.
23840         (floorf): Define using libm_alias_float.
23841         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
23842         <libm-alias-float.h>.
23843         (llroundf): Define using libm_alias_float.
23844         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
23845         <libm-alias-float.h>.
23846         (roundf): Define using libm_alias_float.
23847         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
23848         <libm-alias-float.h>.
23849         (truncf): Define using libm_alias_float.
23850         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
23851         <libm-alias-float.h>.
23852         (copysignf): Define using libm_alias_float.
23853         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
23854         <libm-alias-float.h>.
23855         (llrintf): Define using libm_alias_float.
23856         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
23857         <libm-alias-float.h>.
23858         (llroundf): Define using libm_alias_float.
23859         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
23860         <libm-alias-float.h>.
23861         (cosf): Define using libm_alias_float.
23862         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
23863         <libm-alias-float.h>.
23864         (llrintf): Define using libm_alias_float.
23865         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
23866         <libm-alias-float.h>.
23867         (llroundf): Define using libm_alias_float.
23868         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
23869         <libm-alias-float.h>.
23870         (sinf): Define using libm_alias_float.
23872 2017-12-04  Florian Weimer  <fweimer@redhat.com>
23874         * support/check.h (TEST_COMPARE): Define.
23875         (support_test_compare_failure): Declare.
23876         * support/Makefile (libsupport-routines): Add
23877         support_test_compare_failure.
23878         (tests): Add tst-test_compare.
23879         * support /support_test_compare_failure.c: New file.
23880         * support/tst-test_compare.c: Likewise.
23882 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
23884         [BZ #22527]
23885         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
23886         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
23887         available, this rewrite of the collation rules does reproduce
23888         the test file in the same order.
23890 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
23892         [BZ #10580]
23893         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
23894         digraphs in the month and day names. Using single code points for
23895         digraphs is deprecated.  While there are dedicated Unicode
23896         codepoints, for the digraphs, these are included for backwards
23897         compatibility and modern texts use a sequence of Basic Latin
23898         characters. See: https://www.unicode.org/faq/ligature_digraph.html
23899         This makes the month and day names agree exactly with CLDR now,
23900         CLDR does not use the single code points for the digraphs either.
23902 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
23904         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
23906 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
23908         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
23909         of floor.
23911 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
23913         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
23914         Define only for libc.so.
23916 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
23918         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23919         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
23920         CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
23921         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
23922         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23924 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
23926         [BZ #5997]
23927         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
23929 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
23931         [BZ libc/19170]
23932         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
23933         PREINIT_FUNCTION_WEAK is nonzero.
23934         (gmon_initializer): New function.  Put procedure label for it in
23935         .init_array section.
23936         (_init): Don't call PREINIT_FUNCTION.
23937         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
23938         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
23939         value when map argument is null.
23941         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
23942         depi instruction from PIC pc-relative sequence.
23943         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
23944         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
23945         (elf_machine_load_address): Likewise.
23946         (elf_machine_runtime_setup): Likewise.
23948 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
23950         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
23951         <libm-alias-double.h>.
23952         (logb): Define using libm_alias_double.
23953         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
23954         <libm-alias-double.h>.
23955         (copysign): Define using libm_alias_double.
23956         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
23957         <libm-alias-double.h>.
23958         (llrint): Define using libm_alias_double.
23959         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
23960         <libm-alias-double.h>.
23961         (llround): Define using libm_alias_double.
23962         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
23963         <libm-alias-double.h>.
23964         (lrint): Define using libm_alias_double.
23965         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
23966         <libm-alias-double.h>.
23967         (lround): Define using libm_alias_double.
23968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
23969         Include <libm-alias-double.h>.
23970         (copysign): Define using libm_alias_double.
23971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
23972         Include <libm-alias-double.h>.
23973         (llrint): Define using libm_alias_double.
23974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
23975         Include <libm-alias-double.h>.
23976         (llround): Define using libm_alias_double.
23977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
23978         <libm-alias-double.h>.
23979         (logb): Define using libm_alias_double.
23980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
23981         Include <libm-alias-double.h>.
23982         (lrint): Define using libm_alias_double.
23983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
23984         Include <libm-alias-double.h>.
23985         (lround): Define using libm_alias_double.
23986         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
23987         <libm-alias-double.h>.
23988         (llrint): Define using libm_alias_double.
23989         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
23990         <libm-alias-double.h>.
23991         (llround): Define using libm_alias_double.
23992         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
23993         <libm-alias-double.h>.
23994         (llround): Define using libm_alias_double.
23995         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
23996         <libm-alias-double.h>.
23997         (lround): Define using libm_alias_double.
23998         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
23999         <libm-alias-double.h>.
24000         (copysign): Define using libm_alias_double.
24001         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
24002         <libm-alias-double.h>.
24003         (llrint): Define using libm_alias_double.
24004         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
24005         <libm-alias-double.h>.
24006         (llround): Define using libm_alias_double.
24007         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
24008         <libm-alias-double.h>.
24009         (lrint): Define using libm_alias_double.
24010         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
24011         <libm-alias-double.h>.
24012         (lround): Define using libm_alias_double.
24013         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
24014         <libm-alias-double.h>.
24015         (copysign): Define using libm_alias_double.
24016         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
24017         <libm-alias-double.h>.
24018         (llrint): Define using libm_alias_double.
24019         (lrint): Likewise.
24020         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
24021         <libm-alias-double.h>.
24022         (llround): Define using libm_alias_double.
24023         (lround): Likewise.
24024         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
24025         <libm-alias-double.h>.
24026         (logb): Define using libm_alias_double.
24027         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
24028         <libm-alias-double.h>.
24029         (copysign): Define using libm_alias_double.
24030         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
24031         <libm-alias-double.h>.
24032         (llrint): Define using libm_alias_double.
24033         (lrint): Likewise.
24034         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
24035         <libm-alias-double.h>.
24036         (llround): Define using libm_alias_double.
24037         (lround): Likewise.
24038         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
24039         <libm-alias-double.h>.
24040         (llround): Define using libm_alias_double.
24041         (lround): Likewise.
24042         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
24043         <libm-alias-double.h>.
24044         (copysign): Define using libm_alias_double.
24045         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
24046         <libm-alias-double.h>.
24047         (llrint): Define using libm_alias_double.
24048         (lrint): Likewise.
24049         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
24050         <libm-alias-double.h>.
24051         (llround): Define using libm_alias_double.
24052         (lround): Likewise.
24053         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
24054         <libm-alias-double.h>.
24055         (llrint): Define using libm_alias_double.
24056         (lrint): Likewise.
24057         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
24058         <libm-alias-double.h>.
24059         (llround): Define using libm_alias_double.
24060         (lround): Likewise.
24062 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
24064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
24065         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
24066         compat symbol based on llround.
24068         * sysdeps/powerpc/power7/fpu/s_logb.c
24069         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
24070         symbol based on __logb, not on logb.
24071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
24072         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
24073         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
24074         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
24076         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
24077         (rint): Define using libm_alias_double.
24078         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
24079         <libm-alias-double.h>.
24080         (modf): Define using libm_alias_double.
24081         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
24082         <libm-alias-double.h>.
24083         (ceil): Define using libm_alias_double.
24084         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
24085         <libm-alias-double.h>.
24086         (floor): Define using libm_alias_double.
24087         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
24088         <libm-alias-double.h>.
24089         (nearbyint): Define using libm_alias_double.
24090         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
24091         <libm-alias-double.h>.
24092         (rint): Define using libm_alias_double.
24093         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
24094         <libm-alias-double.h>.
24095         (round): Define using libm_alias_double.
24096         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
24097         <libm-alias-double.h>.
24098         (trunc): Define using libm_alias_double.
24099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
24100         <libm-alias-double.h>.
24101         (ceil): Define using libm_alias_double.
24102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
24103         Include <libm-alias-double.h>.
24104         (floor): Define using libm_alias_double.
24105         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
24106         <libm-alias-double.h>.
24107         (modf): Define using libm_alias_double.
24108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
24109         Include <libm-alias-double.h>.
24110         (round): Define using libm_alias_double.
24111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
24112         Include <libm-alias-double.h>.
24113         (trunc): Define using libm_alias_double.
24114         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
24115         <libm-alias-double.h>.
24116         (ceil): Define using libm_alias_double.
24117         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
24118         <libm-alias-double.h>.
24119         (floor): Define using libm_alias_double.
24120         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
24121         <libm-alias-double.h>.
24122         (round): Define using libm_alias_double.
24123         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
24124         <libm-alias-double.h>.
24125         (trunc): Define using libm_alias_double.
24126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
24127         <libm-alias-double.h>.
24128         (ceil): Define using libm_alias_double.
24129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
24130         <libm-alias-double.h>.
24131         (floor): Define using libm_alias_double.
24132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
24133         <libm-alias-double.h>.
24134         (modf): Define using libm_alias_double.
24135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
24136         <libm-alias-double.h>.
24137         (round): Define using libm_alias_double.
24138         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
24139         <libm-alias-double.h>.
24140         (trunc): Define using libm_alias_double.
24141         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
24142         <libm-alias-double.h>.
24143         (ceil): Define using libm_alias_double.
24144         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
24145         <libm-alias-double.h>.
24146         (floor): Define using libm_alias_double.
24147         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
24148         <libm-alias-double.h>.
24149         (nearbyint): Define using libm_alias_double.
24150         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
24151         <libm-alias-double.h>.
24152         (rint): Define using libm_alias_double.
24153         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
24154         <libm-alias-double.h>.
24155         (round): Define using libm_alias_double.
24156         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
24157         <libm-alias-double.h>.
24158         (trunc): Define using libm_alias_double.
24159         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
24160         <libm-alias-double.h>.
24161         (ceil): Define using libm_alias_double.
24162         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
24163         <libm-alias-double.h>.
24164         (floor): Define using libm_alias_double.
24165         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
24166         <libm-alias-double.h>.
24167         (round): Define using libm_alias_double.
24168         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
24169         <libm-alias-double.h>.
24170         (trunc): Define using libm_alias_double.
24172         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
24173         (fabs): Define using libm_alias_double.
24174         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
24175         (fma): Define using libm_alias_double.
24176         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
24177         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
24178         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
24179         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
24181 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24183         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
24185         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
24186         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
24187         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
24189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
24190         due redirect macro.
24192 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
24194         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
24196 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24198         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
24199         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
24200         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
24201         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
24203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
24204         (libm-sysdep_routines): Add s_nearbyintf-generic and
24205         s_nearbyint-generic.
24206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
24207         New file.
24208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
24209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
24210         Likewise.
24211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
24212         Likewise.
24213         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
24214         file.
24215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
24216         Likewise.
24218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
24219         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
24220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
24221         file.
24222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
24223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
24224         Likewise.
24225         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
24226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
24227         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
24229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
24230         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
24231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
24232         file.
24233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
24234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
24235         Likewise.
24236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
24237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
24238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
24240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
24241         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
24242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
24243         file.
24244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
24245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
24246         Likewise.
24247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
24248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
24249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
24251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
24252         (sysdep_calls): New rule.
24253         (sysdep_routines): Use sysdep_calls as base.
24254         (libm-sysdep_routines): Add generic rule for symbols shared with
24255         libc.  Add s_copysign-generic and s_copysign-generic objects.
24256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
24257         New file.
24258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
24259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
24260         Likewise.
24261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
24262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
24263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
24265 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
24267         [BZ #22519]
24268         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
24269         the list of locales to be built for testing.
24270         * localedata/is_IS.UTF-8.in: New file.
24271         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
24272         on iso14651_t1.
24274 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
24276         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
24277         <libm-alias-float.h>.
24278         (fabsf): Define using libm_alias_float.
24280 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
24282         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
24284 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
24286         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
24287         <libm-alias-float.h>.
24288         (fabsf): Define using libm_alias_float.
24289         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
24290         <libm-alias-float.h>.
24291         (lrintf): Define using libm_alias_float.
24292         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
24293         <libm-alias-float.h>.
24294         (rintf): Define using libm_alias_float.
24296         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
24297         <libm-alias-double.h>.
24298         (fabs): Define using libm_alias_double.
24299         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
24300         <libm-alias-double.h>.
24301         (lrint): Define using libm_alias_double.
24302         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
24303         <libm-alias-double.h>.
24304         (rint): Define using libm_alias_double.
24306         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
24307         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
24308         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
24309         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
24310         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
24311         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
24312         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
24313         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
24314         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
24315         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
24316         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
24317         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
24318         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
24319         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
24320         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
24321         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
24322         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
24323         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
24324         s_atan_template.c.
24325         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
24326         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
24327         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
24328         s_ceil_template.c.
24329         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
24330         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
24331         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
24332         s_cos_template.c.
24333         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
24334         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
24335         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
24336         s_expm1_template.c.
24337         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
24338         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
24339         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
24340         s_fabs_template.c.
24341         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
24342         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
24343         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
24344         s_floor_template.c.
24345         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
24346         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
24347         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
24348         s_frexp_template.c.
24349         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
24350         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
24351         s_lrint_template.c.
24352         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
24353         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
24354         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
24355         s_modf_template.c.
24356         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
24357         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
24358         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
24359         s_nearbyint_template.c.
24360         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
24361         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
24362         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
24363         s_remquo_template.c.
24364         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
24365         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
24366         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
24367         s_rint_template.c.
24368         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
24369         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
24370         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
24371         s_sin_template.c.
24372         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
24373         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
24374         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
24375         s_sincos_template.c.
24376         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
24377         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
24378         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
24379         s_tan_template.c.
24380         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
24381         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
24382         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
24383         s_tanh_template.c.
24384         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
24385         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
24386         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
24387         s_trunc_template.c.
24388         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
24389         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
24390         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
24391         s_atan.c instead of including s_atan.c.
24392         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
24393         s_atanf.c instead of including s_atanf.c.
24394         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
24395         s_atanl.c instead of including s_atanl.c.
24396         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
24397         instead of s_atan.c.
24398         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
24399         instead of s_atanf.c.
24400         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
24401         instead of s_atanl.c.
24403         * scripts/update-copyrights: Do not handle intl/plural.c
24404         specially.
24406 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
24408         [BZ #22432]
24409         * configure.ac (BISON): Require to be present.
24410         * configure: Regenerated.
24411         * intl/Makefile (generated): Add plural.c.
24412         [$(BISON) != no]: Make code unconditional.
24413         (plural.c): Change rule to $(objpfx)plural.c.
24414         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
24415         * intl/plural.c: Remove.
24416         * manual/install.texi (Tools for Compilation): Document bison as
24417         required.
24418         * INSTALL: Regenerated.
24420 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
24422         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
24423         <libm-alias-double.h>.
24424         (llrint): Define using libm_alias_double.
24425         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
24426         <libm-alias-float.h>.
24427         (llrintf): Define using libm_alias_float.
24428         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
24429         <libm-alias-ldouble.h>.
24430         (llrintl): Define using libm_alias_ldouble.
24432         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
24433         declare_mgen_alias instead of weak_alias.
24434         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
24435         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
24436         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
24438 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24440         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
24441         Add add_n-generic.
24442         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
24443         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
24444         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
24446         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
24447         Add submul_1-generic.
24448         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
24449         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
24450         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
24452         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
24453         Add addmul_1-generic.
24454         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
24455         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
24456         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
24458         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
24459         Add sub_n-generic.
24460         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
24461         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
24462         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
24464         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
24465         Add mul_1-generic.
24466         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
24467         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
24468         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
24470 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
24472         According to CLDR, collation rules for Serbian and Bosnian
24473         should be the same as for Croatian.
24475         [BZ #22534]
24476         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
24477         and to the list of locales to be built for testing.
24478         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
24479         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
24480         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
24481         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
24483 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
24485         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
24486         to make test case pass.
24487         * localedata/hr_HR.UTF-8.in: Add more test strings.
24489 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
24491         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
24493 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
24495         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
24496         the list of locales to built for testing.
24497         * localedata/hr_HR.UTF-8.in: New file.
24499 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
24501         [BZ #10580]
24502         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
24503         iso14651_t1.
24504         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
24505         CLDR (except use ligatures for the digraphs, CLDR does not use
24506         the ligatures), add first_workday, some fixes in the date and time
24507         formats.
24508         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
24509         for Đ and đ.
24510         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
24511         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
24512         Add int_p_cs_precedes and int_n_cs_precedes.
24513         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
24514         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
24515         LC_MONETARY now).
24516         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
24517         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
24518         name_miss.
24519         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
24520         and lang_lib. Change postal_fmt.
24522 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
24524         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
24525         <setjmp.h>.
24526         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
24527         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
24528         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
24529         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
24530         * sysdeps/generic/setjmpP.h: New file.
24531         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
24532         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
24533         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
24534         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
24535         Add jmp_buf-ssp.sym.
24536         (tests): Add tst-saved_mask-1.
24538 2017-11-30  Arjun Shankar  <arjun@redhat.com>
24540         [BZ #22375]
24541         CVE-2017-17426
24542         * malloc/malloc.c (__libc_malloc): Use checked_request2size
24543         instead of request2size.
24545 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
24547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
24548         (__lllrint): Remove alias.
24549         (lllrint): Likewise.
24550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
24551         (__lllrintf): Likewise.
24552         (lllrintf): Likewise.
24554         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
24555         <libm-alias-float.h>.
24556         (copysignf): Define using libm_alias_float.
24557         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
24558         <libm-alias-float.h>.
24559         (fabsf): Define using libm_alias_float.
24560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
24561         Include <libm-alias-float.h>.
24562         (copysignf): Define using libm_alias_float.
24563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
24564         <libm-alias-float.h>.
24565         (fabsf): Define using libm_alias_float.
24566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
24567         <libm-alias-float.h>.
24568         (fdimf): Define using libm_alias_float.
24569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
24570         <libm-alias-float.h>.
24571         (fmaf): Define using libm_alias_float.
24572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
24573         <libm-alias-float.h>.
24574         (llrintf): Define using libm_alias_float.
24575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
24576         Include <libm-alias-float.h>.
24577         (nearbyintf): Define using libm_alias_float.
24578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
24579         <libm-alias-float.h>.
24580         (rintf): Define using libm_alias_float.
24581         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
24582         <libm-alias-float.h>.
24583         (llrintf): Define using libm_alias_float.
24584         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
24585         <libm-alias-float.h>.
24586         (lrintf): Define using libm_alias_float.
24587         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
24588         <libm-alias-float.h>.
24589         (nearbyintf): Define using libm_alias_float.
24590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
24591         <libm-alias-float.h>.
24592         (rintf): Define using libm_alias_float.
24593         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
24594         <libm-alias-float.h>.
24595         (ceilf): Define using libm_alias_float.
24596         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
24597         <libm-alias-float.h>.
24598         (floorf): Define using libm_alias_float.
24599         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
24600         <libm-alias-float.h>.
24601         (fmaf): Define using libm_alias_float.
24602         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
24603         <libm-alias-float.h>.
24604         (lrintf): Define using libm_alias_float.
24605         (llrintf): Likewise.
24606         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
24607         <libm-alias-float.h>.
24608         (nearbyintf): Define using libm_alias_float.
24609         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
24610         <libm-alias-float.h>.
24611         (rintf): Define using libm_alias_float.
24612         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
24613         <libm-alias-float.h>.
24614         (truncf): Define using libm_alias_float.
24615         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
24616         <libm-alias-float.h>.
24617         (copysignf): Define using libm_alias_float.
24618         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
24619         <libm-alias-float.h>.
24620         (fabsf): Define using libm_alias_float.
24621         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
24622         <libm-alias-float.h>.
24623         (lrintf): Define using libm_alias_float.
24624         (llrintf): Likewise.
24625         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
24626         <libm-alias-float.h>.
24627         (nearbyintf): Define using libm_alias_float.
24628         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
24629         <libm-alias-float.h>.
24630         (rintf): Define using libm_alias_float.
24632 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
24634         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
24635         <libm-alias-double.h>.
24636         (copysign): Define using libm_alias_double.
24637         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
24638         <libm-alias-double.h>.
24639         (fabs): Define using libm_alias_double.
24640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
24641         Include <libm-alias-double.h>.
24642         (copysign): Define using libm_alias_double.
24643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
24644         <libm-alias-double.h>.
24645         (fabs): Define using libm_alias_double.
24646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
24647         <libm-alias-double.h>.
24648         (fdim): Define using libm_alias_double.
24649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
24650         <libm-alias-double.h>.
24651         (fma): Define using libm_alias_double.
24652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
24653         <libm-alias-double.h>.
24654         (llrint): Define using libm_alias_double.
24655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
24656         Include <libm-alias-double.h>.
24657         (nearbyint): Define using libm_alias_double.
24658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
24659         <libm-alias-double.h>.
24660         (rint): Define using libm_alias_double.
24661         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
24662         <libm-alias-double.h>.
24663         (fabs): Define using libm_alias_double.
24664         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
24665         <libm-alias-double.h>.
24666         (llrint): Define using libm_alias_double.
24667         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
24668         <libm-alias-double.h>.
24669         (nearbyint): Define using libm_alias_double.
24670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
24671         <libm-alias-double.h>.
24672         (rint): Define using libm_alias_double.
24673         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
24674         <libm-alias-double.h>.
24675         (ceil): Define using libm_alias_double.
24676         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
24677         <libm-alias-double.h>.
24678         (floor): Define using libm_alias_double.
24679         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
24680         <libm-alias-double.h>.
24681         (fma): Define using libm_alias_double.
24682         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
24683         <libm-alias-double.h>.
24684         (lrint): Define using libm_alias_double.
24685         (llrint): Likewise.
24686         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
24687         <libm-alias-double.h>.
24688         (nearbyint): Define using libm_alias_double.
24689         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
24690         <libm-alias-double.h>.
24691         (rint): Define using libm_alias_double.
24692         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
24693         <libm-alias-double.h>.
24694         (trunc): Define using libm_alias_double.
24695         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
24696         <libm-alias-double.h>.
24697         (copysign): Define using libm_alias_double.
24698         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
24699         <libm-alias-double.h>.
24700         (fabs): Define using libm_alias_double.
24701         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
24702         <libm-alias-double.h>.
24703         (lrint): Define using libm_alias_double.
24704         (llrint): Likewise.
24705         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
24706         <libm-alias-double.h>.
24707         (nearbyint): Define using libm_alias_double.
24708         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
24709         <libm-alias-double.h>.
24710         (rint): Define using libm_alias_double.
24712         [BZ #22229]
24713         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
24714         <math_ldbl_opt.h>.
24715         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
24717         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24718         SPARC --disable-multi-arch glibc variants.
24720         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
24721         <libm-alias-float.h>.
24722         (exp2f): Define using libm_alias_float, or libm_alias_float_other
24723         if [SHARED].
24724         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
24725         <libm-alias-float.h>.
24726         (exp2f): Define using libm_alias_float, or libm_alias_float_other
24727         if [SHARED].
24728         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
24729         <libm-alias-float.h>.
24730         (exp2f): Define using libm_alias_float, or libm_alias_float_other
24731         if [SHARED].
24732         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
24733         <libm-alias-float.h>.
24734         (exp2f): Define using libm_alias_float, or libm_alias_float_other
24735         if [SHARED].
24736         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
24737         <libm-alias-float.h>.
24738         (exp2f): Define using libm_alias_float, or libm_alias_float_other
24739         if [SHARED].
24740         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
24741         <libm-alias-float.h>.
24742         (ceilf): Define using libm_alias_float.
24743         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
24744         <libm-alias-float.h>.
24745         (floorf): Define using libm_alias_float.
24746         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
24747         <libm-alias-float.h>.
24748         (fmaf): Define using libm_alias_float.
24749         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
24750         <libm-alias-float.h>.
24751         (nearbyintf): Define using libm_alias_float.
24752         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
24753         <libm-alias-float.h>.
24754         (rintf): Define using libm_alias_float.
24755         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
24756         <libm-alias-float.h>.
24757         (truncf): Define using libm_alias_float.
24758         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
24759         (copysignf): Define using libm_alias_float.
24760         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
24761         (cosf): Define using libm_alias_float.
24762         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
24763         (fabsf): Define using libm_alias_float.
24764         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
24765         (fmaxf): Define using libm_alias_float.
24766         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
24767         (fminf): Define using libm_alias_float.
24768         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
24769         (llrintf): Define using libm_alias_float.
24770         [!__ILP32__] (lrintf): Likewise.
24771         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
24772         (sincosf): Define using libm_alias_float.
24773         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
24774         (sinf): Define using libm_alias_float.
24775         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
24776         (lrintf): Define using libm_alias_float.
24778         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
24779         <libm-alias-double.h>.
24780         (atan): Define using libm_alias_double.
24781         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
24782         <libm-alias-double.h>.
24783         (ceil): Define using libm_alias_double.
24784         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
24785         <libm-alias-double.h>.
24786         (floor): Define using libm_alias_double.
24787         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
24788         <libm-alias-double.h>.
24789         (fma): Define using libm_alias_double.
24790         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
24791         <libm-alias-double.h>.
24792         (nearbyint): Define using libm_alias_double.
24793         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
24794         <libm-alias-double.h>.
24795         (rint): Define using libm_alias_double.
24796         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
24797         <libm-alias-double.h>.
24798         (sin): Define using libm_alias_double.
24799         (cos): Likewise.
24800         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
24801         <libm-alias-double.h>.
24802         (tan): Define using libm_alias_double.
24803         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
24804         <libm-alias-double.h>.
24805         (trunc): Define using libm_alias_double.
24806         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
24807         (copysign): Define using libm_alias_double.
24808         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
24809         (fabs): Define using libm_alias_double.
24810         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
24811         (fmax): Define using libm_alias_double.
24812         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
24813         (fmin): Define using libm_alias_double.
24814         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
24815         (llrint): Define using libm_alias_double.
24816         [!__ILP32__] (lrint): Likewise.
24817         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
24818         (lrint): Define using libm_alias_double.
24820 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24822         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
24823         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
24824         objects.
24825         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
24826         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
24827         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
24828         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
24829         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
24830         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
24832         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
24833         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
24834         objects.
24835         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
24836         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
24837         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
24838         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
24839         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
24840         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
24842         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
24843         (libm-sysdep_routines): Add s_nearbyint-generic and
24844         s_nearbyintf-generic objects.
24845         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
24846         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
24847         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
24848         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
24849         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
24850         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
24852         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
24853         Add s_finitef-generic and s_finite-generic objects.
24854         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
24855         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
24856         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
24857         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
24858         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
24859         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
24861         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
24862         Add s_isinff-generic and s_isinf-generic objects.
24863         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
24864         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
24865         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
24866         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
24867         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
24868         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
24870         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
24871         Add s_isnanf-generic and s_isnan-generic objects.
24872         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
24873         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
24874         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
24875         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
24876         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
24877         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
24879         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
24880         macro.
24881         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
24882         rule.
24883         (sysdep_routines): Use sysdep_calls as base.
24884         (libm-sysdep_routines): Add generic rule for symbols shared with
24885         libc.  Add s_signbit-generic and s_signbitf-generic objects.
24886         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
24887         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
24888         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
24889         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
24890         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
24891         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
24893 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
24895         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
24896         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
24897         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
24898         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
24899         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
24900         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
24901         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
24902         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
24903         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
24904         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
24905         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
24906         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
24907         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
24908         libm_alias_float_r.
24909         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
24910         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
24911         (logf): Likewise.
24912         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
24913         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
24914         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
24915         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
24916         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
24917         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
24918         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
24919         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
24920         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
24921         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
24922         libm_alias_float.
24923         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
24924         (cosf): Likewise.
24925         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
24926         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
24927         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
24928         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
24929         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
24930         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
24931         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
24932         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
24933         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
24934         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
24935         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
24936         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
24937         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
24938         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
24939         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
24940         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
24941         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
24942         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
24943         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
24944         libm_alias_float.
24945         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
24946         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
24947         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
24948         * sysdeps/ia64/fpu/w_lgammaf_main.c
24949         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
24950         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
24952 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
24953             Alexandre Oliva  <aoliva@redhat.com>
24955         [BZ #17750]
24956         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
24957         * localedata/fr_CA.UTF-8.in: New file with test data for backward
24958         accents sorting.
24959         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
24960         sorting.
24961         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
24962         * localedata/locales/de_DE (LC_COLLATE): Likewise.
24963         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
24964         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
24965         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
24966         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
24967         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
24968         instead of “ifdef DIACRIT_BACKWARD”.
24970 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24972         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
24973         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
24974         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
24975         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
24976         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
24977         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
24978         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
24979         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
24980         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
24981         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
24982         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
24983         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
24984         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
24985         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
24986         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
24987         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
24988         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
24989         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
24990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
24991         ($(have-as-vis3) == yes): Remove conditional.
24992         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
24993         Likewise.
24994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
24995         file.
24996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
24997         file.
24998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
24999         file.
25000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
25001         file.
25002         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
25003         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
25004         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
25005         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
25006         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
25007         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
25008         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
25009         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
25011 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
25013         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
25014         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
25015         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
25016         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
25017         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
25018         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
25019         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
25020         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
25021         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
25022         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
25023         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
25024         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
25025         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
25026         libm_alias_double_r.
25027         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
25028         (log): Likewise.
25029         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
25030         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
25031         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
25032         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
25033         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
25034         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
25035         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
25036         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
25037         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
25038         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
25039         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
25040         libm_alias_double.
25041         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
25042         (cos): Likewise.
25043         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
25044         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
25045         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
25046         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
25047         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
25048         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
25049         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
25050         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
25051         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
25052         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
25053         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
25054         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
25055         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
25056         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
25057         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
25058         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
25059         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
25060         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
25061         libm_alias_double.
25062         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
25063         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
25064         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
25065         * sysdeps/ia64/fpu/w_lgamma_main.c
25066         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
25067         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
25069 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
25071         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
25072         address of $global$ into %dp register earlier.  Use pc-relative
25073         instruction sequence for PIC case.
25075 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
25077         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
25078         (asinhf): Define using libm_alias_float.
25079         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
25080         (atanf): Define using libm_alias_float.
25081         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
25082         (cbrtf): Define using libm_alias_float.
25083         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
25084         (ceilf): Define using libm_alias_float.
25085         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
25086         (copysignf): Define using libm_alias_float.
25087         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
25088         (expm1f): Define using libm_alias_float.
25089         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
25090         (fabsf): Define using libm_alias_float.
25091         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
25092         (floorf): Define using libm_alias_float.
25093         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
25094         (fmaxf): Define using libm_alias_float.
25095         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
25096         (fminf): Define using libm_alias_float.
25097         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
25098         (frexpf): Define using libm_alias_float.
25099         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
25100         (llrintf): Define using libm_alias_float.
25101         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
25102         (logbf): Define using libm_alias_float.
25103         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
25104         (lrintf): Define using libm_alias_float.
25105         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
25106         (nearbyintf): Define using libm_alias_float.
25107         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
25108         (remquof): Define using libm_alias_float.
25109         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
25110         (rintf): Define using libm_alias_float.
25111         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
25112         (truncf): Define using libm_alias_float.
25113         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
25114         <libm-alias-float.h>.
25115         (exp2f): Define using libm_alias_float, or libm_alias_float_other
25116         if [SHARED].
25117         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
25118         <libm-alias-float.h>.
25119         (expf): Define using libm_alias_float, or libm_alias_float_other
25120         if [SHARED].
25121         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
25122         <libm-alias-float.h>.
25123         (log2f): Define using libm_alias_float, or libm_alias_float_other
25124         if [SHARED].
25125         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
25126         <libm-alias-float.h>.
25127         (logf): Define using libm_alias_float, or libm_alias_float_other
25128         if [SHARED].
25129         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
25130         <libm-alias-float.h>.
25131         (powf): Define using libm_alias_float, or libm_alias_float_other
25132         if [SHARED].
25133         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
25134         <libm-alias-float.h>.
25135         (cosf): Define using libm_alias_float.
25136         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
25137         <libm-alias-float.h>.
25138         (sincosf): Define using libm_alias_float.
25139         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
25140         <libm-alias-float.h>.
25141         (sinf): Define using libm_alias_float.
25142         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
25143         (fmaxf): Define using libm_alias_float.
25144         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
25145         (fminf): Define using libm_alias_float.
25146         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
25147         <libm-alias-float.h>.
25148         (fmaf): Define using libm_alias_float.
25150         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
25151         (asinh): Define using libm_alias_double.
25152         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
25153         (atan): Define using libm_alias_double.
25154         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
25155         (cbrt): Define using libm_alias_double.
25156         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
25157         (ceil): Define using libm_alias_double.
25158         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
25159         (copysign): Define using libm_alias_double.
25160         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
25161         (expm1): Define using libm_alias_double.
25162         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
25163         (fabs): Define using libm_alias_double.
25164         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
25165         (fdim): Define using libm_alias_double.
25166         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
25167         (floor): Define using libm_alias_double.
25168         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
25169         (fmax): Define using libm_alias_double.
25170         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
25171         (fmin): Define using libm_alias_double.
25172         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
25173         (frexp): Define using libm_alias_double.
25174         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
25175         (llrint): Define using libm_alias_double.
25176         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
25177         (logb): Define using libm_alias_double.
25178         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
25179         (lrint): Define using libm_alias_double.
25180         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
25181         (nearbyint): Define using libm_alias_double.
25182         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
25183         (remquo): Define using libm_alias_double.
25184         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
25185         (rint): Define using libm_alias_double.
25186         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
25187         (trunc): Define using libm_alias_double.
25188         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
25189         (fmax): Define using libm_alias_double.
25190         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
25191         (fmin): Define using libm_alias_double.
25192         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
25193         (fma): Define using libm_alias_double.
25195 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
25197         [BZ #22370]
25198         * elf/dl-hwcaps.c (ROUND): Removed.
25199         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
25200         and ELF_NOTE_NEXT_OFFSET.
25201         * elf/dl-load.c (ROUND): Removed.
25202         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
25203         * elf/readelflib.c (ROUND): Removed.
25204         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
25205         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
25206         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
25207         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
25209 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
25211         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
25212         [!__fmaf] (fmaf): Define using libm_alias_float.
25214         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
25215         [!__fma] (fma): Define using libm_alias_double.
25216         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
25218 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
25220         [BZ #22336]
25221         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
25222         and implement the collation rules for cs from CLDR on top of that.
25223         * Makefile: Add cs_CZ.UTF-8 to test-input.
25224         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
25226 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
25228         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
25230 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
25231             Icarus Sparry  <icarus.w.sparry@intel.com>
25233         * benchtests/Makefile:Add BENCHSET to allow subsets of
25234         benchmarks to be run.
25235         * benchtests/README: Add documentation for: Running subsets of
25236         benchmarks.
25238 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
25240         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
25241         range of tests names.
25243         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
25244         result from property and remove "max", min" and "mean" from
25245         required properties based on benchtests/bench-skeleton.c.
25247 2017-11-28  Florian Weimer  <fweimer@redhat.com>
25249         [BZ #20826]
25250         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
25251         due to Internet requirement.
25252         * posix/Makefile (tests): Remove tst-getaddrinfo4,
25253         tst-getaddrinfo5.
25254         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
25256 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25258         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
25259         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
25260         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
25261         (sysdep_routines): Add memset-ultra1.
25262         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
25263         file.
25264         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
25265         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
25266         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
25267         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
25268         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
25269         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
25270         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
25271         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25273         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
25274         file.
25275         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
25276         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
25277         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
25278         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
25279         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
25280         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
25281         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
25282         macro.
25283         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
25284         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
25285         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
25286         (sysdep_routines): Add memcpy-ultra1.
25287         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
25288         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
25290 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
25292         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
25293         (cfloat_versions): Take function argument without trailing 'f'.
25294         Call libm_alias_float_other.
25295         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
25296         * sysdeps/alpha/fpu/cargf.c: Likewise.
25297         * sysdeps/alpha/fpu/cimagf.c: Likewise.
25298         * sysdeps/alpha/fpu/conjf.c: Likewise.
25299         * sysdeps/alpha/fpu/crealf.c: Likewise.
25300         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
25301         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
25302         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
25303         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
25304         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
25305         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
25306         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
25307         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
25308         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
25309         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
25310         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
25311         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
25312         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
25313         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
25314         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
25315         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
25316         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
25317         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
25318         (clog10f): Use libm_alias_float_other.
25319         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
25320         (ceilf): Define using libm_alias_float.
25321         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
25322         (copysignf): Define using libm_alias_float.
25323         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
25324         (fabsf): Define using libm_alias_float.
25325         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
25326         (floorf): Define using libm_alias_float.
25327         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
25328         (fmaxf): Define using libm_alias_float.
25329         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
25330         (fminf): Define using libm_alias_float.
25331         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
25332         (lrintf): Define using libm_alias_float.
25333         (llrintf): Likewise.
25334         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
25335         (lroundf): Define using libm_alias_float.
25336         (llroundf): Likewise.
25337         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
25338         (rintf): Define using libm_alias_float.
25339         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
25340         (truncf): Define using libm_alias_float.
25342         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
25343         (ceilf): Define using libm_alias_float.
25344         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
25345         (floorf): Define using libm_alias_float.
25346         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
25347         (fmaf): Define using libm_alias_float.
25348         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
25349         (fmaxf): Define using libm_alias_float.
25350         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
25351         (fminf): Define using libm_alias_float.
25352         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
25353         (llrintf): Define using libm_alias_float.
25354         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
25355         (llroundf): Define using libm_alias_float.
25356         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
25357         (lrintf): Define using libm_alias_float.
25358         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
25359         (lroundf): Define using libm_alias_float.
25360         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
25361         <libm-alias-float.h>.
25362         (nearbyintf): Define using libm_alias_float.
25363         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
25364         (rintf): Define using libm_alias_float.
25365         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
25366         (roundf): Define using libm_alias_float.
25367         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
25368         (truncf): Define using libm_alias_float.
25370         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
25371         (ceil): Define using libm_alias_double.
25372         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
25373         (copysign): Define using libm_alias_double.
25374         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
25375         (fabs): Define using libm_alias_double.
25376         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
25377         (floor): Define using libm_alias_double.
25378         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
25379         (fmax): Define using libm_alias_double.
25380         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
25381         (fmin): Define using libm_alias_double.
25382         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
25383         (lrint): Define using libm_alias_double.
25384         (llrint): Likewise.
25385         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
25386         (lround): Define using libm_alias_double.
25387         (llround): Likewise.
25388         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
25389         (rint): Define using libm_alias_double.
25390         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
25391         (trunc): Define using libm_alias_double.
25393         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25394         (libm_alias_double_r): Add semicolon after weak_alias call.
25396 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
25398         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
25399         (ceil): Define using libm_alias_double.
25400         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
25401         (floor): Define using libm_alias_double.
25402         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
25403         (fma): Define using libm_alias_double.
25404         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
25405         (fmax): Define using libm_alias_double.
25406         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
25407         (fmin): Define using libm_alias_double.
25408         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
25409         (llrint): Define using libm_alias_double.
25410         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
25411         (llround): Define using libm_alias_double.
25412         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
25413         (lrint): Define using libm_alias_double.
25414         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
25415         (lround): Define using libm_alias_double.
25416         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
25417         (nearbyint): Define using libm_alias_double.
25418         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
25419         (rint): Define using libm_alias_double.
25420         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
25421         (round): Define using libm_alias_double.
25422         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
25423         (trunc): Define using libm_alias_double.
25425 2017-11-27  Florian Weimer  <fweimer@redhat.com>
25427         * sysdeps/unix/sysv/linux/mlock2.c: New file.
25428         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
25429         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
25430         (tests): Add tst-mlock2.
25431         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
25432         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
25433         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
25434         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
25435         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
25436         for mlock.  Document mlock2.
25438 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
25440         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
25441         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
25442         Likewise.
25443         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
25444         Likewise.
25445         * sysdeps/x86/Makeconfig: New file.
25446         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
25447         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
25448         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
25449         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
25450         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
25451         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
25452         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
25453         Likewise.
25454         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
25455         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
25456         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
25457         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
25458         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
25459         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
25460         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
25461         * manual/math.texi (Mathematics): Document support for _Float64x.
25462         * math/Versions (GLIBC_2.27): Add _Float64x functions.
25463         * stdlib/Versions (GLIBC_2.27): Likewise.
25464         * wcsmbs/Versions (GLIBC_2.27): Likewise.
25465         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25466         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25467         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25468         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25469         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25470         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25471         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25472         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25473         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25474         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25475         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25477         Likewise.
25478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25479         Likewise.
25480         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25481         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25482         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25483         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25484         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25485         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25486         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25487         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25488         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25489         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25490         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25491         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25492         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25493         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25495 2017-11-27  Andreas Schwab  <schwab@suse.de>
25497         * elf/Makefile (dl-routines): Add dl-sort-maps.
25498         * elf/dl-sort-maps.c: New file.
25499         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
25500         (_dl_sort_maps): Declare.
25501         * elf/dl-fini.c (_dl_sort_fini): Remove.
25502         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
25503         * elf/dl-close.c (_dl_close_worker): Likewise.
25504         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
25505         open-coding it.
25506         * elf/dl-open.c (dl_open_worker): Likewise.
25508 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
25510         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
25511         using libm_alias_float128.
25512         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
25513         Likewise.
25514         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
25515         Likewise.
25516         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
25517         (setpayloadsigf128): Likewise.
25518         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
25519         Likewise.
25520         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
25521         Likewise.
25523         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
25524         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
25525         -mfloat128 to CFLAGS.
25526         ($(foreach
25527         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
25528         Likewise.
25529         (CFLAGS-libm-test-support-float64x.c): New variable.
25530         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
25531         $(f128-loader-link) to gnulib-tests.
25533         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
25534         (libm_alias_float128_other_r): If
25535         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
25536         alias.
25537         (libm_alias_float128_r): Add semicolon after weak_alias call.
25538         * sysdeps/generic/libm-alias-ldouble.h
25539         (libm_alias_ldouble_other_r_f128): New macro.
25540         (libm_alias_ldouble_other_r_f64x): Likewise.
25541         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
25542         and libm_alias_ldouble_other_r_f64x.
25543         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
25544         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25545         (libm_alias_ldouble_other_r_f128): New macro.
25546         (libm_alias_ldouble_other_r_f64x): Likewise.
25547         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
25548         and libm_alias_ldouble_other_r_f64x.
25550         * stdlib/strfroml.c: Always include <stdlib.h>.
25551         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
25552         undefine as macro and define as weak alias.
25553         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
25554         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
25555         <stdlib.h>.
25556         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
25557         Define and later undefine as macro and define as weak alias.
25559         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
25560         Define and later undefine as macro.  Define as weak alias if
25561         [!USE_WIDE_CHAR].
25562         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
25563         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
25564         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
25565         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
25566         Define and later undefine as macro.  Define as weak alias if
25567         [!USE_WIDE_CHAR].
25568         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
25569         Define and later undefine as macro.  Define as weak alias if
25570         [USE_WIDE_CHAR].
25571         * sysdeps/ieee754/float128/strtof128_l.c
25572         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
25573         Define and later undefine as macro.  Define as weak alias if
25574         [!USE_WIDE_CHAR].
25575         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
25576         Define and later undefine as macro.  Define as weak alias if
25577         [USE_WIDE_CHAR].
25578         * sysdeps/ieee754/ldbl-128/strtold_l.c
25579         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
25580         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
25581         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
25582         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
25583         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
25584         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
25585         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
25586         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
25587         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
25588         * sysdeps/ieee754/ldbl-96/strtold_l.c
25589         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
25590         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
25591         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
25592         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
25594         * math/test-float64x.h: New file.
25595         * math/Makefile (type-float64x-yes): New variable.
25596         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
25598         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
25599         function-like macro.
25600         (min_of_type_): Likewise.
25601         (min_of_type_l): Likewise.
25602         (min_of_type_f128): Likewise.
25603         (min_of_type): Pass () as last argument of __MATH_TG.
25605         * stdlib/tst-strtod-round-skeleton.c
25606         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
25607         headers.
25609         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
25610         for combinations of long double with _Float64 and _Float64x.
25612         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
25613         (__DECL_SIMD_cosf32): Likewise.
25614         (__DECL_SIMD_cosf64): Likewise.
25615         (__DECL_SIMD_cosf32x): Likewise.
25616         (__DECL_SIMD_cosf64x): Likewise.
25617         (__DECL_SIMD_cosf128x): Likewise.
25618         (__DECL_SIMD_sinf16): Likewise.
25619         (__DECL_SIMD_sinf32): Likewise.
25620         (__DECL_SIMD_sinf64): Likewise.
25621         (__DECL_SIMD_sinf32x): Likewise.
25622         (__DECL_SIMD_sinf64x): Likewise.
25623         (__DECL_SIMD_sinf128x): Likewise.
25624         (__DECL_SIMD_sincosf16): Likewise.
25625         (__DECL_SIMD_sincosf32): Likewise.
25626         (__DECL_SIMD_sincosf64): Likewise.
25627         (__DECL_SIMD_sincosf32x): Likewise.
25628         (__DECL_SIMD_sincosf64x): Likewise.
25629         (__DECL_SIMD_sincosf128x): Likewise.
25630         (__DECL_SIMD_logf16): Likewise.
25631         (__DECL_SIMD_logf32): Likewise.
25632         (__DECL_SIMD_logf64): Likewise.
25633         (__DECL_SIMD_logf32x): Likewise.
25634         (__DECL_SIMD_logf64x): Likewise.
25635         (__DECL_SIMD_logf128x): Likewise.
25636         (__DECL_SIMD_expf16): Likewise.
25637         (__DECL_SIMD_expf32): Likewise.
25638         (__DECL_SIMD_expf64): Likewise.
25639         (__DECL_SIMD_expf32x): Likewise.
25640         (__DECL_SIMD_expf64x): Likewise.
25641         (__DECL_SIMD_expf128x): Likewise.
25642         (__DECL_SIMD_powf16): Likewise.
25643         (__DECL_SIMD_powf32): Likewise.
25644         (__DECL_SIMD_powf64): Likewise.
25645         (__DECL_SIMD_powf32x): Likewise.
25646         (__DECL_SIMD_powf64x): Likewise.
25647         (__DECL_SIMD_powf128x): Likewise.
25649         * stdlib/Versions (libc): Move entries for wcstof128 and
25650         wcstof128_l to ....
25651         * wcsmbs/Versions (libc): ... here.
25652         Include <float128-abi.h>.
25654 2017-11-24  Florian Weimer  <fweimer@redhat.com>
25656         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25657         bits/mman-shared.h.
25658         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
25659         <bits/mman-shared.h>.
25660         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
25661         to ...
25662         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
25663         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
25664         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
25665         <bits/mman-shared.h>.
25667 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25669         [BZ #22457]
25670         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
25671         posix_memalign/free.
25672         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
25674 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
25676         [BZ #22469]
25677         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
25678         and implement the collation rules for pl from CLDR on top of that.
25679         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
25680         of locales to be built for testing.
25681         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
25683 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
25685         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
25686         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
25687         libm_alias_ldouble_other.
25688         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
25689         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
25690         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
25691         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
25692         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
25693         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
25694         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
25695         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
25696         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
25697         libm_alias_ldouble_r.
25698         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
25699         libm_alias_ldouble_other.
25700         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
25701         (log10l): Likewise.
25702         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
25703         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
25704         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
25705         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
25706         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
25707         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
25708         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
25709         (atan2l): Likewise.
25710         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
25711         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
25712         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
25713         libm_alias_ldouble.
25714         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
25715         (cosl): Likewise.
25716         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
25717         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
25718         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
25719         (expl): Likewise.
25720         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
25721         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
25722         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
25723         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
25724         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
25725         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
25726         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
25727         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
25728         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
25729         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
25730         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
25731         libm_alias_ldouble.
25732         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
25733         libm_alias_ldouble_other.
25734         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
25735         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
25736         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
25737         libm_alias_ldouble.
25738         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
25739         libm_alias_ldouble_other.
25740         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
25741         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
25742         * sysdeps/ia64/fpu/w_lgammal_main.c
25743         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
25744         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
25746 2017-11-23  Florian Weimer  <fweimer@redhat.com>
25748         * malloc/malloc.c (tcache_thread_shutdown): Rename from
25749         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
25750         alike.  Remove freeres marker.
25751         * malloc/arena.c (arena_thread_freeres): Call
25752         tcache_thread_shutdown.
25754 2017-11-23  Florian Weimer  <fweimer@redhat.com>
25756         [BZ #22459]
25757         Export nscd hash function as __nss_hash.
25758         * include/nss.h (__nss_hash): Declare.
25759         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
25760         symbol.
25761         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
25762         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
25763         of __nscd_hash.
25764         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
25765         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
25766         * nss/Makefiles (routines): Add nss_hash.
25767         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
25768         * nss/nss_hash.c: Rename from nis/nis_hash.c.
25769         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
25770         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
25772 2017-11-23  Florian Weimer  <fweimer@redhat.com>
25774         [BZ #22478]
25775         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
25776         Return error code, not -1.
25777         * signal/tst-sigwait-eintr.c: New file.
25778         * signal/Makefile (tests): Add tst-sigwait-eintr.
25780 2017-11-23  Florian Weimer  <fweimer@redhat.com>
25782         Linux: Add memfd_create system call wrapper
25783         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
25784         tst-memfd_create.
25785         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
25786         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
25787         [__USE_GNU] (memfd_create): Declare.
25788         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
25789         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
25790         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
25791         * sysdeps/unix/sysv/linux/**.abilist: Update.
25792         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
25794 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
25796         * localedata/gen-locale.sh: Fix typo in variable name.
25798         * resolv/res_debug.c (p_secstodate): Condition definition on
25799         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
25800         directly as __p_secstodate, and as a compat symbol.  Do not use
25801         libresolv_hidden_def.
25802         * resolv/resolv.h (p_secstodate): Remove macro and function
25803         declaration.
25804         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
25805         using p_secstodate.
25806         * include/resolv.h (__p_secstodate): Do not use
25807         libresolv_hidden_proto.
25808         * resolv/Makefile (tests): Move tst-p_secstodate to ....
25809         (tests-internal): ... here.
25810         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
25811         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
25812         and declare and use __p_secstodate and use compat_symbol_reference
25813         in that case.
25814         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
25815         implementation returning 77.
25817         [BZ #22463]
25818         * resolv/res_debug.c: Include <libc-diag.h>.
25819         (p_secstodate): Assert time_t at least as wide as u_long.  On
25820         overflow, use integer seconds since the epoch as output, or use
25821         "<overflow>" as output and set errno to EOVERFLOW if integer
25822         seconds since the epoch would be 14 or more characters.
25823         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
25824         for sprintf call.
25825         * resolv/tst-p_secstodate.c: New file.
25826         * resolv/Makefile (tests): Add tst-p_secstodate.
25827         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
25829         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
25830         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
25831         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
25833 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
25835         * posix/regcomp.c (init_word_char): Add comments.
25837 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
25839         [BZ #22447]
25840         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
25841         strlen to compute length of ut_user and set trailing NUL byte of
25842         result explicitly.
25844 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
25846         [BZ #15537]
25847         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
25848         using “copy "iso14651_t1"” and then implementing the
25849         collation rules for lv from CLDR on top of that.
25850         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
25851         of locales to be built for testing.
25852         * lv_LV.UTF-8.in: New file with test data to test the Latvian
25853         sorting.
25855 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
25857         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
25858         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
25859         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
25860         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
25861         [__USE_MISC] (MADV_HWPOISON): New macro.
25862         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
25864 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25866         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
25867         -Wmissing-braces on GCC 4.9.
25869 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
25871         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
25872         * sysdeps/s390/s390-32/start.S (_start): Likewise
25873         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
25874         (thread_start): Likewise.
25875         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
25876         (thread_start): Likewise.
25877         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
25878         (__makecontext_ret): Likewise.
25879         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
25880         (__makecontext_ret): Likewise.
25882 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
25884         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
25885         __wcschrnul): Remove attribute_hidden.
25887 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25889         regex: don't assume uint64_t or uint32_t
25890         This avoids -Werror=overflow errors for 32-bit systems in
25891         the 64-bit case.  Problem reported by Joseph Myers in:
25892         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
25893         Also, when this code is used in Gnulib it ports to platforms
25894         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
25895         them, and on some 32-bit compilers there is no uint64_t.
25896         Problem reported by Gianluigi Tiesi in:
25897         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
25898         * posix/regcomp.c (init_word_char): Don't assume that the types
25899         uint64_t and uint32_t exist.  Adapted from Gnulib patch
25900         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
25901         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
25903 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
25905         * sysdeps/aarch64/memset-reg.h: New file.
25906         * sysdeps/aarch64/memset.S: Use it.
25907         (__memset): Rename to MEMSET macro.
25908         [ZVA_MACRO]: Use zva_macro.
25909         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
25910         Add memset_generic and memset_falkor.
25911         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25912         (__libc_ifunc_impl_list): Add memset ifuncs.
25913         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
25914         local variable zva_size.
25915         * sysdeps/aarch64/multiarch/memset.c: New file.
25916         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
25917         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
25918         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
25919         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
25920         (DCZID_DZP_MASK): New macro.
25921         (DCZID_BS_MASK): Likewise.
25922         (init_cpu_features): Read and set zva_size.
25923         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
25924         (struct cpu_features): New member zva_size.
25926         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
25927         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
25928         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
25930         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
25931         backwards.  Fix timing computation.
25932         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
25933         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
25934         on memset by N at a time.  Fix timing computation.
25936 2017-11-20  Florian Weimer  <fweimer@redhat.com>
25938         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
25939         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
25941 2017-11-19  Florian Weimer  <fweimer@redhat.com>
25943         manual: Document mprotect
25944         * manual/memory.texi (Memory Protection): New section.
25945         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
25946         documentation of PROT_* flags and reference the Memory Protection
25947         section instead.
25949 2017-11-19  Florian Weimer  <fweimer@redhat.com>
25951         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
25952         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
25953         (Scatter-Gather): ... to here.  Remove misleading comment.
25955 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
25957         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
25958         style.
25960         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
25961         when /proc/<pid>/setgroups does not exist.
25963 2017-11-18  Florian Weimer  <fweimer@redhat.com>
25965         * sysdeps/unix/sysv/linux/tst-ttyname.c
25966         (become_root_in_mount_ns): Remove.
25967         (do_in_chroot_1): Call support_enter_mount_namespace.
25968         (do_in_chroot_2): Likewise.
25969         (do_test): Call support_become_root early.
25971 2017-11-18  Florian Weimer  <fweimer@redhat.com>
25973         * support/namespace.h (support_enter_mount_namespace): Declare.
25974         * support/support_enter_mount_namespace.c: New file.
25975         * support/Makefile (libsupport-routines): Add
25976         support_enter_mount_namespace.
25978 2017-11-18  Florian Weimer  <fweimer@redhat.com>
25980         * support/temp_file.c (support_create_temp_directory): Use
25981         test_dir and do not rely on the presence of the XXXXXX suffix.
25982         * support/temp_file.h (support_create_temp_directory): Update
25983         comment.
25984         * support/tst-xreadlink.c (do_test): Adjust.
25985         * support/support_chroot.c (support_chroot_create): Likewise.
25987 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25989         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
25990         macro.
25991         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
25992         htm-no-suspend.
25994 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
25996         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
25997         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
25998         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
25999         (ceill): Define using libm_alias_ldouble.
26000         * sysdeps/x86_64/fpu/s_copysignl.S: Include
26001         <libm-alias-ldouble.h>.
26002         (copysignl): Define using libm_alias_ldouble.
26003         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
26004         (fabsl): Define using libm_alias_ldouble.
26005         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
26006         (floorl): Define using libm_alias_ldouble.
26007         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
26008         (fmaxl): Define using libm_alias_ldouble.
26009         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
26010         (fminl): Define using libm_alias_ldouble.
26011         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
26012         (llrintl): Define using libm_alias_ldouble.
26013         (lrintl): Likewise.
26014         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
26015         <libm-alias-ldouble.h>.
26016         (nearbyintl): Define using libm_alias_ldouble.
26017         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
26018         (truncl): Define using libm_alias_ldouble.
26019         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
26020         <libm-alias-ldouble.h>.
26021         (lrintl): Define using libm_alias_ldouble.
26023         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
26024         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
26025         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
26026         (asinhl): Define using libm_alias_ldouble.
26027         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
26028         (atanl): Define using libm_alias_ldouble.
26029         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
26030         (cbrtl): Define using libm_alias_ldouble.
26031         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
26032         (ceill): Define using libm_alias_ldouble.
26033         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
26034         (copysignl): Define using libm_alias_ldouble.
26035         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
26036         (fabsl): Define using libm_alias_ldouble.
26037         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
26038         (floorl): Define using libm_alias_ldouble.
26039         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
26040         (fmaxl): Define using libm_alias_ldouble.
26041         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
26042         (fminl): Define using libm_alias_ldouble.
26043         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
26044         (frexpl): Define using libm_alias_ldouble.
26045         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
26046         (llrintl): Define using libm_alias_ldouble.
26047         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
26048         (logbl): Define using libm_alias_ldouble.
26049         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
26050         (lrintl): Define using libm_alias_ldouble.
26051         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
26052         (nearbyintl): Define using libm_alias_ldouble.
26053         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
26054         (nextafterl): Define using libm_alias_ldouble.
26055         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
26056         (remquol): Define using libm_alias_ldouble.
26057         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
26058         (rintl): Define using libm_alias_ldouble.
26059         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
26060         (truncl): Define using libm_alias_ldouble.
26061         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
26062         (fmaxl): Define using libm_alias_ldouble.
26063         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
26064         (fminl): Define using libm_alias_ldouble.
26066         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
26067         to C syntax instead of availability and properties of types.
26068         * bits/floatn.h [!__ASSEMBLER]: Likewise.
26069         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
26070         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
26071         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
26072         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
26073         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
26075 2017-11-17  Florian Weimer  <fweimer@redhat.com>
26077         support_become_root: Enable file creation in namespaces.
26078         * support/support_become_root.c (setup_mapping): New function.
26079         (support_become_root): Call it.
26081 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
26083         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
26084         macro.
26086 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26088         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
26089         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
26091 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
26093         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
26095         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
26096         version to 4.14.
26098 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26100         * INSTALL: Fix botched up regeneration.
26102         * NEWS: Update sourceare link to https.
26103         * configure.ac: Likewise.
26104         * crypt/md5test-giant.c: Likewise.
26105         * dlfcn/bug-atexit1.c: Likewise.
26106         * dlfcn/bug-atexit2.c: Likewise.
26107         * localedata/README: Likewise.
26108         * malloc/tst-mallocfork.c: Likewise.
26109         * manual/install.texi: Likewise.
26110         * nptl/tst-pthread-getattr.c: Likewise.
26111         * stdio-common/tst-fgets.c: Likewise.
26112         * stdio-common/tst-fwrite.c: Likewise.
26113         * sunrpc/Makefile: Likewise.
26114         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
26115         * wcsmbs/tst-mbrtowc2.c: Likewise.
26116         * configure: Regenerate.
26117         * INSTALL: Regenerate.
26119 2017-11-15  Martin Sebor  <msebor@redhat.com>
26121         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
26122         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
26123         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
26125 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
26127         [BZ #22145]
26128         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
26129         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
26131         [BZ #22145]
26132         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
26133         Defer is_pty check until end of the function.
26134         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
26136         [BZ #22145]
26137         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
26138         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
26139         (ttyname): Likewise.
26140         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
26141         (__ttyname_r): Likewise.
26143         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
26144         int to bool.
26146         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
26148         * manual/terminal.texi (Is It a Terminal):
26149         Mention ENODEV for ttyname and ttyname_r.
26151 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
26153         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
26154         constant and macro.
26156         * sysdeps/unix/sysv/linux/bits/mman-linux.h
26157         [__USE_MISC] (MADV_WIPEONFORK): New macro.
26158         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
26159         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
26160         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
26161         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
26163 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26165         * signal/sigrelse.c (sigrelse): Optimize implementation.
26167         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
26168         (__sigpause): Rely on __sigsuspend to implement single thread
26169         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
26171 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
26173         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
26174         kernel version to 4.14.
26176 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
26178         [BZ #22442]
26179         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
26180         Check if ifname is too long.
26182 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
26184         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
26186 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
26188         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
26189         was accidentally lost.
26191 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
26193         * localedata/locales/az_IR: Add standard copyright header.
26195 2017-11-15  Florian Weimer  <fweimer@redhat.com>
26197         [BZ #22439]
26198         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
26199         not just the top one.  Output a new "subheaps" statistic.
26201 2017-11-15  Florian Weimer  <fweimer@redhat.com>
26203         [BZ #22408]
26204         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
26205         under the per-arena lock.
26206         * malloc/Makefile (tests): Add tst-malloc_info.
26207         (tst-malloc_info): Link with libpthread.
26208         * malloc/tst-malloc_info.c: New file.
26210 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
26212         [BZ #21660]
26213         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
26214         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
26215         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
26216         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
26217         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
26218         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
26219         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
26220         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
26221         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
26222         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
26223         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
26224         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
26225         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
26226         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
26227         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
26228         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
26229         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
26230         (__floating_type): Likewise.
26231         (__real_integer_type): Likewise.
26232         (__complex_integer_type): Likewise.
26233         (__expr_is_real): Likewise.
26234         (__tgmath_real_type_sub): Likewise.
26235         (__tgmath_real_type): Likewise.
26236         (__tgmath_complex_type_sub): Likewise.
26237         (__tgmath_complex_type): Likewise.
26238         (__TGMATH_F128): Likewise.
26239         (__TGMATH_CF128): Likewise.
26240         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
26241         new macros.
26242         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
26243         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
26244         Likewise.
26245         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
26246         Likewise.
26247         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
26248         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
26249         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
26250         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
26251         Likewise.
26252         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
26253         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
26254         Likewise.
26255         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
26256         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
26257         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
26258         Likewise.
26259         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
26260         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
26261         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
26262         (cimag): Likewise.
26263         (creal): Likewise.
26265 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
26267         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
26268         for stpncpy calls for GCC 8.
26269         (test_strncat): Disable -Wstringop-truncation warning for strncat
26270         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
26271         strncat call for GCC 7.
26272         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
26273         calls for GCC 8.
26274         (test_memcmp): Use memcpy instead of strncpy for calls not copying
26275         trailing NUL.
26277         * string/bug-strncat1.c: Include <libc-diag.h>.
26278         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
26280 2017-11-13  Claude Paroz  <claude@2xlibre.net>
26282         [BZ #22387]
26283         * localedata/locales/aa_DJ: Improved readibility by replacing
26284         <Uxxxx> sequences in the ASCII printable range by their ASCII
26285         character equivalents.
26286         * localedata/locales/aa_ER: Likewise.
26287         * localedata/locales/aa_ER@saaho: Likewise.
26288         * localedata/locales/aa_ET: Likewise.
26289         * localedata/locales/af_ZA: Likewise.
26290         * localedata/locales/agr_PE: Likewise.
26291         * localedata/locales/ak_GH: Likewise.
26292         * localedata/locales/am_ET: Likewise.
26293         * localedata/locales/anp_IN: Likewise.
26294         * localedata/locales/ar_AE: Likewise.
26295         * localedata/locales/ar_BH: Likewise.
26296         * localedata/locales/ar_DZ: Likewise.
26297         * localedata/locales/ar_EG: Likewise.
26298         * localedata/locales/ar_IN: Likewise.
26299         * localedata/locales/ar_IQ: Likewise.
26300         * localedata/locales/ar_JO: Likewise.
26301         * localedata/locales/ar_KW: Likewise.
26302         * localedata/locales/ar_LB: Likewise.
26303         * localedata/locales/ar_LY: Likewise.
26304         * localedata/locales/ar_MA: Likewise.
26305         * localedata/locales/ar_OM: Likewise.
26306         * localedata/locales/ar_QA: Likewise.
26307         * localedata/locales/ar_SA: Likewise.
26308         * localedata/locales/ar_SD: Likewise.
26309         * localedata/locales/ar_SS: Likewise.
26310         * localedata/locales/ar_SY: Likewise.
26311         * localedata/locales/ar_TN: Likewise.
26312         * localedata/locales/ar_YE: Likewise.
26313         * localedata/locales/as_IN: Likewise.
26314         * localedata/locales/ast_ES: Likewise.
26315         * localedata/locales/ayc_PE: Likewise.
26316         * localedata/locales/az_AZ: Likewise.
26317         * localedata/locales/az_IR: Likewise.
26318         * localedata/locales/be_BY: Likewise.
26319         * localedata/locales/be_BY@latin: Likewise.
26320         * localedata/locales/bem_ZM: Likewise.
26321         * localedata/locales/ber_DZ: Likewise.
26322         * localedata/locales/ber_MA: Likewise.
26323         * localedata/locales/bg_BG: Likewise.
26324         * localedata/locales/bhb_IN: Likewise.
26325         * localedata/locales/bho_IN: Likewise.
26326         * localedata/locales/bi_VU: Likewise.
26327         * localedata/locales/bn_BD: Likewise.
26328         * localedata/locales/bn_IN: Likewise.
26329         * localedata/locales/bo_CN: Likewise.
26330         * localedata/locales/bo_IN: Likewise.
26331         * localedata/locales/br_FR: Likewise.
26332         * localedata/locales/brx_IN: Likewise.
26333         * localedata/locales/bs_BA: Likewise.
26334         * localedata/locales/byn_ER: Likewise.
26335         * localedata/locales/ca_AD: Likewise.
26336         * localedata/locales/ca_ES: Likewise.
26337         * localedata/locales/ca_FR: Likewise.
26338         * localedata/locales/ca_IT: Likewise.
26339         * localedata/locales/ce_RU: Likewise.
26340         * localedata/locales/chr_US: Likewise.
26341         * localedata/locales/cmn_TW: Likewise.
26342         * localedata/locales/crh_UA: Likewise.
26343         * localedata/locales/cs_CZ: Likewise.
26344         * localedata/locales/csb_PL: Likewise.
26345         * localedata/locales/cv_RU: Likewise.
26346         * localedata/locales/cy_GB: Likewise.
26347         * localedata/locales/da_DK: Likewise.
26348         * localedata/locales/de_AT: Likewise.
26349         * localedata/locales/de_BE: Likewise.
26350         * localedata/locales/de_CH: Likewise.
26351         * localedata/locales/de_DE: Likewise.
26352         * localedata/locales/de_IT: Likewise.
26353         * localedata/locales/de_LI: Likewise.
26354         * localedata/locales/de_LU: Likewise.
26355         * localedata/locales/doi_IN: Likewise.
26356         * localedata/locales/dv_MV: Likewise.
26357         * localedata/locales/dz_BT: Likewise.
26358         * localedata/locales/el_CY: Likewise.
26359         * localedata/locales/el_GR: Likewise.
26360         * localedata/locales/en_AG: Likewise.
26361         * localedata/locales/en_AU: Likewise.
26362         * localedata/locales/en_BW: Likewise.
26363         * localedata/locales/en_CA: Likewise.
26364         * localedata/locales/en_DK: Likewise.
26365         * localedata/locales/en_GB: Likewise.
26366         * localedata/locales/en_HK: Likewise.
26367         * localedata/locales/en_IE: Likewise.
26368         * localedata/locales/en_IL: Likewise.
26369         * localedata/locales/en_IN: Likewise.
26370         * localedata/locales/en_NG: Likewise.
26371         * localedata/locales/en_NZ: Likewise.
26372         * localedata/locales/en_PH: Likewise.
26373         * localedata/locales/en_SG: Likewise.
26374         * localedata/locales/en_US: Likewise.
26375         * localedata/locales/en_ZA: Likewise.
26376         * localedata/locales/en_ZM: Likewise.
26377         * localedata/locales/en_ZW: Likewise.
26378         * localedata/locales/eo: Likewise.
26379         * localedata/locales/es_AR: Likewise.
26380         * localedata/locales/es_BO: Likewise.
26381         * localedata/locales/es_CL: Likewise.
26382         * localedata/locales/es_CO: Likewise.
26383         * localedata/locales/es_CR: Likewise.
26384         * localedata/locales/es_CU: Likewise.
26385         * localedata/locales/es_DO: Likewise.
26386         * localedata/locales/es_EC: Likewise.
26387         * localedata/locales/es_ES: Likewise.
26388         * localedata/locales/es_GT: Likewise.
26389         * localedata/locales/es_HN: Likewise.
26390         * localedata/locales/es_MX: Likewise.
26391         * localedata/locales/es_NI: Likewise.
26392         * localedata/locales/es_PA: Likewise.
26393         * localedata/locales/es_PE: Likewise.
26394         * localedata/locales/es_PR: Likewise.
26395         * localedata/locales/es_PY: Likewise.
26396         * localedata/locales/es_SV: Likewise.
26397         * localedata/locales/es_US: Likewise.
26398         * localedata/locales/es_UY: Likewise.
26399         * localedata/locales/es_VE: Likewise.
26400         * localedata/locales/et_EE: Likewise.
26401         * localedata/locales/eu_ES: Likewise.
26402         * localedata/locales/eu_ES@euro: Likewise.
26403         * localedata/locales/fa_IR: Likewise.
26404         * localedata/locales/ff_SN: Likewise.
26405         * localedata/locales/fi_FI: Likewise.
26406         * localedata/locales/fil_PH: Likewise.
26407         * localedata/locales/fo_FO: Likewise.
26408         * localedata/locales/fr_BE: Likewise.
26409         * localedata/locales/fr_CA: Likewise.
26410         * localedata/locales/fr_CH: Likewise.
26411         * localedata/locales/fr_FR: Likewise.
26412         * localedata/locales/fr_LU: Likewise.
26413         * localedata/locales/fur_IT: Likewise.
26414         * localedata/locales/fy_DE: Likewise.
26415         * localedata/locales/fy_NL: Likewise.
26416         * localedata/locales/ga_IE: Likewise.
26417         * localedata/locales/gd_GB: Likewise.
26418         * localedata/locales/gez_ER: Likewise.
26419         * localedata/locales/gez_ET: Likewise.
26420         * localedata/locales/gl_ES: Likewise.
26421         * localedata/locales/gu_IN: Likewise.
26422         * localedata/locales/gv_GB: Likewise.
26423         * localedata/locales/ha_NG: Likewise.
26424         * localedata/locales/hak_TW: Likewise.
26425         * localedata/locales/he_IL: Likewise.
26426         * localedata/locales/hi_IN: Likewise.
26427         * localedata/locales/hif_FJ: Likewise.
26428         * localedata/locales/hne_IN: Likewise.
26429         * localedata/locales/hr_HR: Likewise.
26430         * localedata/locales/hsb_DE: Likewise.
26431         * localedata/locales/ht_HT: Likewise.
26432         * localedata/locales/hu_HU: Likewise.
26433         * localedata/locales/hy_AM: Likewise.
26434         * localedata/locales/i18n: Likewise.
26435         * localedata/locales/ia_FR: Likewise.
26436         * localedata/locales/id_ID: Likewise.
26437         * localedata/locales/ig_NG: Likewise.
26438         * localedata/locales/ik_CA: Likewise.
26439         * localedata/locales/is_IS: Likewise.
26440         * localedata/locales/it_CH: Likewise.
26441         * localedata/locales/it_IT: Likewise.
26442         * localedata/locales/iu_CA: Likewise.
26443         * localedata/locales/ja_JP: Likewise.
26444         * localedata/locales/ka_GE: Likewise.
26445         * localedata/locales/kk_KZ: Likewise.
26446         * localedata/locales/kl_GL: Likewise.
26447         * localedata/locales/kn_IN: Likewise.
26448         * localedata/locales/ko_KR: Likewise.
26449         * localedata/locales/kok_IN: Likewise.
26450         * localedata/locales/ks_IN: Likewise.
26451         * localedata/locales/ks_IN@devanagari: Likewise.
26452         * localedata/locales/ku_TR: Likewise.
26453         * localedata/locales/kw_GB: Likewise.
26454         * localedata/locales/ky_KG: Likewise.
26455         * localedata/locales/lb_LU: Likewise.
26456         * localedata/locales/lg_UG: Likewise.
26457         * localedata/locales/li_BE: Likewise.
26458         * localedata/locales/li_NL: Likewise.
26459         * localedata/locales/lij_IT: Likewise.
26460         * localedata/locales/ln_CD: Likewise.
26461         * localedata/locales/lo_LA: Likewise.
26462         * localedata/locales/lt_LT: Likewise.
26463         * localedata/locales/lv_LV: Likewise.
26464         * localedata/locales/lzh_TW: Likewise.
26465         * localedata/locales/mag_IN: Likewise.
26466         * localedata/locales/mai_IN: Likewise.
26467         * localedata/locales/mg_MG: Likewise.
26468         * localedata/locales/mhr_RU: Likewise.
26469         * localedata/locales/mi_NZ: Likewise.
26470         * localedata/locales/mk_MK: Likewise.
26471         * localedata/locales/ml_IN: Likewise.
26472         * localedata/locales/mn_MN: Likewise.
26473         * localedata/locales/mni_IN: Likewise.
26474         * localedata/locales/mr_IN: Likewise.
26475         * localedata/locales/ms_MY: Likewise.
26476         * localedata/locales/mt_MT: Likewise.
26477         * localedata/locales/my_MM: Likewise.
26478         * localedata/locales/nan_TW: Likewise.
26479         * localedata/locales/nan_TW@latin: Likewise.
26480         * localedata/locales/nb_NO: Likewise.
26481         * localedata/locales/nds_DE: Likewise.
26482         * localedata/locales/nds_NL: Likewise.
26483         * localedata/locales/ne_NP: Likewise.
26484         * localedata/locales/nhn_MX: Likewise.
26485         * localedata/locales/niu_NU: Likewise.
26486         * localedata/locales/niu_NZ: Likewise.
26487         * localedata/locales/nl_AW: Likewise.
26488         * localedata/locales/nl_BE: Likewise.
26489         * localedata/locales/nl_NL: Likewise.
26490         * localedata/locales/nn_NO: Likewise.
26491         * localedata/locales/nr_ZA: Likewise.
26492         * localedata/locales/nso_ZA: Likewise.
26493         * localedata/locales/oc_FR: Likewise.
26494         * localedata/locales/om_ET: Likewise.
26495         * localedata/locales/om_KE: Likewise.
26496         * localedata/locales/or_IN: Likewise.
26497         * localedata/locales/os_RU: Likewise.
26498         * localedata/locales/pa_IN: Likewise.
26499         * localedata/locales/pa_PK: Likewise.
26500         * localedata/locales/pap_AW: Likewise.
26501         * localedata/locales/pap_CW: Likewise.
26502         * localedata/locales/pl_PL: Likewise.
26503         * localedata/locales/ps_AF: Likewise.
26504         * localedata/locales/pt_BR: Likewise.
26505         * localedata/locales/pt_PT: Likewise.
26506         * localedata/locales/quz_PE: Likewise.
26507         * localedata/locales/raj_IN: Likewise.
26508         * localedata/locales/ro_RO: Likewise.
26509         * localedata/locales/ru_RU: Likewise.
26510         * localedata/locales/ru_UA: Likewise.
26511         * localedata/locales/rw_RW: Likewise.
26512         * localedata/locales/sa_IN: Likewise.
26513         * localedata/locales/sat_IN: Likewise.
26514         * localedata/locales/sc_IT: Likewise.
26515         * localedata/locales/sd_IN: Likewise.
26516         * localedata/locales/sd_IN@devanagari: Likewise.
26517         * localedata/locales/se_NO: Likewise.
26518         * localedata/locales/sgs_LT: Likewise.
26519         * localedata/locales/shs_CA: Likewise.
26520         * localedata/locales/si_LK: Likewise.
26521         * localedata/locales/sid_ET: Likewise.
26522         * localedata/locales/sk_SK: Likewise.
26523         * localedata/locales/sl_SI: Likewise.
26524         * localedata/locales/sm_WS: Likewise.
26525         * localedata/locales/so_DJ: Likewise.
26526         * localedata/locales/so_ET: Likewise.
26527         * localedata/locales/so_KE: Likewise.
26528         * localedata/locales/so_SO: Likewise.
26529         * localedata/locales/sq_AL: Likewise.
26530         * localedata/locales/sq_MK: Likewise.
26531         * localedata/locales/sr_ME: Likewise.
26532         * localedata/locales/sr_RS: Likewise.
26533         * localedata/locales/sr_RS@latin: Likewise.
26534         * localedata/locales/ss_ZA: Likewise.
26535         * localedata/locales/st_ZA: Likewise.
26536         * localedata/locales/sv_FI: Likewise.
26537         * localedata/locales/sv_SE: Likewise.
26538         * localedata/locales/sw_KE: Likewise.
26539         * localedata/locales/sw_TZ: Likewise.
26540         * localedata/locales/szl_PL: Likewise.
26541         * localedata/locales/ta_IN: Likewise.
26542         * localedata/locales/ta_LK: Likewise.
26543         * localedata/locales/tcy_IN: Likewise.
26544         * localedata/locales/te_IN: Likewise.
26545         * localedata/locales/tg_TJ: Likewise.
26546         * localedata/locales/th_TH: Likewise.
26547         * localedata/locales/the_NP: Likewise.
26548         * localedata/locales/ti_ER: Likewise.
26549         * localedata/locales/ti_ET: Likewise.
26550         * localedata/locales/tig_ER: Likewise.
26551         * localedata/locales/tk_TM: Likewise.
26552         * localedata/locales/tl_PH: Likewise.
26553         * localedata/locales/tn_ZA: Likewise.
26554         * localedata/locales/to_TO: Likewise.
26555         * localedata/locales/tpi_PG: Likewise.
26556         * localedata/locales/tr_CY: Likewise.
26557         * localedata/locales/tr_TR: Likewise.
26558         * localedata/locales/ts_ZA: Likewise.
26559         * localedata/locales/tt_RU: Likewise.
26560         * localedata/locales/tt_RU@iqtelif: Likewise.
26561         * localedata/locales/ug_CN: Likewise.
26562         * localedata/locales/uk_UA: Likewise.
26563         * localedata/locales/unm_US: Likewise.
26564         * localedata/locales/ur_IN: Likewise.
26565         * localedata/locales/ur_PK: Likewise.
26566         * localedata/locales/uz_UZ: Likewise.
26567         * localedata/locales/uz_UZ@cyrillic: Likewise.
26568         * localedata/locales/ve_ZA: Likewise.
26569         * localedata/locales/vi_VN: Likewise.
26570         * localedata/locales/wa_BE: Likewise.
26571         * localedata/locales/wae_CH: Likewise.
26572         * localedata/locales/wal_ET: Likewise.
26573         * localedata/locales/wo_SN: Likewise.
26574         * localedata/locales/xh_ZA: Likewise.
26575         * localedata/locales/yi_US: Likewise.
26576         * localedata/locales/yo_NG: Likewise.
26577         * localedata/locales/yue_HK: Likewise.
26578         * localedata/locales/yuw_PG: Likewise.
26579         * localedata/locales/zh_CN: Likewise.
26580         * localedata/locales/zh_HK: Likewise.
26581         * localedata/locales/zh_SG: Likewise.
26582         * localedata/locales/zh_TW: Likewise.
26583         * localedata/locales/zu_ZA: Likewise.
26585 2017-11-13  Florian Weimer  <fweimer@redhat.com>
26587         * support/next_to_fault.h, support/next_to_fault.c: New files.
26588         * support/Makefile (libsupport-routines): Add next_to_fault.
26589         * resolv/tst-inet_pton.c (struct next_to_fault)
26590         (next_to_fault_allocate, next_to_fault_free): Remove.
26591         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
26593 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
26595         * elf/dl-support.c: Include <dl-procruntime.c>.
26596         * include/link.h: Include <link_map.h>.
26597         * sysdeps/generic/dl-procruntime.c: New file.
26598         * sysdeps/generic/link_map.h: Likewise.
26599         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
26600         the writable ld.so namespace.
26602 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26604         timezone: pacify GCC -Wstringop-truncation
26605         Problem reported by Martin Sebor in:
26606         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
26607         * timezone/zic.c (writezone): Use memcpy, not strncpy.
26609 2017-11-12  Florian Weimer  <fweimer@redhat.com>
26611         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
26612         tst-xreadlink.
26613         (tests): Add tst-xreadlink.
26614         * support/support.h (xstrndup): Declare.
26615         * support/xunistd.h (xunlink, xreadlink): Declare.
26616         * support/temp_file.h (support_create_temp_directory): Declare.
26617         * support/temp_file.c (support_create_temp_directory): New function.
26618         * support/support_chroot.c (support_chroot_create): Use it.
26619         * support/xreadlink.c: New file.
26620         * support/xstrndup.c: Likewise.
26621         * support/xunlink.c: Likewise.
26622         * support/tst-xreadlink.c: Likewise.
26624 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
26626         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
26628 2017-11-11  Florian Weimer  <fweimer@redhat.com>
26630         [BZ #22409]
26631         [BZ #22412]
26632         * resolv/res_comp.c (printable_string, binary_hnok)
26633         (binary_leading_dash): New functions.
26634         (res_hnok): Reimplement using these functions and ns_name_pton.
26635         (res_ownok): Likewise.
26636         (res_mailok): Reimplement using printable_string, ns_name_pton and
26637         binary_hnok.
26638         (res_dnok): Reimplement using printable_string and ns_name_pton.
26639         * resolv/tst-res_hnok.c (tests): Add additional tests.
26640         (LETTERDIGITS, PRINTABLE): Define.
26641         (do_test): Adjust one_char results.
26643 2017-11-11  Florian Weimer  <fweimer@redhat.com>
26645         [BZ #22413]
26646         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
26647         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
26649 2017-11-11  Florian Weimer  <fweimer@redhat.com>
26651         * resolv/tst-ns_name_pton.c: New file.
26652         * resolv/Makefile (tests): Add tst-ns_name_pton.
26653         (tst-ns_name_pton): Link against libresolv.
26655 2017-11-11  Florian Weimer  <fweimer@redhat.com>
26657         * resolv/tst-res_hnok.c: New file.
26658         * resolv/Makefile (tests): Add tst-res_hnok.
26659         (tst-res_hnok): Link against libresolv.
26661 2017-11-11  Florian Weimer  <fweimer@redhat.com>
26663         * resolv/tst-resolv-network.c: Use test framework instead explicit
26664         main function.
26666 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
26668         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
26669         <jmp_buf-macros.h>.
26670         [!_ISOMAC] (STR_HELPER): New.
26671         [!_ISOMAC] (STR): Likewise.
26672         [!_ISOMAC] (TEST_SIZE): Likewise.
26673         [!_ISOMAC] (TEST_ALIGN): Likewise.
26674         [!_ISOMAC] (TEST_OFFSET): Likewise.
26675         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
26676         field offsets of jmp_buf as well as sigjmp_buf.
26677         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
26678         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
26679         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
26680         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
26681         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
26682         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
26683         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
26684         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
26685         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
26686         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
26687         Likewise.
26688         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
26689         Likewise.
26690         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
26691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
26692         Likewise.
26693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
26694         Likewise.
26695         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
26696         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
26697         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
26698         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
26699         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
26700         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
26701         Likewise.
26702         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
26703         Likewise.
26704         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
26705         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
26706         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
26708 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
26710         * include/float.h
26711         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26712         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
26713         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26714         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
26715         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26716         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
26717         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26718         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
26719         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26720         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
26721         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26722         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
26723         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26724         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
26725         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26726         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
26727         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26728         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
26729         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26730         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
26731         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26732         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
26733         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26734         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
26735         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26736         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
26737         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26738         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
26739         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26740         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
26741         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26742         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
26743         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26744         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
26745         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26746         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
26747         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26748         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
26749         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26750         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
26751         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26752         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
26753         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26754         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
26755         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26756         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
26757         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26758         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
26759         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26760         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
26761         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26762         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
26763         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26764         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
26765         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26766         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
26767         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26768         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
26769         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26770         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
26771         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26772         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
26773         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26774         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
26775         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26776         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
26777         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26778         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
26779         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26780         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
26781         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26782         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
26783         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26784         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
26785         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26786         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
26787         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26788         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
26789         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26790         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
26791         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26792         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
26793         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26794         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
26795         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26796         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
26797         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
26798         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
26800         * stdlib/tst-strtod.h (F16): New macro.
26801         (F32): Likewise.
26802         (F64): Likewise.
26803         (F32X): Likewise.
26804         (F64X): Likewise.
26805         (F128X): Likewise.
26806         (IF_FLOAT16): Likewise.
26807         (IF_FLOAT32): Likewise.
26808         (IF_FLOAT64): Likewise.
26809         (IF_FLOAT32X): Likewise.
26810         (IF_FLOAT64X): Likewise.
26811         (IF_FLOAT128X): Likewise.
26812         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
26813         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
26814         (STRTOD_TEST_FOREACH): Likewise.
26815         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
26816         (CHOOSE_f64): Likewise.
26817         (CHOOSE_f32x): Likewise.
26818         (CHOOSE_f64x): Likewise.
26820 2017-11-07  Andreas Schwab  <schwab@suse.de>
26822         * nptl/Makefile (tests-internal): Remove tst-typesizes.
26824 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
26826         [BZ #22403]
26827         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
26828         to be escaped.
26829         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
26830         to be escaped.
26832 2017-11-07  Claude Paroz  <claude@2xlibre.net>
26834         [BZ #22403]
26835         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
26836         to be escaped.
26837         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
26838         to be escaped.
26839         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
26840         to be escaped.
26842 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26844         [BZ #22298]
26845         * nptl/allocatestack.c (allocate_stack): Check if
26846         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
26847         __PTHREAD_MUTEX_HAVE_PREV is defined.
26848         * nptl/descr.h (pthread): Likewise.
26849         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26850         Likewise.
26851         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
26852         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
26853         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
26854         * sysdeps/nptl/bits/thread-shared-types.h
26855         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
26856         defines.
26857         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
26858         of __WORDSIZE for internal layout.
26859         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
26860         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
26861         instead of __WORDSIZE whether to use an union for __spins and __list
26862         fields.
26863         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
26864         case.
26865         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
26866         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
26867         defines.
26868         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
26869         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26870         Likewise.
26871         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
26872         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26873         Likewise.
26874         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
26875         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26876         Likewise.
26877         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
26878         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26879         Likewise.
26880         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
26881         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26882         Likewise.
26883         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
26884         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26885         Likewise.
26886         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
26887         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26888         Likewise.
26889         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
26890         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26891         Likewise.
26892         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
26893         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26894         Likewise.
26895         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
26896         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26897         Likewise.
26898         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
26899         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26900         Likewise.
26901         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
26902         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26903         Likewise.
26904         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
26905         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26906         Likewise.
26907         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
26908         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26909         Likewise.
26911         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
26912         New macros.
26913         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
26914         checks for expected input type size.
26915         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
26916         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
26917         Likewise.
26918         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
26919         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
26920         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
26921         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
26922         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
26923         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
26924         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
26925         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
26926         superflous runtime assert check.
26927         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
26928         Likewise.
26929         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
26930         Likewise.
26931         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
26932         Likewise.
26933         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
26934         Likewise.
26935         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
26936         Likewise.
26937         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
26938         Likewise.
26939         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
26940         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
26941         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
26942         Likewise.
26943         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
26944         Likewise.
26945         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
26946         Likewise.
26947         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
26948         Likewise.
26949         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
26950         Likewise.
26951         * nptl/pthread_attr_setinheritsched.c
26952         (__pthread_attr_setinheritsched): Likewise.
26953         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
26954         Likewise.
26955         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
26956         Likewise.
26957         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
26958         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
26959         __old_pthread_attr_setstack): Likewise.
26960         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
26961         Likewise.
26962         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
26963         Likewise.
26964         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
26965         Likewise.
26966         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
26967         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
26968         Likewise.
26969         * nptl/tst-typesizes.c: Remove file.
26971         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
26972         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
26973         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
26974         checks for internal pthread_mutex_t offsets.
26975         * sysdeps/aarch64/nptl/pthread-offsets.h
26976         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
26977         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
26978         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
26979         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
26980         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
26981         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
26982         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
26983         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
26984         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
26985         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
26986         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
26987         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
26988         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
26989         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
26990         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
26991         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
26992         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
26993         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
26995 2017-11-07  Florian Weimer  <fweimer@redhat.com>
26997         * bits/mman-linux.h: Move ...
26998         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
26999         comment.
27000         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
27001         outdated comment.
27003 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27005         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
27006         Redefine STRNLEN as __strnlen_power8.
27008 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27010         * signal/sighold.c (sighold): Optimize implementation.
27012         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
27013         __NR_rt_sigqueueinfo.
27015         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27016         __sigtimedwait.
27017         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
27018         assume __NR_rt_sigtimedwait.
27019         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
27020         and add LIBC_CANCEL_HANDLED for cancellation marking.
27021         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
27023         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
27024         (sysdeps_routines): Add memchr_noneon.
27025         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
27026         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
27027         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
27028         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
27029         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
27030         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
27031         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
27033         * sysdeps/arm/arm-ifunc.h: New file.
27034         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
27035         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
27036         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
27037         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
27038         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
27039         (__memcpy_neon): Avoid create hidden alias.
27040         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
27041         (__memcpy_vfp): Likewise.
27042         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
27043         (sysdep_routines): Add memcpy_arm.
27044         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
27046 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
27048         [BZ #22362]
27049         * Makerules (make-link-multidir): New.
27050         * config.make.in (multidir): New.
27051         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
27052         * configure: Regenerated.
27053         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
27054         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
27055         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
27056         New target.
27058 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
27060         [BZ #22402]
27061         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
27062         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
27064 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
27066         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
27067         to be escaped.
27069 2017-11-04  Florian Weimer  <fweimer@redhat.com>
27071         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
27073 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
27075         * math/math.h [__HAVE_DISTINCT_FLOAT16
27076         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
27077         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
27078         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
27079         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
27080         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
27081         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
27082         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
27083         (__MATH_TG_F32): New macro.
27084         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
27085         (__MATH_TG_F64X): Likewise.
27086         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
27087         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
27089 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
27091         * po/de.po: Update translations.
27092         * po/ru.po: Likewise.
27094 2017-11-03  Florian Weimer  <fweimer@redhat.com>
27096         * manual/filesys.texi (Hard Links): Document linkat.
27098 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
27100         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
27101         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
27102         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
27103         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
27104         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
27105         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
27106         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
27107         the same as _Float128.
27108         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
27109         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
27110         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
27112         * stdlib/stdlib.h
27113         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
27114         Declare.
27115         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
27116         Likewise.
27117         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
27118         Likewise.
27119         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27120         (strtof32x): Likewise.
27121         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27122         (strtof64x): Likewise.
27123         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27124         (strtof128x): Likewise.
27125         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27126         (strfromf16): Likewise.
27127         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27128         (strfromf32): Likewise.
27129         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27130         (strfromf64): Likewise.
27131         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27132         (strfromf32x): Likewise.
27133         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27134         (strfromf64x): Likewise.
27135         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27136         (strfromf128x): Likewise.
27137         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
27138         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
27139         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
27140         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
27141         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
27142         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
27144 2017-11-03  Richard Henderson  <rth@twiddle.net>
27146         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
27148 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27150         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
27152 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27154         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
27155         DT_TLSDESC_GOT initialization.
27156         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
27157         (_dl_tlsdesc_resolve_hold): Likewise.
27158         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
27159         (_dl_tlsdesc_resolve_hold): Likewise.
27160         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
27161         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
27163 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27165         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
27167 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27169         [BZ #18572]
27170         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
27171         non-lazily for R_ARM_TLS_DESC.
27173 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27175         [BZ #17078]
27176         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
27177         R_ARM_TLS_DESC case.
27178         (elf_machine_lazy_rel): Remove the prelink check.
27180 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27182         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
27183         DT_TLSDESC_GOT initialization.
27184         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
27185         (_dl_tlsdesc_resolve_rela): Likewise.
27186         (_dl_tlsdesc_resolve_hold): Likewise.
27187         (_dl_tlsdesc_undefweak): Remove ldar.
27188         (_dl_tlsdesc_dynamic): Likewise.
27189         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
27190         (_dl_tlsdesc_resolve_rela): Likewise.
27191         (_dl_tlsdesc_resolve_hold): Likewise.
27192         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
27193         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
27194         (_dl_tlsdesc_resolve_rela): Likewise.
27195         (_dl_tlsdesc_resolve_hold): Likewise.
27197 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27199         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
27200         binding and initialization non-lazily for R_AARCH64_TLSDESC.
27202 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27204         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
27205         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
27207 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
27209         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
27210         Declare.
27211         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
27212         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
27213         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
27214         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
27215         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
27216         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
27217         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
27218         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
27219         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
27220         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
27221         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
27223 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
27225         [BZ #22382]
27226         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
27227         * localedata/locales/tpi_PG: Add standard header.
27229 2017-11-02  Florian Weimer  <fweimer@redhat.com>
27231         test-errno-linux: quotactl can fail with EPERM in containers.
27232         * sysdeps/unix/sysv/linux/test-errno-linux.c
27233         (LIST, LIST_FORWARD): New macros.
27234         (check_error_in_list): New function.
27235         (test_wrp_rv): Accept list of permitted error codes.
27236         (test_wrp_rv2): Remove.
27237         (test_wrp): Call test_wrp_rv with list of error codes.
27238         (test_wrp2): Accept list of error codes.
27239         (do_test): Adjust.  Allow EPERM for quotactl.
27241 2017-11-02  Florian Weimer  <fweimer@redhat.com>
27243         * stdio-common/bug16.c (do_test): Use array_length.
27244         * stdio-common/errlist.c (_sys_nerr): Likewise.
27245         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
27246         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
27247         * stdio-common/psiginfo.c (psiginfo): Use array_length.
27248         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
27249         (do_test): Use array_length.
27250         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
27251         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
27252         * stdio-common/tst-printf-round.c (do_test): Likewise.
27253         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
27254         (CHECK): Use array_length.
27255         * stdio-common/tstdiomisc.c (t3, F): Likewise.
27256         * stdio-common/tstscanf.c (main): Likewise.
27257         * stdio-common/vfprintf.c (process_string_arg): Likewise.
27259 2017-11-02  Florian Weimer  <fweimer@redhat.com>
27261         Add array_length and array_end macros.
27262         * include/array_length.h: New file.
27264 2017-11-02  Florian Weimer  <fweimer@redhat.com>
27266         [BZ #22332]
27267         * posix/tst-glob-tilde.c (do_noescape): New variable.
27268         (one_test): Process it.
27269         (do_test): Set do_noescape.  Add unescaping test case.
27271 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
27273         * math/complex.h
27274         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
27275         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
27276         with appropriate macros defined and undefined.
27277         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
27278         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
27279         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
27280         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
27281         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
27282         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
27283         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
27284         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
27285         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
27286         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
27288         * math/complex.h
27289         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
27290         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
27291         that for long double.  Do not condition define and undefine of
27292         _Mdouble_complex_ on [__CFLOAT128].
27294 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
27296         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
27297         of <sysdeps/generic/sysdep.h>.
27298         (ALIGNARG): Removed.
27299         (ASM_SIZE_DIRECTIVE): Likewise.
27300         (ENTRY): Likewise.
27301         (END): Likewise.
27302         (ENTRY_CHK): Likewise.
27303         (END_CHK): Likewise.
27304         (syscall_error): Likewise.
27305         (mcount): Likewise.
27306         (PSEUDO_END): Likewise.
27307         (L): Likewise.
27308         (atom_text_section): Likewise.
27309         * sysdeps/x86/sysdep.h: New file.
27310         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
27311         of <sysdeps/generic/sysdep.h>.
27312         (ALIGNARG): Removed.
27313         (ASM_SIZE_DIRECTIVE): Likewise.
27314         (ENTRY): Likewise.
27315         (END): Likewise.
27316         (ENTRY_CHK): Likewise.
27317         (END_CHK): Likewise.
27318         (syscall_error): Likewise.
27319         (mcount): Likewise.
27320         (PSEUDO_END): Likewise.
27321         (L): Likewise.
27322         (atom_text_section): Likewise.
27324 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
27326         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
27327         category of LC_CTYPE set to "i18n:2012".
27328         * localedata/locales/i18n_ctype: Regenerate.
27330 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
27332         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
27333         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
27334         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
27335         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
27337         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
27338         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
27339         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
27340         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
27342 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
27344         * math/complex.h
27345         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
27346         New macro.
27347         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
27348         Likewise.
27349         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
27350         Likewise.
27351         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27352         (CMPLXF32X): Likewise.
27353         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27354         (CMPLXF64X): Likewise.
27355         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27356         (CMPLXF128X): Likewise.
27358         * math/math.h
27359         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
27360         (__MATH_EVAL_FMT2): Define to add 0.0f.
27362 2017-10-31  Alan Modra  <amodra@gmail.com>
27364         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
27365         include sysdep.h.
27366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
27367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
27368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
27369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
27370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
27371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
27372         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
27373         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
27374         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
27375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
27376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
27377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
27378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
27379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
27380         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
27381         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
27382         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
27383         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
27384         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
27385         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
27386         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
27387         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
27388         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
27389         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
27390         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
27391         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
27392         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
27393         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
27394         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
27395         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
27396         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27397         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27398         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
27399         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
27400         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
27401         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
27402         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
27403         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
27404         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
27405         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
27406         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
27407         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
27408         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
27409         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
27410         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
27411         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
27412         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
27413         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
27414         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
27415         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
27416         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
27417         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
27418         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
27419         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
27420         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
27421         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
27422         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
27423         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
27424         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
27425         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
27426         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
27427         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
27428         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
27429         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
27430         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
27431         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
27432         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
27433         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
27434         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
27436         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
27437         include sysdep.h and math_ldbl_opt.h.
27439         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
27440         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
27441         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
27442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
27443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
27444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
27445         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
27446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
27447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
27448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
27449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
27450         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
27451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
27452         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
27453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
27454         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
27455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
27456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
27457         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
27458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
27459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
27460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
27461         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
27462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
27463         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
27464         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
27466 2017-10-31  Alan Modra  <amodra@gmail.com>
27468         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
27469         string/strncase_l.c, not string/strncase.c.
27470         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
27471         (libc_hidden_def): Redefine.
27473 2017-10-31  Alan Modra  <amodra@gmail.com>
27475         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
27476         (__STRCMP, STRCMP, __strcasecmp_l): Define.
27477         (__strcasecmp): Don't define.
27479 2017-10-31  Alan Modra  <amodra@gmail.com>
27481         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
27482         IS_IN (libc).
27483         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
27484         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
27485         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
27487 2017-10-31  Alan Modra  <amodra@gmail.com>
27489         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
27490         USE_AS_STPNCPY.
27492 2017-10-31  Alan Modra  <amodra@gmail.com>
27494         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
27495         Redefine only when SHARED.
27497 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
27499         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
27500         Include <bits/math-finite.h> with appropriate macros defined and
27501         undefined.
27502         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
27503         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
27504         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
27505         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
27506         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
27508         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
27509         [!_Mlong_double_] (_Mlong_double_): Likewise.
27510         [!_Mfloat16_] (_Mfloat16_): Likewise.
27511         [!_Mfloat32_] (_Mfloat32_): Likewise.
27512         [!_Mfloat64_] (_Mfloat64_): Likewise.
27513         [!_Mfloat128_] (_Mfloat128_): Likewise.
27514         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
27515         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
27516         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
27517         (_Mdouble_): Define without indirection through those macros.
27518         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
27519         [!_Mfloat128_] (_Mfloat128_): Likewise.
27520         [_Mlong_double_] (_Mlong_double_): Likewise.
27521         (_Mdouble_): Define without indirection through those macros.
27522         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
27523         not add -D_Mlong_double_=double.
27524         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
27525         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
27527 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
27529         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
27531 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
27533         * sysdeps/x86/libc-start.c: Reformat.
27535 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
27537         [BZ #22353]
27538         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
27539         (1): Renamed to ...
27540         (L(Src0)): This.
27541         (L(Src1)): New.
27542         (L(Src2)): Likewise.
27543         (L(1)): Renamed to ...
27544         (L(Src3)): This.
27546 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
27548         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
27549         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
27550         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
27551         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
27552         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
27553         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
27554         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
27555         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
27556         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
27557         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
27558         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
27559         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
27560         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
27561         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
27562         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
27563         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
27564         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
27565         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
27566         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
27567         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
27568         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
27569         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
27570         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
27571         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
27572         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
27573         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
27574         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
27575         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
27576         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
27577         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
27578         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
27579         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
27580         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
27581         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
27582         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
27583         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
27584         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
27585         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
27586         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
27587         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
27588         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
27589         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
27590         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
27591         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
27592         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
27593         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
27594         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
27595         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
27596         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
27597         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
27598         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
27599         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
27600         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
27601         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
27602         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
27603         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
27604         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
27605         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
27606         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
27607         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
27608         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
27609         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
27610         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
27611         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
27612         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
27613         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
27615 2017-10-30  Florian Weimer  <fweimer@redhat.com>
27617         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
27618         always defined.
27619         * io/tst-mkdirat.c (do_test): Likewise.
27620         * io/tst-mkfifoat.c (do_test): Likewise.
27621         * io/tst-mknodat.c (do_test): Likewise.
27622         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
27623         * locale/programs/locale.c (select_dirs): Likewise.
27624         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
27625         * posix/bug-glob2.c (my_readdir): Likewise.
27626         * posix/tst-dir.c (main): Likewise.
27627         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
27628         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
27630 2017-10-30  Florian Weimer  <fweimer@redhat.com>
27632         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
27633         just __USE_GNU.
27635 2017-10-30  Florian Weimer  <fweimer@redhat.com>
27637         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
27638         Convert to support/test-driver.c.
27639         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
27640         New macro parameters.
27641         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
27642         * posix/tst-gnuglob.c: New file.
27643         * posix/tst-gnuglob64.c: Likewise.
27644         * posix/Makefile (tests): Add tst-gnuglob64.
27646 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
27648         [BZ #19485]
27649         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
27650         and use a better translation for March in “mon”.
27651         * localedata/locales/csb_PL: Use more ASCII to improve the
27652         readability of the source.
27654 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
27656         [BZ #13953]
27657         * localedata/locales/km_KH: Use ASCII as much
27658         as possible for better readability of the source and
27659         remove useless comments.
27660         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
27661         was commented out and apparently wrong anyway because it was
27662         using Lao characters. If Buddhist era should be used
27663         for km_KH, a native speaker should write the correct formaat
27664         for Khmer.
27665         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
27666         (According to CLDR, the first weekday for Cambodia is Sunday).
27667         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
27668         (These were using Lao characters which must be wrong. If we get
27669         the correct data from a native speaker, we could add it back, until
27670         then it is better not to have name_mr and name_mrs at all than
27671         having it wrong).
27673 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
27675         * locale/loadlocale.c: Correct size of
27676         _nl_value_type_LC_<category> arrays.
27678 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
27680         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
27681         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
27682         with appropriate macros defined and undefined.
27683         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
27684         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
27685         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
27686         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
27687         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
27689 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
27691         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
27692         "-O2 -march=i586".
27694 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
27696         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
27697         with lowercase letters to make it agree with CLDR.
27699 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
27701         [BZ #15260]
27702         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
27703         first letters of yesstr and nostr in yesexpr and noexpr,
27704         not for the full words.
27705         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
27706         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
27707         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
27708         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
27709         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
27710         first letters of yesstr and nostr in yesexpr and noexpr,
27711         until now only English was matched in yesexpr and noexpr.
27712         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
27713         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
27714         fil but not for tl. As tl and fil are very similar, using fil
27715         is probably better than using English.
27717 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
27719         [BZ #21706]
27720         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
27721         in yesstr and nostr.
27723 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
27725         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
27726         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
27727         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
27728         Likewise.
27729         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
27730         Likewise.
27731         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
27732         Likewise.
27733         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
27734         Likewise.
27735         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27736         (SNANF128X): Likewise.
27738         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
27739         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
27740         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27741         (HUGE_VAL_F32): Likewise.
27742         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27743         (HUGE_VAL_F64): Likewise.
27744         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27745         (HUGE_VAL_F32X): Likewise.
27746         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27747         (HUGE_VAL_F64X): Likewise.
27748         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27749         (HUGE_VAL_F128X): Likewise.
27751 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
27753         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
27754         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
27755         for the br_FR locale.
27757 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
27759         [BZ #21706]
27760         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
27762 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
27764         * locale/programs/record-status.h: Define globals, and function
27765         prototypes. Move function bodies...
27766         * locale/programs/record-status.c: ... to here. New file.
27767         * iconv/Makefile (iconv_prog-modules): Add record-status.
27768         * locale/Makefile (lib-modules): Likewise.
27769         * iconv/iconv_prog.c: Remove verbose.
27770         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
27771         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
27772         record a warning about ASCII compatibility.
27773         * locale/programs/ld-monetary.c (monetary_finish): If
27774         warn_int_curr_symbol is true then record a warning about the symbol
27775         not being in our ISO 4217 list.
27776         * locale/programs/locale.c: Include record-status.h. Remove verbose.
27777         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
27778         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
27779         (OPT_NO_WARN): Define.
27780         (OPT_WARN): Define.
27781         (options): Add entry for --no-warnings, and --warnings.
27782         (set_warnings): New function to enable/disable warnings.
27783         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
27784         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
27785         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
27786         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
27787         Pass flags to generate_locale.
27788         (generate_locale): Accept new flag argument and pass it to localedef
27789         invocation.
27790         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
27791         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
27793         * localedata/Makefile (test-input-data): Use full file name.
27794         * localedata/da_DK.in: Rename to...
27795         * localedata/da_DK.ISO-8859-1.in: ...this.
27796         * localedata/de_DE.in: Rename to...
27797         * localedata/de_DE.ISO-8859-1.in: ...this.
27798         * localedata/en_US.in: Rename to...
27799         * localedata/en_US.ISO-8859-1.in: ...this.
27800         * localedata/fr_FR.in: Rename to...
27801         * localedata/fr_FR.UTF-8.in: ... this.
27802         * localedata/hr_HR.in: Rename to...
27803         * localedata/hr_HR.ISO-8859-2.in: ...this.
27804         * localedata/hu_HU.in: Rename to...
27805         * localedata/hu_HU.UTF-8.in: ...this.
27806         * localedata/si_LK.in: Rename to...
27807         * localedata/si_LK.UTF-8.in: ...this.
27808         * localedata/sv_SE.in: Rename to...
27809         * localedata/sv_SE.ISO-8859-1.in: ...this.
27810         * localedata/tr_TR.in: Rename to...
27811         * localedata/tr_TR.UTF-8.in: ...this.
27812         * localedata/uk_UA.in: Rename to...
27813         * localedata/uk_UA.UTF-8.in: ...this.
27814         * localedata/sort-test.sh: Test file is locale name with the
27815         suffix.
27817         * localedata/unicode-gen/Makefile (check_i18n): Rename to
27818         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
27819         file.
27820         * localedata/locales/i18n_ctype: Regenerate.
27821         * localedata/locales/tr_TR: Likewise.
27822         * localedata/locales/translit_circle: Likewise.
27823         * localedata/locales/translit_cjk_compat: Likewise.
27824         * localedata/locales/translit_combining: Likewise.
27825         * localedata/locales/translit_compat: Likewise.
27826         * localedata/locales/translit_font: Likewise.
27827         * localedata/locales/translit_fraction: Likewise.
27829 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27831         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
27832         lxvd2x/stxvd2x with lvx/stvx.
27833         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
27835 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
27837         * include/alloc_buffer.h: Replace "if if " with "if " in
27838         comments.
27839         * sysdeps/mips/memcpy.S: Likkewise.
27840         * sysdeps/mips/memset.S: Likewise.
27841         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
27842         Likewise.
27843         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
27844         Likewise.
27845         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
27846         Likewise.
27848 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27850         [BZ #15261]
27851         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
27852         yesexpr and noexpr.
27853         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
27854         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
27855         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
27856         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
27857         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
27858         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
27859         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
27861 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27863         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
27864         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
27865         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
27866         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
27867         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
27868         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
27869         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
27870         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
27871         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
27872         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
27873         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
27874         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
27876 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27878         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
27879         as possible for better readability of the source.
27880         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
27881         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
27882         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
27883         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
27884         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
27885         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
27886         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
27887         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
27888         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
27889         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
27890         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
27891         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
27892         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
27893         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
27894         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
27895         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
27896         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
27897         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
27898         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
27899         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
27900         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
27901         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
27902         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
27903         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
27904         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
27905         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
27906         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
27907         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
27908         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
27909         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
27910         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
27911         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
27912         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
27913         * localedata/locales/en_US (LC_MESSAGES): Likewise.
27914         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
27915         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
27916         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
27917         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
27918         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
27919         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
27920         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
27921         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
27922         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
27923         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
27924         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
27925         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
27926         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
27927         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
27928         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
27929         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
27930         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
27931         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
27932         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
27933         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
27934         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
27935         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
27936         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
27937         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
27938         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
27939         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
27940         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
27941         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
27942         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
27943         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
27944         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
27945         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
27946         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
27947         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
27948         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
27949         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
27950         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
27951         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
27952         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
27953         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
27954         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
27955         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
27956         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
27957         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
27958         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
27959         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
27960         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
27961         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
27962         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
27963         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
27964         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
27965         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
27966         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
27967         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
27968         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
27969         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
27970         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
27971         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
27972         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
27973         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
27974         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
27975         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
27976         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
27977         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
27978         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
27979         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
27980         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
27981         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
27982         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
27983         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
27984         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
27985         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
27986         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
27987         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
27988         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
27989         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
27990         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
27991         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
27992         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
27993         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
27994         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
27995         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
27996         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
27997         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
27998         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
27999         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
28000         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
28001         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
28002         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
28003         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
28004         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
28005         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
28006         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
28007         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
28008         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
28009         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
28010         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
28011         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
28012         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
28013         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
28014         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
28015         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
28016         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
28017         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
28018         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
28019         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
28020         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
28021         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
28022         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
28023         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
28024         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
28025         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
28026         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
28027         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
28028         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
28029         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
28030         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
28031         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
28032         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
28033         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
28034         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
28035         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
28036         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
28037         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
28038         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
28039         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
28040         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
28041         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
28042         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
28043         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
28044         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
28045         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
28046         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
28047         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
28048         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
28049         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
28050         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
28051         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
28052         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
28053         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
28055 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
28057         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
28058         (Use first letters of yesstr and nostr correctly instead of using
28059         full words).
28061 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
28063         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
28064         (Use first letters of yesstr and nostr correctly).
28066 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
28068         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
28069         also check for the first characters of yesstr and nostr.
28070         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
28071         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
28073 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
28075         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
28076         also check for Chinese characters.
28078 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
28080         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
28081         match also for the contents of yesstr and nostr. As the first letter
28082         of yesstr and nostr is equal, checking only for the first letter
28083         is not enough.
28085 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
28087         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
28088         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
28090 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
28092         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
28093         of main contributor.
28095 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
28097         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
28098         instead of using English.
28100 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
28102         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
28103         by including the first letters of nostr and yesexpr in the regexp.
28104         Also make it more readable by using ASCII where possible.
28106 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
28108         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
28109         the first letter of nostr in the regexp. It agrees with CLDR now.
28110         Also make it more readable by using ASCII where possible.
28112 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
28114         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
28115         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
28116         these strings contain a U+17D6 (which somewhat looks like a colon)
28117         instead of a real colon to separate the full words for “yes”
28118         and “no” from the single letter responses.
28120 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
28122         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
28123         it agree with CLDR (include the first letter of yesstr).
28124         Also make it more readable by using ASCII where possible.
28126 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
28128         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
28129         and improve yesexpr and noexpr. The yesstr and nostr apparently
28130         came from CLDR. And CLDR has a bug there: these strings contain
28131         a U+0903 (which looks like a colon) instead of a real colon
28132         to separate the full words for “yes” and “no” from the single
28133         letter responses.
28135 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
28137         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
28138         letters of the full yesstr and nostr in yesexpr and noexpr.
28140 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
28142         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
28143         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
28144         * localedata/locales/an_ES: Make source more readable by using ASCII
28145         where possible.
28147 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
28149         [BZ #20952]
28150         * localedata/locales/yuw_PG: New file.
28151         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
28152         * locale/iso-639.def: Add Yau (Uruwa).
28154 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
28156         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
28158 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
28160         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
28161         (__libc_realloc): Likewise.
28162         (_mid_memalign): Likewise.
28163         (__libc_calloc): Likewise.
28165 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
28167         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
28168         by adding the generic +1 and -0 as in all other locales.
28169         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
28170         day names and make it more readable by using ASCII where possible.
28172 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
28174         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
28175         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
28177 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28179         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
28180         WNOHANG in waitpid call.
28182 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28184         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
28185         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
28187         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
28188         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
28189         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
28190         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
28191         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
28192         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
28193         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
28194         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
28195         variables.
28197 2017-10-23  Michael Collison  <michael.collison@arm.com>
28199         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
28200         with __builtin_sqrt.
28201         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
28202         with __builtin_sqrtf.
28203         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
28204         with __builtin_ceil.
28205         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
28206         with __builtin_ceilf.
28207         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
28208         with __builtin_floor.
28209         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
28210         with __builtin_floorf.
28211         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
28212         with __builtin_fma.
28213         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
28214         with __builtin_fmaf.
28215         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
28216         with __builtin_fmax.
28217         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
28218         with __builtin_fmaxf.
28219         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
28220         with __builtin_fmin.
28221         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
28222         with __builtin_fminf.
28223         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
28224         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
28225         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
28226         with builtin_rint and conversion to int.
28227         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
28228         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
28229         with builtin_llround.
28230         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
28231         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
28232         with builtin_rint and conversion to long int.
28233         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
28234         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
28235         with builtin_lround.
28236         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
28237         with builtin_lroundf.
28238         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
28239         statements with __builtin_nearbyint.
28240         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
28241         statements with __builtin_nearbyintf.
28242         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
28243         with __builtin_rint.
28244         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
28245         with __builtin_rintf.
28246         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
28247         with __builtin_round.
28248         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
28249         with __builtin_roundf.
28250         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
28251         with __builtin_trunc.
28252         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
28253         with __builtin_truncf.
28254         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
28255         and s_l[l]round[f].c too.
28257 2017-10-23  Alan Modra  <amodra@gmail.com>
28259         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
28260         Adjust stack after restoring regs.  Add missing LR cfi_restore.
28262 2017-10-23  Alan Modra  <amodra@gmail.com>
28264         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
28265         Move LR save and frame setup/teardown and LR restore to
28266         immediately around memset call.  Provide cfi.
28268 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
28270         * sysdeps/i386/fpu/e_powf.S: Removed.
28271         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
28272         * sysdeps/i386/fpu/w_powf.c: Likewise.
28273         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
28274         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28275         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
28276         Add e_powf-sse2.
28277         (CFLAGS-e_powf-sse2.c): New.
28278         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
28279         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
28281 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
28283         * sysdeps/i386/fpu/e_log2f.S: Removed.
28284         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
28285         * sysdeps/i386/fpu/w_log2f.c: Likewise.
28286         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
28287         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28288         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
28289         Add e_log2f-sse2.
28290         (CFLAGS-e_log2f-sse2.c): New.
28291         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
28292         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
28294 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
28296         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28297         Add e_powf-fma.
28298         (CFLAGS-e_powf-fma.c): New.
28299         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
28300         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
28302 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
28304         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28305         Add e_log2f-fma.
28306         (CFLAGS-e_log2f-fma.c): New.
28307         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
28308         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
28310 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
28312         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28313         Add e_logf-fma.
28314         (CFLAGS-e_logf-fma.c): New.
28315         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
28316         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
28318 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
28320         * sysdeps/i386/fpu/e_logf.S: Removed.
28321         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
28322         * sysdeps/i386/fpu/w_logf.c: Likewise.
28323         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
28324         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
28325         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28326         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
28327         Add e_logf-sse2.
28328         (CFLAGS-e_logf-sse2.c): New.
28329         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
28330         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
28332 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
28334         * sysdeps/i386/fpu/e_exp2f.S: Removed.
28335         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
28336         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
28337         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28338         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
28339         Add e_exp2f-sse2.
28340         (CFLAGS-e_exp2f-sse2.c): New.
28341         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
28342         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
28344 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
28346         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28347         Add e_exp2f-fma.
28348         (CFLAGS-e_exp2f-fma.c): New.
28349         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
28350         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
28352 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
28354         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
28355         * sysdeps/i386/fpu/e_expf.S: Likewise.
28356         * sysdeps/i386/fpu/math_errf.c: Likewise.
28357         * sysdeps/i386/fpu/w_expf.c: Likewise.
28358         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
28359         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
28360         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
28361         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
28362         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28363         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
28364         Remove e_expf-ia32.
28365         (CFLAGS-e_expf-sse2.c): New.
28366         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
28367         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
28369 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
28371         * sysdeps/x86_64/fpu/e_expf.S: Removed.
28372         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
28373         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
28374         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
28375         e_expf.c.
28376         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
28377         New.
28378         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
28379         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
28380         Renamed to ...
28381         (__redirect_expf): This.
28382         (SYMBOL_NAME): Changed to expf.
28383         (__ieee754_expf): Renamed to ...
28384         (__expf): This.
28385         (__GI___expf): This.
28386         (__ieee754_expf): Add strong_alias.
28387         (__expf_finite): Likewise.
28388         (__expf): New.
28389         Include <sysdeps/ieee754/flt-32/e_expf.c>.
28391 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28393         [BZ #22332]
28394         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
28395         unescaping.
28397 2017-10-21  Florian Weimer  <fweimer@redhat.com>
28399         * posix/Makefile (tests): Add tst-glob-tilde.
28400         (tests-special): Add tst-glob-tilde-mem.out
28401         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
28402         (tst-glob-tilde-mem.out): Add mtrace check.
28403         * posix/tst-glob-tilde.c: New file.
28405 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
28407         * bits/floatn-common.h: New file.
28408         * math/Makefile (headers): Add bits/floatn-common.h.
28409         * bits/floatn.h: Include <bits/floatn-common.h>.
28410         * sysdeps/ia64/bits/floatn.h: Likewise.
28411         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
28412         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
28413         * sysdeps/powerpc/bits/floatn.h: Likewise.
28414         * sysdeps/x86/bits/floatn.h: Likewise.
28416 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28418         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
28419         indicates whether compiler emits an warning for alias for
28420         functions with incompatible types.
28422         [BZ #22273]
28423         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
28424         the auxiliary process is terminated by a signal before calling _exit
28425         or execve.
28427 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
28429         [BZ #21265]
28430         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
28431         New.
28432         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
28433         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
28434         and bit_arch_XSAVEC_Usable if needed.
28435         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
28436         and bit_arch_Use_dl_runtime_resolve_opt.
28437         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
28438         Removed.
28439         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
28440         (bit_arch_Prefer_No_AVX512): Updated.
28441         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
28442         (bit_arch_XSAVEC_Usable): New.
28443         (STATE_SAVE_OFFSET): Likewise.
28444         (STATE_SAVE_MASK): Likewise.
28445         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
28446         (cpu_features): Add xsave_state_size and xsave_state_full_size.
28447         (index_arch_Use_dl_runtime_resolve_opt): Removed.
28448         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
28449         (index_arch_XSAVEC_Usable): New.
28450         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28451         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
28452         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
28453         is enabled.
28454         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
28455         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
28456         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
28457         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
28458         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
28459         _dl_runtime_resolve_xsavec.
28460         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
28461         Removed.
28462         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
28463         instead of VEC_SIZE.
28464         (REGISTER_SAVE_BND0): Removed.
28465         (REGISTER_SAVE_BND1): Likewise.
28466         (REGISTER_SAVE_BND3): Likewise.
28467         (REGISTER_SAVE_RAX): Always defined to 0.
28468         (VMOV): Removed.
28469         (_dl_runtime_resolve_avx): Likewise.
28470         (_dl_runtime_resolve_avx_slow): Likewise.
28471         (_dl_runtime_resolve_avx_opt): Likewise.
28472         (_dl_runtime_resolve_avx512): Likewise.
28473         (_dl_runtime_resolve_avx512_opt): Likewise.
28474         (_dl_runtime_resolve_sse): Likewise.
28475         (_dl_runtime_resolve_sse_vex): Likewise.
28476         (USE_FXSAVE): New.
28477         (_dl_runtime_resolve_fxsave): Likewise.
28478         (USE_XSAVE): Likewise.
28479         (_dl_runtime_resolve_xsave): Likewise.
28480         (USE_XSAVEC): Likewise.
28481         (_dl_runtime_resolve_xsavec): Likewise.
28482         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
28483         Removed.
28484         (_dl_runtime_resolve_avx512_opt): Likewise.
28485         (_dl_runtime_resolve_avx): Likewise.
28486         (_dl_runtime_resolve_avx_opt): Likewise.
28487         (_dl_runtime_resolve_sse): Likewise.
28488         (_dl_runtime_resolve_sse_vex): Likewise.
28489         (_dl_runtime_resolve_fxsave): New.
28490         (_dl_runtime_resolve_xsave): Likewise.
28491         (_dl_runtime_resolve_xsavec): Likewise.
28493 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
28495         [BZ #22320]
28496         CVE-2017-15670
28497         * posix/glob.c (__glob): Fix one-byte overflow.
28499 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
28501         * malloc/malloc.c (sysdep-cancel.h): Add include.
28503 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
28505         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
28507 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
28509         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
28510         (tests): Remove $(objpfx)ga_test depdendency.
28511         * resolv/ga_test.c: Remove file.
28513 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
28515         [BZ #18812]
28516         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
28517         * localedata/locales/kab_DZ: New file.
28519 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
28521         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
28522         _dl_relocate_static_pie instead of _dl_start to compute load
28523         address in static PIE.
28525 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
28527         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
28529 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
28531         [BZ #13605]
28532         * localedata/SUPPORTED: Add shn_MM/UTF-8.
28533         * localedata/locales/shn_MM: New file.
28535 2017-10-20  Florian Weimer  <fweimer@redhat.com>
28537         [BZ #22321]
28538         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
28539         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
28540         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
28541         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
28542         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
28543         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
28545 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
28547         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
28549 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
28551         * sysdeps/mips/ieee754/bits/floatn.h: New file.
28553         [BZ #22322]
28554         * sysdeps/mips/bits/long-double.h: Move to ....
28555         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
28557 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
28559         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
28561 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
28562             H.J. Lu  <hongjiu.lu@intel.com>
28564         [BZ #22299]
28565         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
28566         GLRO(dl_platform) to NULL.
28567         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
28568         (modules-names): Add tst-platformmod-1 and
28569         x86_64/tst-platformmod-2.
28570         (CFLAGS-tst-platform-1.c): New.
28571         (CFLAGS-tst-platformmod-1.c): Likewise.
28572         (CFLAGS-tst-platformmod-2.c): Likewise.
28573         (LDFLAGS-tst-platformmod-2.so): Likewise.
28574         ($(objpfx)tst-platform-1): Likewise.
28575         ($(objpfx)tst-platform-1.out): Likewise.
28576         (tst-platform-1-ENV): Likewise.
28577         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
28578         * sysdeps/x86_64/tst-platform-1.c: New file.
28579         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
28580         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
28582 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
28584         [BZ #13994]
28585         * locale/iso-639.def: Add Karbi.
28586         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
28587         * localedata/locales/mjw_IN: New file.
28589 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
28591         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
28592         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
28593         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
28594         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
28595         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
28596         (libm_alias_ldouble_other_r): Also create _Float128 alias.
28597         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
28598         <bits/floatn.h>.
28599         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
28600         (libm_alias_ldouble_other_r): Also create _Float128 alias.
28601         * manual/math.texi (Mathematics): Document additional architecture
28602         support for _Float128.
28603         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
28604         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
28605         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
28606         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28607         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28608         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
28609         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
28610         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
28611         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28612         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
28613         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28614         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
28615         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28616         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
28617         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28619 2017-10-18  Renlin Li  <renlin.li@arm.com>
28621         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
28622         _DYNAMIC symbol to calculate load address.
28624 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
28626         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
28627         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
28628         summary bits.
28629         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
28630         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
28632 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
28634         [BZ #16777]
28635         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
28636         and improve readability by using more ASCII.
28637         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
28638         and improve readability by using more ASCII.
28640 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
28642         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
28643         not all targets support atomics on bool.
28645 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
28647         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
28648         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
28649         __f128.
28650         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
28651         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
28652         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
28653         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
28654         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
28655         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
28657 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28659         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
28660         defines.
28662 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
28664         [BZ #22159]
28665         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
28666         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
28667         (do_check_remalloced_chunk): Fix build bug.
28668         (do_check_malloc_state): Add assert that checks arena->top.
28669         (malloc_consolidate): Remove initialization.
28670         (int_mallinfo): Remove call to malloc_consolidate.
28671         (__libc_mallopt): Clarify why malloc_consolidate is needed.
28673 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
28675         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
28676         (have_fastchunks): Remove.
28677         (clear_fastchunks): Remove.
28678         (set_fastchunks): Remove.
28679         (malloc_state): Add have_fastchunks.
28680         (malloc_init_state): Use have_fastchunks.
28681         (do_check_malloc_state): Remove incorrect invariant checks.
28682         (_int_malloc): Use have_fastchunks.
28683         (_int_free): Likewise.
28684         (malloc_consolidate): Likewise.
28686 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
28688         * malloc/malloc.c (tcache_put): Inline.
28689         (tcache_get): Inline.
28691 2017-10-17  Jordi Mallach  <jordi@gnu.org>
28693         Aurelien Jarno  <aurelien@aurel32.net>
28694         [BZ #2522]
28695         * localedata/locales/ca_ES@valencia: New file.
28696         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
28698 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
28700         [BZ #22296]
28701         * math/math.h: Let signbit use the builtin in C++ mode with gcc
28702         < 6.x
28704 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28706         * scripts/build-many-glibcs.py (Context.add_all_configs):
28707         Add arm-linux-gnueabihf multiarch extra_glibcs.
28709         * sysdeps/generic/ifunc-init.h: New file.
28710         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
28712 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
28714         [BZ #22019]
28715         * localedata/locales/el_GR: Set n_cs_precedes to 0.
28716         * localedata/locales/el_CY: copy "el_GR" because it is identical.
28717         * stdlib/tst-strfmon_l.c: adapt test case.
28719 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
28721         * sysdeps/generic/float128-abi.h: New file.
28722         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
28723         non-__prefixed symbols to ....
28724         * math/Versions: ... here.  Include <float128-abi.h>.
28725         * stdlib/Versions ... and here.  Include <float128-abi.h>
28727 2017-10-16  Florian Weimer  <fweimer@redhat.com>
28729         * version.h (VERSION): Switch to ".9000" as the development
28730         version suffix.
28732 2017-10-16  Florian Weimer  <fweimer@redhat.com>
28734         [BZ #22050]
28735         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
28736         compat_symbol_reference to access non-default version.
28738 2017-10-16  Florian Weimer  <fweimer@redhat.com>
28740         * malloc/Makefile (others-extras): Set to mcheck-init.o.
28742 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
28744         * include/shlib-compat.h (compat_symbol_reference): Update
28745         comment.
28747 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
28749         * math/Makefile (test-types): Add
28750         $(type-float128-$(float128-alias-fcts)).
28751         * math/test-float128.h (TYPE_STR): Define conditional on
28752         [FLT128_MANT_DIG == LDBL_MANT_DIG].
28753         (ULP_IDX): Likewise.
28754         (ULP_I_IDX): Likewise.
28756         * stdlib/strtold.c: Include <bits/floatn.h>
28757         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
28758         and later undefine as macro.  Define as weak alias if
28759         [!USE_WIDE_CHAR].
28760         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
28761         and later undefine as macro.  Define as weak alias if
28762         [USE_WIDE_CHAR].
28763         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
28764         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
28765         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
28766         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
28767         Define and later undefine as macro.  Define as weak alias if
28768         [USE_WIDE_CHAR].
28769         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
28770         <bits/floatn.h>.
28771         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
28772         Define and later undefine as macro.  Define as weak alias if
28773         [!USE_WIDE_CHAR].
28774         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
28775         Define and later undefine as macro.  Define as weak alias if
28776         [USE_WIDE_CHAR].
28778 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
28780         * localedata/collate-test.c (allocate_arrays): Don't use \n in
28781         record_verbose messages.
28783 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
28785         [BZ #22052]
28786         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
28787         to silence -O3 -Wall warning with GCC 7.
28789 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
28791         * Makeconfig (+link-static-before-libc): Use the first of
28792         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
28793         * gmon/Makefile (tests): Add tst-gmon-static.
28794         (tests-static): Likewise.
28795         (CFLAGS-tst-gmon-static.c): New.
28796         (CRT-tst-gmon-static): Likewise.
28797         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
28798         (tst-gmon-static-ENV): Likewise.
28799         (tests-special): Likewise.
28800         ($(objpfx)tst-gmon-static.out): Likewise.
28801         (clean-tst-gmon-static-data): Likewise.
28802         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
28803         * gmon/tst-gmon-static-gprof.sh: New file.
28804         * gmon/tst-gmon-static.c: Likewise.
28806 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
28808         [BZ #22295]
28809         * locale/programs/linereader.c (get_string): Don't warn on
28810         non-symbolic character.
28812         [BZ #22294]
28813         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
28814         int_curr_symbol.
28816         [BZ #22292]
28817         * locale/programs/record-status.h: New file
28818         * locale/programs/locale.c: Add comment.
28819         * locale/programs/charmap-dir.c: Don't include error.h.
28820         (charmap_opendir): Use record_error.
28821         * locale/programs/charmap.c: Don't include error.h.
28822         (charmap_read): Use record_error, and record_warning.
28823         (parse_charmap): Likewise.
28824         * locale/programs/ld-address.c: Don't include error.h.
28825         (address_finish): Use record_error, and record_warning.
28826         * locale/programs/ld-collate.c: Don't include error.h.
28827         (collate_finish): Use record_error, and record_error_at_line.
28828         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
28829         (ctype_class_new): Likewise.
28830         (ctype_map_new): Likewise.
28831         (set_one_default): Likewise.
28832         (set_class_defaults): Likewise.
28833         (translit_flatten): Likewise.
28834         (allocate_arrays): Use record_error, and record_verbose.
28835         * locale/programs/ld-identification.c: Don't include error.h.
28836         (indentation_finish): Use record_error and record_warning.
28837         * locale/programs/ld-measurement.c: Don't include error.h.
28838         (measurement_finish): Use record_error.
28839         * locale/programs/ld-messages.c
28840         (message_finish): Likewise.
28841         * locale/programs/ld-monetary.c
28842         (monetary_finish): Likewise.
28843         * locale/programs/ld-name.c (name_finish): Use record_error
28844         and record_warning.
28845         * locale/programs/ld-numeric.c
28846         (numeric_finish): Use record_error.
28847         * locale/programs/ld-paper.c: Don't include error.h.
28848         (paper_finish): Use record_error.
28849         * locale/programs/ld-telephone.c: Don't include error.h.
28850         (telephone_finish): Use record_error.
28851         * locale/programs/ld-time.c (time_finish): Likewise.
28852         * locale/programs/linereader.h (lr_error): Make inline func.
28853         * locale/programs/localedef.c: Define recorded_warning_count,
28854         and recorded_error_count.
28855         (main): Use record_error. Use recorded_error_count and
28856         recorded_warning_count to issue correct error returns.
28857         (add_to_readlist): Use record_error.
28858         (find_locale): Likewise.
28859         (load_locale): Likewise.
28860         * locale/programs/localedef.h: Remove be_quiet
28861         and WITH_CUR_LOCALE.
28862         * locale/programs/locarchive.c (compare_from_file): Use
28863         record_error.
28864         * locale/programs/locfile.c (write_locale_data): Use
28865         record_error.
28866         * locale/programs/repertoire.c: Dont include error.h.
28867         (repertoire_complain): Use record_error.
28868         * localedata/tst-fmon.sh: Expect failures from localedef.
28869         * localedata/tst-locale.sh: Likewise.
28870         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
28872         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
28873         (REPORTS): Likewise.
28874         (check): Likewise.
28875         (i18n): Rename to...
28876         (i18n_ctype): ...this.
28877         (i18n-report): Rename to...
28878         (i18n_ctype-report): ...this.
28879         * localedata/locales/i18n_ctype: Regenerate.
28880         * localedata/locales/i18n: copy i18n_ctype.
28882 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
28884         * stdlib/strfroml.c: Include <bits/floatn.h>.
28885         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
28886         Define before include of <stdlib.h> and undefine afterwards, then
28887         define as weak alias.
28889         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
28890         Undefine and restore default definition.  Use
28891         libm_alias_ldouble_other.
28893 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
28895         [BZ #22153]
28896         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
28897         in coredumps.
28899 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
28901         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
28902         Assign sym_map to be map for local symbols, as TLS relocations
28903         use sym_map to determine whether the symbol is defined and to
28904         extract the TLS information.
28905         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
28906         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
28908 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28910         [BZ #22189]
28911         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
28912         (math_force_eval): Add powerpc version.
28914         [BZ #22142]
28915         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
28916         -DBL_MAX.
28917         (do_test): Likewise.
28918         * stdio-common/tst-printf.sh: Likewise.
28919         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
28920         ifdef clause in order to set the carry bit right.  Replace r0 by
28921         0 without changing the behavior.
28923 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
28925         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
28926         <libm-alias-ldouble.h>.
28927         (fabsl): Define using libm_alias_ldouble.
28928         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
28929         <libm-alias-ldouble.h>.
28930         (fabsl): Define using libm_alias_ldouble.
28932         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
28933         Remove conditional code.
28935         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
28936         Rename to __clog10_internal_l.
28937         (__clog10_internal_l): Define aliases using
28938         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
28939         with __clog10.
28941 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28943         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
28944         * benchtests/sincosf-inputs: New file.
28945         * benchtests/cosf-inputs: New file.
28946         * benchtests/sinf-inputs: New file.
28948 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28950         * posix/tst-spawn.c (do_test): Wait for both children.
28952 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
28954         [BZ #22284]
28955         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
28956         tests-pie): Add tst-gmon-pie.
28957         (CFLAGS-tst-gmon-pie.c): New.
28958         (CRT-tst-gmon-pie): Likewise.
28959         (tst-gmon-pie-ENV): Likewise.
28960         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
28961         ($(objpfx)tst-gmon-pie.out): Likewise.
28962         (clean-tst-gmon-pie-data): Likewise.
28963         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
28964         * gmon/gmon.c [PIC]: Include <link.h>.
28965         [PIC] (callback): New function.
28966         (write_hist): Add an argument for load address.  Subtract load
28967         address from PCs.
28968         (write_call_graph): Likewise.
28969         (write_gmon): Call __dl_iterate_phdr to get load address, pass
28970         it to write_hist and write_call_graph.
28971         * gmon/tst-gmon-pie.c: New file.
28973 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
28975         * math/Makefile (test-types-basic): New variable.
28976         (test-types): Likewise.
28977         (libm-test-support): Use $(test-types) instead of $(types).
28978         (libm-tests-base-normal): Likewise.
28979         (libm-tests-base-finite): Likewise.
28980         (libm-tests-base-inline): Likewise.
28981         (generated): Likewise.
28982         ($(objpfx)libm-test-support-$(t).c): Likewise.
28983         (libm-tests-for-type iterator): Likewise.
28984         (libm-test-support iterator): Likewise.
28985         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
28986         (ulp_idx): Use ULP_IDX.
28987         * math/test-ldouble.h: Include <float.h>.
28988         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
28989         (ULP_IDX): New macro.
28990         (ULP_I_IDX): Likewise.
28991         * math/test-double.h (ULP_IDX): Likewise.
28992         (ULP_I_IDX): Likewise.
28993         * math/test-float.h (ULP_IDX): Likewise.
28994         (ULP_I_IDX): Likewise.
28995         * math/test-float128.h (ULP_IDX): Likewise.
28996         (ULP_I_IDX): Likewise.
28998 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29000         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
29001         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
29002         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
29003         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
29004         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
29005         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
29006         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
29007         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
29008         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
29009         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
29010         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
29011         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
29012         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
29013         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
29014         (SINGLE_THREAD_BY_GLOBAL): Define.
29015         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29016         Likewise.
29017         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29018         Likewise.
29019         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29020         Likewise.
29021         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29022         Likewise.
29023         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
29024         (SINGLE_THREAD_BY_GLOBAL): Likewise.
29025         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29026         Likewise.
29028 2017-10-11  Andreas Schwab  <schwab@suse.de>
29030         * nis/Makefile (aux): Remove.
29031         * nscd/Makefile (aux): Add nscd_hash.
29032         (nscd-modules): Likewise.
29033         ($(objpfx)nscd): Don't depend on libnsl.
29034         * nscd/nscd_hash.c: New file.
29035         * nscd/nscd_hash.h: Likewise.
29036         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
29037         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
29038         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
29039         instead of <nis/rpcsvc/nis.h>.
29040         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
29042 2017-10-11  Florian Weimer  <fweimer@redhat.com>
29044         [BZ #22078]
29045         Avoid large NSS buffers with many addresses, aliases.
29046         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
29047         using dynarrays and struct alloc_buffer.
29048         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
29049         (tst-nss-files-hosts-multi): Link with -ldl.
29050         * nss/tst-nss-files-hosts-multi.c: New file.
29052 2017-10-11  Florian Weimer  <fweimer@redhat.com>
29054         [BZ #18023]
29055         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
29056         scratch_buffer.  Eliminate gotos.
29058 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
29060         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
29061         libm_alias_ldouble_other.
29062         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
29063         undefine and redefine.
29064         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29065         (exp10l): Do not define here.
29066         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
29067         (weak_alias): Undefine and redefine.
29068         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
29069         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29070         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
29071         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
29073         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
29074         [!__fma] (fma): Define using libm_alias_double.
29075         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
29076         [!__fmaf] (fmaf): Define using libm_alias_float.
29077         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
29078         (fmal): Define using libm_alias_ldouble.
29080 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
29082         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
29083         New macro.
29084         (libm_alias_double_other): Likewise.
29085         (libm_alias_double_r): Use libm_alias_double_other_r.
29086         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
29087         New macro.
29088         (libm_alias_float_other): Likewise.
29089         (libm_alias_float_r): Use libm_alias_float_other_r.
29090         * sysdeps/generic/libm-alias-float128.h
29091         (libm_alias_float128_other_r): New macro.
29092         (libm_alias_float128_other): Likewise.
29093         (libm_alias_float128_r): Use libm_alias_float128_other_r.
29094         * sysdeps/generic/libm-alias-ldouble.h
29095         (libm_alias_ldouble_other_r): New macro.
29096         (libm_alias_ldouble_other): Likewise.
29097         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
29098         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
29099         (libm_alias_double_other_r): New macro.
29100         (libm_alias_double_other): Likewise.
29101         (libm_alias_double_r): Use libm_alias_double_other_r.
29102         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
29103         (libm_alias_ldouble_other_r): New macro.
29104         (libm_alias_ldouble_other): Likewise.
29105         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
29106         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
29107         [!USE_AS_COMPAT]: Use libm_alias_double_other.
29108         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
29109         [!USE_AS_COMPAT]: Use libm_alias_float_other.
29110         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
29111         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
29112         * math/w_exp2f.c: Use libm_alias_float_other.
29113         * math/w_expf.c: Likewise.
29114         * math/w_log2f.c: Likewise.
29115         * math/w_logf.c: Likewise.
29116         * math/w_powf.c: Likewise.
29117         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
29118         [!__exp2f]: Use libm_alias_float_other.
29119         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
29120         [!__expf]: Use libm_alias_float_other.
29121         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
29122         [!__log2f]: Use libm_alias_float_other.
29123         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
29124         [!__logf]: Use libm_alias_float_other.
29125         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
29126         [!__powf]: Use libm_alias_float_other.
29128 2017-10-10  Florian Weimer  <fweimer@redhat.com>
29130         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
29131         function.
29132         (_nss_files_gethostbyname3_r): Call it.
29134 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
29136         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
29137         error.  Remove default definition of declare_mgen_alias.
29138         [!declare_mgen_alias_r]: Likewise.
29139         * sysdeps/generic/math-type-macros-double.h
29140         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
29141         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
29142         (declare_mgen_alias_r): Likewise.
29143         * sysdeps/generic/math-type-macros-float128.h
29144         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
29145         * sysdeps/generic/math-type-macros-ldouble.h
29146         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
29147         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
29148         macro.
29149         (declare_mgen_alias_r_s): Likewise.
29150         (declare_mgen_alias_r): Likewise.
29151         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
29152         (lgamma_r): Define using libm_alias_double_r.
29153         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
29154         (lgammaf_r): Define using libm_alias_float_r.
29155         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
29156         (lgammal_r): Define using libm_alias_ldouble_r.
29157         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
29158         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29160 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29162         * lib/glob.c (__glob_pattern_type): Remove now-spurious
29163         extern declaration.
29165 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
29167         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
29169 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
29171         [BZ #21326]
29172         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
29173         [__cplusplus >= 201103] (__USE_ISOC99): Define.
29174         * math/Makefile (test-math-cxx11): New test.
29175         * math/test-math-cxx11.cc: New file.
29177 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
29179         * login/openpty.c (openpty): Close slave pty file descriptor on error.
29181         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
29182         call to allocate the slave pty file descriptor.
29184 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
29186         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
29187         [!__fma] (fma): Define using libm_alias_double.
29188         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
29189         [!__fma] (fma): Define using libm_alias_double.
29191         * sysdeps/ieee754/float128/float128_private.h: Include
29192         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
29193         (libm_alias_ldouble_r): Undefine and redefine.
29194         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
29195         <libm-alias-ldouble.h>.
29196         (asinhl): Define using libm_alias_ldouble.
29197         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
29198         <libm-alias-ldouble.h>.
29199         (atanl): Define using libm_alias_ldouble.
29200         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
29201         <libm-alias-ldouble.h>.
29202         (cbrtl): Define using libm_alias_ldouble.
29203         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
29204         <libm-alias-ldouble.h>.
29205         (ceill): Define using libm_alias_ldouble.
29206         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
29207         <libm-alias-ldouble.h>.
29208         (copysignl): Define using libm_alias_ldouble.
29209         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
29210         <libm-alias-ldouble.h>.
29211         (cosl): Define using libm_alias_ldouble.
29212         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
29213         <libm-alias-ldouble.h>.
29214         (erfl): Define using libm_alias_ldouble.
29215         (erfcl): Likewise.
29216         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
29217         <libm-alias-ldouble.h>.
29218         (expm1l): Define using libm_alias_ldouble.
29219         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
29220         <libm-alias-ldouble.h>.
29221         (fabsl): Define using libm_alias_ldouble.
29222         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
29223         <libm-alias-ldouble.h>.
29224         (floorl): Define using libm_alias_ldouble.
29225         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
29226         <libm-alias-ldouble.h>.
29227         (fmal): Define using libm_alias_ldouble.
29228         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
29229         <libm-alias-ldouble.h>.
29230         (frexpl): Define using libm_alias_ldouble.
29231         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
29232         libm_alias_ldouble.
29233         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
29234         <libm-alias-ldouble.h>.
29235         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
29236         libm_alias_ldouble.
29237         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
29238         <libm-alias-ldouble.h>.
29239         (getpayloadl): Define using libm_alias_ldouble.
29240         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
29241         <libm-alias-ldouble.h>.
29242         (llrintl): Define using libm_alias_ldouble.
29243         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
29244         <libm-alias-ldouble.h>.
29245         (llroundl): Define using libm_alias_ldouble.
29246         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
29247         <libm-alias-ldouble.h>.
29248         (logbl): Define using libm_alias_ldouble.
29249         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
29250         <libm-alias-ldouble.h>.
29251         (lrintl): Define using libm_alias_ldouble.
29252         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
29253         <libm-alias-ldouble.h>.
29254         (lroundl): Define using libm_alias_ldouble.
29255         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
29256         <libm-alias-ldouble.h>.
29257         (modfl): Define using libm_alias_ldouble.
29258         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
29259         <libm-alias-ldouble.h>.
29260         (nearbyintl): Define using libm_alias_ldouble.
29261         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
29262         <libm-alias-ldouble.h>.
29263         (nextafterl): Define using libm_alias_ldouble.
29264         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
29265         <libm-alias-ldouble.h>.
29266         (nextupl): Define using libm_alias_ldouble.
29267         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
29268         <libm-alias-ldouble.h>.
29269         (remquol): Define using libm_alias_ldouble.
29270         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
29271         <libm-alias-ldouble.h>.
29272         (rintl): Define using libm_alias_ldouble.
29273         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
29274         <libm-alias-ldouble.h>.
29275         (roundevenl): Define using libm_alias_ldouble.
29276         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
29277         <libm-alias-ldouble.h>.
29278         (roundl): Define using libm_alias_ldouble.
29279         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
29280         using libm_alias_ldouble.
29281         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
29282         <libm-alias-ldouble.h>.
29283         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
29284         Define using libm_alias_ldouble.
29285         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
29286         <libm-alias-ldouble.h>.
29287         (sincosl): Define using libm_alias_ldouble.
29288         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
29289         <libm-alias-ldouble.h>.
29290         (sinl): Define using libm_alias_ldouble.
29291         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
29292         <libm-alias-ldouble.h>.
29293         (tanhl): Define using libm_alias_ldouble.
29294         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
29295         <libm-alias-ldouble.h>.
29296         (tanl): Define using libm_alias_ldouble.
29297         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
29298         <libm-alias-ldouble.h>.
29299         (totalorderl): Define using libm_alias_ldouble.
29300         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
29301         <libm-alias-ldouble.h>.
29302         (totalordermagl): Define using libm_alias_ldouble.
29303         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
29304         <libm-alias-ldouble.h>.
29305         (truncl): Define using libm_alias_ldouble.
29306         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
29307         libm_alias_ldouble.
29308         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
29309         libm_alias_ldouble.
29310         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
29311         <libm-alias-ldouble.h>.
29312         (weak_alias): Do not undefine and redefine.
29313         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
29314         (copysignl): Define with long_double_symbol only if [IS_IN
29315         (libc)].
29316         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
29317         <libm-alias-ldouble.h>.
29318         (weak_alias): Do not undefine and redefine.
29319         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
29320         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
29321         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
29322         <libm-alias-ldouble.h>.
29323         (weak_alias): Do not undefine and redefine.
29324         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
29325         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
29326         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
29327         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
29328         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
29329         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
29330         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
29331         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
29332         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
29333         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
29334         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
29335         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
29336         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
29337         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
29338         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
29339         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
29340         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
29341         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
29342         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
29343         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
29344         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
29345         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
29346         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
29347         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
29348         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
29349         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
29351 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
29353         [BZ #22111]
29354         * malloc/malloc.c (tcache_shutting_down): Use bool type.
29355         (tcache_thread_freeres): Set tcache_shutting_down before
29356         freeing the tcache.
29357         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
29358         * malloc/tst-malloc-tcache-leak.c: New file.
29360 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
29362         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
29363         back to powerpc32 file.
29364         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
29365         (memrchr): Add __memrchr_power8 to ifunc list.
29366         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
29367         extra bytes for unaligned inputs.
29369 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
29371         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
29372         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
29373         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
29374         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
29375         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
29377 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
29379         * sysdeps/arm/libm-test-ulps: Update.
29381         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
29382         <libm-alias-ldouble.h>.
29383         (asinhl): Define using libm_alias_ldouble.
29384         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
29385         <libm-alias-ldouble.h>.
29386         (cbrtl): Define using libm_alias_ldouble.
29387         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
29388         <libm-alias-ldouble.h>.
29389         (copysignl): Define using libm_alias_ldouble.
29390         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
29391         <libm-alias-ldouble.h>.
29392         (cosl): Define using libm_alias_ldouble.
29393         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
29394         <libm-alias-ldouble.h>.
29395         (erfl): Define using libm_alias_ldouble.
29396         (erfcl): Likewise.
29397         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
29398         <libm-alias-ldouble.h>.
29399         (fmal): Define using libm_alias_ldouble.
29400         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
29401         <libm-alias-ldouble.h>.
29402         (frexpl): Define using libm_alias_ldouble.
29403         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
29404         libm_alias_ldouble.
29405         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
29406         <libm-alias-ldouble.h>.
29407         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
29408         libm_alias_ldouble.
29409         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
29410         <libm-alias-ldouble.h>.
29411         (getpayloadl): Define using libm_alias_ldouble.
29412         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
29413         <libm-alias-ldouble.h>.
29414         (llrintl): Define using libm_alias_ldouble.
29415         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
29416         <libm-alias-ldouble.h>.
29417         (llroundl): Define using libm_alias_ldouble.
29418         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
29419         <libm-alias-ldouble.h>.
29420         (lrintl): Define using libm_alias_ldouble.
29421         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
29422         <libm-alias-ldouble.h>.
29423         (lroundl): Define using libm_alias_ldouble.
29424         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
29425         <libm-alias-ldouble.h>.
29426         (modfl): Define using libm_alias_ldouble.
29427         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
29428         <libm-alias-ldouble.h>.
29429         (nextupl): Define using libm_alias_ldouble.
29430         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
29431         <libm-alias-ldouble.h>.
29432         (remquol): Define using libm_alias_ldouble.
29433         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
29434         <libm-alias-ldouble.h>.
29435         (roundevenl): Define using libm_alias_ldouble.
29436         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
29437         <libm-alias-ldouble.h>.
29438         (roundl): Define using libm_alias_ldouble.
29439         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
29440         using libm_alias_ldouble.
29441         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
29442         <libm-alias-ldouble.h>.
29443         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
29444         <libm-alias-ldouble.h>.
29445         (setpayloadsigl): Define using libm_alias_ldouble.
29446         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
29447         <libm-alias-ldouble.h>.
29448         (sincosl): Define using libm_alias_ldouble.
29449         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
29450         <libm-alias-ldouble.h>.
29451         (sinl): Define using libm_alias_ldouble.
29452         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
29453         <libm-alias-ldouble.h>.
29454         (tanhl): Define using libm_alias_ldouble.
29455         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
29456         <libm-alias-ldouble.h>.
29457         (tanl): Define using libm_alias_ldouble.
29458         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
29459         <libm-alias-ldouble.h>.
29460         (totalorderl): Define using libm_alias_ldouble.
29461         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
29462         <libm-alias-ldouble.h>.
29463         (totalordermagl): Define using libm_alias_ldouble.
29464         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
29465         libm_alias_ldouble.
29466         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
29467         libm_alias_ldouble.
29469 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
29471         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
29472         memmove_falkor.
29473         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
29474         (__libc_ifunc_impl_list): Likewise.
29475         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
29476         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
29478         * benchtests/bench-memmove-walk.c: New file.
29479         * benchtests/Makefile (string-benchset): Add it.
29481         * benchtests/bench-memset-walk.c: New file.
29482         * benchtests/Makefile (string-benchset): Add it.
29484         * benchtests/bench-memcpy-walk.c: New file.
29485         * benchtests/Makefile (string-benchset): Add it.
29487 2017-10-05  Florian Weimer  <fweimer@redhat.com>
29489         nscd: Eliminate compilation time dependency in the build output.
29490         * nscd/nscd_stat.c (STATDATA_VERSION)
29491         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
29492         (STATDATA_VERSION_FULL): New macro definitions.
29493         (compilation): Remove.
29494         (struct statdata): Adjust version member.
29495         (send_stats): Set version from STATDATA_VERSION_FULL.
29496         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
29498 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
29500         * configure.ac (--enable-add-ons): Remove option.
29501         (machine): Do not mention add-ons in comment.
29502         (LIBC_PRECONFIGURE): Likewise.
29503         (add_ons): Remove variable and sanity checks and logic to locate
29504         add-ons.
29505         (add_ons_automatic): Remove variable.
29506         (configured_add_ons): Likewise.
29507         (add_ons_sfx): Likewise.
29508         (add_ons_pfx): Likewise.
29509         (add_on_subdirs): Likewise.
29510         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
29511         consideration of add-ons in Implies handling.
29512         (sysdeps_add_ons): Likewise.
29513         * configure: Regenerated.
29514         * libidn/configure.ac: Remove.
29515         * libidn/configure: Likewise.
29516         * sysdeps/unix/inet/configure.ac: New file.
29517         * sysdeps/unix/inet/configure: New generated file.
29518         * sysdeps/unix/inet/Subdirs: Add libidn.
29519         * Makeconfig (sysdeps-srcdirs): Remove variable.
29520         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
29521         ($(common-objpfx)config.status): Do not depend on add-on files.
29522         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
29523         comment.
29524         (all-subdirs): Do not include $(add-on-subdirs).
29525         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
29526         * config.make.in (add-ons): Remove variable.
29527         (add-on-subdirs): Likewise.
29528         (sysdeps-add-ons): Likewise.
29529         * manual/Makefile (add-chapters): Remove.
29530         ($(objpfx)texis): Do not depend on $(add-chapters).
29531         (nonexamples): Do not handle $(add-chapters).
29532         (examples): Do not handle $(add-ons).
29533         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
29534         libc-texinfo.sh.
29535         * manual/install.texi (Installation): Do not mention add-ons.
29536         (--enable-add-ons): Do not document configure option.
29537         * INSTALL: Regenerated.
29538         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
29539         * manual/maint.texi (Hierarchy Conventions): Do not mention
29540         add-ons.
29541         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
29542         --enable-add-ons.
29543         * scripts/gen-sorted.awk: Do not handle Subdirs files from
29544         add-ons.
29545         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
29546         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
29548 2017-10-05  Andreas Schwab  <schwab@suse.de>
29550         [BZ #15142]
29551         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
29552         (_IO_flush_all_lockp): Always lock list_all_lock.
29553         (_IO_flush_all_linebuffered): Likewise.
29554         (_IO_unbuffer_all): Likewise.
29556 2017-10-05  Florian Weimer  <fweimer@redhat.com>
29558         [BZ #15436]
29559         Do not flush stdio streams on abort.
29560         * stdlib/abort.c (fflush): Remove macro definition.
29561         (abort): Remove stages related to stdio flushing.
29563 2017-10-05  Florian Weimer  <fweimer@redhat.com>
29565         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
29567 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
29569         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
29571 2017-10-05  Florian Weimer  <fweimer@redhat.com>
29573         * support/support_format_hostent.c (support_format_hostent): Add
29574         more error information for NETDB_INTERNAL.
29576 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
29578         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
29579         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
29580         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
29581         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
29582         AC_DEFINE if multi-arch is enabled.
29583         * sysdeps/i386/configure: Regenerated.
29585 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
29587         * Makeconfig (+link-static-before-libc): Use
29588         $(DEFAULT-LDFLAGS-$(@F)).
29589         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
29590         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
29591         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
29593 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
29595         * elf/Makefile (tests): Add tst-main1.
29596         (modules-names): Add tst-main1mod.
29597         ($(objpfx)tst-main1): New.
29598         (CRT-tst-main1): Likewise.
29599         (LDFLAGS-tst-main1): Likewise.
29600         (LDLIBS-tst-main1): Likewise.
29601         (tst-main1mod.so-no-z-defs): Likewise.
29602         * elf/tst-main1.c: New file.
29603         * elf/tst-main1mod.c: Likewise.
29605 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
29607         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
29609 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
29611         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
29612         (fma): Define using libm_alias_double.
29613         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
29614         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
29615         <math_ldbl_opt.h>.
29616         (fmal): Do not define as compat symbol here.
29617         * sysdeps/alpha/fpu/s_fma.c: New file.
29619 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29621         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
29623 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
29625         [BZ #22229]
29626         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
29627         <math_ldbl_opt.h>
29628         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
29629         and libc.
29630         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
29631         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
29632         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
29633         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
29634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
29635         Include <math_ldbl_opt.h>
29636         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
29637         and libc.
29638         (compat_symbol): Undefine and redefine.
29639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
29640         <math_ldbl_opt.h>
29641         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
29642         (compat_symbol): Undefine and redefine.
29643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
29644         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
29645         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
29646         GLIBC_2_1 for libm.
29647         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
29648         GLIBC_2.0 copysignl symbol.
29649         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
29650         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
29652         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
29654 2017-10-04  Florian Weimer  <fweimer@redhat.com>
29656         * scripts/check-local-headers.sh: Ignore nspr4 header file
29657         directory in addition to nspr.
29659 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
29661         [BZ #17956]
29662         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
29663         * configure: Regenerate.
29664         * crypt/Makefile (nss-cpp-flags): New variable.
29665         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
29666         (CPPFLAGS-md5-crypt.c): Use it.
29667         * scripts/check-local-headers.sh: Ignore nspr header file
29668         directory.
29670 2017-10-04  Andreas Schwab  <schwab@suse.de>
29672         * nis/Makefile (services): Remove compat.
29673         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
29674         ($(objpfx)libnss_compat.so): Remove rule.
29675         * nis/Versions (libnss_compat): Remove.
29676         * nss/Makefile (services): Add compat.
29677         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
29678         * nss/Versions (libnss_compat): Define.
29679         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
29680         Don't include <rpc/types.h>.  Replace bool_t by bool.
29681         * nss/nss_compat/compat-initgroups.c: Likewise.
29682         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
29683         instead of <rpcsrv/ypclnt.h>.
29684         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
29685         yp_get_default_domain.
29686         * nss/nss_compat/compat-pwd.c: Likewise.
29687         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
29688         yp_get_default_domain.
29689         * nss/nss_compat/nisdomain.c: New file.
29690         * nss/nss_compat/nisdomain.h: Likewise.
29692 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29694         [BZ #22244]
29695         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
29696         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29698 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29700         [BZ #22243]
29701         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
29702         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
29704 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
29706         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
29707         "movl main@GOTOFF(%ebx), %eax".
29709 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
29711         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
29712         allow undefined _DYNAMIC in PIE libc.a.
29713         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29714         Likewse.
29716 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
29718         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
29719         check _DYNAMIC.
29721 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
29723         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
29724         check _DYNAMIC.
29726 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
29728         * math/test-math-iscanonical.cc (error): Replace bool with int.
29730 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
29732         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
29733         (modf): Define using libm_alias_double, only if [!__modf].
29734         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
29735         <libm-alias-double.h>.
29736         (modf): Define using libm_alias_double, only if [!__modf].
29737         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
29738         compat symbol here.
29739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
29740         (weak_alias): Do not undefine and redefine.
29741         (strong_alias): Likewise.
29742         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
29743         (weak_alias): Likewise.
29744         (strong_alias): Likewise.
29746         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
29747         (logb): Define using libm_alias_double, only if [!__logb].
29748         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
29749         <libm-alias-double.h>.
29750         (logb): Define using libm_alias_double, only if [!__logb].
29751         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
29752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
29753         (weak_alias): Do not undefine and redefine.
29754         (strong_alias): Likewise.
29755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
29756         (weak_alias): Likewise.
29757         (strong_alias): Likewise.
29759 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
29761         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
29762         Check SHARED instead PIC.
29764 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
29766         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
29767         [!__fmaf] (fmaf): Define using libm_alias_float.
29769         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
29770         (frexp): Define using libm_alias_double.
29771         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
29772         <libm-alias-double.h>.
29773         (frexp): Define using libm_alias_double.
29774         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
29775         compat symbol here.
29777 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29779         [BZ #22235]
29780         * math/math.h: Trivial fix for unbalanced parentheses in comment.
29781         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
29782         (CFLAGS-test-math-iscanonical.cc): New variable.
29783         * math/test-math-iscanonical.cc: New file.
29784         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
29785         Provide a C++ implementation based on function overloading,
29786         rather than using __MATH_TG, which uses C-only builtins.
29787         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
29788         Likewise.
29789         * sysdeps/powerpc/powerpc64le/Makefile
29790         (CFLAGS-test-math-iscanonical.cc): New variable.
29792 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
29794         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
29795         (ceil): Define using libm_alias_double.
29796         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
29797         (floor): Define using libm_alias_double.
29798         * sysdeps/ieee754/dbl-64/s_llround.c: Include
29799         <libm-alias-double.h>.
29800         (llround): Define using libm_alias_double.
29801         * sysdeps/ieee754/dbl-64/s_lround.c: Include
29802         <libm-alias-double.h>.
29803         (lround): Define using libm_alias_double.
29804         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
29805         <libm-alias-double.h>.
29806         (nearbyint): Define using libm_alias_double.
29807         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
29808         <libm-alias-double.h>.
29809         (remquo): Define using libm_alias_double.
29810         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
29811         (rint): Define using libm_alias_double.
29812         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
29813         (round): Define using libm_alias_double.
29814         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
29815         (trunc): Define using libm_alias_double.
29816         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
29817         <libm-alias-double.h>.
29818         (ceil): Define using libm_alias_double.
29819         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
29820         <libm-alias-double.h>.
29821         (floor): Define using libm_alias_double.
29822         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
29823         <libm-alias-double.h>.
29824         (llround): Define using libm_alias_double.
29825         [_LP64] (lround): Likewise.
29826         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
29827         <libm-alias-double.h>.
29828         [!_LP64] (lround): Define using libm_alias_double.
29829         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
29830         <libm-alias-double.h>.
29831         (nearbyint): Define using libm_alias_double.
29832         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
29833         <libm-alias-double.h>.
29834         (remquo): Define using libm_alias_double.
29835         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
29836         <libm-alias-double.h>.
29837         (rint): Define using libm_alias_double.
29838         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
29839         <libm-alias-double.h>.
29840         (round): Define using libm_alias_double.
29841         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
29842         <libm-alias-double.h>.
29843         (trunc): Define using libm_alias_double.
29844         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
29845         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
29846         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
29847         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
29848         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
29849         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
29850         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
29851         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
29852         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
29854 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29856         * math/w_remainder.c: New file.
29857         * math/w_remainderf.c: New file.
29858         * math/w_remainderl.c: New file.
29860 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
29862         * elf/rtld.c (BOOTSTRAP_MAP): New.
29863         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
29864         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
29865         Likewise.
29866         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
29867         Likewise.
29868         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
29869         Likewise.
29871 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29873         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
29874         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
29875         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
29876         rtld_hidden_data_ver): Define to empty.
29877         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
29878         __assert_perror_fail): Likewise.
29879         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29880         (__rewinddir): Likewise.
29881         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29882         (__profile_frequency): Likewise.
29883         * include/setjmp.h (__sigsetjmp): Likewise.
29884         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
29885         __libc_sigaction): Likewise.
29886         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
29887         not set hidden attribute.
29888         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
29889         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
29890         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
29891         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
29892         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
29893         __fxstatat64): Likewise.
29894         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29895         (__uname): Likewise.
29896         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29897         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
29898         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
29899         (NO_RTLD_HIDDEN): Set.
29900         * sysdeps/mach/hurd/configure: Refresh.
29901         * config.h.in: Refresh.
29903 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
29905         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
29906         (atan): Define using libm_alias_double.
29907         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
29908         (tan): Define using libm_alias_double.
29909         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
29910         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
29912         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
29913         define as weak alias of __atan.  Do not define any aliases if
29914         [__atan].
29915         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
29916         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
29917         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
29918         as weak alias of __tan.  Do not define any aliases if [__tan].
29919         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
29920         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
29921         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
29922         __atan.
29923         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
29924         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
29925         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
29926         and define as weak alias of __atan.
29927         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
29928         __atan.
29929         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
29930         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
29931         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
29932         define as weak alias of __tan.
29934 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29936         * math/w_lgamma.c: New file.
29937         * math/w_lgammaf.c: New file.
29938         * math/w_lgammal.c: New file.
29940 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29942         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
29943         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
29944         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
29945         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
29946         * sysdeps/ieee754/flt-32/w_logf.c: New file.
29947         * sysdeps/ieee754/flt-32/w_powf.c: New file.
29948         * sysdeps/i386/fpu/w_log2f.c: New file.
29949         * sysdeps/i386/fpu/w_logf.c: New file.
29950         * sysdeps/i386/fpu/w_powf.c: New file.
29951         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
29952         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
29953         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
29955 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29956             H.J. Lu  <hongjiu.lu@intel.com>
29958         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
29959         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
29960         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
29961         * sysdeps/ieee754/flt-32/w_expf.c: New file.
29962         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
29963         the new expf code.
29964         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
29965         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
29966         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
29967         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
29968         * sysdeps/i386/fpu/w_exp2f.c: New file.
29969         * sysdeps/i386/fpu/w_expf.c: New file.
29970         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
29971         * sysdeps/x86_64/fpu/w_expf.c: New file.
29973 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29975         * math/Versions (logf): New libm symbol at GLIBC_2.27.
29976         (log2f): Likewise.
29977         (powf): Likewise.
29978         * math/w_log2f.c: New file.
29979         * math/w_logf.c: New file.
29980         * math/w_powf.c: New file.
29981         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
29982         * math/w_logf_compat.c (__logf_compat): Likewise.
29983         * math/w_powf_compat.c (__powf_compat): Likewise.
29984         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
29985         * sysdeps/ia64/fpu/e_logf.S: Likewise.
29986         * sysdeps/ia64/fpu/e_powf.S: Likewise.
29987         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29988         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29989         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29990         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29991         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29992         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29993         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29994         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29995         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29996         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29997         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29998         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
30000         Likewise.
30001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30002         Likewise.
30003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
30004         Likewise.
30005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
30006         Likewise.
30007         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30008         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30009         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
30010         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30011         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30012         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
30013         Likewise.
30014         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
30015         Likewise.
30016         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
30017         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
30018         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
30020 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
30022         * sysdeps/powerpc/powerpc64/multiarch/Makefile
30023         (sysdep_routines): Add memrchr_power8.
30024         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
30025         (memrchr): Add __memrchr_power8 to list of memrchr functions.
30026         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
30027         New file.
30028         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
30029         (memrchr): Add __memrchr_power8 to ifunc list.
30030         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
30032 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30034         [BZ #18822]
30035         * sysdeps/unix/sysv/linux/posix_fadvise64.c
30036         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
30037         libc_hidden_def.
30038         * sysdeps/unix/sysv/linux/posix_fallocate64.c
30039         (__posix_fallocate64_l64): Likewise.
30041 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30043         [BZ #18822]
30044         * sysdeps/unix/sysv/linux/sched_setaffinity.c
30045         (__sched_setaffinity_new): Add libc_hidden_proto and
30046         libc_hidden_def.
30048 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30050         [BZ #18822]
30051         * include/glob.h (__glob64): Add libc_hidden_proto.
30052         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
30053         libc_hidden_def.
30055 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30057         [BZ #18822]
30058         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
30059         attribute_hidden.
30061 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30063         [BZ #18822]
30064         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
30066 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30068         [BZ #18822]
30069         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
30070         libc_hidden_def.
30072 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30074         [BZ #18822]
30075         * csu/version.c (__libc_print_version): Add attribute_hidden.
30077 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30079         [BZ #18822]
30080         * include/libc-internal.h (__init_misc): Add attribute_hidden.
30082 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30084         [BZ #18822]
30085         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
30087 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30089         [BZ #18822]
30090         * nscd/nscd_helper.c (__nis_hash): New prototype.
30092 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30094         [BZ #18822]
30095         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
30096         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
30097         libc_hidden_def.
30098         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
30099         * termios/tcgetattr.c (__tcgetattr): Likewise.
30101 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30103         [BZ #18822]
30104         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
30105         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
30106         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
30107         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
30108         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
30110 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30112         [BZ #18822]
30113         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
30115 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30117         [BZ #18822]
30118         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
30119         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
30121 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30123         [BZ #18822]
30124         * intl/hash-string.h (__hash_string): Add attribute_hidden.
30126 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30128         [BZ #18822]
30129         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
30130         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
30132 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30134         [BZ #18822]
30135         * include/ifreq.h: New file.
30136         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
30137         (__ifreq): Likewise.
30138         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
30139         (__ifreq): Likewise.
30141 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30143         [BZ #18822]
30144         * include/idna.h: New file.
30145         * inet/getnameinfo.c: Include <idna.h> instead of
30146         <libidn/idna.h>.
30147         (__idna_to_unicode_lzlz): Removed.
30148         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
30149         <libidn/idna.h>.
30150         (__idna_to_ascii_lz): Removed.
30151         (__idna_to_unicode_lzlz): Likewise.
30153 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30155         [BZ #18822]
30156         * include/plural-exp.h: New file.
30157         * intl/plural-exp.c: Include <plural-exp.h> instead of
30158         "plural-exp.h".
30160 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30162         [BZ #18822]
30163         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
30164         "getsourcefilter.h".
30165         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
30166         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
30167         "getsourcefilter.h".
30168         (__get_sol): Removed.
30170 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30172         [BZ #18822]
30173         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
30174         to ...
30175         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
30177 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30179         [BZ #18822]
30180         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
30181         attribute_hidden.
30183 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30185         [BZ #18822]
30186         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
30188 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30190         [BZ #18822]
30191         * include/search.h (__tdestroy): Add libc_hidden_proto.
30192         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
30194 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30196         [BZ #18822]
30197         * include/assert.h (__assert_fail_base): Add attribute_hidden.
30199 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30201         [BZ #18822]
30202         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
30203         attribute_hidden.
30205 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30207         [BZ #18822]
30208         * include/signal.h (__kill): Add libc_hidden_proto.
30209         (__sigblock): Likewise.
30210         (__sigprocmask): Likewise.
30211         (__sigaltstack): Likewise.
30212         * signal/kill.c (__kill): Add libc_hidden_def.
30213         * signal/sigblock.c (__sigblock): Likewise.
30214         * signal/sigprocmask.c (__sigprocmask): Likewise.
30215         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
30216         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
30217         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
30218         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
30219         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
30220         Likewise.
30221         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
30222         Likewise.
30223         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
30224         (__sigprocmask): Likewise.
30225         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
30226         Likewise.
30227         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
30228         (__sigprocmask): Likewise.
30229         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
30230         Likewise.
30232 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30234         [BZ #18822]
30235         * include/string.h (__strsep): Add libc_hidden_proto.
30236         * string/strsep.c (__strsep): Add libc_hidden_def.
30238 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30240         [BZ #18822]
30241         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
30242         attribute_hidden.
30243         (__spawni): Likewise.
30245 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30247         [BZ #18822]
30248         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
30249         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
30250         libc_hidden_def.
30252 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30254         [BZ #18822]
30255         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
30257 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30259         [BZ #18822]
30260         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
30261         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
30262         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
30263         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
30264         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
30265         Likewise.
30266         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
30267         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
30269 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30271         [BZ #18822]
30272         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
30273         (__dcigettext): Likewise.
30275 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30277         [BZ #18822]
30278         * include/sys/sysinfo.h (__get_nprocs_conf): Add
30279         libc_hidden_proto.
30280         (__get_nprocs): Likewise.
30281         (__get_phys_pages): Likewise.
30282         (__get_avphys_pages): Likewise.
30283         (__get_child_max): Add attribute_hidden.
30284         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
30285         (__get_nprocs): Likewise.
30286         (__get_phys_pages): Likewise.
30287         (__get_avphys_pages): Likewise.
30288         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
30289         libc_hidden_def.
30290         (__get_nprocs): Likewise.
30291         (__get_phys_pages): Likewise.
30292         (__get_avphys_pages): Likewise.
30293         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
30294         libc_hidden_def.
30295         (__get_nprocs_conf): Likewise.
30296         (__get_phys_pages): Likewise.
30297         (__get_avphys_pages): Likewise.
30299 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30301         [BZ #18822]
30302         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
30303         attribute_hidden.
30304         (__netlink_close): Likewise.
30305         (__netlink_free_handle): Likewise.
30306         (__netlink_request): Likewise.
30308 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30310         [BZ #18822]
30311         * include/rpc/rpc.h (__rpc_thread_variables): Add
30312         attribute_hidden.
30313         (__rpc_thread_svc_cleanup): Likewise.
30314         (__rpc_thread_clnt_cleanup): Likewise.
30315         (__rpc_thread_key_cleanup): Likewise.
30317 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30319         [BZ #18822]
30320         * include/sys/uio.h (__readv): Add libc_hidden_proto.
30321         (__writev): Likewise.
30322         * misc/readv.c (__readv): Add libc_hidden_def.
30323         * misc/writev.c (__writev): Likewise.
30324         * sysdeps/posix/readv.c (__readv): Likewise.
30325         * sysdeps/posix/writev.c (__writev): Likewise.
30326         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
30327         (__readv): Likewise.
30328         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
30329         (__writev): Likewise.
30331 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30333         [BZ #18822]
30334         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
30335         (__regcomp): Add libc_hidden_proto.
30336         (__regexec): Likewise.
30337         (__regfree): Likewise.
30338         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
30339         (__regfree): Likewise.
30340         * posix/regexec.c (__regexec): Likewise.
30342 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30344         [BZ #18822]
30345         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
30346         (__getutent): Likewise.
30347         (__getutid): Likewise.
30348         (__getutline): Likewise.
30349         (__pututline): Likewise.
30350         (__getutent_r): Likewise.
30351         (__getutid_r): Likewise.
30352         (__getutline_r): Likewise.
30353         (__utmpname): Add attribute_hidden.
30354         (__setutent): Likewise.
30355         (__endutent): Likewise.
30356         * login/getutent.c (__getutent): Add libc_hidden_def.
30357         * login/getutent_r.c (__getutent_r): Likewise.
30358         (__pututline): Likewise.
30359         * login/getutid.c (__getutid): Likewise.
30360         * login/getutid_r.c (__getutid_r): Likewise.
30361         * login/getutline.c (__getutline): Likewise.
30362         * login/getutline_r.c (__getutline_r): Likewise.
30363         * login/updwtmp.c (__updwtmp): Likewise.
30365 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30367         [BZ #18822]
30368         * include/dirent.h (__opendir): Always add attribute_hidden.
30369         (__fdopendir): Likewise.
30370         (__closedir): Likewise.
30371         (__readdir): Likewise.
30372         (__readdir64): Add libc_hidden_proto.
30373         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
30374         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
30375         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
30376         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
30377         New alias.
30379 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30381         [BZ #18822]
30382         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
30383         * include/netdb.h (__gethostbyaddr_r): Likewise.
30384         (__gethostbyname_r): Likewise.
30385         (__gethostbyname2_r): Likewise.
30386         (__getnetbyaddr_r): Likewise.
30387         (__getnetbyname_r): Likewise.
30388         (__getservbyname_r): Likewise.
30389         (__getservbyport_r): Likewise.
30390         (__getprotobyname_r): Likewise.
30391         (__getprotobynumber_r): Likewise.
30392         (__getnetgrent_r): Likewise.
30393         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
30394         (__getrpcbynumber_r): Likewise.
30395         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
30397 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30399         [BZ #18822]
30400         * include/stdio.h (__fcloseall): Add attribute_hidden.
30401         (__getline): Likewise.
30402         (__path_search): Likewise.
30403         (__gen_tempname): Likewise.
30404         (__libc_message): Likewise.
30405         (__flockfile): Likewise.
30406         (__funlockfile): Likewise.
30407         (__fxprintf): Likewise.
30408         (__fxprintf_nocancel): Likewise.
30410 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30412         [BZ #18822]
30413         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
30414         (__sgetsgent_r): Likewise.
30416 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30418         [BZ #18822]
30419         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
30420         (__statfs64): Likewise.
30421         (__fstatfs64): Likewise.
30422         * include/sys/statvfs.h (__statvfs64): Likewise.
30423         (__fstatvfs64): Likewise.
30424         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
30425         (__statfs_filesize_max): Likewise.
30426         (__statfs_symlinks): Likewise.
30427         (__statfs_chown_restricted): Likewise.
30429 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30431         [BZ #18822]
30432         * include/time.h (__tzstring): Add attribute_hidden.
30433         (__tzfile_read): Likewise.
30434         (__tzfile_compute): Likewise.
30435         (__tzfile_default): Likewise.
30436         (__tzset_parse_tz): Likewise.
30437         (__offtime): Likewise.
30438         (__asctime_r): Likewise.
30439         (__tzset): Likewise.
30440         (__tz_convert): Likewise.
30441         (__getdate_r): Likewise.
30442         (__getclktck): Likewise.
30444 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30446         [BZ #18822]
30447         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
30448         (__nscd_unmap): Likewise.
30449         (__nscd_cache_search): Likewise.
30450         (__nscd_get_nl_timestamp): Likewise.
30451         (__nscd_getpwnam_r): Likewise.
30452         (__nscd_getpwuid_r): Likewise.
30453         (__nscd_getgrnam_r): Likewise.
30454         (__nscd_getgrgid_r): Likewise.
30455         (__nscd_gethostbyname_r): Likewise.
30456         (__nscd_gethostbyname2_r): Likewise.
30457         (__nscd_gethostbyaddr_r): Likewise.
30458         (__nscd_getai): Likewise.
30459         (__nscd_getgrouplist): Likewise.
30460         (__nscd_getservbyname_r): Likewise.
30461         (__nscd_getservbyport_r): Likewise.
30462         (__nscd_innetgr): Likewise.
30463         (__nscd_setnetgrent): Likewise.
30465 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30467         [BZ #18822]
30468         * include/gmp.h: Declare internal functions only if _ISOMAC is
30469         undefined.
30470         (__mpn_extract_double): Add attribute_hidden.
30471         (__mpn_extract_long_double): Likewise.
30472         (__mpn_extract_float128): Likewise.
30473         (__mpn_construct_float): Likewise.
30474         (__mpn_construct_double): Likewise.
30475         (__mpn_construct_long_double): Likewise.
30476         (__mpn_construct_float128): Likewise.
30477         (mpn_add_1): Likewise.
30478         (mpn_addmul_1): Likewise.
30479         (mpn_add_n): Likewise.
30480         (mpn_cmp): Likewise.
30481         (mpn_divrem): Likewise.
30482         (mpn_lshift): Likewise.
30483         (mpn_mul): Likewise.
30484         (mpn_mul_1): Likewise.
30485         (mpn_rshift): Likewise.
30486         (mpn_sub_1): Likewise.
30487         (mpn_submul_1): Likewise.
30488         (mpn_sub_n): Likewise.
30490 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30492         [BZ #18822]
30493         * include/wchar.h (__wcsnlen): Add attribute_hidden.
30494         (__wcscat): Likewise.
30495         (__btowc): Likewise.
30496         (__wcrtomb): Likewise.
30497         (__mbsrtowcs): Likewise.
30498         (__wcsrtombs): Likewise.
30499         (__mbsnrtowcs): Likewise.
30500         (__wcsnrtombs): Likewise.
30501         (__wcsncpy): Likewise.
30502         (__wcpncpy): Likewise.
30503         (__wmemcpy): Likewise.
30504         (__wmempcpy): Likewise.
30505         (__wmemmove): Likewise.
30506         (__wcschrnul): Likewise.
30507         (__vfwscanf): Likewise.
30508         (__vswprintf): Likewise.
30509         (__fwprintf): Likewise.
30510         (__vfwprintf): Likewise.
30512 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30514         [BZ #18822]
30515         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
30516         (__getgrgid_r): Likewise.
30517         (__getgrnam_r): Likewise.
30518         * include/pwd.h (__getpwuid_r): Likewise.
30519         (__getpwnam_r): Likewise.
30520         (__fgetpwent_r): Likewise.
30521         * include/shadow.h (__getspnam_r): Likewise.
30522         (__sgetspent_r): Likewise.
30523         (__fgetspent_r): Likewise.
30525 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30527         [BZ #18822]
30528         * include/unistd.h (__access): Add attribute_hidden.
30529         (__lseek64): Likewise.
30530         (__libc_pread64): Likewise.
30531         (__pipe2): Likewise.
30532         (__sleep): Likewise.
30533         (__chdir): Likewise.
30534         (__fchdir): Likewise.
30535         (__getcwd): Likewise.
30536         (__rmdir): Likewise.
30537         (__execvpe): Likewise.
30538         (__execve): Likewise.
30539         (__setsid): Likewise.
30540         (__getuid): Likewise.
30541         (__geteuid): Likewise.
30542         (__getgid): Likewise.
30543         (__getegid): Likewise.
30544         (__getgroups): Likewise.
30545         (__group_member): Likewise.
30546         (__ttyname_r): Likewise.
30547         (__isatty): Likewise.
30548         (__readlink): Likewise.
30549         (__unlink): Likewise.
30550         (__gethostname): Likewise.
30551         (__profil): Likewise.
30552         (__getdtablesize): Likewise.
30553         (__brk): Likewise.
30554         (__ftruncate): Likewise.
30555         (__ftruncate64): Likewise.
30557 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30559         [BZ #18822]
30560         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
30561         * argp/argp-fs-xinl.c: Likewise.
30562         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
30563         * argp/argp-parse.c: Include <argp.h>.
30564         * argp/argp-xinl.c: Likewise.
30565         * include/argp-fmtstream.h: New file.
30566         * include/argp.h (__argp_error): Add attribute_hidden.
30567         (__argp_failure): Likewise.
30568         (__argp_input): Likewise.
30569         (__argp_state_help): Likewise.
30571 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30573         [BZ #18822]
30574         * include/wchar.h (____wcstof_l_internal): New prototype.
30575         (____wcstod_l_internal): Likewise.
30576         (____wcstold_l_internal): Likewise.
30577         (____wcstol_l_internal): Likewise.
30578         (____wcstoul_l_internal): Likewise.
30579         (____wcstoll_l_internal): Likewise.
30580         (____wcstoull_l_internal): Likewise.
30581         (____wcstof128_l_internal): Likewise.
30582         * sysdeps/ieee754/float128/wcstof128.c
30583         (____wcstof128_l_internal): Removed.
30584         * sysdeps/ieee754/float128/wcstof128_l.c
30585         (____wcstof128_l_internal): Likewise.
30586         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
30587         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
30588         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
30589         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
30590         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
30591         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
30592         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
30593         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
30594         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
30595         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
30597 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30599         [BZ #18822]
30600         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
30601         instead of <sys/statvfs.h>.
30602         (__internal_statvfs): Removed.
30603         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
30604         instead of <sys/statvfs.h>.
30605         (__internal_statvfs64): Removed.
30606         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
30607         "internal_statvfs.h" instead of <sys/statvfs.h>.
30608         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
30609         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
30610         instead of <sys/statvfs.h>.
30611         (__internal_statvfs): Removed.
30612         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
30613         instead of <sys/statvfs.h>.
30614         (__internal_statvfs64): Removed.
30616 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30618         [BZ #18822]
30619         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
30620         (__gconv_close): Likewise.
30621         (__gconv): Likewise.
30622         (__gconv_find_transform): Likewise.
30623         (__gconv_lookup_cache): Likewise.
30624         (__gconv_compare_alias_cache): Likewise.
30625         (__gconv_load_cache): Likewise.
30626         (__gconv_get_path): Likewise.
30627         (__gconv_close_transform): Likewise.
30628         (__gconv_release_cache): Likewise.
30629         (__gconv_find_shlib): Likewise.
30630         (__gconv_release_shlib): Likewise.
30631         (__gconv_get_builtin_trans): Likewise.
30632         (__gconv_compare_alias): Likewise.
30633         * include/dlfcn.h (_dlerror_run): Likewise.
30634         * include/stdio.h (__fortify_fail_abort): Likewise.
30635         * include/time.h (__tz_compute): Likewise.
30636         (__strptime_internal): Likewise.
30637         * intl/gettextP.h (_nl_find_domain): Likewise.
30638         (_nl_load_domain): Likewise.
30639         (_nl_find_msg): Likewise.
30640         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
30641         (EXTRACT_PLURAL_EXPRESSION): Likewise.
30642         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
30643         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
30644         (__gai_find_request): Likewise.
30645         (__gai_remove_request): Likewise.
30646         (__gai_notify): Likewise.
30647         (__gai_notify_only): Likewise.
30648         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
30649         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30650         (_dl_non_dynamic_init): Likewise.
30651         (_dl_aux_init): Likewise.
30652         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
30653         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
30654         Likewise.
30655         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
30656         (__wcsmbs_clone_conv): Likewise.
30657         (__wcsmbs_named_conv): Likewise.
30659 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30661         [BZ #18822]
30662         * include/stdlib.h (__random): Add attribute_hidden.
30663         (__random_r): Likewise.
30664         (__srandom_r): Likewise.
30665         (__initstate_r): Likewise.
30666         (__setstate_r): Likewise.
30667         (__erand48_r): Likewise.
30668         (__nrand48_r): Likewise.
30669         (__jrand48_r): Likewise.
30670         (__srand48_r): Likewise.
30671         (__seed48_r): Likewise.
30672         (__lcong48_r): Likewise.
30673         (__drand48_iterate): Likewise.
30674         (__setenv): Likewise.
30675         (__unsetenv): Likewise.
30676         (__clearenv): Likewise.
30677         (__ptsname_r): Likewise.
30678         (__posix_openpt): Likewise.
30679         (__add_to_environ): Likewise.
30680         (__realpath): Add libc_hidden_proto.
30681         (__ecvt_r): Likewise.
30682         (__fcvt_r): Likewise.
30683         (__qecvt_r): Likewise.
30684         (__qfcvt_r): Likewise.
30685         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
30686         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
30688 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
30690         [BZ #18822]
30691         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
30692         * include/time.h (__mktime_internal): Likewise.
30693         * libio/iolibio.h (__fopen_internal): Likewise.
30695 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
30697         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
30698         pointer in frame.
30699         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
30700         Correct offset used to restore PIC register.
30702 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
30704         [BZ libc/22165]
30705         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
30706         code to load address of __getcontext_ret when generating PIC code.
30708 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
30710         * elf/Makefile (tests-static-internal): Add
30711         tst-tls1-static-non-pie.
30712         (LDFLAGS-tst-tls1-static-non-pie): New.
30713         * elf/tst-tls1-static-non-pie.c: New file.
30715 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
30717         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
30718         (asinh): Define using libm_alias_double.
30719         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
30720         (cbrt): Define using libm_alias_double.
30721         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
30722         <libm-alias-double.h>.
30723         (copysign): Define using libm_alias_double.
30724         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
30725         (erf): Define using libm_alias_double.
30726         (erfc): Likewise.
30727         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
30728         (expm1): Define using libm_alias_double.
30729         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
30730         (fabs): Define using libm_alias_double.
30731         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
30732         libm_alias_double.
30733         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
30734         <libm-alias-double.h>.
30735         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
30736         libm_alias_double.
30737         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
30738         <libm-alias-double.h>.
30739         (getpayload): Define using libm_alias_double.
30740         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
30741         <libm-alias-double.h>.
30742         (llrint): Define using libm_alias_double.
30743         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
30744         (lrint): Define using libm_alias_double.
30745         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
30746         <libm-alias-double.h>.
30747         (nextup): Define using libm_alias_double.
30748         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
30749         <libm-alias-double.h>.
30750         (roundeven): Define using libm_alias_double.
30751         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
30752         libm_alias_double.
30753         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
30754         <libm-alias-double.h>.
30755         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
30756         using libm_alias_double.
30757         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
30758         (cos): Define using libm_alias_double.
30759         (sin): Likewise.
30760         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
30761         <libm-alias-double.h>.
30762         (sincos): Define using libm_alias_double.
30763         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
30764         (tanh): Define using libm_alias_double.
30765         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
30766         <libm-alias-double.h>.
30767         (totalorder): Define using libm_alias_double.
30768         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
30769         <libm-alias-double.h>.
30770         (totalordermag): Define using libm_alias_double.
30771         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
30772         libm_alias_double.
30773         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
30774         libm_alias_double.
30775         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
30776         <libm-alias-double.h>.
30777         (getpayload): Define using libm_alias_double.
30778         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
30779         <libm-alias-double.h>.
30780         (roundeven): Define using libm_alias_double.
30781         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
30782         <libm-alias-double.h>.
30783         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
30784         <libm-alias-double.h>.
30785         (totalorder): Define using libm_alias_double.
30786         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
30787         <libm-alias-double.h>.
30788         (totalordermag): Define using libm_alias_double.
30789         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
30790         libc compat symbol here.
30791         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
30792         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
30793         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
30794         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
30795         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
30796         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
30797         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
30798         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
30799         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
30800         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
30802 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
30804         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
30805         _dl_relocate_static_pie instead of _dl_start to compute load
30806         address in static PIE.  Return 0 if _DYNAMIC is undefined for
30807         static executable.
30809 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
30811         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
30812         _DYNAMIC is undefined for static executable.
30814 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
30816         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
30818 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
30820         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
30822 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
30824         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
30825         (__ieee754_lgamma_r): Use fabs rather than __fabs.
30826         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
30827         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
30828         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
30829         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
30830         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
30831         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
30832         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
30833         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
30834         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
30835         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
30836         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
30837         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
30838         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
30839         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
30840         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
30842 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
30844         * math/bits/cmathcalls.h (cimag): Remove inline.
30845         (creal): Remove inline.
30846         (conj): Remove inline.
30848 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30850         * math/Makefile (type-float-routines): Add e_powf_log2_data.
30851         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
30852         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
30853         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
30854         (issignalingf_inline): Likewise.
30855         (POWF_LOG2_TABLE_BITS): Likewise.
30856         (POWF_LOG2_POLY_ORDER): Likewise.
30857         (POWF_SCALE_BITS): Likewise.
30858         (POWF_SCALE): Likewise.
30859         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
30860         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
30861         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
30863 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30865         * math/Makefile (type-float-routines): Add e_log2f_data.
30866         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
30867         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
30868         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
30869         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
30870         * sysdeps/i386/fpu/e_log2f_data.c: New file.
30871         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
30872         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
30874 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30876         * math/Makefile (type-float-routines): Add e_logf_data.
30877         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
30878         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
30879         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
30880         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
30881         * sysdeps/i386/fpu/e_logf_data.c: New file.
30882         * sysdeps/ia64/fpu/e_logf_data.c: New file.
30883         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
30885 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
30887         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
30888         undefined _DYNAMIC in PIE libc.a.
30889         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
30890         Likewse.
30892 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
30894         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
30895         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
30896         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
30897         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
30898         (__signbit): Remove.
30899         (__signbitl): Remove.
30900         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
30901         (__signbit): Remove.
30902         (__signbitl): Remove.
30903         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
30904         (__signbit): Remove.
30905         (__signbitl): Remove.
30906         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
30907         (__signbit): Remove.
30908         (__signbitl): Remove.
30909         * sysdeps/tile/bits/mathinline.h: Delete file.
30910         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
30911         (__signbit): Remove.
30912         (__signbitl): Remove.
30914 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
30916         * math/math.h: Improve handling of C99 isgreater macros.
30917         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
30918         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
30919         * sysdeps/powerpc/bits/mathinline.h: Likewise.
30920         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
30921         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
30923 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30925         * sysdeps/aarch64/libm-test-ulps: Update.
30927 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
30929         [BZ #22225]
30930         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
30931         math_opt_barrier on argument when doing arithmetic on it.
30932         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
30933         Likewise.  Use math_force_eval not math_opt_barrier after
30934         arithmetic.
30935         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
30936         math_opt_barrier on argument when doing arithmetic on it.
30937         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
30938         Likewise.
30940 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
30942         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
30943         libc_hidden_def.
30944         (__freeifaddrs): Likewise.
30946 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30948         * include/dirent.h (__dirfd): New declaration.
30949         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
30950         alias.
30951         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
30952         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
30953         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
30954         * include/unistd.h (__revoke): New declaration.
30955         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
30956         alias.
30957         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
30958         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
30959         revoke.
30960         * include/dirent.h (__seekdir): New declaration.
30961         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
30962         redefine as weak alias.
30963         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
30964         of seekdir.
30965         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
30966         and use libc_hidden_def on them.
30967         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
30968         them.
30969         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
30970         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
30971         instead of getifaddrs and freeifaddrs.
30973 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
30975         [BZ #18822]
30976         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
30977         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
30978         (__dso_handle): Remove declaration.
30979         * dlfcn/tstatexit.c (__dso_handle): Removed.
30980         (main): Don't check __dso_handle.
30981         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
30982         (main): Don't check __dso_handle.
30983         * include/dso_handle.h: New file.
30984         * malloc/mtrace.c: Include <dso_handle.h>.
30985         (mtrace): Pass __dso_handle directly.
30986         * nptl/pthread_atfork.c: Include <dso_handle.h>.
30987         (__dso_handle): Remove declaration.
30988         (__pthread_atfork): Pass __dso_handle directly.
30989         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
30990         (__dso_handle): Removed.
30991         * posix/wordexp-test.c: Include <dso_handle.h>.
30992         (__dso_handle): Remove declaration.
30993         (__app_register_atfork): Pass __dso_handle directly.
30994         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
30995         (__dso_handle): Remove declaration.
30996         (at_quick_exit): Pass __dso_handle directly.
30997         * stdlib/atexit.c: Include <dso_handle.h>.
30998         (__dso_handle): Remove declaration.
30999         (atexit): Pass __dso_handle directly.
31000         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
31001         (__dso_handle): Removed.
31003 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
31005         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
31006         using VDSO.
31008 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
31010         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
31011         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
31012         values to correct default value for given type.
31014 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
31016         [BZ #22101]
31017         * elf/Makefile (tests): Add tst-debug1.
31018         ($(objpfx)tst-debug1): New.
31019         ($(objpfx)tst-debug1.out): Likewise.
31020         ($(objpfx)tst-debug1mod1.so): Likewise.
31021         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
31022         with p_filesz == 0.
31023         * elf/tst-debug1.c: New file.
31025 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
31027         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
31028         Define using __ifunc.
31030 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31032         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
31033         exp2f() values.
31035 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
31037         [BZ #22156]
31038         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
31040 2017-09-26  Florian Weimer  <fweimer@redhat.com>
31042         * resolv/Makefile (tests-internal): Fix typo in comment.
31044 2017-09-26  Florian Weimer  <fweimer@redhat.com>
31046         * resolv/nss_dns/dns-host.c: Fix typo in comment.
31048 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31050         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
31051         Use an union instead of a max_align_t array for __space,
31052         so that __space is the same size on all platforms.
31053         * malloc/scratch_buffer_grow_preserve.c
31054         (__libc_scratch_buffer_grow_preserve): Likewise.
31056         [BZ #22183]
31057         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
31058         version to 2.
31059         * posix/Makefile (routines): Add glob-lstat-compat and
31060         glob64-lstat-compat.
31061         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
31062         * posix/glob-lstat-compat.c: New file.
31063         * posix/glob64-lstat-compat.c: Likewise.
31064         * posix/tst-glob_lstat_compat.c: Likewise.
31065         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
31066         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
31067         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
31068         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
31069         Likewise.
31070         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
31071         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
31072         * posix/glob.c (glob_lstat): New function.
31073         (glob): Rename to __glob and add versioned symbol to 2.27.
31074         (glob_in_dir): Use glob_lstat.
31075         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
31076         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
31077         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
31078         2.27.
31079         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
31080         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
31081         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
31082         gl_lstat on glob call.
31083         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
31084         and glob64 symbols.
31085         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
31086         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
31087         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
31088         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
31089         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
31090         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
31091         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
31092         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
31093         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
31094         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
31095         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
31096         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
31097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
31098         Likewise.
31099         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
31100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
31101         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
31102         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
31103         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
31104         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
31105         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
31106         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
31107         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
31108         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
31109         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
31110         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
31112 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
31114         * configure.ac (AS): Require binutils 2.25 or later.
31115         * configure: Regenerated.
31117 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
31119         [BZ #22207]
31120         * stdlib/test-atexit-race-common.c (do_test): Minimize required
31121         VM size.
31123 2017-09-25  DJ Delorie  <dj@redhat.com>
31125         [BZ #22161]
31126         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
31127         resetting timeout.
31129 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
31131         * sysdeps/ieee754/dbl-64/sincos32.h
31132         [SINCCOS32_H]: Remove define.
31133         [SINCOS32_H]: Define.
31135 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31137         * math/Versions (expf): New libm symbol at GLIBC_2.27.
31138         (exp2f): Likewise.
31139         * math/w_exp2f.c: New file.
31140         * math/w_expf.c: New file.
31141         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
31142         * math/w_expf_compat.c (__expf_compat): Likewise.
31143         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
31144         * sysdeps/ia64/fpu/e_expf.S: Likewise.
31145         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31146         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31147         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31148         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31149         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31150         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31151         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31152         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31153         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31154         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31155         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31156         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31158         Likewise.
31159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31160         Likewise.
31161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31162         Likewise.
31163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31164         Likewise.
31165         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31166         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31167         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31168         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31169         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31170         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31171         Likewise.
31172         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31173         Likewise.
31174         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31175         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31176         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31178 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31180         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
31181         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
31182         (roundtoint, converttoint): Likewise.
31183         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
31184         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
31185         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
31186         * sysdeps/ieee754/flt-32/math_config.h: New file.
31187         * sysdeps/ieee754/flt-32/math_errf.c: New file.
31188         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
31189         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
31190         * sysdeps/i386/fpu/math_errf.c: New file.
31191         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
31192         * sysdeps/ia64/fpu/math_errf.c: New file.
31193         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
31194         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
31196 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31198         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
31199         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
31200         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
31201         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
31202         to make sure that these symbols are defined.
31203         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
31204         of <limits.h>
31205         (__need_NULL): Do not define.
31206         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
31207         alignment.
31208         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
31209         CMGROUP_MAX, cmsgcred): Do not define.
31210         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
31211         NULL.
31212         * bits/socket.h: Likewise.
31213         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
31214         __gettimeofday instead of gettimeofday.
31215         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
31216         instead of settimeofday.
31218 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
31220         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
31221         (asinhf): Define using libm_alias_float.
31222         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
31223         (atanf): Define using libm_alias_float.
31224         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
31225         (cbrtf): Define using libm_alias_float.
31226         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
31227         (ceilf): Define using libm_alias_float.
31228         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
31229         <libm-alias-float.h>.
31230         (copysignf): Define using libm_alias_float.
31231         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
31232         (cosf): Define using libm_alias_float.
31233         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
31234         (erff): Define using libm_alias_float.
31235         (erfcf): Likewise.
31236         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
31237         (expm1f): Define using libm_alias_float.
31238         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
31239         (fabsf): Define using libm_alias_float.
31240         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
31241         (floorf): Define using libm_alias_float.
31242         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
31243         (frexpf): Define using libm_alias_float.
31244         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
31245         libm_alias_float.
31246         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
31247         <libm-alias-float.h>.
31248         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
31249         libm_alias_float.
31250         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
31251         <libm-alias-float.h>.
31252         (getpayloadf): Define using libm_alias_float.
31253         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
31254         <libm-alias-float.h>.
31255         (llrintf): Define using libm_alias_float.
31256         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
31257         <libm-alias-float.h>.
31258         (llroundf): Define using libm_alias_float.
31259         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
31260         (logbf): Define using libm_alias_float.
31261         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
31262         (lrintf): Define using libm_alias_float.
31263         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
31264         (lroundf): Define using libm_alias_float.
31265         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
31266         (modff): Define using libm_alias_float.
31267         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
31268         <libm-alias-float.h>.
31269         (nearbyintf): Define using libm_alias_float.
31270         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
31271         <libm-alias-float.h>.
31272         (nextafterf): Define using libm_alias_float.
31273         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
31274         <libm-alias-float.h>.
31275         (nextupf): Define using libm_alias_float.
31276         * sysdeps/ieee754/flt-32/s_remquof.c: Include
31277         <libm-alias-float.h>.
31278         (remquof): Define using libm_alias_float.
31279         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
31280         (rintf): Define using libm_alias_float.
31281         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
31282         <libm-alias-float.h>.
31283         (roundevenf): Define using libm_alias_float.
31284         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
31285         (roundf): Define using libm_alias_float.
31286         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
31287         using libm_alias_float.
31288         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
31289         <libm-alias-float.h>.
31290         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
31291         Define using libm_alias_float.
31292         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
31293         <libm-alias-float.h>.
31294         (sincosf): Define using libm_alias_float.
31295         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
31296         (sinf): Define using libm_alias_float.
31297         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
31298         (tanf): Define using libm_alias_float.
31299         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
31300         (tanhf): Define using libm_alias_float.
31301         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
31302         <libm-alias-float.h>.
31303         (totalorderf): Define using libm_alias_float.
31304         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
31305         <libm-alias-float.h>.
31306         (totalordermagf): Define using libm_alias_float.
31307         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
31308         (truncf): Define using libm_alias_float.
31309         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
31310         libm_alias_float.
31311         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
31312         libm_alias_float.
31314 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
31316         [BZ #22146]
31317         math/math.h: Let fpclassify use the builtin in C++ mode, even
31318         when optimazing for size.
31320 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
31322         * csu/Makefile (generated): Do not add version-info.h.
31323         (before-compile): Likewise.
31324         (all-Banner-files): Remove variable.
31325         ($(objpfx)version-info.h): Remove rule.
31326         * csu/version.c (banner): Do not include "version-info.h".
31327         * libidn/Banner: Remove.
31328         * manual/contrib.texi (Simon Josefsson): New entry.
31330 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
31332         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
31333         Remove conditionals on LDBL_MANT_DIG.
31334         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
31335         (__ieee754_lgammal_r): Likewise.
31337 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
31339         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
31340         _Float128 and L().
31341         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
31342         _Float128 and L(). Replace _Float128 with long double and L(x)
31343         with xL, throughout the file.
31344         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
31345         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
31346         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
31347         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
31349 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
31351         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
31352         sysdeps/ieee754/ldbl-128ibm.
31353         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
31354         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
31355         of including it.  Keep _Float128 and L() intact.  These will be
31356         reviewed by a separate patch.
31357         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
31358         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
31359         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
31360         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
31362 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
31364         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
31365         (__finitef128): Define to __redirect___finitef128.
31366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
31367         (__isinff128): Define to __redirect___isinff128.
31368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
31369         (__isnanf128): Define to __redirect___isnanf128.
31371 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
31373         * sysdeps/powerpc/powerpc64le/Makefile
31374         (CFLAGS-tst-strtod-nan-locale.c): New variable.
31375         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
31377 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
31378             Carlos O'Donell  <carlos@redhat.com>
31380         [BZ #22180]
31381         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
31382         * stdlib/test-dlclose-exit-race.c: New file.
31383         * stdlib/test-dlclose-exit-race-helper.c: New file.
31384         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
31386 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
31388         * crypt/Banner: Remove file.
31389         * nptl/Banner: Likewise.
31390         * resolv/Banner: Likewise.
31391         * soft-fp/Banner: Likewise.
31392         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
31393         ($(objpfx)version.d): Remove dependency on banner.h.
31394         ($(objpfx)version.os): Likewise.
31395         * nptl/version.c (banner): Do not include banner.h.
31396         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
31397         Jelinek and BIND code.
31399 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
31400             Carlos O'Donell  <carlos@redhat.com>
31402         * support/xdlfcn.h: New file.
31403         * support/xdlfcn.c: New file.
31404         * support/Makefile (libsupport-routines): Add xdlfcn.
31405         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
31407 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
31409         [BZ #20142]
31410         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31411         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
31412         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
31413         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
31414         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
31415         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
31416         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
31417         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
31419 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
31420             Ricky Zhou  <rickyz@google.com>
31421             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
31423         [BZ #14333]
31424         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
31425         Remove atomics.
31426         (__new_exitfn): Fail registration when we finished at_exit processing.
31427         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
31428         * stdlib/on_exit.c (__on_exit): Likewise.
31429         * stdlib/exit.c (__exit_funcs_done): New variable.
31430         (__run_exit_handlers): Use __exit_funcs_lock.
31431         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
31432         declarations.
31433         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
31434         (test-cxa_atexit-race, test-on_exit-race): New tests.
31435         * stdlib/test-atexit-race-common.c: New file.
31436         * stdlib/test-atexit-race.c: New file.
31437         * stdlib/test-at_quick_exit-race.c: New file.
31438         * stdlib/test-cxa_atexit-race.c: New file.
31439         * stdlib/test-on_exit-race.c: New file.
31441 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31443         * benchtests/Makefile: Add exp2f and log2f benchmarks.
31444         * benchtests/exp2f-inputs: Copy of expf-inputs.
31445         * benchtests/log2f-inputs: Copy of logf-inputs.
31447 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
31449         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
31450         Explicitly take address of first element of array arguments in
31451         call to INLINE_SYSCALL.
31453 2017-09-19  Andreas Schwab  <schwab@suse.de>
31455         [BZ #22134]
31456         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
31457         execveat first.
31458         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
31459         unimplemented.
31460         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
31461         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
31462         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
31463         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
31464         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
31465         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
31466         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
31467         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
31468         * posix/Makefile (tests): Add tst-fexecve.
31469         * posix/tst-fexecve.c: New file.
31471 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
31473         * benchtests/Makefile: Add logf benchmark.
31474         * benchtests/logf-inputs: Add reduced trace from wrf_r.
31476 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
31478         * benchtests/Makefile: Add expf benchmark.
31479         * benchtests/expf-inputs: Add reduced trace from wrf_r.
31481 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
31483         * csu/Makefile: Add -funwind-tables to libc-start.c.
31484         * debug/Makefile: Add -funwind-tables to backtrace.c.
31485         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
31486         * sysdeps/arm/Makefile: Likewise.
31487         * sysdeps/i386/Makefile: Likewise.
31488         * sysdeps/m68k/Makefile: Likewise.
31489         * sysdeps/mips/Makefile: Likewise.
31490         * sysdeps/nios2/Makefile: Likewise.
31491         * sysdeps/sh/Makefile: Likewise.
31492         * sysdeps/sparc/Makefile: Likewise.
31494 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
31496         * benchtests/Makefile (bench-math): Add trunc and truncf.
31497         (CFLAGS-bench-trunc.c): New variable.
31498         (CFLAGS-bench-truncf.c): Likewise.
31499         * benchtests/trunc-inputs: New file.
31500         * benchtests/truncf-inputs: Likewise.
31502 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
31504         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
31506 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
31508         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
31509         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
31510         redefine.
31511         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
31512         (exp10l): Define as weak alias.
31513         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
31514         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
31515         and redefine.
31516         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
31517         (remainderl): Define as weak alias.
31519         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
31520         (fmal): Define using libm_alias_ldouble.
31521         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
31522         (acoshl): Define using libm_alias_ldouble.
31523         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
31524         (acosl): Define using libm_alias_ldouble.
31525         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
31526         (asinl): Define using libm_alias_ldouble.
31527         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
31528         (atan2l): Define using libm_alias_ldouble.
31529         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
31530         (atanhl): Define using libm_alias_ldouble.
31531         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
31532         (coshl): Define using libm_alias_ldouble.
31533         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
31534         (exp10l): Define using libm_alias_ldouble.
31535         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
31536         (exp2l): Define using libm_alias_ldouble.
31537         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
31538         (expl): Define using libm_alias_ldouble.
31539         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
31540         (fmodl): Define using libm_alias_ldouble.
31541         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
31542         (hypotl): Define using libm_alias_ldouble.
31543         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
31544         (j0l): Define using libm_alias_ldouble.
31545         (y0l): Likewise.
31546         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
31547         (j1l): Define using libm_alias_ldouble.
31548         (y1l): Likewise.
31549         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
31550         (jnl): Define using libm_alias_ldouble.
31551         (ynl): Likewise.
31552         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
31553         (log10l): Define using libm_alias_ldouble.
31554         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
31555         (log2l): Define using libm_alias_ldouble.
31556         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
31557         (logl): Define using libm_alias_ldouble.
31558         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
31559         (powl): Define using libm_alias_ldouble.
31560         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
31561         (remainderl): Define using libm_alias_ldouble.
31562         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
31563         (sinhl): Define using libm_alias_ldouble.
31564         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
31565         (sqrtl): Define using libm_alias_ldouble.
31566         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
31567         (tgammal): Define using libm_alias_ldouble.
31568         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
31569         (exp10l): Do not use long_double_symbol here.
31570         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
31571         [LIBM_SVID_COMPAT] (remainderl): Likewise.
31572         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
31573         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31574         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31575         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31576         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31577         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31578         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31579         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
31580         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31581         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31582         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31583         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31584         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31585         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31586         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31587         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31588         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31589         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31590         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31591         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31593 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
31595         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
31596         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
31598 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31600         * io/read.c (read): Add libc_hidden_weak.
31601         * sysdeps/mach/hurd/read.c (read): Likewise.
31602         * io/write.c (write): Likewise.
31603         * sysdeps/mach/hurd/write.c (write): Likewise.
31604         * io/pread64.c (__pread64): Likewise.
31605         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
31606         * posix/pread64.c (__pread64): Add libc_hidden_def.
31608 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
31610         * benchtests/scripts/compare_strings.py: New option -g.
31611         (draw_graph): Print a message that a graph is being generated.
31612         (process_results): Generate graph only if -g is passed.
31613         (main): Process option -g.
31615         * benchtests/scripts/compare_strings.py (process_results):
31616         Better spacing for output.
31618         * benchtests/scripts/compare_strings.py: Use argparse.
31619         * benchtests/README: Document existence of compare_strings.py.
31621 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
31623         * math/s_fma.c: Include <libm-alias-double.h>.
31624         (fma): Define using libm_alias_double.
31625         * math/s_nextafter.c: Include <libm-alias-double.h>.
31626         (nextafter): Define using libm_alias_double.
31627         * math/w_acos_compat.c: Include <libm-alias-double.h>.
31628         (acos): Define using libm_alias_double.
31629         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
31630         (aocsh): Define using libm_alias_double.
31631         * math/w_asin_compat.c: Include <libm-alias-double.h>.
31632         (asin): Define using libm_alias_double.
31633         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
31634         (atan2): Define using libm_alias_double.
31635         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
31636         (atanh): Define using libm_alias_double.
31637         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
31638         (cosh): Define using libm_alias_double.
31639         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
31640         (exp10): Define using libm_alias_double.
31641         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
31642         (exp2): Define using libm_alias_double.
31643         * math/w_exp_compat.c: Include <libm-alias-double.h>.
31644         (exp): Define using libm_alias_double.
31645         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
31646         (fmod): Define using libm_alias_double.
31647         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
31648         (hypot): Define using libm_alias_double.
31649         * math/w_j0_compat.c: Include <libm-alias-double.h>.
31650         (j0): Define using libm_alias_double.
31651         (y0): Likewise.
31652         * math/w_j1_compat.c: Include <libm-alias-double.h>.
31653         (j1): Define using libm_alias_double.
31654         (y1): Likewise.
31655         * math/w_jn_compat.c: Include <libm-alias-double.h>.
31656         (jn): Define using libm_alias_double.
31657         (yn): Likewise.
31658         * math/w_log10_compat.c: Include <libm-alias-double.h>.
31659         (log10): Define using libm_alias_double.
31660         * math/w_log2_compat.c: Include <libm-alias-double.h>.
31661         (log2): Define using libm_alias_double.
31662         * math/w_log_compat.c: Include <libm-alias-double.h>.
31663         (log): Define using libm_alias_double.
31664         * math/w_pow_compat.c: Include <libm-alias-double.h>.
31665         (pow): Define using libm_alias_double.
31666         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
31667         (remainder): Define using libm_alias_double.
31668         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
31669         (sinh): Define using libm_alias_double.
31670         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
31671         (sqrt): Define using libm_alias_double.
31672         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
31673         (tgamma): Define using libm_alias_double.
31674         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
31675         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
31676         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
31677         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
31678         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
31679         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
31680         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
31681         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
31682         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
31683         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
31684         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
31685         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
31686         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
31687         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
31688         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
31689         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
31690         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
31691         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
31692         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
31693         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
31694         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
31695         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
31696         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
31697         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
31698         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
31700         * math/e_acoshl.c: Remove.
31701         * math/e_acosl.c: Likewise.
31702         * math/e_asinl.c: Likewise.
31703         * math/e_atan2l.c: Likewise.
31704         * math/e_atanhl.c: Likewise.
31705         * math/e_coshl.c: Likewise.
31706         * math/e_expl.c: Likewise.
31707         * math/e_fmodl.c: Likewise.
31708         * math/e_gammal_r.c: Likewise.
31709         * math/e_hypotl.c: Likewise.
31710         * math/e_j0l.c: Likewise.
31711         * math/e_j1l.c: Likewise.
31712         * math/e_jnl.c: Likewise.
31713         * math/e_lgammal_r.c: Likewise.
31714         * math/e_log10l.c: Likewise.
31715         * math/e_log2l.c: Likewise.
31716         * math/e_logl.c: Likewise.
31717         * math/e_powl.c: Likewise.
31718         * math/e_rem_pio2l.c: Likewise.
31719         * math/e_sinhl.c: Likewise.
31720         * math/e_sqrtf128.c: Likewise.
31721         * math/e_sqrtl.c: Likewise.
31722         * math/k_cosl.c: Likewise.
31723         * math/k_sinl.c: Likewise.
31724         * math/k_tanl.c: Likewise.
31725         * math/s_asinhl.c: Likewise.
31726         * math/s_atanl.c: Likewise.
31727         * math/s_cbrtl.c: Likewise.
31728         * math/s_erfl.c: Likewise.
31729         * math/s_expm1l.c: Likewise.
31730         * math/s_log1pl.c: Likewise.
31731         * math/s_tanhl.c: Likewise.
31733 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31735         [BZ #21745]
31736         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
31737         [$(subdir) = math] (sysdep_calls): New variable.  Has the
31738         previous contents of sysdep_routines, but re-sorted..
31739         [$(subdir) = math] (sysdep_routines): Re-use the contents from
31740         sysdep_calls.
31741         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
31742         defined in sysdep_calls and replace by the respective m_* names.
31743         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
31744         (compat_symbol): Undefine to avoid duplicated compat symbols in
31745         libc.
31747 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
31749         * math/s_fmaf.c: Include <libm-alias-float.h>.
31750         (fmaf): Define using libm_alias_float.
31751         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
31752         (acosf): Define using libm_alias_float.
31753         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
31754         (acoshf): Define using libm_alias_float.
31755         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
31756         (asinf): Define using libm_alias_float.
31757         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
31758         (atan2f): Define using libm_alias_float.
31759         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
31760         (atanhf): Define using libm_alias_float.
31761         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
31762         (coshf): Define using libm_alias_float.
31763         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
31764         (exp10f): Define using libm_alias_float.
31765         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
31766         (fmodf): Define using libm_alias_float.
31767         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
31768         (hypotf): Define using libm_alias_float.
31769         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
31770         (j0f): Define using libm_alias_float.
31771         (y0f): Likewise.
31772         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
31773         (j1f): Define using libm_alias_float.
31774         (y1f): Likewise.
31775         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
31776         (jnf): Define using libm_alias_float.
31777         (ynf): Likewise.
31778         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
31779         (log10f): Define using libm_alias_float.
31780         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
31781         (log2f): Define using libm_alias_float.
31782         * math/w_logf_compat.c: Include <libm-alias-float.h>.
31783         (logf): Define using libm_alias_float.
31784         * math/w_powf_compat.c: Include <libm-alias-float.h>.
31785         (powf): Define using libm_alias_float.
31786         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
31787         (remainderf): Define using libm_alias_float.
31788         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
31789         (sinhf): Define using libm_alias_float.
31790         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
31791         (sqrtf): Define using libm_alias_float.
31792         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
31793         (tgammaf): Define using libm_alias_float.
31795 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
31797         * include/math.h (roundeven): Change hidden_proto call to
31798         __roundeven.
31799         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
31800         alias.
31801         [NO_LONG_DOUBLE] (__j0l): New strong alias.
31802         (y0): Rename to __y0 and define as weak alias.
31803         [NO_LONG_DOUBLE] (__y0l): New strong alias.
31804         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
31805         alias.
31806         (y0f): Rename to __y0f and define as weak alias.
31807         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
31808         alias.
31809         [NO_LONG_DOUBLE] (__j1l): New strong alias.
31810         (y1): Rename to __y1 and define as weak alias.
31811         [NO_LONG_DOUBLE] (__y1l): New strong alias.
31812         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
31813         alias.
31814         (y1f): Rename to __y1f and define as weak alias.
31815         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
31816         alias.
31817         [NO_LONG_DOUBLE] (__jnl): New strong alias.
31818         (yn): Rename to __yn and define as weak alias.
31819         [NO_LONG_DOUBLE] (__ynl): New strong alias.
31820         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
31821         alias.
31822         (ynf): Rename to __ynf and define as weak alias.
31823         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
31824         (fromfp): Define as weak alias.
31825         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
31826         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
31827         (fromfpx): Define as weak alias.
31828         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
31829         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
31830         __getpayload and define as weak alias.
31831         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
31832         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
31833         __roundeven and define as weak alias.
31834         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
31835         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
31836         __setpayload.
31837         (setpayload): Define as weak alias.
31838         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
31839         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
31840         __setpayloadsig.
31841         (setpayloadsig): Define as weak alias.
31842         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
31843         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
31844         __totalorder and define as weak alias.
31845         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
31846         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
31847         to __totalordermag and define as weak alias.
31848         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
31849         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
31850         (ufromfp): Define as weak alias.
31851         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
31852         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
31853         __ufromfpx.
31854         (ufromfpx): Define as weak alias.
31855         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
31856         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
31857         Rename to __getpayload and define as weak alias.
31858         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
31859         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
31860         Rename to __roundeven and define as weak alias.
31861         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
31862         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
31863         Rename to __totalorder and define as weak alias.
31864         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
31865         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
31866         (totalordermag): Rename to __totalordermag and define as weak
31867         alias.
31868         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
31869         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
31870         macro.
31871         (__roundevenl): Likewise.
31872         (__totalorderl): Likewise.
31873         (__totalordermagl): Likewise
31874         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
31875         __fromfpf128.
31876         (fromfpf128): Define as weak alias.
31877         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
31878         __fromfpxf128.
31879         (fromfpxf128): Define as weak alias.
31880         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
31881         __setpayloadf128.
31882         (setpayloadf128): Define as weak alias.
31883         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
31884         __setpayloadsigf128.
31885         (setpayloadsigf128): Define as weak alias.
31886         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
31887         __ufromfpf128.
31888         (ufromfpf128): Define as weak alias.
31889         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
31890         __ufromfpxf128.
31891         (ufromfpxf128): Define as weak alias.
31892         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
31893         (fromfpf): Define as weak alias.
31894         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
31895         __fromfpxf.
31896         (fromfpxf): Define as weak alias.
31897         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
31898         __getpayloadf and define as weak alias.
31899         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
31900         __roundevenf and define as weak alias.
31901         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
31902         __setpayloadf.
31903         (setpayloadf): Define as weak alias.
31904         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
31905         __setpayloadsigf.
31906         (setpayloadsigf): Define as weak alias.
31907         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
31908         __totalorderf and define as weak alias.
31909         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
31910         Rename to __totalordermagf and define as weak alias.
31911         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
31912         __ufromfpf.
31913         (ufromfpf): Define as weak alias.
31914         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
31915         __ufromfpxf.
31916         (ufromfpxf): Define as weak alias.
31917         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
31918         __fromfpl.
31919         (fromfpl): Define as weak alias.
31920         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
31921         __fromfpxl.
31922         (fromfpxl): Define as weak alias.
31923         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
31924         to __getpayloadl and define as weak alias.
31925         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
31926         __roundevenl and define as weak alias.
31927         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
31928         __setpayloadl.
31929         (setpayloadl): Define as weak alias.
31930         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
31931         __setpayloadsigl.
31932         (setpayloadsigl): Define as weak alias.
31933         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
31934         to __totalorderl and define as weak alias.
31935         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
31936         Rename to __totalordermagl and define as weak alias.
31937         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
31938         __ufromfpl.
31939         (ufromfpl): Define as weak alias.
31940         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
31941         __ufromfpxl.
31942         (ufromfpxl): Define as weak alias.
31943         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
31944         __fromfpl.
31945         (fromfpl): Define as weak alias.
31946         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
31947         __fromfpxl.
31948         (fromfpxl): Define as weak alias.
31949         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
31950         Rename to __getpayloadl and define as weak alias.
31951         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
31952         to __roundevenl and define as weak alias.  Call __roundeven
31953         instead of roundeven.
31954         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
31955         __setpayloadl.
31956         (setpayloadl): Define as weak alias.
31957         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
31958         __setpayloadsigl.
31959         (setpayloadsigl): Define as weak alias.
31960         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
31961         Rename to __totalorderl and define as weak alias.
31962         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
31963         Rename to __totalordermagl and define as weak alias.
31964         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
31965         __ufromfpl.
31966         (ufromfpl): Define as weak alias.
31967         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
31968         __ufromfpxl.
31969         (ufromfpxl): Define as weak alias.
31970         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
31971         __fromfpl.
31972         (fromfpl): Define as weak alias.
31973         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
31974         __fromfpxl.
31975         (fromfpxl): Define as weak alias.
31976         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
31977         __getpayloadl and define as weak alias.
31978         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
31979         __roundevenl and define as weak alias.
31980         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
31981         __setpayloadl.
31982         (setpayloadl): Define as weak alias.
31983         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
31984         __setpayloadsigl.
31985         (setpayloadsigl): Define as weak alias.
31986         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
31987         __totalorderl and define as weak alias.
31988         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
31989         Rename to __totalordermagl and define as weak alias.
31990         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
31991         __ufromfpl.
31992         (ufromfpl): Define as weak alias.
31993         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
31994         __ufromfpxl.
31995         (ufromfpxl): Define as weak alias.
31997 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
31999         * benchtests/bench-string.h (realloc_bufs): New function.
32000         (test_init): Call it.
32001         * benchtests/bench-memset-large.c (do_test): Likewise.
32002         * benchtests/bench-memset.c (do_test): Likewise.
32004         * benchtests/bench-memset-large.c: Print output in JSON
32005         format.
32006         * benchtests/bench-memset.c: Likewise.
32008 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
32010         [BZ #21084]
32011         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
32012         * iconvdata/Makefile: Add IBM858.
32013         * iconvdata/gconv-modules: Likewise.
32014         * iconvdata/tst-tables.sh: Likewise.
32015         * iconvdata/ibm858.c: New file.
32016         * localedata/charmaps/IBM858: Likewise.
32018 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
32020         [BZ #22023]
32021         * locales/niu_NZ (LC_TIME): copy "niu_NU".
32022         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
32024 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
32026         [BZ #22112]
32027         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
32028         and add tel_int_fmt.
32030 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
32032         * sysdeps/generic/libm-alias-float128.h: New file.
32033         * sysdeps/generic/math-type-macros-float128.h: Include
32034         <libm-alias-float128.h>.
32035         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
32037 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
32039         * sysdeps/generic/libm-alias-ldouble.h: New file.
32040         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
32041         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
32042         * sysdeps/generic/math-type-macros-ldouble.h: Include
32043         <libm-alias-ldouble.h>.
32044         [!declare_mgen_alias] (declare_mgen_alias): Define to use
32045         libm_alias_ldouble.
32047 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32049         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
32050         * math/w_exp_compat.c: ... here.
32051         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
32052         * math/w_expf_compat.c: ... here.
32053         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
32054         * math/w_expl_compat.c: ... here.
32055         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
32056         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
32057         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
32058         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
32060 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
32062         * math/w_scalbln_template.c (strong_alias): Do not undefine and
32063         redefine.
32064         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
32065         macro.
32066         (ldexpl): Only define as compat symbol for libc, not libm.
32067         (scalbnl): Define as compat symbol for libc here.
32068         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
32069         define for [IS_IN (libc)].
32070         (__ldexpl_2): Remove alias.
32071         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
32072         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
32073         name in long_double_symbol call.
32074         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
32075         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
32076         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
32077         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
32078         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
32079         Remove macro.
32080         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
32081         Define as compat symbol.
32083 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32085         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
32086         * sysdeps/unix/sysv/linux/alpha/Makefile
32087         [$(subdir) = csu] (sysdep_routines): Remove rule.
32089 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
32091         * sysdeps/generic/libm-alias-double.h: New file.
32092         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
32093         * sysdeps/generic/math-type-macros-double.h: Include
32094         <libm-alias-double.h>.
32095         [declare_mgen_alias] (declare_mgen_alias): Define to use
32096         libm_alias_double.
32097         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
32098         (M_LIBM_NEED_COMPAT): Remove macro.
32099         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
32100         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
32101         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
32102         code.
32103         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32104         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32105         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32106         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32107         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32108         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32109         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32110         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32111         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32112         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32113         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32114         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32115         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32116         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32117         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32118         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32119         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32120         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32121         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32122         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32123         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32124         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32125         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32126         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32127         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32128         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32129         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32130         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
32131         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
32132         macro.
32133         (declare_mgen_alias): New macro.
32134         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
32135         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
32136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
32137         (M_LIBM_NEED_COMPAT): Remove macro.
32138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
32139         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
32140         <first-versions.h>.
32141         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
32142         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
32144 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
32146         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
32147         (declare_mgen_alias_2): Remove.
32148         * sysdeps/generic/math-type-macros-double.h
32149         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
32150         Likewise.
32151         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
32152         alias.
32153         (ldexp): Define with declare_mgen_alias.
32154         (scalbn): Likewise.
32156 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
32158         * grp/initgroups.c: Include config.h.
32159         (DEFAULT_CONFIG): New macro.
32160         (internal_getgrouplist): Use DEFAULT_CONFIG.
32161         * nscd/initgrcache.c (addinitgroupsX): Likewise.
32162         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
32163         (DEFAULT_DEFCONFIG): New macro.
32164         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
32165         * nss/grp-lookup.c: Include config.h
32166         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
32167         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
32168         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
32169         * manual/nss.texi: Update default values section.
32171 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
32173         [BZ #21967]
32174         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
32175         New.
32176         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
32177         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
32178         Handle MathVec_Prefer_No_AVX512.
32179         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
32180         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
32181         is set.
32183 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32185         * posix/sched_primax.c (__sched_get_priority_max): Add
32186         libc_hidden_def.
32187         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
32188         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32189         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32190         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
32191         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
32192         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
32193         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
32194         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
32195         Add aliases.
32197 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
32199         * sysdeps/generic/libm-alias-float.h: New file.
32200         * sysdeps/generic/math-type-macros-float.h: Include
32201         <libm-alias-float.h>.
32202         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
32204 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
32206         [BZ #22093]
32207         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
32208         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
32209         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
32210         (HWCAP_IMPORTANT): Likewise.
32211         (HWCAP_X86_64): New enum.
32212         (HWCAP_X86_AVX512_1): Updated.
32213         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
32214         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
32215         (modules-names): Add x86_64/tst-x86_64mod-1.
32216         (LDFLAGS-tst-x86_64mod-1.so): New.
32217         ($(objpfx)tst-x86_64-1): Likewise.
32218         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
32219         (tst-x86_64-1-clean): Likewise.
32220         * sysdeps/x86_64/tst-x86_64-1.c: New file.
32221         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
32223 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
32225         * po/sv.po: Update translations.
32226         * po/fr.po: Likewise.
32228 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32230         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
32231         seconds.
32232         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
32233         seconds.
32234         * elf/rtld-Rules: Fix $(error) use.
32236 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
32238         [BZ #14925]
32239         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
32240         * locale/iso-639.def: Change “Bengali” to “Bangla”.
32241         * localedata/locales/bn_BD: “Bengali” was still used in some
32242         comments. Change it to “Bangla”.
32244 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
32246         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
32248 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
32250         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
32251         thunderx2t99p1 to list of cpu names.
32252         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32253         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
32255 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
32257         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
32258         Use strcmp instead of tunable_is_name.
32260 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
32262         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
32263         (F_GET_RW_HINT): New macro.
32264         [__USE_GNU] (F_SET_RW_HINT): Likewise.
32265         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
32266         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
32267         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
32268         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
32269         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
32270         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
32271         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
32272         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
32274         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
32275         (F_ADD_SEALS): New macro.
32276         [__USE_GNU] (F_GET_SEALS): Likewise.
32277         [__USE_GNU] (F_SEAL_SEAL): Likewise.
32278         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
32279         [__USE_GNU] (F_SEAL_GROW): Likewise.
32280         [__USE_GNU] (F_SEAL_WRITE): Likewise.
32282 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32284         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
32285         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
32286         * posix/glob_internal.h (__glob_pattern_type):
32287         * posix/glob.c (glob):
32288         * posix/glob_pattern_p.c (__glob_pattern_p):
32289         Use them.
32291         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
32292         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
32293         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
32294         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
32295         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
32296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
32297         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
32298         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
32299         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
32300         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
32301         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
32302         * sysdeps/wordsize-64/glob.c: Likewise.
32303         * sysdeps/wordsize-64/glob64.c: Likewise.
32304         * sysdeps/wordsize-64/globfree.c: Likewise.
32305         * sysdeps/wordsize-64/globfree64.c: Likewise.
32306         * sysdeps/unix/sysv/linux/glob.c: New file.
32307         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
32308         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
32309         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
32310         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32311         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
32312         adds !GLOB_NO_OLD_VERSION as an extra condition.
32313         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
32314         using relative path instead of absolute one.
32315         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
32316         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
32317         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
32318         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
32319         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
32320         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
32322         [BZ #1062]
32323         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
32324         (glob): Use the same scratch buffer for both getlogin_r and
32325         getpwnam_r.  Don’t require preallocation of the login name.  This
32326         simplifies storage allocation, and corrects the handling of
32327         long login names.
32329         [BZ #1062]
32330         * posix/glob.c (glob): Port recent patches to platforms
32331         lacking getpwnam_r.
32332         (glob): Fix longstanding misuse of errno after getpwnam_r, which
32333         returns an error number rather than setting errno.
32335         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
32336         instead of GCC extension.
32337         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
32338         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
32339         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
32341         [BZ #866]
32342         [BZ #1062]
32343         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
32344         * posix/bug-glob1.c: Remove file.
32345         * posix/tst-glob_symlinks.c: New file.
32346         * posix/glob.c (__lstat64): New macro.
32347         (is_dir): New function.
32348         (glob, glob_in_dir): Match symlinks even if they are dangling.
32349         (link_stat, link_exists_p): Remove.  All uses removed.
32351         [BZ #1062]
32352         [BZ #19971]
32353         * posix/glob.c (struct readdir_result): Remove skip_entry member.
32354         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
32355         All uses removed.
32357         [BZ #1062]
32358         CVE-2017-15671
32359         * posix/Makefile (routines): Add globfree, globfree64, and
32360         glob_pattern_p.
32361         * posix/flexmember.h: New file.
32362         * posix/glob_internal.h: Likewise.
32363         * posix/glob_pattern_p.c: Likewise.
32364         * posix/globfree.c: Likewise.
32365         * posix/globfree64.c: Likewise.
32366         * sysdeps/gnu/globfree64.c: Likewise.
32367         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
32368         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
32369         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
32370         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
32371         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
32372         * sysdeps/wordsize-64/globfree.c: Likewise.
32373         * sysdeps/wordsize-64/globfree64.c: Likewise.
32374         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
32375         [NDEBUG): Remove comments.
32376         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
32377         (dirent_type): New type.  Use uint_fast8_t not
32378         uint8_t, as C99 does not require uint8_t.
32379         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
32380         (struct readdir_result): Use dirent_type.  Do not define skip_entry
32381         unless it is needed; this saves a byte on platforms lacking d_ino.
32382         (readdir_result_type, readdir_result_skip_entry):
32383         New functions, replacing ...
32384         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
32385         these functions, which were removed.  This makes the callers
32386         easier to read.  All callers changed.
32387         (D_INO_TO_RESULT): Now empty if there is no d_ino.
32388         (size_add_wrapv, glob_use_alloca): New static functions.
32389         (glob, glob_in_dir): Check for size_t overflow in several places,
32390         and fix some size_t checks that were not quite right.
32391         Remove old code using SHELL since Bash no longer
32392         uses this.
32393         (glob, prefix_array): Separate MS code better.
32394         (glob_in_dir): Remove old Amiga and VMS code.
32395         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
32396         separate files.
32397         (glob_in_dir): Do not rely on undefined behavior in accessing
32398         struct members beyond their bounds.  Use a flexible array member
32399         instead
32400         (link_stat): Rename from link_exists2_p and return -1/0 instead of
32401         0/1.  Caller changed.
32402         (glob): Fix memory leaks.
32403         * posix/glob64 (globfree64): Move to separate file.
32404         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
32405         (globfree64): Remove hidden alias.
32406         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
32407         oldglob.
32408         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
32409         separate file.
32410         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
32411         define.
32412         Move compat code to separate file.
32413         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
32414         separate file.
32416 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
32418         * resolv/tst-resolv-qtypes.c (domain): Changed to
32419         "const char domain[] =".
32421 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
32423         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
32424         version to 3.1.6.
32426         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
32427         (TCP_MD5SIG_EXT): Likewise.
32428         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
32429         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
32430         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
32432         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
32434 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
32436         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
32438 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
32440         [BZ #22100]
32441         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
32443 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32445         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
32446         before assuming that the file is empty.  Avoid testing buffer content
32447         when nread == 0.
32449 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32451         [BZ #18858]
32452         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
32453         Remove define.
32454         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
32455         Likewise.
32456         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
32457         Likewise.
32458         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
32459         Likewise.
32460         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
32461         Likewise.
32462         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
32463         Likewise.
32464         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
32465         Likewise.
32467 2017-09-06  Florian Weimer  <fweimer@redhat.com>
32469         * malloc/dynarray_emplace_enlarge.c
32470         (__libc_dynarray_emplace_enlarge): Add missing else.
32472 2017-09-06  Florian Weimer  <fweimer@redhat.com>
32474         [BZ #22096]
32475         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
32476         case of failure to obtain the global conf object.
32478 2017-09-06  Florian Weimer  <fweimer@redhat.com>
32480         [BZ #22095]
32481         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
32482         dynarray allocation failure.
32484 2017-09-06  Florian Weimer  <fweimer@redhat.com>
32486         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
32487         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
32488         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
32489         New functions.
32490         (response): Call them.  Add 'p', '6' flag processing.
32491         (test_reverse): New function.
32492         (test_get2_any): Call it.
32493         (test_no_inet6): Add 'p' test.
32494         (test_inet6): Likewise.
32496 2017-09-06  Florian Weimer  <fweimer@redhat.com>
32498         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
32499         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
32500         the QNAME.
32501         (test_gai): Adjust query names.  Add additional tests.
32502         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
32503         test_get2.  Adjust query names.  Add additional tests.
32504         (test_no_inet6): New function, extracted from threadfunc.
32505         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
32506         Add additional tests.
32508 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
32510         [BZ #22070]
32511         * localedata/unicode-gen/utf8_gen.py: Set the width for
32512         characters with Prepended_Concatenation_Mark property to 1
32513         * localedata/charmaps/UTF-8: Updated using the improved script.
32515 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
32517         [BZ #21750]
32518         * localedata/unicode-gen/utf8_gen.py: Improve the script to
32519         use the range notation for all ranges of neighbouring characters
32520         with the same width.
32522 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
32524         * sysdeps/generic/math-type-macros-double.h: Include
32525         <math-svid-compat.h>.
32526         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
32527         * sysdeps/generic/math-type-macros-float.h: Include
32528         <math-svid-compat.h>.
32529         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
32530         * sysdeps/generic/math-type-macros-ldouble.h: Include
32531         <math-svid-compat.h>.
32532         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
32533         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
32534         condition.
32535         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
32536         * math/w_acosf_compat.c: Likewise.
32537         * math/w_acosh_compat.c: Likewise.
32538         * math/w_acoshf_compat.c: Likewise.
32539         * math/w_acoshl_compat.c: Likewise.
32540         * math/w_acosl_compat.c: Likewise.
32541         * math/w_asin_compat.c: Likewise.
32542         * math/w_asinf_compat.c: Likewise.
32543         * math/w_asinl_compat.c: Likewise.
32544         * math/w_atan2_compat.c: Likewise.
32545         * math/w_atan2f_compat.c: Likewise.
32546         * math/w_atan2l_compat.c: Likewise.
32547         * math/w_atanh_compat.c: Likewise.
32548         * math/w_atanhf_compat.c: Likewise.
32549         * math/w_atanhl_compat.c: Likewise.
32550         * math/w_cosh_compat.c: Likewise.
32551         * math/w_coshf_compat.c: Likewise.
32552         * math/w_coshl_compat.c: Likewise.
32553         * math/w_exp10_compat.c: Likewise.
32554         * math/w_exp10f_compat.c: Likewise.
32555         * math/w_exp10l_compat.c: Likewise.
32556         * math/w_exp2_compat.c: Likewise.
32557         * math/w_exp2f_compat.c: Likewise.
32558         * math/w_exp2l_compat.c: Likewise.
32559         * math/w_fmod_compat.c: Likewise.
32560         * math/w_fmodf_compat.c: Likewise.
32561         * math/w_fmodl_compat.c: Likewise.
32562         * math/w_hypot_compat.c: Likewise.
32563         * math/w_hypotf_compat.c: Likewise.
32564         * math/w_hypotl_compat.c: Likewise.
32565         * math/w_j0_compat.c: Likewise.
32566         * math/w_j0f_compat.c: Likewise.
32567         * math/w_j0l_compat.c: Likewise.
32568         * math/w_j1_compat.c: Likewise.
32569         * math/w_j1f_compat.c: Likewise.
32570         * math/w_j1l_compat.c: Likewise.
32571         * math/w_jn_compat.c: Likewise.
32572         * math/w_jnf_compat.c: Likewise.
32573         * math/w_jnl_compat.c: Likewise.
32574         * math/w_lgamma_r_compat.c: Likewise.
32575         * math/w_lgammaf_r_compat.c: Likewise.
32576         * math/w_lgammal_r_compat.c: Likewise.
32577         * math/w_log10_compat.c: Likewise.
32578         * math/w_log10f_compat.c: Likewise.
32579         * math/w_log10l_compat.c: Likewise.
32580         * math/w_log2_compat.c: Likewise.
32581         * math/w_log2f_compat.c: Likewise.
32582         * math/w_log2l_compat.c: Likewise.
32583         * math/w_log_compat.c: Likewise.
32584         * math/w_logf_compat.c: Likewise.
32585         * math/w_logl_compat.c: Likewise.
32586         * math/w_pow_compat.c: Likewise.
32587         * math/w_powf_compat.c: Likewise.
32588         * math/w_powl_compat.c: Likewise.
32589         * math/w_remainder_compat.c: Likewise.
32590         * math/w_remainderf_compat.c: Likewise.
32591         * math/w_remainderl_compat.c: Likewise.
32592         * math/w_sinh_compat.c: Likewise.
32593         * math/w_sinhf_compat.c: Likewise.
32594         * math/w_sinhl_compat.c: Likewise.
32595         * math/w_sqrt_compat.c: Likewise.
32596         * math/w_sqrtf_compat.c: Likewise.
32597         * math/w_sqrtl_compat.c: Likewise.
32598         * math/w_tgamma_compat.c: Likewise.
32599         * math/w_tgammaf_compat.c: Likewise.
32600         * math/w_tgammal_compat.c: Likewise.
32601         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
32602         [LIBM_SVID_COMPAT].
32603         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
32604         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
32605         [LIBM_SVID_COMPAT].
32606         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
32607         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
32608         [LIBM_SVID_COMPAT].
32609         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
32610         * sysdeps/i386/fpu/w_sqrt.c: New file.
32611         * sysdeps/ia64/fpu/w_acos.c: Likewise.
32612         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
32613         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
32614         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
32615         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
32616         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
32617         * sysdeps/ia64/fpu/w_asin.c: Likewise.
32618         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
32619         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
32620         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
32621         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
32622         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
32623         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
32624         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
32625         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
32626         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
32627         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
32628         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
32629         * sysdeps/ia64/fpu/w_exp.c: Likewise.
32630         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
32631         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
32632         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
32633         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
32634         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
32635         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
32636         * sysdeps/ia64/fpu/w_expf.c: Likewise.
32637         * sysdeps/ia64/fpu/w_expl.c: Likewise.
32638         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
32639         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
32640         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
32641         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
32642         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
32643         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
32644         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
32645         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
32646         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
32647         * sysdeps/ia64/fpu/w_log.c: Likewise.
32648         * sysdeps/ia64/fpu/w_log10.c: Likewise.
32649         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
32650         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
32651         * sysdeps/ia64/fpu/w_log2.c: Likewise.
32652         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
32653         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
32654         * sysdeps/ia64/fpu/w_logf.c: Likewise.
32655         * sysdeps/ia64/fpu/w_logl.c: Likewise.
32656         * sysdeps/ia64/fpu/w_pow.c: Likewise.
32657         * sysdeps/ia64/fpu/w_powf.c: Likewise.
32658         * sysdeps/ia64/fpu/w_powl.c: Likewise.
32659         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
32660         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
32661         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
32662         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
32663         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
32664         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
32665         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
32666         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
32667         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
32668         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
32669         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
32670         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
32671         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
32672         [LIBM_SVID_COMPAT].
32673         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32674         * sysdeps/ieee754/k_standard.c: Likewise.
32675         * sysdeps/ieee754/k_standardf.c: Likewise.
32676         * sysdeps/ieee754/k_standardl.c: Likewise.
32677         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32678         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32679         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32680         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
32681         long_double_symbol call on [LIBM_SVID_COMPAT].
32682         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
32683         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
32684         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
32685         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
32686         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
32687         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
32688         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
32689         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
32690         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
32691         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
32692         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
32693         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
32694         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
32695         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
32696         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
32697         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
32698         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
32699         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
32700         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
32701         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
32702         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
32703         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
32705 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
32707         * include/shlib-compat.h (TEST_COMPAT): New Macro.
32708         * malloc/tst-mallocstate.c: Convert from test-skeleton
32709         to test-driver.  Ifdef code using TEST_COMPAT macro.
32710         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
32711         * math/test-matherr.c: Likewise.
32713 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
32715         [BZ #22086]
32716         * debug/pcprofiledump.c (main): Use byte-swapped mask when
32717         comparing word with byte-swapped constant.
32719 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
32721         [BZ #20498]
32722         * locale/iso-639.def: add Miskito.
32723         * localedata/SUPPORTED: Add miq_NI/UTF-8.
32724         * localedata/locales/miq_NI: New file.
32726 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
32728         [BZ #18822]
32729         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
32730         (__mkdir): Likewise.
32731         * io/chmod.c (__chmod): Add libc_hidden_def.
32732         * io/mkdir.c (__mkdir): Likewise.
32733         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
32734         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
32735         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
32736         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
32738 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
32740         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
32741         version to 4.13.
32743         [BZ #22082]
32744         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
32745         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
32747 2017-09-04  Florian Weimer  <fweimer@redhat.com>
32749         * math/math.h: Issue warning if log is defined.
32751 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
32753         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
32754         kernel version to 4.13.
32756 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32758         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
32759         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
32760         parameter.
32761         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
32762         just <bits/types.h>.
32763         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
32764         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
32765         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
32766         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
32767         * misc/preadv2.c: Include <errno.h>.
32768         * misc/preadv64v2.c: Include <errno.h>.
32769         * misc/pwritev2.c: Include <errno.h>.
32770         * misc/pwritev64v2.c: Include <errno.h>.
32771         * sysdeps/posix/preadv2.c: Include <errno.h>.
32772         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
32773         Fix <unistd.h> inclusion.
32774         * sysdeps/posix/pwritev2.c: Include <errno.h>.
32775         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
32776         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
32777         __strtoul_internal): New functions.
32778         * sysdeps/posix/pause.c: Include <sigsetops.h>.
32779         * sysdeps/posix/system.c: Include <sigsetops.h>.
32780         * sysdeps/mach/hurd/i386/Makefile
32781         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
32782         [$(subdir) = csu] (sysdep-only-routines): Likewise.
32783         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
32784         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
32785         __feraiseexcept_renamed to feraiseexcept instead of
32786         __GI_feraiseexcept.
32787         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
32788         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
32789         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
32790         RWF_NOWAIT): Define to 0 if undefined already.
32791         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
32792         boils down to 0.
32793         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
32794         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
32796 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
32798         * manual/math.texi (pow10): Do not document.
32799         (pow10f): Likewise.
32800         (pow10l): Likewise.
32801         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
32802         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
32803         * math/libm-test-exp10.inc (pow10_test): Remove.
32804         (do_test): Do not call pow10.
32805         * math/w_exp10_compat.c (pow10): Make into compat symbol.
32806         [NO_LONG_DOUBLE] (pow10l): Likewise.
32807         * math/w_exp10f_compat.c (pow10f): Likewise.
32808         * math/w_exp10l_compat.c (pow10l): Likewise.
32809         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
32810         (pow10): Make into compat symbol.
32811         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
32812         (pow10f): Make into compat symbol.
32813         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
32814         (pow10l): Make into compat symbol.
32815         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
32816         pow10.
32817         (CFLAGS-nldbl-pow10.c): Remove variable..
32818         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
32819         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
32820         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
32821         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
32822         Undefine and redefine.
32823         (pow10l): Make into compat symbol.
32824         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
32825         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
32826         * sysdeps/arm/libm-test-ulps: Likewise.
32827         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
32828         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
32829         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
32830         * sysdeps/microblaze/libm-test-ulps: Likewise.
32831         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
32832         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
32833         * sysdeps/nios2/libm-test-ulps: Likewise.
32834         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
32835         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
32836         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
32837         * sysdeps/sh/libm-test-ulps: Likewise.
32838         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
32839         * sysdeps/tile/libm-test-ulps: Likewise.
32840         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32842 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
32844         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
32846 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
32848         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
32849         "../ChangeLog.old/ChangeLog.8".
32850         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
32851         "../ChangeLog.old/ChangeLog.14".
32853 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
32855         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
32856         Threads Library.
32858 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
32860         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
32862 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
32864         * csu/version.c (banner): Remove "by Roland McGrath et al.".
32865         * nptl/Banner: Remove "by Ulrich Drepper et al.".
32867 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
32869         * stdlib/tst-atexit-common.c (do_test): Test support for at least
32870         32 atexit handlers.
32872 2017-09-01  Zack Weinberg  <zackw@panix.com>
32874         * math/math.h (HUGE_VAL): Improve commentary.
32876 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32877             Andreas Schwab  <schwab@suse.de>
32879         [BZ #21530]
32880         * include/stdio.h (__gen_tempfd): New function.
32881         * stdio-common/Makefile (routines): Add gentempfd.
32882         * stdio-common/gentempfd.c: New file.
32883         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
32884         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
32885         unnamed file first.
32887 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32889         [BZ #21915]
32890         [BZ #21922]
32891         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
32892         result to determine success or failure, not the errno value.
32893         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
32894         (tst-nss-files-hosts-erange): Link with -ldl.
32895         * nss/tst-nss-files-hosts-erange.c: New file.
32896         * nss/tst-resolv-basic.c (response): Handle nodata.example.
32897         (do_test): Add NO_DATA tests.
32898         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
32899         (do_test): Call it.
32901 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32903         [BZ #21922]
32904         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
32905         coming from gethostbyname2_r.
32907 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32909         * support/namespace.h (struct support_chroot_configuration): Add
32910         hosts, host_conf.
32911         (struct support_chroot): Add path_hosts, path_host_conf.
32912         * support/support_chroot.c (write_file): New function.
32913         (support_chroot_create): Call it to process /etc/resolv.conf,
32914         /etc/hosts, /etc/host.conf.
32915         (support_chroot_free): Update.
32917 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32919         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
32920         status indicates it is set.
32922 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32924         [BZ #20532]
32925         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
32926         function lookup failures more reliable.
32928 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32930         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
32931         (getcanonname): Likewise.
32932         (gaih_inet): Likewise.
32934 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32936         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
32937         (getcanonname): Likewise.
32938         (gaih_inet): Likewise.
32940 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
32941             Richard Henderson  <rth@twiddle.net>
32943         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
32944         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
32945         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
32946         (IREG_SIZE, OREG_SIZE): New macros.
32947         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
32948         (IREG_SIZE, OREG_SIZE): New macros.
32949         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
32950         (IREG_SIZE): New macro.
32951         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
32952         (IREG_SIZE): New macro.
32953         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
32954         New includes.
32955         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
32956         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
32957         (__CONCATX): Handle exceptions correctly on large values that may
32958         set FE_INVALID.
32959         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
32960         Initialize if not already set.
32961         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
32963 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32965         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
32966         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
32967         Likewise.
32968         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
32969         Likewise.
32970         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
32971         Likewise.
32972         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
32973         Likewise.
32974         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
32975         Likewise.
32976         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
32977         Likewise.
32978         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
32979         Likewise.
32980         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
32981         (NO_CANCELLATION): Likewise.
32982         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
32983         Likewise.
32984         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
32985         Likewise.
32986         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
32987         Likewise.
32988         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
32989         (NO_CANCELLATION): Likewise.
32990         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
32991         (NO_CANCELLATION): Likewise.
32992         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
32993         Likewise
32994         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
32995         Likewise.
32996         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
32997         Likewise.
32998         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
32999         Likewise.
33000         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
33001         hidden prototype.
33002         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
33003         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
33005 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
33007         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
33008         in resolver call.
33010 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33012         * include/libc-symbols.h (internal_function): Remove.
33014 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33016         * stdlib/fmtmsg.c (internal_addseverity): Remove
33017         internal_function.
33019 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33021         * stdio-common/printf_fp.c (group_number): Remove
33022         internal_function.
33023         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
33025 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33027         * posix/fnmatch.c (internal_function): Remove definition.
33028         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
33029         * posix/regcomp.c (peek_token, init_word_char)
33030         (duplicate_node_closure, fetch_token, peek_token)
33031         (peek_token_bracket, build_range_exp, build_collating_symbol):
33032         Likewise.
33033         * posix/regex_internal.c (re_string_construct_common)
33034         (create_ci_newstate, create_cd_newstate, re_string_allocate)
33035         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
33036         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
33037         (re_string_translate_buffer, re_string_reconstruct)
33038         (re_string_peek_byte_case, re_string_fetch_byte_case)
33039         (re_string_destruct, re_string_context_at, re_node_set_alloc)
33040         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
33041         (re_node_set_add_intersect, re_node_set_init_union)
33042         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
33043         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
33044         (re_dfa_add_node, calc_state_hash, re_acquire_state)
33045         (re_acquire_state_context): Likewise.
33046         * posix/regex_internal.h (internal_function): Remove definition.
33047         (re_string_realloc_buffers, build_wcs_buffer)
33048         (build_wcs_upper_buffer, build_upper_buffer)
33049         (re_string_translate_buffer, re_string_context_at)
33050         (re_string_char_size_at, re_string_wchar_at)
33051         (re_string_elem_size_at): Likewise.
33052         * posix/regexec.c (match_ctx_init, match_ctx_clean)
33053         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
33054         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
33055         (re_search_internal, re_search_2_stub, re_search_stub)
33056         (re_copy_regs, prune_impossible_nodes, check_matching)
33057         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
33058         (free_fail_stack_return, sift_states_iter_mb)
33059         (sift_states_backward, build_sifted_states)
33060         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
33061         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
33062         (check_subexp_limits, sift_states_bkref, merge_state_array)
33063         (find_recover_state, transit_state, merge_state_with_log)
33064         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
33065         (transit_state_mb, transit_state_bkref, get_subexp)
33066         (get_subexp_sub, find_subexp_node, check_arrival)
33067         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
33068         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
33069         (check_node_accept_bytes, find_collation_sequence_value)
33070         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
33071         (acquire_init_state_context, check_halt_node_context)
33072         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
33073         (sub_epsilon_src_nodes): Likewise.
33074         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
33075         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
33076         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
33077         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
33078         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
33079         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
33080         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
33081         * sysdeps/posix/ttyname.c (getttyname): Likewise.
33082         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
33083         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
33084         (PREADV): Likewise.
33085         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
33086         (PREADV): Likewise.
33087         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
33088         (PWRITEV): Likewise.
33089         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
33090         (PWRITEV): Likewise.
33091         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
33092         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
33094 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33096         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
33097         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
33098         Remove internal_function.
33099         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
33100         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
33101         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
33102         (__deallocate_stack, __libc_pthread_init)
33103         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
33104         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
33105         (__libc_disable_asynccancel, __librt_disable_asynccancel):
33106         Likewise.
33107         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
33108         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
33109         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
33110         Likewise.
33111         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
33112         (__pthread_mutex_unlock_usercnt): Likewise.
33114 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33116         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
33117         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
33118         (fts_safe_changedir): Remove internal_function.
33119         * io/ftw.c (internal_function): Remove definition.
33120         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
33122 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33124         * inet/deadline.c (__deadline_current_time)
33125         (__deadline_from_timeval, __deadline_to_ms): Remove
33126         internal_function.
33127         * inet/getnameinfo.c (nrl_domainname): Likewise.
33128         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
33129         * inet/inet6_option.c (add_pad): Likewise.
33130         * inet/net-internal.h (__deadline_current_time)
33131         (__deadline_from_timeval, __deadline_to_ms): Likewise.
33132         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
33133         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
33134         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
33136 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
33138         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
33139         include <bits/nan.h>.
33140         * math/Makefile (headers): Remove bits/nan.h.
33141         * bits/nan.h: Remove.
33142         * sysdeps/ieee754/bits/nan.h: Likewise.
33143         * sysdeps/mips/bits/nan.h: Likewise.
33145         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
33146         not include <bits/inf.h>.
33147         * math/Makefile (headers): Remove bits/inf.h.
33148         * bits/inf.h: Remove.
33149         * sysdeps/ieee754/bits/inf.h: Likewise.
33151         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
33152         bits/huge_vall.h or bits/huge_val_flt128.h.
33153         (HUGE_VAL): Define directly here.
33154         [__USE_ISOC99] (HUGE_VALF): Likewise.
33155         [__USE_ISOC99] (HUGE_VALL): Likewise.
33156         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33157         (HUGE_VAL_F128): Likewise.
33158         * math/Makefile (headers): Remove bits/huge_val.h,
33159         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
33160         * bits/huge_val.h: Remove.
33161         * bits/huge_val_flt128.h: Likewise.
33162         * bits/huge_valf.h: Likewise.
33163         * bits/huge_vall.h: Likewise.
33164         * sysdeps/ia64/bits/huge_vall.h: Likewise.
33165         * sysdeps/ieee754/bits/huge_val.h: Likewise.
33166         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
33167         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
33168         * sysdeps/sh/bits/huge_val.h: Likewise.
33169         * sysdeps/sparc/bits/huge_vall.h: Likewise.
33170         * sysdeps/x86/bits/huge_vall.h: Likewise.
33172 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33174         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
33175         internal_function.
33176         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
33177         Likewise.
33178         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
33179         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
33180         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
33181         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
33182         * elf/dl-fini.c (_dl_sort_fini): Likewise.
33183         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
33184         * elf/dl-libc.c (dlerror_run): Likewise.
33185         * elf/dl-load.c (add_name_to_object, decompose_rpath)
33186         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
33187         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
33188         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
33189         Likewise.
33190         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
33191         (_dl_higher_prime_number, _dl_strtoul): Likewise.
33192         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
33193         * elf/dl-profile.c (_dl_start_profile): Likewise.
33194         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
33195         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
33196         Likewise.
33197         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
33198         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
33199         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
33200         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
33201         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
33202         (_dl_allocate_tls_storage): Likewise.
33203         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
33204         (_dl_check_all_versions): Likewise.
33205         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
33206         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
33207         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
33208         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
33209         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
33210         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
33211         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
33212         internal_function from __dl_start.
33213         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
33214         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
33215         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
33216         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
33217         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
33218         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
33219         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
33220         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
33221         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
33222         (_dl_next_ld_env_entry, _dl_important_hwcaps)
33223         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
33224         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
33225         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
33226         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
33227         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
33228         Likewise.
33229         (struct rtld_global_ro): Remove internal_function from the
33230         _dl_lookup_symbol_x member.
33231         (_dl_symbol_value): Remove.  No longer defined anywhere.
33232         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
33233         internal_function.
33234         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
33235         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
33236         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
33237         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
33238         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
33239         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
33240         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
33241         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
33242         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
33243         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
33244         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
33245         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
33247 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33249         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
33250         Remove internal_function.
33251         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
33252         Likewise.
33253         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
33254         Likewise.
33256 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33258         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
33259         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
33260         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
33262 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33264         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
33265         (__gai_enqueue_request): Remove internal_function.
33266         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
33267         (__gai_remove_request, __gai_notify, __gai_notify_only)
33268         (__gai_sigqueue): Likewise.
33269         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
33270         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
33271         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
33272         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
33273         Likewise.
33275 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33277         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
33278         * include/dirent.h (__opendirat, __getdents, __getdents64)
33279         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
33280         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
33281         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33282         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
33283         Likewise.
33284         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
33286 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33288         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
33289         internal_function.
33290         (GETCWD_RETURN_TYPE): Likewise.
33292 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33294         * include/time.h (__tz_compute, __strptime_internal): Remove
33295         internal_function.
33296         * time/strptime_l.c (__strptime_internal): Likewise.
33297         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
33299 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33301         * iconv/gconv.c (__gconv): Remove internal_function.
33302         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
33303         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
33304         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
33305         (__gconv_release_cache): Likewise.
33306         * iconv/gconv_close.c (__gconv_close): Likewise.
33307         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
33308         (read_conf_file, __gconv_get_path): Likewise.
33309         * iconv/gconv_db.c (derivation_lookup, add_derivation)
33310         (__gconv_release_step, gen_steps, increment_counter)
33311         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
33312         (__gconv_close_transform, free_modules_db): Likewise.
33313         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
33314         Likewise.
33315         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
33316         (__gconv_find_transform, __gconv_lookup_cache)
33317         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
33318         (__gconv_close_transform, __gconv_release_cache)
33319         (__gconv_loaded_object, __gconv_release_shlib)
33320         (__gconv_compare_alias): Likewise.
33321         * iconv/gconv_open.c (__gconv_open): Likewise.
33322         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
33323         * iconv/iconvconfig.c (add_module): Likewise.
33324         * intl/dcigettext.c (plural_lookup, guess_category_value)
33325         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
33326         * intl/eval-plural.h (plural_eval): Likewise.
33327         * intl/finddomain.c (_nl_find_domain): Likewise.
33328         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
33329         (_nl_load_domain, _nl_find_msg): Likewise.
33330         (internal_function): Remove definition.
33331         * intl/loadinfo.h (internal_function): Likewise.
33332         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
33333         internal_function.
33334         * intl/localealias.c (internal_function): Remove definition.
33335         (read_alias_file): Remove internal_function.
33336         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
33337         * intl/plural-exp.h (internal_function): Remove definition.
33338         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
33339         internal_function.
33340         * intl/plural.c: Regenerate.
33341         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
33342         * locale/coll-lookup.c (__collidx_table_lookup)
33343         (__collseq_table_lookup): Likewise.
33344         * locale/coll-lookup.h (__collidx_table_lookup)
33345         (__collseq_table_lookup): Likewise.
33346         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
33347         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33348         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
33349         (_nl_unload_locale): Likewise.
33350         * locale/localeinfo.h (struct __locale_data): Remove
33351         internal_function from cleanup member.
33352         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
33353         (_nl_remove_locale, _nl_load_locale_from_archive)
33354         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
33355         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
33356         (_nl_cleanup_time): Remove internal_function.
33357         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
33358         (_nl_parse_alt_digit): Likewise.
33359         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
33360         (_nl_select_era_entry): Likewise.
33361         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
33362         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
33363         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
33364         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
33365         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
33367 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33369         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
33370         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
33371         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
33372         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
33373         Likewise.
33374         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
33375         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
33376         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
33377         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33378         Likewise.
33379         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
33381 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33383         * misc/getttyent.c (skip, value): Remove internal_function.
33384         * misc/syslog.c (openlog_internal): Likewise.
33385         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
33387 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33389         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
33390         (__nss_rewrite_field): Remove internal_function.
33391         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33392         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33393         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33394         * nss/nsswitch.c (nss_parse_file, nss_getline)
33395         (nss_parse_service_list, nss_new_service): Likewise.
33396         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
33397         * nss/valid_field.c (__nss_valid_field): Likewise.
33398         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
33400 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33402         * malloc/arena.c (__malloc_fork_lock_parent)
33403         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
33404         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
33405         internal_function from defintions.
33406         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
33407         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
33408         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
33409         internal_function from declarations.
33410         * malloc/malloc.c (internal_function): Do not define.
33411         (mem2mem_check): Remove internal_function from declaration.
33412         (munmap_chunk, mremap_chunk): Remove internal_function.
33413         * malloc/mtrace.c (tr_where): Likewise.
33415 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33417         * include/rpc/pmap_clnt.h (__get_socket): Remove
33418         internal_function.
33419         * sunrpc/auth_des.c (synchronize): Likewise.
33420         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
33421         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
33422         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
33423         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
33424         (key_call): Likewise.
33425         * sunrpc/pm_getport.c (__get_socket): Likewise.
33426         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
33427         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
33428         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
33429         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
33430         (invalidate): Likewise.
33431         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
33432         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
33433         (set_input_fragment, get_input_bytes): Likewise.
33435 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33437         * malloc/malloc.c (_int_free): Remove locked variable and related
33438         asserts.
33440 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
33442         [BZ #22051]
33443         * Makerules (build-module-helper-objlist): Filter out
33444         $(elf-objpfx)sofini.os.
33445         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
33446         needed.
33448 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33450         * libio/fcloseall.c: Assume weak_alias is defined.
33451         * libio/feof.c: Likewise.
33452         * libio/fileno.c: Likewise.
33453         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
33454         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
33455         definitions.
33456         (_IO_file_open): Call __open directly.
33457         (_IO_new_file_sync): Assume ESPIPE is defined.
33458         (_IO_file_seekoff_maybe_mmap): Call __read directly.
33459         (_IO_new_file_write): Call __write directly.
33460         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
33461         * libio/ftello64.c (__ftello64): Assume EIO is defined.
33462         * libio/genops.c: Assume _LIBC is defined.
33463         (save_for_backup): Remove internal_function.
33464         * libio/getc.c: Assume weak_alias is defined.
33465         * libio/getwc.c: Likewise.
33466         * libio/iofclose.c: Assume _LIBC is defined.
33467         * libio/iofdopen.c: Likewise.
33468         (_IO_fcntl): Remove macro definition.
33469         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
33470         Call __fcntl directly.
33471         * libio/iofflush.c: Assume weak_alias is defined.
33472         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
33473         defined.
33474         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
33475         * libio/iofgets.c: Likewise.
33476         * libio/iofopen.c: Assume _LIBC is defined.
33477         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
33478         * libio/iofputs.c: Assume weak_alias is defined.
33479         * libio/iofread.c: Likewise.
33480         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
33481         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
33482         * libio/ioftell.c: Assume weak_alias is defined.
33483         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
33484         * libio/iofwide.c: Assume _LIBC is defined.
33485         (_IO_fwide): Drop SHARED conditional because it is implied by
33486         SHLIB_COMPAT.
33487         * libio/iofwrite.c: Assume weak_alias is defined.
33488         * libio/iogetdelim.c: Likewise.
33489         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
33490         * libio/iogetwline.c (wmemcpy): Remove macro definition.
33491         (_IO_getwline): Call __wmemcpy directly.
33492         * libio/iopopen.c: Assume _LIBC is defined.
33493         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
33494         (_IO_close): Remove macro definitions.
33495         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
33496         _exit directly.
33497         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
33498         directly.
33499         * libio/ioputs.c: Assume weak_alias is defined.
33500         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
33501         * libio/iosetbuffer.c: Assume weak_alias is defined.
33502         * libio/iosetvbuf.c: Likewise.
33503         * libio/ioungetc.c: Likewise.
33504         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
33505         libc_hidden_def, libc_hidden_weak, NULL are defined.
33506         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
33507         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
33508         defined.
33509         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
33510         definitions.
33511         (_IO_old_file_init_internal): Drop SHARED conditional because it
33512         is implied by SHLIB_COMPAT.
33513         (_IO_old_file_fopen): Call __open directly.
33514         (_IO_old_file_sync): Assume ESPIPE is defined.
33515         (_IO_old_file_write): Call __write directly.
33516         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
33517         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
33518         Call __fcntl directly.
33519         * libio/oldiofgetpos.c: Assume weak_alias is defined.
33520         (_IO_old_fgetpos): Assume EIO is defined.
33521         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
33522         (_IO_old_fgetpos64): Assume EIO is defined.
33523         * libio/oldiofsetpos.c: Assume weak_alias is defined.
33524         (_IO_old_fsetpos): Assume EIO is defined.
33525         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
33526         (_IO_old_fsetpos64): Assume EIO is defined.
33527         * libio/oldiopopen.c:  Assume _LIBC is defined.
33528         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
33529         (_IO_close): Remove macro definitions.
33530         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
33531         directly.
33532         (_IO_old_proc_close): Call __close, __waitpid directly.
33533         * libio/put.c: Assume weak_alias is defined.
33534         * libio/stdfiles.c: Assume _LIBC is defined.
33535         * libio/stdio.c: Likewise.
33536         * libio/wfileops.c: Likewise.
33537         (_IO_wfile_sync): Assume ESPIPE is defined.
33538         * libio/wgenops.c: Assume _LIBC is defined.
33539         (save_for_wbackup): Remove internal_function.
33541 2017-08-31  Florian Weimer  <fweimer@redhat.com>
33543         * malloc/malloc.c (top_check): Change return type to void.  Remove
33544         internal_function.
33545         * malloc/hooks.c (top_check): Likewise.
33546         (malloc_check, realloc_check, memalign_check): Adjust.
33548 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
33550         [BZ #21457]
33551         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
33552         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
33553         sigcontext and namespace requirements.
33554         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
33555         * sysdeps/m68k/sys/ucontext.h: Likewise.
33556         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
33557         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
33558         <bits/sigcontext.h>.
33559         (__ctx): Define earlier.
33560         (mcontext_t): Define structure contents rather than using struct
33561         sigcontext.
33562         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
33563         __glibc_reserved1 instead of __reserved.
33564         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
33565         <bits/sigcontext.h>.
33566         (__ctx): Define earlier.
33567         (mcontext_t): Define structure contents rather than using struct
33568         sigcontext.
33569         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
33570         mcontext_t instead of struct sigcontext.
33571         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
33572         <bits/sigcontext.h>.
33573         (__ctx): Define earlier.
33574         (mcontext_t): Define structure contents rather than using struct
33575         sigcontext.
33576         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
33577         <bits/sigcontext.h>.
33578         (__ctx): Define earlier.
33579         (mcontext_t): Define structure contents rather than using struct
33580         sigcontext.
33581         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
33582         mcontext_t instead of struct sigcontext.
33583         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
33584         mcontext_t instead of struct sigcontext.
33585         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
33586         <bits/sigcontext.h>.
33587         (__ctx): New macro.
33588         (struct __ia64_fpreg_mcontext): New type.
33589         (mcontext_t): Define structure contents rather than using struct
33590         sigcontext.
33591         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
33592         (uc_sigmask): Define using __ctx.
33593         (uc_stack): Likewise.
33594         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
33595         <bits/sigcontext.h>.
33596         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33597         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
33598         <bits/sigcontext.h>.
33599         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
33600         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
33601         <bits/sigcontext.h>.
33602         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
33603         <bits/sigcontext.h>.
33604         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
33605         <bits/sigcontext.h>.
33606         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
33607         <bits/sigcontext.h>.
33608         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
33609         <bits/sigcontext.h>.
33610         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
33611         <bits/sigcontext.h>.
33612         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
33613         <bits/sigcontext.h>.
33614         (__ctx): Define earlier.
33615         (mcontext_t): Define structure contents rather than using struct
33616         sigcontext.
33617         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
33618         <bits/sigcontext.h>.  Include <bits/types.h>.
33619         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
33620         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
33621         (test-xfail-XPG42/ucontext.h/conform): Likewise.
33622         (test-xfail-UNIX98/signal.h/conform): Likewise.
33623         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
33624         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
33625         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
33626         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
33627         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
33628         (test-xfail-POSIX2008/signal.h/conform): Likewise.
33629         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
33630         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
33631         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
33633 2017-08-30  Florian Weimer  <fweimer@redhat.com>
33635         * malloc/dynarray_emplace_enlarge.c
33636         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
33637         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
33638         * malloc/tst-dynarray.c (test_long_overflow): New function.
33639         (do_test): Call it.
33641 2017-08-30  Florian Weimer  <fweimer@redhat.com>
33643         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
33644         (set_arena_corrupt): Remove definitions.
33645         (mtrim): Do not check for corrupt arena.
33646         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
33647         Likewise.
33649 2017-08-30  Florian Weimer  <fweimer@redhat.com>
33651         [BZ #21754]
33652         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
33653         check_action.
33654         (ptmalloc_init): Do not set or use check_action.
33655         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
33656         call to malloc_printerr.  Remove return statement.
33657         (free_check): Likewise.  Remove arena unlock.
33658         (top_check): Update comment.  Adjust call to malloc_printerr.
33659         Remove heap repair code.
33660         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
33661         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
33662         (sysmalloc): Adjust call to malloc_printerr.
33663         (munmap_chunk, __libc_realloc): Likewise.  Remove return
33664         statement.
33665         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
33666         Remove errout label and corresponding gotos.
33667         (_int_free): Likewise.  Remove arena unlock.
33668         (do_set_mallopt_check): Do not set check_action.
33669         (malloc_printerr): Adjust parameter list.  Do not mark arena as
33670         corrupt.
33671         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
33672         comment.
33673         * manual/probes.texi (Memory Allocation Probes): Remove
33674         memory_mallopt_check_action.
33676 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
33678         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
33679         Use pointer to uint64_t instead of long int for sp.
33681 2017-08-30  Florian Weimer  <fweimer@redhat.com>
33683         [BZ #21754]
33684         * malloc/malloc.c (malloc_printerr): Always terminate the process,
33685         without printing a backtrace.  Do not leak any information in the
33686         error message.
33687         * manual/memory.texi (Heap Consistency Checking): Update.
33688         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
33690 2017-08-30  Florian Weimer  <fweimer@redhat.com>
33692         Do not scale NPTL tests with available number of CPUs.
33693         * nptl/tst-cond16.c (count): Set to constant value of 8.
33694         * nptl/tst-cond18.c (count): Likewise.
33696 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
33698         [BZ #22035]
33699         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
33700         Define to take a second argument that is a macro that
33701         concatentates a suffix, not the suffix itself.
33702         (__CONCAT_d): New macro.
33703         (__CONCAT_f): Likewise.
33704         (__CONCAT_l): Likewise.
33706 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
33708         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
33709         by child.
33711 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33712             Aurelien Jarno  <aurelien@aurel32.net>
33713             Maciej W. Rozycki  <macro@imgtec.com>
33715         [BZ #21956]
33716         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
33717         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
33718         `mips16-syscall6' and `mips16-syscall7'.
33719         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
33720         (CFLAGS-mips16-syscall7.c): Remove.
33721         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
33722         Remove `__mips16_syscall5', `__mips16_syscall6' and
33723         `__mips16_syscall7'.
33724         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
33725         (__mips16_syscall0): Rename `__mips16_syscall_return' to
33726         `__mips_syscall_return'.
33727         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
33728         (__mips16_syscall1): Likewise.
33729         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
33730         (__mips16_syscall2): Likewise.
33731         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
33732         (__mips16_syscall3): Likewise.
33733         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
33734         (__mips16_syscall4): Likewise.
33735         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
33736         Remove.
33737         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
33738         Remove.
33739         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
33740         Remove.
33741         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
33742         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
33743         `__mips16_syscall5'.  Remove prototype.
33744         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
33745         `__mips16_syscall6'.  Remove prototype.
33746         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
33747         `__mips16_syscall7'.  Remove prototype.
33748         (__nomips16, __mips16_syscall_return): Move to...
33749         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
33750         (__nomips16, __mips_syscall_return): ... here.
33751         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
33752         `__mips16_syscall_return' to `__mips_syscall_return'.
33753         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
33754         `internal_syscall##nr'.
33755         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
33756         `internal_syscall##nr'.
33757         (FORCE_FRAME_POINTER): Remove.
33758         (__mips_syscall5): New prototype.
33759         (internal_syscall5): Rewrite to call `__mips_syscall5'.
33760         (__mips_syscall6): New prototype.
33761         (internal_syscall6): Rewrite to call `__mips_syscall6'.
33762         (__mips_syscall7): New prototype.
33763         (internal_syscall7): Rewrite to call `__mips_syscall7'.
33764         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
33765         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
33766         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
33767         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
33768         (sysdep_routines): Add libc-do-syscall.
33769         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
33770         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
33772 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33774         [BZ #21672]
33775         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
33776         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
33777         (advise_stack_range): New function.
33778         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
33779         stack non required to advise_stack_range at allocatestack.c
33781 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33783         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
33785 2017-08-29  Florian Weimer  <fweimer@redhat.com>
33787         [BZ #22026]
33788         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
33789         __end_fct.  Mangle __end_fct after setting it to NULL.
33790         * iconv/Makefile (tests): Add tst-gconv-init-failure.
33791         (modules-names, modules-names-tests): Add
33792         tst-gconv-init-failure-mod.
33793         (gconv-modules): New target.
33794         (tst-gconv-init-failure-mod.so): Link against libsupport.
33795         (tst-gconv-init-failure): Depend on gconv-modules,
33796         tst-gconv-init-failure-mod.so.
33797         * iconv/tst-gconv-init-failure-mod.c: New file.
33798         * iconv/tst-gconv-init-failure.c: Likewise.
33799         * iconv/test-gconv-modules: Likewise.
33801 2017-08-29  Florian Weimer  <fweimer@redhat.com>
33803         [BZ #22025]
33804         * iconv/gconv_db.c (free_derivation): Remove redundant
33805         parentheses.
33806         (gen_steps): Unconditionally mangle __btowc_fct after
33807         initialization.
33808         (increment_counter): Likewise.  Do not call init_fct for internal
33809         modules.
33811 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
33813         [BZ #22028]
33814         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
33815         (_MSUF_): Remove macro.
33816         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
33817         Likewise.
33818         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
33819         (__REDIRFROM_X): New macro.
33820         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
33821         Likewise.
33822         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
33823         (__REDIRTO_X): Likewise.
33824         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
33825         arguments.
33826         (__MATH_REDIRCALL_2): Likewise.
33827         (__MATH_REDIRCALL_INTERNAL): Likewise.
33828         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
33829         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
33830         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
33831         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
33832         * math/test-finite-macros.c: New file.
33833         * math/Makefile (tests): Add test-finite-macros.
33834         (CFLAGS-test-finite-macros.c): New variable.
33836 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
33837             Jeff Law  <law@redhat.com>
33839         [BZ #22025]
33840         Mangle NULL pointers in iconv/gconv.
33841         * iconv/gconv_cache.c (find_module): Demangle init_fct before
33842         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
33843         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
33844         is non-NULL before demangling the end_fct.  Check for NULL
33845         end_fct after demangling.
33846         (__gconv_release_step): Demangle the end_fct before checking
33847         it for NULL.   Remove assert on __shlibc_handle != NULL.
33848         (gen_steps): Don't check btowc_fct for NULL before mangling.
33849         Demangle init_fct before checking for NULL.
33850         (increment_counter): Likewise.
33851         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
33852         end_fct for NULL before mangling.
33853         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
33854         for NULL.
33856 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
33858         [BZ #21971]
33859         * locale/iso-639.def: add Morisyen.
33861 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33863         [BZ #21930]
33864         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
33865         (iszero): New C++ implementation that does not use
33866         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
33867         signaling nans are enabled, since __builtin_types_compatible_p
33868         is a C-only feature.
33869         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
33870         defined, include ieee754_float128.h for access to the union and
33871         member ieee854_float128.ieee.
33872         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
33873         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
33874         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
33875         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
33876         options of test-math-zero on powerpc64le.
33878 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
33880         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
33881         Change double to float.
33883 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
33885         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
33886         unconditional.
33887         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
33888         conditional code; define contents only for [LIBM_SVID_COMPAT].
33890 2017-08-28  Florian Weimer  <fweimer@redhat.com>
33892         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
33893         (abi-lp64_be-options): Remove.
33894         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
33895         (abi-hard-options): Likewise.
33896         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
33897         (abi-o32_hard-options, abi-o32_soft_2008-options)
33898         (abi-o32_hard_2008-options, abi-n32_soft-options)
33899         (abi-n32_hard-options, abi-n32_soft_2008-options)
33900         (abi-n32_hard_2008-options, abi-n64_soft-options)
33901         (abi-n64_hard-options, abi-n64_soft_2008-options)
33902         (abi-n64_hard_2008-options): Likewise.
33903         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
33904         (abi-64-v1-options, abi-64-v2-options): Likewise.
33905         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
33906         (abi-64-options): Likewise.
33907         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
33908         (abi-64-options): Likewise.
33909         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
33910         (abi-64-options): Likewise.
33911         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
33912         (abi-64-options, abi-x32-options): Likewise.
33914 2017-08-28  Florian Weimer  <fweimer@redhat.com>
33916         Store supported list of SYS_* system calls in the source tree.
33917         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
33918         (bits/syscall.h): Generate from list file.
33919         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
33920         [$(subdir) = misc] (tests): Add tst-syscall-list.
33921         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
33922         [$(subdir) = misc] (tst-syscall-list-macros.list)
33923         [$(subdir) = misc] (tst-syscall-list-nr.list)
33924         (tst-syscall-list-sys.list): Helper targets for new
33925         tst-syscall-list test.
33926         [$(subdir) = misc] (tst-syscall-list.out): Run test script
33927         tst-syscall-list.sh.
33928         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
33929         target. Do not include bits/syscall.d.
33930         [$(subdir) = misc] (generated): Do not update.
33931         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
33932         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
33933         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
33934         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
33936 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
33938         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
33939         (tst-cxa_atexit, tst-on_exit): Likewise.
33940         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
33941         tst-cxa_atexit, and tst-on_exit.
33942         * stdlib/tst-atexit-common.c: New file.
33943         * stdlib/tst-atexit.c: New file.
33944         * stdlib/tst-at_quick_exit.c: New file.
33945         * stdlib/tst-cxa_atexit.c: New file.
33946         * stdlib/tst-on_exit.c: New file.
33948 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33950         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
33951         * mach/stack_chk_fail_local.c: New file.
33952         * hurd/stack_chk_fail_local.c: New file.
33953         * mach/Machrules ($(interface-library)-routines): Add
33954         stack_chk_fail_local.
33955         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
33956         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
33957         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
33958         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
33959         * hurd/Makefile (CFLAGS-hurdstartup.o,
33960         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
33962 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
33964         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33965         (index_cpu_*, index_arch_*): Removed.
33967 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33969         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
33970         Use uint64_t instead of unsigned long.
33972 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
33974         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
33975         [__HAVE_DISTINCT_FLOAT128].
33977         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
33978         of <bits/math-finite.h>.
33979         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
33980         inclusion of <bits/math-finite.h>.
33981         * math/bits/math-finite.h (__REDIRTO_X): Do not define
33982         conditionally on [__MATH_DECLARING_LDOUBLE && defined
33983         __NO_LONG_DOUBLE_MATH].
33984         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
33985         (__MATH_REDIRCALL_2): Likewise.
33986         (__MATH_REDIRCALL_INTERNAL): Likewise.
33987         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
33988         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
33989         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
33991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
33992         Remove file.
33993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
33994         Likewise.
33995         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
33996         Likewise.
33997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
33998         Likewise.
33999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
34000         Likewise.
34001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
34002         Likewise.
34003         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
34004         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
34005         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
34006         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
34007         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
34008         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
34009         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
34010         w_sqrtf_compat-ppc32.
34012 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34014         * math/math.h [defined __cplusplus] (issignaling): In the long
34015         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
34016         is not defined.  Call __issignaling, otherwise.
34018 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34020         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
34021         syscall definitions and replace __builtin_expect with __glibc_likely.
34022         * sysdeps/unix/syscall-template.S: Update comment about cancellable
34023         syscall.
34024         (SYSCALL_CANCELLABLE): Removedefinition
34025         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
34026         definition.
34027         (PSEUDO_END): Likewise.
34028         [IS_IN (libpthread)] (CENABLE): Likewise.
34029         [IS_IN (libpthread)] (CDISABLE): Likewise.
34030         [IS_IN (libc)] (CENABLE): Likewise.
34031         [IS_IN (libc)] (CENABLE): Likewise.
34032         [IS_IN (librt)] (CDISABLE): Likewise.
34033         [IS_IN (librt)] (CDISABLE): Likewise.
34034         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34035         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
34036         definition.
34037         (PSEUDO_END): Likewise.
34038         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
34039         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
34040         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
34041         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
34042         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
34043         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
34044         (CENABLE): Likewise.
34045         (CDISABLE): Likewise.
34046         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34047         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
34048         defintion.
34049         (PSEUDO_END): Likewise.
34050         [IS_IN (libpthread)] (CENABLE): Likewise.
34051         [IS_IN (libpthread)] (CDISABLE): Likewise.
34052         [IS_IN (libc)] (CENABLE): Likewise.
34053         [IS_IN (libc)] (CENABLE): Likewise.
34054         [IS_IN (librt)] (CDISABLE): Likewise.
34055         [IS_IN (librt)] (CDISABLE): Likewise.
34056         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34057         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
34058         definition.
34059         (PSEUDO_END): Likewise.
34060         [IS_IN (libpthread)] (CENABLE): Likewise.
34061         [IS_IN (libpthread)] (CDISABLE): Likewise.
34062         [IS_IN (libc)] (CENABLE): Likewise.
34063         [IS_IN (libc)] (CENABLE): Likewise.
34064         [IS_IN (librt)] (CDISABLE): Likewise.
34065         [IS_IN (librt)] (CDISABLE): Likewise.
34066         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34067         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
34068         definition.
34069         (PSEUDO_END): Likewise.
34070         [IS_IN (libpthread)] (CENABLE): Likewise.
34071         [IS_IN (libpthread)] (CDISABLE): Likewise.
34072         [IS_IN (libc)] (CENABLE): Likewise.
34073         [IS_IN (libc)] (CENABLE): Likewise.
34074         [IS_IN (librt)] (CDISABLE): Likewise.
34075         [IS_IN (librt)] (CDISABLE): Likewise.
34076         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34077         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
34078         definition.
34079         (PSEUDO_END): Likewise.
34080         [IS_IN (libpthread)] (CENABLE): Likewise.
34081         [IS_IN (libpthread)] (CDISABLE): Likewise.
34082         [IS_IN (libc)] (CENABLE): Likewise.
34083         [IS_IN (libc)] (CENABLE): Likewise.
34084         [IS_IN (librt)] (CDISABLE): Likewise.
34085         [IS_IN (librt)] (CDISABLE): Likewise.
34086         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34087         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
34088         definition.
34089         (PSEUDO_END): Likewise.
34090         [IS_IN (libpthread)] (CENABLE): Likewise.
34091         [IS_IN (libpthread)] (CDISABLE): Likewise.
34092         [IS_IN (libc)] (CENABLE): Likewise.
34093         [IS_IN (libc)] (CENABLE): Likewise.
34094         [IS_IN (librt)] (CDISABLE): Likewise.
34095         [IS_IN (librt)] (CDISABLE): Likewise.
34096         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34097         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
34098         definition.
34099         (PSEUDO_END): Likewise.
34100         [IS_IN (libpthread)] (CENABLE): Likewise.
34101         [IS_IN (libpthread)] (CDISABLE): Likewise.
34102         [IS_IN (libc)] (CENABLE): Likewise.
34103         [IS_IN (libc)] (CENABLE): Likewise.
34104         [IS_IN (librt)] (CDISABLE): Likewise.
34105         [IS_IN (librt)] (CDISABLE): Likewise.
34106         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34107         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
34108         Remove definition.
34109         (PSEUDO_END): Likewise.
34110         [IS_IN (libpthread)] (CENABLE): Likewise.
34111         [IS_IN (libpthread)] (CDISABLE): Likewise.
34112         [IS_IN (libc)] (CENABLE): Likewise.
34113         [IS_IN (libc)] (CENABLE): Likewise.
34114         [IS_IN (librt)] (CDISABLE): Likewise.
34115         [IS_IN (librt)] (CDISABLE): Likewise.
34116         (SINGLE_THREAD_P): Likewise.
34117         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
34118         definition.
34119         (PSEUDO_END): Likewise.
34120         [IS_IN (libpthread)] (CENABLE): Likewise.
34121         [IS_IN (libpthread)] (CDISABLE): Likewise.
34122         [IS_IN (libc)] (CENABLE): Likewise.
34123         [IS_IN (libc)] (CENABLE): Likewise.
34124         [IS_IN (librt)] (CDISABLE): Likewise.
34125         [IS_IN (librt)] (CDISABLE): Likewise.
34126         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34127         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
34128         definition.
34129         (PSEUDO_END): Likewise.
34130         [IS_IN (libpthread)] (CENABLE): Likewise.
34131         [IS_IN (libpthread)] (CDISABLE): Likewise.
34132         [IS_IN (libc)] (CENABLE): Likewise.
34133         [IS_IN (libc)] (CENABLE): Likewise.
34134         [IS_IN (librt)] (CDISABLE): Likewise.
34135         [IS_IN (librt)] (CDISABLE): Likewise.
34136         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34137         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
34138         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
34139         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
34140         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
34141         definition.
34142         (PSEUDO_END): Likewise.
34143         [IS_IN (libpthread)] (CENABLE): Likewise.
34144         [IS_IN (libpthread)] (CDISABLE): Likewise.
34145         [IS_IN (libc)] (CENABLE): Likewise.
34146         [IS_IN (libc)] (CENABLE): Likewise.
34147         [IS_IN (librt)] (CDISABLE): Likewise.
34148         [IS_IN (librt)] (CDISABLE): Likewise.
34149         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34150         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
34151         definition.
34152         (PSEUDO_END): Likewise.
34153         [IS_IN (libpthread)] (CENABLE): Likewise.
34154         [IS_IN (libpthread)] (CDISABLE): Likewise.
34155         [IS_IN (libc)] (CENABLE): Likewise.
34156         [IS_IN (libc)] (CENABLE): Likewise.
34157         [IS_IN (librt)] (CDISABLE): Likewise.
34158         [IS_IN (librt)] (CDISABLE): Likewise.
34159         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34160         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
34161         definition.
34162         (PSEUDO_END): Likewise.
34163         [IS_IN (libpthread)] (CENABLE): Likewise.
34164         [IS_IN (libpthread)] (CDISABLE): Likewise.
34165         [IS_IN (libc)] (CENABLE): Likewise.
34166         [IS_IN (libc)] (CENABLE): Likewise.
34167         [IS_IN (librt)] (CDISABLE): Likewise.
34168         [IS_IN (librt)] (CDISABLE): Likewise.
34169         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34170         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
34171         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
34172         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
34173         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
34174         definition.
34175         (PSEUDO_END): Likewise.
34176         [IS_IN (libpthread)] (CENABLE): Likewise.
34177         [IS_IN (libpthread)] (CDISABLE): Likewise.
34178         [IS_IN (libc)] (CENABLE): Likewise.
34179         [IS_IN (libc)] (CENABLE): Likewise.
34180         [IS_IN (librt)] (CDISABLE): Likewise.
34181         [IS_IN (librt)] (CDISABLE): Likewise.
34182         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34183         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
34184         definition.
34185         (PSEUDO_END): Likewise.
34186         [IS_IN (libpthread)] (CENABLE): Likewise.
34187         [IS_IN (libpthread)] (CDISABLE): Likewise.
34188         [IS_IN (libc)] (CENABLE): Likewise.
34189         [IS_IN (libc)] (CENABLE): Likewise.
34190         [IS_IN (librt)] (CDISABLE): Likewise.
34191         [IS_IN (librt)] (CDISABLE): Likewise.
34192         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34194 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
34196         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
34198 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
34200         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
34202 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
34204         [BZ #21982]
34205         * string/stratcliff.c (do_test): Declare size, nchars, inner,
34206         middle and outer with size_t instead of int.  Repleace %d and
34207         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
34208         "MAX (outer, nchars - 64)" to support unsigned outer and
34209         nchars.  Also exit loop when outer == 0.
34211 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34213         * include/fcntl.h (__fcntl_nocancel): Remove definition.
34214         * include/signal.h (__sigsuspend_nocancel): Likewise.
34215         * include/time.h (__nanosleep_nocancel): Likewise.
34216         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
34217         * login/utmp_file.c: Include non cancellable syscall header.
34218         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
34219         prototype.
34221 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
34223         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
34224         .byte sequences with AVX512F instructions.
34225         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
34226         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
34227         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
34228         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
34229         Likewise.
34230         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
34231         Likewise.
34233 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
34234             Steve Ellcey  <sellcey@cavium.com>
34236         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
34237         Use PTR_REG macro in cmp instruction.
34239 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34241         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
34242         Change the return type of the ifunc resolver to match the return
34243         type of the target function.
34245 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34247         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
34248         (preadv64): Likewise.
34249         (pwrite64(: Likewise.
34250         (pwritev64): Likewise.
34252         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
34253         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
34254         (LOAD_ARGS_0): Likewise.
34255         (LOAD_ARGS_1): Likewise.
34256         (LOAD_ARGS_2): Likewise.
34257         (LOAD_ARGS_3): Likewise.
34258         (LOAD_ARGS_4): Likewise.
34259         (LOAD_ARGS_5): Likewise.
34260         (LOAD_ARGS_6): Likewise.
34261         (LOAD_REGS_0): Likewise.
34262         (LOAD_REGS_1): Likewise.
34263         (LOAD_REGS_2): Likewise.
34264         (LOAD_REGS_3): Likewise.
34265         (LOAD_REGS_4): Likewise.
34266         (LOAD_REGS_5): Likewise.
34267         (LOAD_REGS_6): Likewise.
34268         (ASM_ARGS_0): Likewise.
34269         (ASM_ARGS_1): Likewise.
34270         (ASM_ARGS_2): Likewise.
34271         (ASM_ARGS_3): Likewise.
34272         (ASM_ARGS_4): Likewise.
34273         (ASM_ARGS_5): Likewise.
34274         (ASM_ARGS_6): Likewise.
34275         (LOAD_ARGS_TYPES_1): Likewise.
34276         (LOAD_ARGS_TYPES_2): Likewise.
34277         (LOAD_ARGS_TYPES_3): Likewise.
34278         (LOAD_ARGS_TYPES_4): Likewise.
34279         (LOAD_ARGS_TYPES_5): Likewise.
34280         (LOAD_ARGS_TYPES_6): Likewise.
34281         (LOAD_REGS_TYPES_1): Likewise.
34282         (LOAD_REGS_TYPES_2): Likewise.
34283         (LOAD_REGS_TYPES_3): Likewise.
34284         (LOAD_REGS_TYPES_4): Likewise.
34285         (LOAD_REGS_TYPES_5): Likewise.
34286         (LOAD_REGS_TYPES_6): Likewise.
34287         (TYPEFY): New define.
34288         (ARGIFY): Likewise.
34289         (internal_syscall0): Likewise.
34290         (internal_syscall1): Likewise.
34291         (internal_syscall2): Likewise.
34292         (internal_syscall3): Likewise.
34293         (internal_syscall4): Likewise.
34294         (internal_syscall5): Likewise.
34295         (internal_syscall6): Likewise.
34296         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
34297         (INTERNAL_SYSCALL_NCS): Remove define.
34298         (internal_syscall1): Add define.
34300 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34302         * math/w_remainder_compat.c: Remove duplicate inclusion of
34303         math-svid-compat.h.
34304         * math/w_remainderf_compat.c: Likewise.
34305         * math/w_remainderl_compat.c: Likewise.
34307 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34309         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34311 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
34313         [BZ #21684]
34314         * math/tgmath.h (__floating_type): Simplify definitions.
34315         (__real_integer_type): New macro.
34316         (__complex_integer_type): Likewise.
34317         (__expr_is_real): Likewise.
34318         (__tgmath_real_type_sub): Update comment to describe handling of
34319         complex types.
34320         (__tgmath_complex_type_sub): New macro.
34321         (__tgmath_complex_type): Likewise.
34322         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34323         (__TGMATH_CF128): Use __expr_is_real.
34324         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
34325         __expr_is_real.
34326         (__TGMATH_BINARY_REAL_IMAG): Likewise.
34327         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
34328         * math/gen-tgmath-tests.py (Type.create_type): Create complex
34329         integer types.
34331 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34333         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
34334         macro.
34335         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
34336         alias.
34337         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
34338         Likewise.
34340         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
34341         nanosleep_not_cancel with __nanosleep_nocancel.
34342         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
34343         (__nanosleep_nocancel): New macro.
34344         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
34345         function.
34346         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
34347         macro.
34348         (__nanosleep_nocancel): New prototype.
34350         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
34351         pause_not_cancel with __pause_nocancel.
34352         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
34353         (__pause_nocancel): New macro.
34354         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
34355         macro.
34356         (__pause_nocancel): New prototype.
34357         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
34359 2017-08-22  Martin Sebor  <msebor@redhat.com>
34361         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
34362         to return a pointer to the same type as the target function.
34364 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
34366         [BZ #18822]
34367         [BZ #21986]
34368         * include/printf.h (__printf_fphex): Add attribute_hidden.
34369         (__guess_grouping): New prototype.
34370         * stdio-common/printf_fp.c (__guess_grouping): Removed.
34371         * stdio-common/reg-printf.c (__register_printf_specifier): Add
34372         libc_hidden_proto and libc_hidden_def.
34373         * stdlib/strfmon_l.c (__guess_grouping): Removed.
34374         (__vstrfmon_l): Remove the third argument passed to
34375         __guess_grouping.
34377 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34379         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
34380         definition for issignaling that does not rely on __MATH_TG,
34381         since __MATH_TG uses __builtin_types_compatible_p, which is only
34382         available in C mode.
34383         (CFLAGS-test-math-issignaling.cc): New variable.
34384         * math/Makefile [CXX] (tests): Add test-math-issignaling.
34385         * math/test-math-issignaling.cc: New test for C++ implementation
34386         of type-generic issignaling.
34387         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
34388         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
34389         options of test-math-issignaling on powerpc64le.
34391 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
34393         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
34394         building libc.a.
34395         (hidden_proto): Likewise.
34396         (hidden_tls_proto): Likewise.
34397         (__hidden_proto): Likewise.
34399 2017-08-22  Florian Weimer  <fweimer@redhat.com>
34401         math: Statically link tests of internal functionality.
34402         * math/Makefile (tests): Remove atest-exp, atest-sincos,
34403         atest-exp2.
34404         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
34405         (gmp-objs): Remove assignment.
34406         (atest-exp, atest-sincos, atest-exp2): Remove targets.
34408 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
34410         [BZ #21987]
34411         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
34412         and copy to ...
34413         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
34414         ... here.
34415         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
34416         ... and here.
34418         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
34419         variable definitions above inclusion of ../Rules.
34421 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
34423         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
34424         case calling __builtin_unreachable.
34426 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34428         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
34429         __waitpid_nocancel.
34430         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
34431         (__waitpid_nocancel): New macro.
34432         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
34433         macro.
34434         (__waitpid_nocancel): Replace macro with a function.
34435         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
34436         function.
34438         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
34439         __fcntl_nocancel.
34440         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
34441         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
34443         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
34444         __writev_nocancel_nostatus.
34445         (write_call_graph): Likewise.
34446         (write_bb_counts): Likewise.
34447         * resolv/herror.c (herror): Likewise.
34448         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
34449         macro.
34450         (__writev_nocancel_nostatus): New macro.
34451         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
34452         Remove macro.
34453         (__writev_nocancel_nostatus): New function.
34455 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
34457         Revert:
34458         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
34460         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
34461         building libc.a.
34462         (hidden_proto): Likewise.
34463         (hidden_tls_proto): Likewise.
34464         (__hidden_proto): Likewise.
34466         [BZ #21973]
34467         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
34468         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
34469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
34470         Likewise.
34471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
34472         Likewise.
34473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
34474         Likewise.
34475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
34476         Likewise.
34477         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
34478         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
34479         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
34480         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
34481         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
34482         GLIBC_2.0 sqrtl symbol.
34484         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
34485         [__USE_MISC] (_LIB_VERSION): Likewise.
34486         [__USE_MISC] (struct exception): Likewise.
34487         [__USE_MISC] (matherr): Likewise.
34488         [__USE_MISC] (DOMAIN): Likewise.
34489         [__USE_MISC] (SING): Likewise.
34490         [__USE_MISC] (OVERFLOW): Likewise.
34491         [__USE_MISC] (UNDERFLOW): Likewise.
34492         [__USE_MISC] (TLOSS): Likewise.
34493         [__USE_MISC] (PLOSS): Likewise.
34494         [__USE_MISC] (HUGE): Likewise.
34495         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
34496         * math/math-svid-compat.h: New file.
34497         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
34498         and matherrl.
34499         * include/math.h [!_ISOMAC] (__matherr): Remove.
34500         * manual/arith.texi (FP Exceptions): Do not document matherr.
34501         * math/Makefile (tests): Change test-matherr to test-matherr-3.
34502         (tests-internal): New variable.
34503         (install-lib): Do not add libieee.a.
34504         (non-lib.a): Likewise.
34505         (extra-objs): Do not add libieee.a and ieee-math.o.
34506         (CPPFLAGS-s_lib_version.c): Remove variable.
34507         ($(objpfx)libieee.a): Remove rule.
34508         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
34509         * math/ieee-math.c: Remove.
34510         * math/libm-test-support.c (matherr): Remove.
34511         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
34512         and license notices.  Include <math-svid-compat.h> and
34513         <shlib-compat.h>.
34514         (matherr): Undefine as macro.  Use compat_symbol_reference.
34515         (_LIB_VERSION): Likewise.
34516         * math/test-matherr-2.c: New file.
34517         * math/test-matherr-3.c: Likewise.
34518         * sysdeps/generic/math_private.h (__kernel_standard): Remove
34519         declaration.
34520         (__kernel_standard_f): Likewise.
34521         (__kernel_standard_l): Likewise.
34522         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
34523         <math_private.h>.  Include <math-svid-compat.h>.
34524         (_LIB_VERSION): Undefine as macro.
34525         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
34526         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
34527         [LIBM_SVID_COMPAT], use compat_symbol.
34528         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
34529         <math_private.h>.  Include <math-svid-compat.h>.
34530         (matherr): Undefine as macro.
34531         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
34532         compat_symbol.
34533         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
34534         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
34535         compat_symbol_reference.
34536         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
34537         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
34538         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
34539         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
34540         (MATHERR_D): Remove declaration.
34541         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
34542         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
34543         [LIBM_BUILD] (pmatherrf): Likewise.
34544         [LIBM_BUILD] (pmatherr): Likewise.
34545         [LIBM_BUILD] (pmatherrl): Likewise.
34546         (DOMAIN): Likewise.
34547         (SING): Likewise.
34548         (OVERFLOW): Likewise.
34549         (UNDERFLOW): Likewise.
34550         (TLOSS): Likewise.
34551         (PLOSS): Likewise.
34552         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
34553         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
34554         compat_symbol.
34555         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
34556         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
34557         compat_symbol.
34558         * math/lgamma-compat.h: Include <math-svid-compat.h>.
34559         * math/w_acos_compat.c: Likewise.
34560         * math/w_acosf_compat.c: Likewise.
34561         * math/w_acosh_compat.c: Likewise.
34562         * math/w_acoshf_compat.c: Likewise.
34563         * math/w_acoshl_compat.c: Likewise.
34564         * math/w_acosl_compat.c: Likewise.
34565         * math/w_asin_compat.c: Likewise.
34566         * math/w_asinf_compat.c: Likewise.
34567         * math/w_asinl_compat.c: Likewise.
34568         * math/w_atan2_compat.c: Likewise.
34569         * math/w_atan2f_compat.c: Likewise.
34570         * math/w_atan2l_compat.c: Likewise.
34571         * math/w_atanh_compat.c: Likewise.
34572         * math/w_atanhf_compat.c: Likewise.
34573         * math/w_atanhl_compat.c: Likewise.
34574         * math/w_cosh_compat.c: Likewise.
34575         * math/w_coshf_compat.c: Likewise.
34576         * math/w_coshl_compat.c: Likewise.
34577         * math/w_exp10_compat.c: Likewise.
34578         * math/w_exp10f_compat.c: Likewise.
34579         * math/w_exp10l_compat.c: Likewise.
34580         * math/w_exp2_compat.c: Likewise.
34581         * math/w_exp2f_compat.c: Likewise.
34582         * math/w_exp2l_compat.c: Likewise.
34583         * math/w_fmod_compat.c: Likewise.
34584         * math/w_fmodf_compat.c: Likewise.
34585         * math/w_fmodl_compat.c: Likewise.
34586         * math/w_hypot_compat.c: Likewise.
34587         * math/w_hypotf_compat.c: Likewise.
34588         * math/w_hypotl_compat.c: Likewise.
34589         * math/w_j0_compat.c: Likewise.
34590         * math/w_j0f_compat.c: Likewise.
34591         * math/w_j0l_compat.c: Likewise.
34592         * math/w_j1_compat.c: Likewise.
34593         * math/w_j1f_compat.c: Likewise.
34594         * math/w_j1l_compat.c: Likewise.
34595         * math/w_jn_compat.c: Likewise.
34596         * math/w_jnf_compat.c: Likewise.
34597         * math/w_jnl_compat.c: Likewise.
34598         * math/w_lgamma_main.c: Likewise.
34599         * math/w_lgamma_r_compat.c: Likewise.
34600         * math/w_lgammaf_main.c: Likewise.
34601         * math/w_lgammaf_r_compat.c: Likewise.
34602         * math/w_lgammal_main.c: Likewise.
34603         * math/w_lgammal_r_compat.c: Likewise.
34604         * math/w_log10_compat.c: Likewise.
34605         * math/w_log10f_compat.c: Likewise.
34606         * math/w_log10l_compat.c: Likewise.
34607         * math/w_log2_compat.c: Likewise.
34608         * math/w_log2f_compat.c: Likewise.
34609         * math/w_log2l_compat.c: Likewise.
34610         * math/w_log_compat.c: Likewise.
34611         * math/w_logf_compat.c: Likewise.
34612         * math/w_logl_compat.c: Likewise.
34613         * math/w_pow_compat.c: Likewise.
34614         * math/w_powf_compat.c: Likewise.
34615         * math/w_powl_compat.c: Likewise.
34616         * math/w_remainder_compat.c: Likewise.
34617         * math/w_remainderf_compat.c: Likewise.
34618         * math/w_remainderl_compat.c: Likewise.
34619         * math/w_scalb_compat.c: Likewise.
34620         * math/w_scalbf_compat.c: Likewise.
34621         * math/w_scalbl_compat.c: Likewise.
34622         * math/w_sinh_compat.c: Likewise.
34623         * math/w_sinhf_compat.c: Likewise.
34624         * math/w_sinhl_compat.c: Likewise.
34625         * math/w_sqrt_compat.c: Likewise.
34626         * math/w_sqrtf_compat.c: Likewise.
34627         * math/w_sqrtl_compat.c: Likewise.
34628         * math/w_tgamma_compat.c: Likewise.
34629         * math/w_tgammaf_compat.c: Likewise.
34630         * math/w_tgammal_compat.c: Likewise.
34631         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
34632         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34633         * sysdeps/ieee754/k_standard.c: Likewise.
34634         * sysdeps/ieee754/k_standardf.c: Likewise.
34635         * sysdeps/ieee754/k_standardl.c: Likewise.
34636         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34637         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34638         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34639         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
34640         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
34641         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
34642         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
34643         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
34644         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
34645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
34646         Likewise.
34647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
34648         Likewise.
34649         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
34650         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
34651         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
34652         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
34654 2017-08-21  Florian Weimer  <fweimer@redhat.com>
34656         [BZ #21864]
34657         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
34658         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
34659         Move before inclusion of ../Rules.
34661 2017-08-21  Florian Weimer  <fweimer@redhat.com>
34663         [BZ #21972]
34664         * assert/assert.h (assert): Use static_cast (bool) for C++.
34665         Use the ternary operator in the warning branch for GNU C.
34666         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
34667         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
34668         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
34669         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
34670         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
34672 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
34674         [BZ #18822]
34675         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34676         (__syscall_clock_gettime): Add attribute_hidden.
34677         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
34678         (__start_context): Likewise.
34680 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
34682         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
34683         building libc.a.
34684         (hidden_proto): Likewise.
34685         (hidden_tls_proto): Likewise.
34686         (__hidden_proto): Likewise.
34688 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
34690         * include/libc-symbols.h (attribute_hidden): Enable hidden
34691         visibility in libc.a compiled with PIE.
34693 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
34695         [BZ #18822]
34696         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
34697         Add attribute_hidden.
34699 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
34701         [BZ #21864]
34702         * Makerules (all-nonlib): Add $(others-extras).
34703         * catgets/Makefile (others-extras): New.
34704         * elf/Makefile (others-extras): Likewise.
34705         * nss/Makefile (others-extras): Likewise.
34707 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
34709         [BZ #18822]
34710         * csu/libc-start.c (__libc_multiple_libcs): Removed.
34711         * elf/dl-open.c: Include <libc-internal.h>.
34712         (__libc_multiple_libcs): Removed.
34713         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
34714         <hp-timing.h>.
34715         * include/libc-internal.h (__libc_multiple_libcs): New.
34716         * misc/sbrk.c: Include <libc-internal.h>.
34717         (__libc_multiple_libcs): Removed.
34719 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
34721         [BZ #18822]
34722         * grp/initgroups.c (__nss_group_database): Removed.
34723         (__nss_initgroups_database): Likewise.
34724         * nscd/gai.c (__nss_hosts_database): Likewise.
34725         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
34726         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
34727         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
34728         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
34729         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
34730         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
34731         attribute_hidden.
34732         * nss/nsswitch.c (__nss_database_custom): Define only if
34733         USE_NSCD is defined.
34734         (__nss_configure_lookup): Use __nss_database_custom only if
34735         USE_NSCD is defined.
34736         * nss/nsswitch.h (__nss_database_custom): Declare only if
34737         USE_NSCD is defined.  Add attribute_hidden.
34738         (__nss_setent): Add attribute_hidden.
34739         (__nss_endent): Likewise.
34740         (__nss_getent_r): Likewise.
34741         (__nss_getent): Likewise.
34742         (DEFINE_DATABASE): Declare __nss_##arg##_database.
34744 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
34746         [BZ #18822]
34747         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
34748         libc_hidden_proto and libc_hidden_def.
34750 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
34752         [BZ #18822]
34753         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
34754         Add libc_hidden_proto.
34755         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
34756         Add libc_hidden_def.
34758 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
34760         [BZ #21974]
34761         * gmon/Makefile (routines): Remove bb_init_func and
34762         bb_exit_func.
34763         (elide-routines.os): Removed.
34764         * gmon/bb_exit_func.c: Likewise.
34765         * gmon/bb_init_func.c: Likewise.
34766         * include/sys/gmon.h (__bb): Likewise.
34767         (__bb_init_func): Likewise.
34768         (__bb_exit_func): Likewise.
34769         * sysdeps/alpha/bb_init_func.S: Likewise.
34771 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
34773         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
34774         * include/setjmp.h (____longjmp_chk): Here.  Add
34775         attribute_hidden.
34777 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
34779         [BZ #18822]
34780         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
34781         attribute_hidden.
34782         (__strspn_sse2): Likewise.
34784 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34786         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
34787         (close_not_cancel_no_status): Likewise.
34788         (__close_nocancel): New macro.
34789         (__close_nocancel_nostatus): Likewise.
34790         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
34791         macro.
34792         (close_not_cancel): Likewise.
34793         (close_not_cancel_no_status): Likewise.
34794         (__close_nocancel): New prototype.
34795         (__close_nocancel_nostatus): New function.
34796         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
34797         * catgets/open_catalog.c (__open_catalog): Replace
34798         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
34799         * gmon/gmon.c (write_gmon): Likewise.
34800         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
34801         * intl/loadmsgcat.c (close): Likewise.
34802         * io/ftw.c (open_dir_stream): Likewise.
34803         (ftw_startup): Likewise.
34804         * libio/fileops.c (_IO_file_open): Likewise.
34805         (_IO_file_close_mmap): Likewise.
34806         (_IO_file_close): Likewise.
34807         * libio/iopopen.c (_IO_dup2): Likewise.
34808         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34809         * locale/loadlocale.c (_nl_load_locale): Likewise.
34810         * login/utmp_file.c (pututline_file): Likewise.
34811         (endutent_file): Likewise.
34812         * misc/daemon.c (daemon): Likewise.
34813         * nscd/nscd_getai.c (__nscd_getai): Likewise.
34814         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
34815         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
34816         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
34817         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
34818         * nscd/nscd_helper.c (open_socket): Likewise.
34819         (__nscd_open_socket): Likewise.
34820         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
34821         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
34822         (__nscd_innetgr): Likewise.
34823         * nss/nss_db/db-open.c (internal_setent): Likewise.
34824         * resolv/res-close.c (__res_iclose): Likewise.
34825         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
34826         * sysdeps/posix/closedir.c (__closedir): Likewise.
34827         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
34828         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34829         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
34830         (opendir_tail): Likewise.
34831         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
34832         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
34833         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
34834         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
34835         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
34836         (gethostid): Likewise.
34837         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
34838         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34839         Likewise.
34840         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
34841         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
34842         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
34843         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
34844         Likewise.
34845         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
34846         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
34847         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
34848         Likewise.
34849         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
34850         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
34851         Likewise.
34852         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
34853         Likewise.
34854         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
34855         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
34856         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
34857         __close_nocancel.
34859         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
34860         (openat_not_cancel_3): Likewise.
34861         (openat64_not_cancel_3): Likewise).
34862         (openat_not_cancel_3): Likewise).
34863         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
34864         macro.
34865         (openat_not_cancel_3): Likewise.
34866         (openat64_not_cancel): Likewise.
34867         (openat64_not_cancel_3): Likewise.
34868         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
34869         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
34870         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
34871         __open{64}_nocancel.
34872         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34873         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34874         * sysdeps/posix/opendir.c (__opendirat): Likewise.
34876 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
34878         [BZ #18822]
34879         * include/argz.h (__argz_create_sep): New function prototype.
34880         (__argz_append): Likewise.
34881         (__argz_add): Likewise.
34882         (__argz_add_sep): Likewise.
34883         (__argz_delete): Likewise.
34884         (__argz_insert): Likewise.
34885         (__argz_replace): Likewise.
34886         * string/argz.h (__argz_create_sep): Removed.
34887         (__argz_append): Likewise.
34888         (__argz_add): Likewise.
34889         (__argz_add_sep): Likewise.
34890         (__argz_delete): Likewise.
34891         (__argz_insert): Likewise.
34892         (__argz_replace): Likewise.
34894 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
34896         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
34897         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
34898         (GNU_PROPERTY_STACK_SIZE): Likewie.
34899         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
34900         (GNU_PROPERTY_LOPROC): Likewise.
34901         (GNU_PROPERTY_HIPROC): Likewise.
34902         (GNU_PROPERTY_LOUSER): Likewise.
34903         (GNU_PROPERTY_HIUSER): Likewise.
34904         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
34905         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
34906         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
34907         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
34908         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
34909         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
34910         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
34911         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
34912         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
34913         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
34914         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
34915         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
34916         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
34917         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
34918         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
34919         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
34920         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
34921         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
34922         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
34923         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
34924         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
34925         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
34926         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
34928 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34930         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
34931         in C++ mode.
34933 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34935         [BZ #21930]
34936         * math/math.h (isinf): Check if in C or C++ mode before using
34937         __builtin_types_compatible_p, since this is a C mode feature.
34939 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34941         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
34942         (__write_nocancel): New macro.
34943         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
34944         Rewrite as a function prototype.
34945         (write_not_cancel): Remove macro.
34946         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
34947         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
34948         (write_gmon): Likewise.
34949         * libio/fileops.c (_IO_new_file_write): Likewise.
34950         * login/utmp_file.c (pututline_file): Likewise.
34951         (updwtmp_file): Likewise.
34952         * stdio-common/psiginfo.c (psiginfo): Likewise.
34953         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
34954         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
34955         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34956         Likewise.
34957         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
34958         Likewise.
34960         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
34961         (__read_nocancel): New macro.
34962         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
34963         __read_nocancel.
34964         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
34965         macro.
34966         (__read_nocancel): New prototype.
34967         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
34968         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
34969         with __read_nocancel.
34970         * intl/loadmsgcat.c (read): Likewise.
34971         * libio/fileops.c (_IO_file_read): Likewise.
34972         * locale/loadlocale.c (_nl_load_locale): Likewise.
34973         * login/utmp_file.c (getutent_r_file): Likewise.
34974         (internal_getut_r): Likewise.
34975         (getutline_r_file): Likewise.
34976         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
34977         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
34978         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
34979         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34980         Likewise.
34981         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
34982         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
34983         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
34984         Likewise.
34985         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34986         Likewise.
34987         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
34988         Likewise.
34989         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
34990         Likewise.
34991         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
34993 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
34995         [BZ #21966]
34996         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
34997         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
34998         usable.
35000 2017-08-17  DJ Delorie  <dj@redhat.com>
35002         * bug17079.c: Update to new test harness.
35003         * test-digits-dots.c: Likewise.
35004         * test-netdb.c: Likewise.
35005         * tst-field.c: Likewise.
35006         * tst-nss-getpwent.c: Likewise.
35007         * tst-nss-static.c: Likewise.
35008         * tst-nss-test1.c: Likewise.
35009         * tst-nss-test2.c: Likewise.
35010         * tst-nss-test3.c: Likewise.
35011         * tst-nss-test4.c: Likewise.
35012         * tst-nss-test5.c: Likewise.
35014 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35016         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
35017         (open_not_cancel_2): Likewise.
35018         (open_nocancel): New macro.
35019         (open64_nocancel): Likewise.
35020         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
35021         (open_not_cancel_2): Likewise.
35022         (__open_nocancel): New prototype.
35023         (__open64_nocancel): Likewise.
35024         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
35025         __open_nocancel.
35026         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
35027         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
35028         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
35029         with __open_nocancel.
35030         * csu/check_fds.c (check_one_fd): Likewise.
35031         * gmon/gmon.c (write_gmon): Likewise.
35032         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
35033         * intl/loadmsgcat.c (open): Likewise.
35034         * libio/fileops.c (_IO_file_open): Likewise.
35035         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35036         * locale/loadlocale.c (_nl_load_locale): Likewise.
35037         * login/utmp_file.c (setutent_file): Likewise.
35038         * misc/daemon.c (daemon): Likewise.
35039         * nss/nss_db/db-open.c (internal_setent): Likewise.
35040         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35041         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
35042         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
35043         (__opendir): Likewise.
35044         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
35045         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
35046         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
35047         (gethostid): Likewise.
35048         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
35049         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
35050         Likewise.
35051         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
35052         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
35053         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
35054         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
35055         Likewise.
35056         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
35057         Likewise.
35058         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
35059         Likewise.
35060         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
35061         Likewise.
35062         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
35063         Likewise.
35064         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
35065         Likewise.
35066         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
35067         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
35069 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
35071         * benchtests/bench-skeleton.c (main): Add support for
35072         latency benchmarking.
35073         * benchtests/scripts/bench.py: Add support for latency benchmarking.
35075 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
35077         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
35078         the startup object.
35080 2017-08-17  Florian Weimer  <fweimer@redhat.com>
35082         * include/sys/socket.h (__opensock): Remove internal_function.
35083         * socket/opensock.c (__opensock): Likewise.
35084         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
35086 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
35088         [BZ #21944]
35089         * signal/bits/types/__sigval_t.h: New file.
35090         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
35091         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
35092         and define sigval_t using __sigval_t.
35093         * include/bits/types/__sigval_t.h: New file.
35094         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
35095         instead of <bits/types/__sigval_t.h>.
35096         (struct sigevent): Use __sigval_t instead of sigval_t.
35097         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
35098         instead of <bits/types/__sigval_t.h>.
35099         (siginfo_t): Use __sigval_t instead of sigval_t.
35100         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
35101         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
35102         (struct sigevent): Use __sigval_t instead of sigval_t.
35103         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
35104         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
35105         (siginfo_t): Use __sigval_t instead of sigval_t.
35106         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
35108 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
35110         * NEWS: Remove "[Add new features here]" for 2.27.
35112 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
35114         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
35115         libc.so.
35117 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
35119         * NEWS: Mention x86-64 FMA optimization.
35121 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
35123         [BZ #21912]
35124         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35125         Add e_expf-fma.
35126         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
35127         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
35128         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
35130 2017-08-16  Andreas Schwab  <schwab@suse.de>
35132         [BZ #16750]
35133         CVE-2009-5064
35134         * elf/ldd.bash.in: Never run file directly.
35136 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
35138         [BZ #21955]
35139         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
35140         (L(SP_INF_0)): Likewise.
35142 2017-08-15  Florian Weimer  <fweimer@redhat.com>
35144         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
35145         run-built-tests.
35147 2017-08-15  Florian Weimer  <fweimer@redhat.com>
35149         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
35150         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
35151         BROKEN_THREAD_SIGNALS code.
35152         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
35153         request_list): Remove caller_pid member used for
35154         BROKEN_THREAD_SIGNALS.
35155         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
35156         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35157         Remove BROKEN_THREAD_SIGNALS support.
35158         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
35159         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
35161 2017-08-15  Florian Weimer  <fweimer@redhat.com>
35163         * gmon/Makefile (tests): Add tst-gmon.
35164         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
35165         Set.
35166         (tests-special): Add tst-gmon-prof.out.
35167         (tst-gmon.out): Depend on clean-tst-gmon-data.
35168         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
35169         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
35170         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
35171         startup object.
35172         * aclocal.m4 (GPROF): Set and substitute.
35173         * config.amke.in (GPROF): Set.
35174         * configure: Regenerate.
35176 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
35178         * elf/elf.h A (NT_PPC_TAR): New macro.
35179         (NT_PPC_PPR): Likewise.
35180         (NT_PPC_DSCR): Likewise.
35181         (NT_PPC_EBB): Likewise.
35182         (NT_PPC_PMU): Likewise.
35183         (NT_PPC_TM_CGPR): Likewise.
35184         (NT_PPC_TM_CFPR): Likewise.
35185         (NT_PPC_TM_CVMX): Likewise.
35186         (NT_PPC_TM_CVSX): Likewise.
35187         (NT_PPC_TM_SPR): Likewise.
35188         (NT_PPC_TM_CTAR): Likewise.
35189         (NT_PPC_TM_CPPR): Likewise.
35190         (NT_PPC_TM_CDSCR): Likewise.
35192 2017-08-15  Florian Weimer  <fweimer@redhat.com>
35194         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
35195         regparm (2) instead of internal_function.
35196         (_MCOUNT_DECL): Adjust.
35198 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
35200         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
35201         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
35203 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
35205         * conform/data/sys/wait.h-data (si_value): Do not expect for
35206         XPG42.
35208 2017-08-14  Florian Weimer  <fweimer@redhat.com>
35210         [BZ #21962]
35211         NSS: Create stubs for accidentally exported lookup functions.
35212         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
35213         Remove declaration.
35214         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
35215         (ether_hostton): Call __nss_ethers_lookup2 instead.
35216         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
35217         (ether_ntohost): Call __nss_ethers_lookup2 instead.
35218         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
35219         (setup): Call __nss_netgroup_lookup2 instead.
35220         * nss/Makefile (routines): Add compat-lookup.
35221         * nss/Versions (GLIBC_2.27): Add symbol version.
35222         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
35223         (DB_COMPAT_FCT): Remove.
35224         * nss/compat-lookup.c: New file.
35225         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
35226         from databases.def.
35227         * nss/service-lookup.c (NO_COMPAT): Remove definition.
35228         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
35229         (netname2user): Call __nss_publickey_lookup2 instead.
35230         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
35231         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
35232         instead.
35234 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35235             Sergei Trofimovich  <slyfox@inbox.ru>
35237         [BZ #21908]
35238         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
35239         Rename to MMAP2_PAGE_UNIT.
35240         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
35241         __OFF_T_MATCHES_OFF64_T is not defined.
35242         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
35243         uint64_t.
35244         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
35245         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
35247 2017-08-14  Florian Weimer  <fweimer@redhat.com>
35249         i386: Do not set internal_function.
35250         * config.h.in (USE_REGPARMS, internal_function): Remove.
35251         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
35252         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
35254 2017-08-14  Florian Weimer  <fweimer@redhat.com>
35256         * elf/dl-init.c (_dl_init): Remove internal_function.
35257         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
35258         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
35260 2017-08-14  Florian Weimer  <fweimer@redhat.com>
35262         * elf/rtld.c (_dl_start): Remove internal_function.
35263         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
35264         _dl_start.
35266 2017-08-14  Florian Weimer  <fweimer@redhat.com>
35268         * elf/dl-fini.c (_dl_fini): Remove internal_function
35269         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
35271 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
35273         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
35274         (bit_cpu_SHSTK): Likewise.
35275         (index_cpu_IBT): Likewise.
35276         (index_cpu_SHSTK): Likewise.
35277         (reg_IBT): Likewise.
35278         (reg_SHSTK): Likewise.
35279         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
35280         Handle index_cpu_IBT and index_cpu_SHSTK.
35282 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
35284         [BZ #19982]
35285         * po/fr.po: Fix spelling mistake.
35287 2017-08-13  Florian Weimer  <fweimer@redhat.com>
35289         * elf/dl-addr.c (_dl_addr): Remove internal_function.
35290         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
35291         (_dl_catch_error, _dl_receive_error): Likewise.
35292         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
35293         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
35294         (_dl_deallocate_tls): Likewise.
35295         * include/dlfcn.h (_dl_addr): Likewise.
35296         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
35297         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
35298         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
35299         Likewise.
35301 2017-08-13  Florian Weimer  <fweimer@redhat.com>
35303         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
35304         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
35305         internal_function.
35306         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
35308 2017-08-13  Florian Weimer  <fweimer@redhat.com>
35310         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
35311         internal_function.
35312         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
35313         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
35314         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
35315         internal_function from _dl_make_stack_executable_hook member.
35316         (_dl_make_stack_executable): Remove internal_function.
35317         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
35318         Likewise.
35319         * sysdeps/unix/sysv/linux/dl-execstack.c
35320         (_dl_make_stack_executable): Likewise.
35322 2017-08-13  Florian Weimer  <fweimer@redhat.com>
35324         * sysdeps/unix/sysv/linux/netlinkaccess.h
35325         (__netlink_assert_response): Remove internal_function.
35326         * sysdeps/unix/sysv/linux/netlink_assert_response.c
35327         (__netlink_assert_response): Likewise.
35329 2017-08-13  Florian Weimer  <fweimer@redhat.com>
35331         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
35332         internal_function.
35333         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
35335 2017-08-13  Florian Weimer  <fweimer@redhat.com>
35337         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
35338         internal_function.
35339         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
35340         * inet/netgroup.h (__internal_setnetgrent)
35341         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
35342         * inet/getnetgrent_r.c (__internal_setnetgrent)
35343         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
35344         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
35345         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
35346         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
35347         * nss/nsswitch.h (db_lookup_function): Likewise.
35349 2017-08-13  Florian Weimer  <fweimer@redhat.com>
35351         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
35352         Remove internal_function.
35353         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
35354         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
35355         message argument on the stack.
35356         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
35357         Likeweise.
35359 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
35361         Adapt test case data to the changes in the thousands
35362         separators.
35364         [BZ #20756]
35365         * localedata/tst-langinfo.sh: Adapt test case data.
35366         * stdlib/tst-strfmon_l.c: Likewise.
35367         * stdlib/tst-strtod4.c: Likewise.
35368         * stdlib/tst-strtod5i.c: Likewise.
35370 2017-08-11  Florian Weimer  <fweimer@redhat.com>
35372         [BZ #21242]
35373         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
35374         Suppress pedantic warning resulting from statement expression.
35375         (__ASSERT_FUNCTION): Add missing __extension__.
35377 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
35379         * benchtests/bench-memmove-large.c: Print output in JSON
35380         format.
35381         * benchtests/bench-memmove.c: Likewise.
35383         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
35384         * benchtests/bench-memchr.c (do_one_test): Likewise.
35385         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
35386         * benchtests/bench-memcpy.c (do_one_test): Likewise.
35387         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
35388         * benchtests/bench-memmove.c (do_one_test): Likewise.
35389         * benchtests/bench-memset-large.c (do_one_test): Likewise.
35390         * benchtests/bench-memset.c (do_one_test): Likewise.
35391         * benchtests/bench-string.h (test_init): Remove memsets.
35393 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
35395         * manual/lang.texi
35396         (Computing the Width of an Integer Data Type): Rename section to
35397         "Width of an Integer Type".  Remove inaccurate statement regarding
35398         lack of C language facilities for determining width of integer
35399         types, and reorder content to improve flow and context of
35400         discussion.
35402 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
35404         * lang.texi (va_copy): Change standard from ISO to C99.
35405         (__va_copy): Add standard and header annotation.
35406         Update description for clarity of origins and current use.
35408 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
35410         [BZ #21941]
35411         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
35412         xssqrtqp requires operands to be in Vector Registers
35413         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
35414         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
35415         (__ieee754_sqrtf128): Likewise.
35417 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
35419         * sysdeps/aarch64/memcmp.S (memcmp):
35420         Rewrite of optimized memcmp.
35422 2017-08-10  Florian Weimer  <fweimer@redhat.com>
35424         Introduce ld.so exceptions.
35425         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
35426         (_dl_exception_create, _dl_exception_create_format)
35427         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
35428         (_dl_catch_exception): Declare.
35429         (_dl_catch_error): Update comment.
35430         * elf/dl-error-skeleton.c (struct catch): Replace objname,
35431         errstring, malloced members with exception member.
35432         (_dl_out_of_memory): Remove.
35433         (fatal_error): New function, extracted from _dl_signal_error.
35434         (_dl_signal_exception, _dl_signal_cexception): New functions.
35435         (_dl_signal_error): Call _dl_exception_create to allocate an
35436         exception object.
35437         (_dl_catch_exception): New function, based on _dl_catch_error.
35438         (_dl_catch_error): Implement using _dl_catch_exception.
35439         * elf/dl-exception.c: New file.
35440         * elf/Makefile (dl-routines): Add dl-exception.
35441         (elide-routines.os): Likewise.
35442         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
35443         _dl_exception_create_format, _dl_exception_free.
35444         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
35445         _dl_signal_exception.
35446         * elf/dl-lookup.c (make_string): Remove.
35447         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
35448         _dl_signal_cexception, _dl_exception_free.
35449         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
35450         _dl_signal_exception.
35451         * elf/dl-sym.c (do_sym): Likewise.
35452         * elf/dl-version.c (make_string): Remove.
35453         (match_symbol): Use _dl_exception_create_format,
35454         _dl_signal_cexception, _dl_exception_free.
35455         (_dl_check_map_versions): Likewise.
35456         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
35457         _dl_catch_exception.
35458         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
35459         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
35460         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
35461         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
35462         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
35463         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
35464         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
35465         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
35466         Likewise.
35467         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
35468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
35469         (ld.so): Likewise.
35470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
35471         (ld.so): Likewise.
35472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
35473         Likewise.
35474         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
35475         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
35476         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
35477         Likewise.
35478         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
35479         Likewise.
35480         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
35482 2017-08-10  Florian Weimer  <fweimer@redhat.com>
35484         * inet/net-internal.h (__inet6_scopeid_pton): Remove
35485         attribute_hidden, internal_function.
35486         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
35487         internal_function.
35489 2017-08-10  Florian Weimer  <fweimer@redhat.com>
35491         * malloc/malloc.c (get_max_fast): Reimplement as an inline
35492         function which calls __builtin_unreachable.
35494 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
35496         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
35497         Indian monetary formatting
35498         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
35499         test cases.
35501 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
35503         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
35504         Fix typo in comment.
35506         [BZ #21928]
35507         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
35508         PTRACE_SEIZE_DEVEL): Remove.
35509         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
35510         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35511         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35512         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35513         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35515 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
35517         * posix/bits/types.h (__qaddr_t): Remove.
35519         [BZ #21457]
35520         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
35521         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
35522         __glibc_reserved1.
35523         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
35524         (ucontext_t): Use __ctx with uc_flags.
35525         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
35526         (__ctxt): Likewise.
35527         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
35528         __glibc_reserved1.
35529         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
35530         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
35531         __glibc_reserved1.
35532         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
35533         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
35534         __glibc_reserved1.
35535         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
35536         macro.
35537         (ucontext_t): Use __ctx with uc_flags.
35538         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
35539         (ucontext_t): Use __ctx with uc_flags.
35540         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
35541         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
35542         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
35543         (ucontext_t): Use __ctx with uc_flags.
35544         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
35545         undefine further down.
35546         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
35547         __glibc_reserved1.
35548         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
35549         undefine further down.
35550         (ucontext_t): Use __ctx with uc_flags.
35551         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
35552         undefine further down.
35553         (ucontext_t): Use __ctx with uc_flags.
35554         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
35555         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
35556         Rename uc_pad to __glibc_reserved1.
35557         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
35558         undefine further down.
35559         (ucontext_t): Use __ctx with uc_flags.
35560         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
35561         further down.
35562         (ucontext_t): Use __ctx with uc_flags.
35563         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
35564         __ctx with uc_flags.
35565         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
35566         (ucontext_t): Use __ctx with uc_flags.
35567         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
35568         __ctx with uc_flags.
35570 2017-08-09  Florian Weimer  <fweimer@redhat.com>
35572         [BZ #21932]
35573         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
35574         before early return.
35576 2017-08-09  Andreas Schwab  <schwab@suse.de>
35578         [BZ #21041]
35579         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
35580         renamed alias.
35582         [BZ #21041]
35583         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
35584         tst-compat-forwarder.
35585         (modules-names): Add tst-compat-forwarder-mod.
35586         ($(objpfx)tst-compat-forwarder): Depend on
35587         $(objpfx)tst-compat-forwarder-mod.so.
35588         * nptl/tst-compat-forwarder.c: New file.
35589         * nptl/tst-compat-forwarder-mod.c: New file.
35591 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
35593         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
35594         comments.
35596         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
35597         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
35598         memcpy_falkor.
35599         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
35600         Bump.
35601         (__libc_ifunc_impl_list): Add __memcpy_falkor.
35602         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
35603         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
35604         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
35605         Add falkor.
35606         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
35607         New macro.
35609 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35611         [BZ #759]
35612         * manual/setjmp.texi (getcontex): Document uc_stack value
35613         compatibility differences.
35615 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
35617         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
35618         (old_malloc_hook): Likewise.
35619         (old_memalign_hook): Likewise.
35620         (old_realloc_hook): Likewise.
35621         (struct hdr): Likewise.
35622         (flood): Likewise.
35623         (freehook): Likewise.
35624         (mallochook): Likewise.
35625         (memalignhook): Likewise.
35626         (reallochook): Likewise.
35627         (mprobe): Likewise.
35628         * malloc/mtrace.c (mallwatch): Likewise.
35629         (tr_old_free_hook): Likewise.
35630         (tr_old_malloc_hook): Likewise.
35631         (tr_old_realloc_hook): Likewise.
35632         (tr_old_memalign_hook): Likewise.
35633         (tr_where): Likewise.
35634         (lock_and_info): Likewise.
35635         (tr_freehook): Likewise.
35636         (tr_mallochook): Likewise.
35637         (tr_reallochook): Likewise.
35638         (tr_memalignhook): Likewise.
35639         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
35640         * misc/mmap.c (__mmap): Likewise.
35641         * misc/mmap64.c (__mmap64): Likewise.
35642         * misc/mprotect.c (__mprotect): Likewise.
35643         * misc/msync.c (msync): Likewise.
35644         * misc/munmap.c (__munmap): Likewise.
35645         * posix/posix_madvise.c (posix_madvise): Likewise.
35646         * socket/send.c (__send): Likewise.
35647         * socket/sendto.c (__sendto): Likewise.
35648         * socket/setsockopt.c (__setsockopt): Likewise.
35649         * string/memcmp.c (__ptr_t): Remove macro.
35650         (MEMCMP): Use void * instead of ptr_t.
35651         * string/memrchr.c (__ptr_t): Remove macro.
35652         (__memrchr): Use void * instead of ptr_t.
35653         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
35654         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
35655         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
35656         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
35657         * sysdeps/mach/msync.c (msync): Likewise.
35658         * sysdeps/mach/munmap.c (__munmap): Likewise.
35659         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
35660         Likewise.
35661         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
35662         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
35663         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
35664         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
35665         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
35666         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
35667         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
35668         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
35669         Likewise.
35670         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
35671         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
35672         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
35673         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
35674         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
35675         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
35676         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
35677         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
35678         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
35679         Likewise.
35680         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
35681         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
35682         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
35683         (MEMCMP): Use void * instead of ptr_t.
35684         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
35685         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
35687 2017-08-08  Florian Weimer  <fweimer@redhat.com>
35689         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
35690         return statement.
35692 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
35694         [BZ #21913]
35695         * csu/libc-tls.c: Include <startup.h> first.
35696         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
35697         * elf/dl-tunables.c: Include <startup.h> first.
35698         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
35699         * sysdeps/generic/startup.h: New file.
35700         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
35701         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
35702         (I386_USE_SYSENTER): New.  Defined to 0.
35704 2017-08-08  Andreas Schwab  <schwab@suse.de>
35706         [BZ #21041]
35707         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
35708         * nptl/pt-system.c (system): Likewise.
35710 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35712         [BZ #21780]
35713         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
35714         EOPNOTSUPP.
35715         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
35716         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
35717         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
35718         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
35719         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
35720         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
35721         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
35723 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
35725         [BZ #21899]
35726         * bits/sigaction.h (struct sigaction): Define sa_handler and
35727         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
35728         (SA_ONSTACK): Change [__USE_UNIX98] condition to
35729         [__USE_XOPEN_EXTENDED].
35730         (SA_RESTART): Likewise.
35731         (SA_NODEFER): Likewise.
35732         (SA_RESETHAND): Likewise.
35733         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
35734         (struct sigaction): Define sa_handler and sa_sigaction using union
35735         also for [__USE_XOPEN_EXTENDED].
35736         (SA_ONSTACK): Change [__USE_UNIX98] condition to
35737         [__USE_XOPEN_EXTENDED].
35738         (SA_RESTART): Likewise.
35739         (SA_NODEFER): Likewise.
35740         (SA_RESETHAND): Likewise.
35741         * sysdeps/unix/sysv/linux/bits/sigaction.h
35742         (struct sigaction): Define sa_handler and sa_sigaction using union
35743         also for [__USE_XOPEN_EXTENDED].
35744         (SA_ONSTACK): Change [__USE_UNIX98] condition to
35745         [__USE_XOPEN_EXTENDED].
35746         (SA_RESTART): Likewise.
35747         (SA_NODEFER): Likewise.
35748         (SA_RESETHAND): Likewise.
35749         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
35750         (struct sigaction): Define sa_handler and sa_sigaction using union
35751         also for [__USE_XOPEN_EXTENDED].
35752         (SA_ONSTACK): Change [__USE_UNIX98] condition to
35753         [__USE_XOPEN_EXTENDED].
35754         (SA_RESTART): Likewise.
35755         (SA_NODEFER): Likewise.
35756         (SA_RESETHAND): Likewise.
35757         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
35758         (struct sigaction): Define sa_handler and sa_sigaction using union
35759         also for [__USE_XOPEN_EXTENDED].
35760         (SA_ONSTACK): Change [__USE_UNIX98] condition to
35761         [__USE_XOPEN_EXTENDED].
35762         (SA_RESTART): Likewise.
35763         (SA_NODEFER): Likewise.
35764         (SA_RESETHAND): Likewise.
35765         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
35766         (struct sigaction): Define sa_handler and sa_sigaction using union
35767         also for [__USE_XOPEN_EXTENDED].
35768         (SA_ONSTACK): Change [__USE_UNIX98] condition to
35769         [__USE_XOPEN_EXTENDED].
35770         (SA_RESTART): Likewise.
35771         (SA_NODEFER): Likewise.
35772         (SA_RESETHAND): Likewise.
35773         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
35774         (struct sigaction): Define sa_handler and sa_sigaction using union
35775         also for [__USE_XOPEN_EXTENDED].
35776         (SA_ONSTACK): Change [__USE_UNIX98] condition to
35777         [__USE_XOPEN_EXTENDED].
35778         (SA_RESTART): Likewise.
35779         (SA_NODEFER): Likewise.
35780         (SA_RESETHAND): Likewise.
35781         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
35782         (struct sigaction): Define sa_handler and sa_sigaction using union
35783         also for [__USE_XOPEN_EXTENDED].
35784         (SA_ONSTACK): Change [__USE_UNIX98] condition to
35785         [__USE_XOPEN_EXTENDED].
35786         (SA_RESTART): Likewise.
35787         (SA_NODEFER): Likewise.  Define directly rather than as alias.
35788         (SA_RESETHAND): Likewise.
35789         (SA_INTERRUPT): Define only for [__USE_MISC].
35790         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
35791         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
35792         [__USE_MISC].
35793         (SA_STACK): Define only for [__USE_MISC].
35794         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
35795         (struct sigaction): Define sa_handler and sa_sigaction using union
35796         also for [__USE_XOPEN_EXTENDED].
35797         (SA_ONSTACK): Change [__USE_UNIX98] condition to
35798         [__USE_XOPEN_EXTENDED].
35799         (SA_RESTART): Likewise.
35800         (SA_NODEFER): Likewise.
35801         (SA_RESETHAND): Likewise.
35802         (SA_NOPTRACE): Define only for [__USE_MISC].
35804         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
35805         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
35806         (struct catalog_info): Likewise.
35807         * inet/htontest.c (lo): Likewise.
35808         (foo): Likewise.
35809         * inet/inet_lnaof.c (inet_lnaof): Likewise.
35810         * inet/inet_net.c (inet_network): Likewise.
35811         * inet/inet_netof.c (inet_netof): Likewise.
35812         * inet/rcmd.c (__ivaliduser): Likewise.
35813         (iruserok): Likewise.
35814         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
35815         * locale/programs/locale-spec.c (locale_special): Likewise.
35816         * nis/nis_findserv.c (struct findserv_req): Likewise.
35817         (__nis_findfastest_with_timeout): Likewise.
35818         * nss/test-netdb.c (test_network): Likewise.
35819         * resolv/inet_neta.c (inet_neta): Likewise.
35820         * resolv/ns_date.c (ns_datetosecs): Likewise.
35821         (SECS_PER_DAY): Likewise.
35822         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
35823         Likewise.
35824         * resolv/res_comp.c (__putlong): Likewise.
35825         (__putshort): Likewise.
35826         (_getlong): Likewise.
35827         (_getshort): Likewise.
35828         * resolv/res_debug.c (p_time): Likewise.
35829         (precsize_ntoa): Likewise.
35830         (precsize_aton): Likewise.
35831         (latlon2ul): Likewise.
35832         (loc_aton): Likewise.
35833         (loc_ntoa): Likewise.
35834         * resolv/res_hconf.c (struct netaddr): Likewise.
35835         (_res_hconf_reorder_addrs): Likewise.
35836         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
35837         (clnttcp_control): Likewise.
35838         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
35839         (clntudp_control): Likewise.
35840         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
35841         (clntunix_control): Likewise.
35842         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
35843         * sunrpc/rpc/auth.h (union des_block): Likewise.
35844         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
35845         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
35846         (xdrrec_create): Likewise.
35847         (xdrrec_endofrecord): Likewise.
35848         (flush_out): Likewise.
35849         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
35850         (xdrstdio_putlong): Likewise.
35851         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
35852         Likewise.
35854         * misc/sys/cdefs.h (__long_double_t): Remove.
35855         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
35856         instead of __long_double_t,
35857         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
35859 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
35861         * benchtests/scripts/compare_strings.py: Avoid display error when
35862         running on a text terminal.
35864         * benchtests/scripts/compare_strings.py (main): Add an
35865         optional -base option.
35866         (process_results): New argument base_func.
35868         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
35869         hardcoding memcpy.
35870         * benchtests/bench-memcpy-large.c (test_name): Likewise.
35871         * benchtests/bench-memcpy-random.c (test_name): Likewise.
35873 2017-08-07  Andreas Schwab  <schwab@suse.de>
35875         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
35876         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
35877         * intl/Makefile ($(objpfx)tst-gettext.out)
35878         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
35879         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
35880         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
35881         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
35882         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
35883         * posix/Makefile ($(objpfx)globtest.out)
35884         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
35885         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
35886         ($(objpfx)tst-printf.out): Likewise.
35887         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
35888         ($(objpfx)tst-setcontext3.out): Likewise.
35890 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
35892         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35893         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
35894         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
35895         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
35896         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
35897         and mptan-fma.
35898         (CFLAGS-doasin-fma.c): New.
35899         (CFLAGS-dosincos-fma.c): Likewise.
35900         (CFLAGS-e_asin-fma.c): Likewise.
35901         (CFLAGS-e_atan2-fma.c): Likewise.
35902         (CFLAGS-e_exp-fma.c): Likewise.
35903         (CFLAGS-e_log-fma.c): Likewise.
35904         (CFLAGS-e_pow-fma.c): Likewise.
35905         (CFLAGS-halfulp-fma.c): Likewise.
35906         (CFLAGS-mpa-fma.c): Likewise.
35907         (CFLAGS-mpatan-fma.c): Likewise.
35908         (CFLAGS-mpatan2-fma.c): Likewise.
35909         (CFLAGS-mpexp-fma.c): Likewise.
35910         (CFLAGS-mplog-fma.c): Likewise.
35911         (CFLAGS-mpsqrt-fma.c): Likewise.
35912         (CFLAGS-mptan-fma.c): Likewise.
35913         (CFLAGS-s_atan-fma.c): Likewise.
35914         (CFLAGS-sincos32-fma.c): Likewise.
35915         (CFLAGS-slowexp-fma.c): Likewise.
35916         (CFLAGS-slowpow-fma.c): Likewise.
35917         (CFLAGS-s_sin-fma.c): Likewise.
35918         (CFLAGS-s_tan-fma.c): Likewise.
35919         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
35920         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
35921         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
35922         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
35923         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
35924         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
35925         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
35926         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
35927         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
35928         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
35929         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
35930         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
35931         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
35932         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
35933         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
35934         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
35935         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
35936         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
35937         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
35938         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
35939         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
35940         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
35941         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
35942         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
35943         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
35944         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
35945         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
35946         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
35947         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
35948         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
35949         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
35951 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
35953         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
35954         (min_of_type_f): New macro.
35955         (min_of_type_): Likewise.
35956         (min_of_type_l): Likewise.
35957         (min_of_type_f128): Likewise.
35958         (min_of_type): Define using __MATH_TG and taking an expression
35959         argument.
35960         (math_check_force_underflow): Pass expression instead of type to
35961         min_of_type.
35962         (math_check_force_underflow_nonneg): Likewise.
35964 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35966         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35967         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
35968         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
35970 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35972         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35973         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
35974         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
35975         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
35976         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
35977         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
35978         memcpy_chk-nonshared, mempcpy_chk-nonshared,
35979         memmove_chk-nonshared and memset_chk-nonshared
35980         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
35981         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
35982         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
35983         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
35984         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
35985         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
35986         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
35987         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
35988         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
35989         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
35990         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
35991         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
35992         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
35993         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
35994         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
35995         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
35996         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
35997         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
35998         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
35999         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
36000         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
36001         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
36002         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
36003         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
36004         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
36005         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
36006         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
36007         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
36008         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
36009         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
36010         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
36011         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
36012         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
36013         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
36014         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
36015         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
36016         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
36017         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
36018         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
36019         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
36020         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
36021         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
36022         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
36023         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
36024         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
36025         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
36026         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
36027         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
36028         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
36029         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
36030         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
36031         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
36032         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
36033         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
36034         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
36035         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
36036         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
36037         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
36038         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
36039         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
36040         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
36041         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
36042         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
36043         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
36044         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
36045         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
36046         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
36047         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
36048         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
36049         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
36050         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
36051         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
36052         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
36053         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
36054         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
36055         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
36056         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
36057         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
36058         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
36059         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
36060         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
36061         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
36062         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
36063         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
36064         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
36065         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
36066         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
36067         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
36068         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
36069         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
36070         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
36071         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
36072         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
36073         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
36074         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
36075         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
36076         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
36077         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
36078         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
36079         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
36080         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
36081         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
36082         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
36083         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
36084         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
36085         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
36086         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
36087         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
36089 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
36091         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
36092         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
36093         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
36094         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
36095         svml_d_log2_core-sse2, svml_d_log4_core-sse,
36096         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
36097         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
36098         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
36099         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
36100         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
36101         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
36102         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
36103         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
36104         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
36105         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
36106         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
36107         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
36108         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
36109         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
36110         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
36111         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
36112         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
36113         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
36114         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
36115         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
36116         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
36117         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
36118         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
36119         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
36120         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
36121         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
36122         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
36123         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
36124         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
36125         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
36126         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
36127         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
36128         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
36129         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
36130         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
36131         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
36132         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
36133         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
36134         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
36135         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
36136         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
36137         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
36138         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
36139         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
36140         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
36141         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
36142         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
36143         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
36144         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
36145         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
36146         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
36147         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
36148         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
36149         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
36150         ...
36151         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
36152         Don't include <sysdep.h> nor <init-arch.h>.
36153         (_ZGVbN2v_cos): Removed.
36154         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
36155         ...
36156         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
36157         Don't include <sysdep.h> nor <init-arch.h>.
36158         (_ZGVdN4v_cos): Removed.
36159         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
36160         ...
36161         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
36162         Don't include <sysdep.h> nor <init-arch.h>.
36163         (_ZGVeN8v_cos): Removed.
36164         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
36165         ...
36166         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
36167         Don't include <sysdep.h> nor <init-arch.h>.
36168         (_ZGVbN2v_exp): Removed.
36169         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
36170         ...
36171         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
36172         Don't include <sysdep.h> nor <init-arch.h>.
36173         (_ZGVdN4v_exp): Removed.
36174         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
36175         ...
36176         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
36177         Don't include <sysdep.h> nor <init-arch.h>.
36178         (_ZGVeN8v_exp): Removed.
36179         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
36180         ...
36181         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
36182         Don't include <sysdep.h> nor <init-arch.h>.
36183         (_ZGVbN2v_log): Removed.
36184         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
36185         ...
36186         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
36187         Don't include <sysdep.h> nor <init-arch.h>.
36188         (_ZGVdN4v_log): Removed.
36189         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
36190         ...
36191         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
36192         Don't include <sysdep.h> nor <init-arch.h>.
36193         (_ZGVeN8v_log): Removed.
36194         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
36195         ...
36196         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
36197         Don't include <sysdep.h> nor <init-arch.h>.
36198         (_ZGVbN2vv_pow): Removed.
36199         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
36200         ...
36201         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
36202         Don't include <sysdep.h> nor <init-arch.h>.
36203         (_ZGVdN4vv_pow): Removed.
36204         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
36205         ...
36206         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
36207         Don't include <sysdep.h> nor <init-arch.h>.
36208         (_ZGVeN8vv_pow): Removed.
36209         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
36210         ...
36211         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
36212         Don't include <sysdep.h> nor <init-arch.h>.
36213         (_ZGVbN2v_sin): Removed.
36214         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
36215         ...
36216         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
36217         Don't include <sysdep.h> nor <init-arch.h>.
36218         (_ZGVbN4v_sin): Removed.
36219         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
36220         ...
36221         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
36222         Don't include <sysdep.h> nor <init-arch.h>.
36223         (_ZGVbN8v_sin): Removed.
36224         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
36225         ...
36226         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
36227         Don't include <sysdep.h> nor <init-arch.h>.
36228         (_ZGVbN2vvv_sincos): Removed.
36229         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
36230         ...
36231         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
36232         Don't include <sysdep.h> nor <init-arch.h>.
36233         (_ZGVdN4vvv_sincos): Removed.
36234         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
36235         ...
36236         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
36237         Don't include <sysdep.h> nor <init-arch.h>.
36238         (_ZGVeN8vvv_sincos): Removed.
36239         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
36240         ...
36241         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
36242         Don't include <sysdep.h> nor <init-arch.h>.
36243         (_ZGVeN16v_cosf): Removed.
36244         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
36245         ...
36246         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
36247         Don't include <sysdep.h> nor <init-arch.h>.
36248         (_ZGVbN4v_cosf): Removed.
36249         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
36250         ...
36251         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
36252         Don't include <sysdep.h> nor <init-arch.h>.
36253         (_ZGVdN8v_cosf): Removed.
36254         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
36255         ...
36256         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
36257         Don't include <sysdep.h> nor <init-arch.h>.
36258         (_ZGVeN16v_expf): Removed.
36259         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
36260         ...
36261         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
36262         Don't include <sysdep.h> nor <init-arch.h>.
36263         (_ZGVbN4v_expf): Removed.
36264         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
36265         ...
36266         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
36267         Don't include <sysdep.h> nor <init-arch.h>.
36268         (_ZGVdN8v_expf): Removed.
36269         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
36270         ...
36271         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
36272         Don't include <sysdep.h> nor <init-arch.h>.
36273         (_ZGVeN16v_logf): Removed.
36274         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
36275         ...
36276         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
36277         Don't include <sysdep.h> nor <init-arch.h>.
36278         (_ZGVbN4v_logf): Removed.
36279         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
36280         ...
36281         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
36282         Don't include <sysdep.h> nor <init-arch.h>.
36283         (_ZGVdN8v_logf): Removed.
36284         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
36285         ...
36286         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
36287         Don't include <sysdep.h> nor <init-arch.h>.
36288         (_ZGVeN16vv_powf): Removed.
36289         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
36290         ...
36291         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
36292         Don't include <sysdep.h> nor <init-arch.h>.
36293         (_ZGVbN4vv_powf): Removed.
36294         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
36295         ...
36296         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
36297         Don't include <sysdep.h> nor <init-arch.h>.
36298         (_ZGVdN8vv_powf): Removed.
36299         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
36300         ...
36301         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
36302         Don't include <sysdep.h> nor <init-arch.h>.
36303         (_ZGVeN16vvv_sincosf): Removed.
36304         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
36305         ...
36306         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
36307         Don't include <sysdep.h> nor <init-arch.h>.
36308         (_ZGVbN4vvv_sincosf): Removed.
36309         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
36310         ...
36311         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
36312         Don't include <sysdep.h> nor <init-arch.h>.
36313         (_ZGVdN8vvv_sincosf): Removed.
36314         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
36315         ...
36316         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
36317         Don't include <sysdep.h> nor <init-arch.h>.
36318         (_ZGVeN16v_sinf): Removed.
36319         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
36320         ...
36321         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
36322         Don't include <sysdep.h> nor <init-arch.h>.
36323         (_ZGVbN4v_sinf): Removed.
36324         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
36325         ...
36326         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
36327         Don't include <sysdep.h> nor <init-arch.h>.
36328         (_ZGVdN8v_sinf): Removed.
36330 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
36332         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36333         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
36334         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
36335         s_rint-sse4_1 and s_rintf-sse4_1.
36336         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
36337         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
36338         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
36339         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
36340         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
36341         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
36342         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
36343         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
36344         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
36345         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
36346         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
36347         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
36348         (__ceil): Removed.
36349         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
36350         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
36351         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
36352         (__ceilf): Removed.
36353         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
36354         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
36355         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
36356         (__floor): Removed.
36357         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
36358         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
36359         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
36360         (__floorf): Removed.
36361         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
36362         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
36363         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
36364         (__nearbyint): Removed.
36365         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
36366         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
36367         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
36368         (__nearbyintf): Removed.
36369         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
36370         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
36371         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
36372         (__rint): Removed.
36373         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
36374         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
36375         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
36376         (__rintf): Removed.
36378 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
36380         * sysdeps/i386/start.S (_start): Check Check PIC instead of
36381         SHARED.  Avoid dynamic relocation against main in static PIE.
36383 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
36385         [BZ #21815]
36386         * elf/Makefile (CFLAGS-tst-prelink.c): New.
36387         (LDFLAGS-tst-prelink): Likewise.
36389 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
36391         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
36392         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
36393         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
36394         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
36395         (INTERNAL_SYSCALL_NCS): Likewise.
36396         (LOADARGS_1): Likewise.
36397         (LOADARGS_5): Likewise.
36398         (RESTOREARGS_1): Likewise.
36399         (RESTOREARGS_5): Likewise.
36401 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
36403         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
36404         (MEMPCPY_SYMBOL): Likewise.
36405         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
36406         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
36407         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
36408         in libc.a.
36409         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36410         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
36411         Likewise.
36412         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
36413         (__hidden_ver1): Don't use in libc.a.
36414         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
36415         (__mempcpy): Don't create a weak alias in libc.a.
36416         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
36417         libc.a.
36418         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
36419         (__hidden_ver1): Don't use in libc.a.
36421 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
36423         * config.make.in (have-insert): New.
36424         * configure.ac (libc_cv_insert): New.  Set to yes if linker
36425         supports INSERT in linker script.
36426         (AC_SUBST(libc_cv_insert): New.
36427         * configure: Regenerated.
36428         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
36429         if $(have-insert) == yes.
36431 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
36433         * elf/Makefile (tests): Add vismain only if
36434         $(have-protected-data) == yes.
36435         (tests-pie): Likewise.
36437 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
36439         [BZ #21871]
36440         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
36441         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
36443 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
36445         [BZ #21790]
36446         * sysdeps/i386/i586/memset.S
36447         (__memset_zero_constant_len_parameter): Removed.
36448         * sysdeps/i386/i686/memset.S
36449         (__memset_zero_constant_len_parameter): Likewise.
36450         * sysdeps/i386/i686/multiarch/memset_chk.S
36451         (__memset_zero_constant_len_parameter): Likewise.
36452         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
36453         Likewise.
36455 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
36457         * stdlib/getentropy.c (getentropy): Change return type to int.
36459 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
36461         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
36463 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
36465         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
36466         u_intN_t.
36467         * math/s_nexttowardf.c (__nexttowardf): Likewise.
36468         * sysdeps/generic/math_private.h (ieee_double_shape_type):
36469         Likewise.
36470         (ieee_float_shape_type): Likewise.
36471         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
36472         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
36473         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
36474         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
36475         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
36476         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
36477         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
36478         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
36479         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
36480         Likewise.
36481         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
36482         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
36483         (__ieee754_yn): Likewise.
36484         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
36485         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
36486         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
36487         Likewise.
36488         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
36489         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
36490         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
36491         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
36492         (__erfc): Likewise.
36493         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
36494         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
36495         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
36496         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
36497         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
36498         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
36499         Likewise.
36500         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
36501         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
36502         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
36503         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
36504         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
36505         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
36506         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
36507         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
36508         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
36509         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
36510         (__issignaling): Likewise.
36511         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
36512         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
36513         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
36514         Likewise.
36515         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
36516         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
36517         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
36518         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
36519         Likewise.
36520         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
36521         Likewise.
36522         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
36523         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
36524         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
36525         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
36526         (__erfcf): Likewise.
36527         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
36528         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
36529         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
36530         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
36531         Likewise.
36532         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
36533         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
36534         Likewise.
36535         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
36536         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
36537         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
36538         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
36539         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
36540         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
36541         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
36542         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
36543         Likewise.
36544         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
36545         Likewise.
36546         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
36547         Likewise.
36548         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
36549         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
36550         Likewise.
36551         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
36552         Likewise.
36553         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
36554         (__ieee754_ynl): Likewise.
36555         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
36556         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
36557         Likewise.
36558         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
36559         Likewise.
36560         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
36561         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
36562         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
36563         Likewise.
36564         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
36565         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
36566         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
36567         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
36568         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
36569         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
36570         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
36571         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
36572         Likewise.
36573         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
36574         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
36575         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
36576         Likewise.
36577         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
36578         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
36579         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
36580         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
36581         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
36582         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
36583         Likewise.
36584         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
36585         Likewise.
36586         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
36587         Likewise.
36588         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
36589         Likewise.
36590         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
36591         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
36592         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
36593         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
36594         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
36595         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
36596         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
36597         Likewise.
36598         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
36599         Likewise.
36600         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
36601         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
36602         Likewise.
36603         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
36604         (__ieee754_remainderl): Likewise.
36605         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
36606         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
36607         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
36608         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
36609         Likewise.
36610         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
36611         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
36612         Likewise.
36613         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
36614         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
36615         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
36616         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
36617         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
36618         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
36619         Likewise.
36620         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
36621         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
36622         (__ieee754_y0l): Likewise.
36623         (pzero): Likewise.
36624         (qzero): Likewise.
36625         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
36626         (__ieee754_y1l): Likewise.
36627         (pone): Likewise.
36628         (qone): Likewise.
36629         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
36630         (__ieee754_ynl): Likewise.
36631         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
36632         (__ieee754_lgammal_r): Likewise.
36633         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
36634         Likewise.
36635         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
36636         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
36637         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
36638         (__erfcl): Likewise.
36639         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
36640         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
36641         Likewise.
36642         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
36643         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
36644         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
36645         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
36646         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
36647         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
36648         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
36649         Likewise.
36650         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
36651         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
36652         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
36653         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
36654         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
36655         Likewise.
36656         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
36657         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
36658         Likewise.
36659         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
36660         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
36661         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
36662         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
36663         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
36665 2017-08-03  Florian Weimer  <fweimer@redhat.com>
36667         [BZ #21885]
36668         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
36669         on memory allocation failure.
36671 2017-08-03  Alan Modra  <amodra@gmail.com>
36673         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
36674         tst-tlsopt-powerpc.c with function name change and no test harness.
36675         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
36676         Call tls_get_addr_opt_test.
36677         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
36678         (modules-names): Add mod-tlsopt-powerpc.
36679         (mod-tlsopt-powerpc.so-no-z-defs): Define.
36680         (tst-tlsopt-powerpc): Depend on .so.
36681         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
36682         define.  Expand use in TLS_GD and TLS_LD.
36684 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36686         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
36687         function.
36688         * sysdeps/posix/shm_open.c: Include <pthread.h>.
36690 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
36692         [BZ #21686]
36693         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
36694         comparing size with that of double.
36695         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
36696         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
36697         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
36698         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
36699         (__TGMATH_BINARY_REAL_IMAG): Likewise.
36700         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
36701         unsigned __int128 types.
36703 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
36705         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
36706         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
36707         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
36708         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
36709         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
36711 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
36713         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
36715 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
36717         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
36718         of SHARED.
36719         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
36720         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
36721         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36722         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
36723         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
36724         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
36725         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
36727 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
36729         [BZ #21685]
36730         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
36731         bit-field expressions passed to sizeof or typeof.
36732         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36733         (__TGMATH_F128): Likewise.
36734         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36735         (__TGMATH_CF128): Likewise.
36736         (__TGMATH_UNARY_REAL_ONLY): Likewise.
36737         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
36738         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
36739         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
36740         (__TGMATH_BINARY_REAL_ONLY): Likewise.
36741         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
36742         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
36743         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
36744         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
36745         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
36746         (__TGMATH_UNARY_REAL_IMAG): Likewise.
36747         (__TGMATH_UNARY_IMAG): Likewise.
36748         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
36749         (__TGMATH_BINARY_REAL_IMAG): Likewise.
36750         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
36751         type.
36752         (define_vars_for_type): Handle bit_field type specially.
36753         (Tests.__init__): Declare structure with bit-field element.
36755 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
36757         [BZ #21791]
36758         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
36759         (MEMCPY_CHK): Define only if SHARED is defined.
36760         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
36761         Likewise.
36762         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
36763         Likewise.
36765 See ChangeLog.18 for earlier changes.