]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
cf6959d2624ad73023bb4a30455df1b792eea637
[thirdparty/glibc.git] / ChangeLog
1 2019-05-15 Andreas Schwab <schwab@suse.de>
2
3 [BZ #20568]
4 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
5 __codecvt_do_length.
6 * libio/Makefile (tests): Add tst-wfile-sync.
7 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
8 * libio/tst-wfile-sync.c: New file.
9 * libio/tst-wfile-sync.input: New file.
10
11 2019-05-15 Florian Weimer <fweimer@redhat.com>
12
13 nss: Turn __nss_database_lookup into a compatibility symbol.
14 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
15 __nss_database_lookup.
16 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
17 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
18 __nss_database_lookup.
19 (__nss_next): Move to …
20 * nss/compat-lookup.c (nss_next): … here. Change it to fail
21 unconditionally.
22 (__nss_database_lookup): New function.
23 * nss/Versions (GLIBC_2.0): Update comment.
24 (GLIBC_PRIVATE): Export __nss_database_lookup2.
25 * grp/initgroups.c (internal_getgrouplist): Call
26 __nss_database_lookup2 instead of __nss_database_lookup.
27 * nscd/aicache.c (addhstaiX): Likewise.
28 * nscd/initgrcache.c (addinitgroupsX): Likewise.
29 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
30 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
31 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
32 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
33 Likewise.
34 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
35 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
36 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
37
38 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
39
40 * support/support.h (support_install_rootsbindir): New variable.
41 * support/support_paths.c: Likewise.
42 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
43
44 2019-05-15 Florian Weimer <fweimer@redhat.com>
45
46 * iconv/gconv.h (__gconv_transliterate): Move declaration …
47 * iconv/gconv_int.h (__gconv_transliterate): … here.
48 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
49 * iconv/skeleton.c: Likewise.
50
51 2019-05-14 Florian Weimer <fweimer@redhat.com>
52
53 Linux: Add the tgkill function.
54 * bits/signal_ext.h: New file.
55 * manual/signal.texi (Signaling Another Process): Document tgkill.
56 * signal/Makefile (headers): Add bits/signal_ext.h.
57 * signal/signal.h: Include <bits/signal_ext.h>.
58 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
59 (tst-tgkill): Link with libpthread.
60 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
61 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
62 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
63 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
64 tgkill.
65 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
66 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
67 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
68 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
69 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
70 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
71 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
72 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
73 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
74 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
75 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
76 Likewise.
77 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
78 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
79 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
80 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
81 Likewise.
82 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
83 Likewise.
84 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
85 Likewise.
86 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
87 Likewise.
88 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
89 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
90 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
91 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
92 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
93 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
94 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
95 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
96
97 2019-05-14 Carlos O'Donell <carlos@redhat.com>
98
99 * manual/search.texi (Tree Search Function): Adjust twalk_r
100 documentation.
101
102 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
103
104 [BZ #24544]
105 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
106 pre-defined value.
107
108 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
109 * support/support.h (support_bindir_prefix): New variable.
110 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
111
112 * config.make.in (bindir): New variable.
113
114 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
115 (lll_trylock): Call __lll_trylock.
116 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
117 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
118 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
119 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
120 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
121 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
122 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
123 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
124 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
125 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
126 lowlevellock-futex.h.
127
128 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
129 initialization for LLL_LOCK_INITIALIZER different than 0.
130 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
131 Assume LLL_LOCK_INITIALIZER being 0.
132 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
133 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
134 Likewise.
135 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
136 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
137
138 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
139 Optimize futex call and add systemtap probe.
140
141 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
142 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
143 __libc_disable_asynccancel, __librt_enable_asynccancel,
144 __libc_disable_asynccancel, __librt_enable_asynccancel,
145 __librt_disable_asynccancel): Move to ...
146 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
147 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
148 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
149 * sysdeps/generic/single-thread.h: New file.
150 * sysdeps/unix/sysdep.h: Include single-thread.h.
151 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
152 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
153
154 2019-05-08 Mike FABIAN <mfabian@redhat.com>
155
156 [BZ #24535]
157 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
158 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
159 Unicode 12.1.0.
160 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
161 * localedata/unicode-gen/PropList.txt: Likewise.
162 * localedata/unicode-gen/UnicodeData.txt: Likewise.
163 * localedata/charmaps/UTF-8: Regenerate.
164 * localedata/locales/i18n_ctype: Likewise.
165 * localedata/locales/tr_TR: Likewise.
166 * localedata/locales/translit_circle: Likewise.
167 * localedata/locales/translit_cjk_compat: Likewise.
168 * localedata/locales/translit_combining: Likewise.
169 * localedata/locales/translit_compat: Likewise.
170 * localedata/locales/translit_font: Likewise.
171 * localedata/locales/translit_fraction: Likewise.
172
173 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
174
175 [BZ #24531]
176 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
177 (do_set_tcache_count): Only update if count is small enough.
178 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
179
180 2019-05-10 Florian Weimer <fweimer@redhat.com>
181
182 * nptl/sem_close.c (struct walk_closure): Define.
183 (walker): Adjust for __twalk_r.
184 (sem_close): Call __twalk_r.
185
186 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
187
188 * support/timespec.c (test_timespec_before_impl,
189 test_timespec_equal_or_after_impl): print timespec member as intmax_t
190 insted of long int.
191
192 2019-05-09 Mike Crowe <mac@mcrowe.com>
193
194 * nptl/tst-abstime.c: Use libsupport.
195
196 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
197 small bug where only tv.tv_usec was checked which could cause an
198 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
199 than a second.
200
201 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
202 libsupport.
203
204 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
205 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
206
207 * nptl/tst-cond11.c: Use libsupport.
208
209 * support/timespec.h: New file. Provide timespec helper functions
210 along with macros in the style of those in check.h.
211 * support/timespec.c: New file. Implement check functions declared
212 in support/timespec.h.
213 * support/timespec-add.c: New file from gnulib containing
214 timespec_add implementation that handles overflow.
215 * support/timespec-sub.c: New file from gnulib containing
216 timespec_sub implementation that handles overflow.
217 * support/README: Mention timespec.h.
218
219 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
220
221 [BZ #24537]
222 * nptl/Makefile: Move tst-eintr1 to xtests.
223
224 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
225
226 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
227 TRUNC handling.
228 (round_mode): Add definition for TRUNC.
229 * sysdeps/powerpc/fpu/s_trunc.c: New file.
230 * sysdeps/powerpc/fpu/s_truncf.c: New file.
231 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
232 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
233 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
234 Likewise.
235 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
236 Likewise.
237 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
238 Likewise.
239 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
240 Likewise.
241 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
242 file.
243 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
244 Likewise.
245 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
246 Likewise.
247 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
248 Likewise.
249 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
250 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
251 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
252 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
253 s_truncf-power5+, and s_truncf-ppc64.
254 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
255 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
256 file.
257 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
259 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
260 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
261 file.
262 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
263 Likewise.
264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
265 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
266 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
267 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
268 s_truncf-power5+, and s_truncf-ppc64.
269 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
270 file.
271 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
272 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
273 Likewise.
274 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
275 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
276 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
277 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
278 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
279
280 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
281 ROUND handling.
282 (round_mode): Add definition for ROUND.
283 (round_to_integer_float): Likewise.
284 * sysdeps/powerpc/fpu/s_round.c: New file.
285 * sysdeps/powerpc/fpu/s_roundf.c: New file.
286 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
287 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
288 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
289 Likewise.
290 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
291 Likewise.
292 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
293 Likewise.
294 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
295 Likewise.
296 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
297 file.
298 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
299 Likewise.
300 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
301 Likewise.
302 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
303 Likewise.
304 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
305 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
306 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
307 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
308 s_roundf-power5+, and s_roundf-ppc64.
309 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
310 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
311 file.
312 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
313 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
314 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
315 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
316 file.
317 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
318 Likewise.
319 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
320 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
321 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
322 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
323 s_roundf-power5+, and s_roundf-ppc64.
324 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
325 file.
326 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
327 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
328 Likewise.
329 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
330 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
331 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
332 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
333 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
334
335 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
336 Add FLOOR option.
337 (round_mode): Add definition for FLOOR.
338 * sysdeps/powerpc/fpu/s_floor.c: New file.
339 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
340 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
341 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
342 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
343 Remove file.
344 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
345 Likewise
346 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
347 Likewise.
348 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
349 Likewise.
350 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
351 New file.
352 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
353 Likewise.
354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
355 Likewise.
356 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
357 Likewise.
358 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
359 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
360 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
361 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
362 s_floorf-power5+, and s_floorf-ppc64.
363 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
364 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
365 file.
366 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
367 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
368 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
369 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
370 file.
371 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
372 Likewise.
373 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
374 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
375 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
376 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
377 s_floorf-power5+, and s_floorf-ppc64.
378 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
379 file.
380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
381 file.
382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
383 Likewise.
384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
385 Likewise.
386 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
387 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
388 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
389 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
390
391 2019-05-08 Mike Crowe <mac@mcrowe.com>
392
393 * support/xclock_gettime.c (xclock_gettime): New file. Provide
394 clock_gettime wrapper for use in tests that fails the test rather
395 than returning failure.
396
397 * support/xtime.h: New file to declare xclock_gettime.
398
399 * support/Makefile: Add xclock_gettime.c.
400
401 * support/README: Mention xtime.h.
402
403 2019-05-08 Florian Weimer <fweimer@redhat.com>
404
405 malloc/tst-mallocfork2: Use process-shared barriers.
406 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
407 (signal_count, sigusr1_sender_pid): Remove.
408 (iterations): Define constant.
409 (shared): New variable.
410 (sigusr1_received): Update comment.
411 (sigusr1_handler): Do not send SIGSTOP to the sender process.
412 (signal_sender): Optional use barriers to avoid sending signals
413 during irrelevant times.
414 (do_it): Initialize variable shared. Use xfork for error
415 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
416 the iteration count, independent of signal delivery. Check for
417 deadlocks in fork. Introduce barriers for reducing signal
418 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
419 replaced by the barriers. Count signals during fork/free/malloc
420 and report them.
421 * malloc/Makefile (tst-mallocfork): Link with libpthread.
422
423 2019-05-07 Joseph Myers <joseph@codesourcery.com>
424
425 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
426 version to 5.1.
427 (clock_adjtime64) New syscall.
428 (clock_getres_time64) Likewise.
429 (clock_gettime64) Likewise.
430 (clock_nanosleep_time64) Likewise.
431 (clock_settime64) Likewise.
432 (futex_time64) Likewise.
433 (io_pgetevents_time64) Likewise.
434 (io_uring_enter) Likewise.
435 (io_uring_register) Likewise.
436 (io_uring_setup) Likewise.
437 (mq_timedreceive_time64) Likewise.
438 (mq_timedsend_time64) Likewise.
439 (pidfd_send_signal) Likewise.
440 (ppoll_time64) Likewise.
441 (pselect6_time64) Likewise.
442 (recvmmsg_time64) Likewise.
443 (rt_sigtimedwait_time64) Likewise.
444 (sched_rr_get_interval_time64) Likewise.
445 (semtimedop_time64) Likewise.
446 (timer_gettime64) Likewise.
447 (timer_settime64) Likewise.
448 (timerfd_gettime64) Likewise.
449 (timerfd_settime64) Likewise.
450 (utimensat_time64) Likewise.
451
452 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
453 version to 9 branch.
454
455 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
456
457 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
458 __memmove_thunderx2 to the list of implementations
459 * sysdeps/aarch64/multiarch/memmove.c: Likewise
460 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
461 (__memmove_thunderx2): Rewritten using SIMD ld/st
462 (__memcpy_thunderx2): Fixed handling overlapping cases.
463 Used ldp/stp instead of ldr/str if possible. Made loops
464 tails branchless.
465
466 2019-05-03 Florian Weimer <fweimer@redhat.com>
467
468 * misc/tst-tsearch.c (walk_tree): Add more error checking.
469
470 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
471
472 [BZ #24506]
473 * elf/tst-pldd.c (in_str_list): New function.
474 (do_test): Add default names for ld and libc as one option.
475
476 2019-05-02 Florian Weimer <fweimer@redhat.com>
477
478 misc: Add twalk_r function.
479 * include/search.h (__twalk_r): Declare.
480 * manual/examples/twalk.c: New file.
481 * manual/search.texi (Tree Search Function): Document twalk_r.
482 * misc/Versions (2.30): Export twalk_r.
483 (GLIBC_PRIVATE): Export __twalk_r.
484 * misc/search.h [__USE_GNU] (twalk_r): Declare.
485 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
486 (twalk_r): Add weak alias.
487 * misc/tst-tsearch.c (struct walk_trace_element): Define.
488 (walk_trace): New variable.
489 (struct twalk_with_twalk_r_closure): Define.
490 (twalk_with_twalk_r_action): New function.
491 (twalk_with_twalk_r): Likewise.
492 (walk_action): Call walk_trace_add.
493 (walk_tree_with): Rename from walk_tree. Add walk argument.
494 (walk_tree): New function.
495 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
496 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
497 Likewise.
498 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
499 Likewise.
500 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
501 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
502 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
503 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
504 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
505 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
506 Likewise.
507 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
508 Likewise.
509 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
510 Likewise.
511 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
512 (GLIBC_2.30): Likewise.
513 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
514 (GLIBC_2.30): Likewise.
515 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
516 (GLIBC_2.30): Likewise.
517 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
518 (GLIBC_2.30): Likewise.
519 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
520 Likewise.
521 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
522 (GLIBC_2.30): Likewise.
523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
524 (GLIBC_2.30): Likewise.
525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
526 (GLIBC_2.30): Likewise.
527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
528 (GLIBC_2.30): Likewise.
529 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
530 Likewise.
531 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
532 Likewise.
533 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
534 Likewise.
535 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
536 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
537 Likewise.
538 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
539 Likewise.
540 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
541 Likewise.
542 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
543 Likewise.
544
545 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
546
547 Make mktime etc. compatible with __time64_t
548 Keep these functions compatible with Gnulib while adding
549 __time64_t support. The basic idea is to move private API
550 declarations from include/time.h to time/mktime-internal.h, since
551 the former file cannot easily be shared with Gnulib whereas the
552 latter can.
553 Also, do some other minor cleanup while in the neighborhood.
554 * include/time.h: Include stdbool.h, time/mktime-internal.h.
555 (__mktime_internal): Move this prototype to time/mktime-internal.h,
556 since Gnulib needs it.
557 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
558 Move these macros to time/mktime-internal.h, since Gnulib needs them.
559 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
560 (in_time_t_range): New static function.
561 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
562 so that glibc users are not tempted to use __time64_t.
563 * time/mktime-internal.h: Rewrite so that it does both glibc
564 and Gnulib work. Include time.h if not _LIBC.
565 (mktime_offset_t) [!_LIBC]: Define for gnulib.
566 (__time64_t): New type or macro, moved here from
567 posix/bits/types.h.
568 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
569 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
570 from include/time.h.
571 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
572 New macros, taken from GNulib.
573 (__mktime_internal): New prototype, moved here from include/time.h.
574 * time/mktime.c (mktime_min, mktime_max, convert_time)
575 (ranged_convert, __mktime_internal, __mktime64):
576 * time/timegm.c (__timegm64):
577 Use __time64_t, not time_t.
578 * time/mktime.c: Stop worrying about whether time_t is floating-point.
579 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
580 Rename from mktime.
581 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
582 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
583 for libc_hidden_def.
584 Include errno.h.
585 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
586 Rename from timegm.
587 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
588
589 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
590
591 [BZ #19444]
592 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
593 from `-Wmaybe-uninitialized'.
594 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
595
596 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
597
598 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
599 function.
600 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
601 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
602 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
603 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
604 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
605 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
606 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
607 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
608 Remove file.
609 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
610 Likewise.
611 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
612 Likewise.
613 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
614 Likewise.
615 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
616 New file.
617 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
618 Likewise.
619 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
620 Likewise.
621 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
622 Likewise.
623 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
624 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
625 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
626 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
627 Likewise.
628 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
629 Likewise.
630 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
631 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
632 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
633 file.
634 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
635 Likewise.
636 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
637 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
638 * here.
639 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
640 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
641 s_ceilf-power5+, and s_ceilf-ppc64.
642 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
643 file.
644 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
645 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
646 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
647 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
648 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
649 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
650 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
651
652 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
653 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
654 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
655
656 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
657
658 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
659 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
660 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
661 (sem_getvalue): Likewise.
662
663 2019-04-26 Florian Weimer <fweimer@redhat.com>
664
665 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
666 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
667
668 2019-04-26 Florian Weimer <fweimer@redhat.com>
669
670 Makeconfig: Move -Wl,-rpath-link options before library references.
671 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
672 (link-libc): Remove $(link-libc-rpath-link).
673
674 2019-04-25 Florian Weimer <fweimer@redhat.com>
675
676 * Makeconfig (+link-pie-before-libc): Remove $(CC).
677 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
678 (+link-static-before-libc): Remove $(CC).
679 (+link-static, +link-static-tests): Add $(CC).
680 (+link-before-libc): Remove $(CC).
681 (+link, +link-pie, +link-pie-printers): Add $(CC).
682
683 2019-04-26 Florian Weimer <fweimer@redhat.com>
684
685 * Makeconfig (+link-pie-before-libc): Remove $(CC).
686 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
687 (+link-static-before-libc): Remove $(CC).
688 (+link-static, +link-static-tests): Add $(CC).
689 (+link-before-libc): Remove $(CC).
690 (+link, +link-pie, +link-pie-printers): Add $(CC).
691
692 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
693
694 [BZ#24484]
695 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
696
697 2019-04-25 Florian Weimer <fweimer@redhat.com>
698
699 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
700 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
701 (bench-link-targets): New variable.
702 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
703
704 2019-04-25 Florian Weimer <fweimer@redhat.com>
705
706 Also enable BIND_NOW for programs if --enable-bind-now.
707 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
708 (+link-pie): Use $(link-extra-flags).
709 (+link-static): Likewise.
710 [! $(build-pie-default)] (+link): Likewise.
711 * manual/install.texi (Configuring and compiling): Update
712 --enable-bind-now description.
713 * INSTALL: Regenerated.
714
715 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
716
717 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
718 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
719
720 2019-04-24 Mike Frysinger <vapier@gentoo.org>
721
722 [BZ #18465]
723 * malloc/Makefile (others): Add memusagestat.
724 ($(objpfx)memusagestat): Delete rule.
725 (LDLIBS-memusagestat): New variable.
726
727 2019-04-24 Florian Weimer <fweimer@redhat.com>
728
729 * locale/Makefile (tests-special): Guard setting by
730 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
731 to run while cross-compiling.
732
733 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
734
735 [BZ #18035]
736 * elf/Makefile (tests-container): Add tst-pldd.
737 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
738 (E(find_maps)): Avoid use alloca, use default read file operations
739 instead of explicit LFS names, and fix infinite loop.
740 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
741 (get_process_info): Use _Static_assert instead of assert, use default
742 directory operations instead of explicit LFS names, and free some
743 leadek pointers.
744 * elf/tst-pldd.c: New file.
745
746 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
747
748 * malloc/arena.c (do_set_mallopt_check): Removed.
749
750 2019-04-23 Florian Weimer <fweimer@redhat.com>
751
752 locale: Add LOCPATH diagnostics to the locale program.
753 * locale/programs/locale.c (setlocale_failed): New variable.
754 (try_setlocale): New function.
755 (quote_string): Likewise.
756 (setlocale_diagnostics): Likewise.
757 (main): Call try_setlocale instead of setlocale. Call
758 setlocale_diagnostics.
759 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
760 (tst-locale-locpath.out): New target.
761 * locale/tst-locale-locpath.sh: New file.
762
763 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
764
765 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
766 to 2.30 notes.
767
768 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
769
770 [BZ #23741]
771 * malloc/hooks.c (malloc_check, realloc_check): Use
772 __builtin_add_overflow on overflow check and adapt to
773 checked_request2size change.
774 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
775 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
776 allocation size to PTRDIFF_MAX.
777 (REQUEST_OUT_OF_RANGE): Remove macro.
778 (checked_request2size): Change to inline function and limit maximum
779 requested size to PTRDIFF_MAX.
780 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
781 maximum allocation size to PTRDIFF_MAX.
782 (_mid_memalign): Use _int_memalign call for overflow check.
783 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
784 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
785 limit maximum requested size to PTRDIFF_MAX.
786 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
787 valloc, pvalloc): Add __attribute_alloc_size__.
788 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
789 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
790 larger than PTRDIFF_MAX.
791 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
792 around tests of malloc with negative sizes.
793 * malloc/tst-posix_memalign.c (do_test): Likewise.
794 * malloc/tst-pvalloc.c (do_test): Likewise.
795 * malloc/tst-valloc.c (do_test): Likewise.
796 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
797 with resulting size allocation larger than PTRDIFF_MAX with
798 reallocarray_nowarn.
799 (reallocarray_nowarn): New function.
800 * NEWS: Mention the malloc function semantic change.
801
802 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
803
804 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
805 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
806
807 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
808 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
809 * sysdeps/powerpc/fpu/s_fma.c: New file.
810 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
811
812 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
813 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
814
815 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
816 the magic flag store.
817 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
818 Likewise.
819 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
820 Likewise.
821 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
822 Remove rt_sigreturn call.
823
824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
825 Remove rt_sigreturn call.
826 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
827 Likewise.
828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
829 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
830
831 * support/Makefile (libsupport-routines): Add support_subprocess,
832 xposix_spawn, xposix_spawn_file_actions_addclose, and
833 xposix_spawn_file_actions_adddup2.
834 (tst-support_capture_subprocess-ARGS): New rule.
835 * support/capture_subprocess.h (support_capture_subprogram): New
836 prototype.
837 * support/support_capture_subprocess.c (support_capture_subprocess):
838 Refactor to use support_subprocess and support_capture_poll.
839 (support_capture_subprogram): New function.
840 * support/tst-support_capture_subprocess.c (write_mode_to_str,
841 str_to_write_mode, test_common, parse_int, handle_restart,
842 do_subprocess, do_subprogram, do_multiple_tests): New functions.
843 (do_test): Add support_capture_subprogram tests.
844 * support/subprocess.h: New file.
845 * support/support_subprocess.c: Likewise.
846 * support/xposix_spawn.c: Likewise.
847 * support/xposix_spawn_file_actions_addclose.c: Likewise.
848 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
849 * support/xspawn.h: Likewise.
850
851 2019-04-17 Mike Gerow <gerow@google.com>
852
853 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
854 groups limit.
855
856 2019-04-11 Florian Weimer <fweimer@redhat.com>
857
858 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
859 domain with empty string.
860 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
861
862 2019-04-11 Florian Weimer <fweimer@redhat.com>
863
864 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
865 comment.
866 (alloc_buffer_next): Change return type to non-const. Update
867 comment.
868
869 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
870
871 * manual/time.texi (Formatting Calendar Time): Add missing percent
872 sign to conversion specifier.
873
874 2019-04-09 Carlos O'Donell <carlos@redhat.com>
875 Kwok Cheung Yeung <kcy@codesourcery.com>
876
877 [BZ #16573]
878 * malloc/mtrace.c: Define prototypes for all hooks.
879 (set_default_hooks): New function.
880 (set_trace_hooks): Likewise.
881 (save_default_hooks): Likewise.
882 (tr_freehook): Use new s*_hooks functions.
883 (tr_mallochook): Likewise.
884 (tr_reallochook): Likewise.
885 (tr_memalignhook): Likewise.
886 (mtrace): Likewise.
887 (muntrace): Likewise.
888
889 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
890
891 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
892 (generic_stpcpy): New function.
893 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
894 (generic_stpncpy): New function.
895 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
896 (generic_strcat): New function.
897 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
898 (generic_strcpy): New function.
899 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
900 (STUPID_STRNCAT): Remove function.
901 (generic_strncat): New function.
902 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
903 (STUPID_STRNCPY): Remove function.
904 (generic_strncpy): New function.
905 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
906 (generic_strnlen): New function.
907 (memchr_strnlen): New function.
908 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
909 (memchr_strlen): Likewise.
910
911 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
912
913 * benchtests/bench-strstr.c (input): Add realistic input text.
914 (stupid_strstr): Remove function.
915 (basic_strstr): Add function.
916 (twoway_strstr): Add function.
917 (do_one_test): Add result checking.
918 (do_test): Use new input text. Remove accidental early matches.
919 (test_main): Improve range of tests, reduce unaligned cases.
920
921 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
922
923 * benchtests/bench-memmem.c (simple_memmem): Remove function.
924 (basic_memmem): Add function.
925 (twoway_memmem): Add function.
926
927 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
928
929 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
930 * benchtests/bench-malloc-thread.c: Likewise.
931 * benchtests/bench-skeleton.c: Likewise.
932 * benchtests/bench-strtod.c: Likewise.
933 * benchtests/bench-timing.h: Likewise.
934
935 2019-04-08 Florian Weimer <fweimer@redhat.com>
936
937 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
938 definitions.
939 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
940 RES_INSECURE2 security checks.
941 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
942 RES_INSECURE2 handling.
943
944 2019-04-08 Florian Weimer <fweimer@redhat.com>
945
946 resolv: Remove support for RES_USE_INET6 and the inet6 option.
947 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
948 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
949 GETHOSTBYNAME.
950 * resolv/Makefile (tests): Remove tst-res_use_inet6.
951 (tests-internal): Update justification for tst-resolv-res_init,
952 tst-resolv-res_init-thread.
953 (tst-res_use_inet6): Remove target.
954 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
955 * resolv/res_debug.c (p_option): Remove "inet6" support.
956 * resolv/res_init.c (res_setoptions): Likewise.
957 * resolv/res_use_inet6.h: Remove file.
958 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
959 definition.
960 (res_use_inet6): Always return false.
961 * resolv/resolv.h (RES_USE_INET6): Remove definition.
962 * resolv/resolv_context.h: Adjust file comment.
963 (struct resolv_context): Update comment on __next field.
964 (__resolv_context_put): Update comment.
965 * resolv/tst-res_use_inet6.c: Remove file.
966 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
967 "inet6" support.
968 (test_cases): Adjust test case.
969 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
970 (thread_byname2_af_inet6): Use old byname_inet6 code.
971 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
972 (gai): Remove do_inet6 argument.
973 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
974 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
975 (thread_gai_unspec_inet6): Remove functions.
976 (do_test): Adjust thread_funcs.
977 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
978 RES_USE_INET6 flag.
979 (gaih_inet): Do not disable RES_USE_INET6 flag.
980
981 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
982
983 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
984 and remove redundant code.
985
986 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
987
988 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
989 New rule.
990 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
991 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
992 Likewise.
993 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
994 Likewise.
995 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
996 Likewise.
997 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
998 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
999 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1000 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1001 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1002 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1003 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1004 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1005 wcsrchr-power7.
1006 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1007 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1008 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1009 Remove wcsrchr optimizations.
1010 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1011
1012 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1013 the loop unroll.
1014
1015 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1016 New rule.
1017 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1018 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1019 Likewise.
1020 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1021 Likewise.
1022 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1023 Likewise.
1024 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1025 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1026 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1027 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1028 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1029 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1030 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1031 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1032 wcschr-power7.
1033 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1034 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1035 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1036 Remove wcschr optimizations.
1037 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1038
1039 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1040 the loop unroll.
1041
1042 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1043 New rule.
1044 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1045 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1046 Likewise.
1047 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1048 Likewise.
1049 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1050 Likewise.
1051 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1052 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1053 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1054 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1055 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1056 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1057 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1058 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1059 wcscpy-power7.
1060 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1061 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1062 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1063 Remove wcscpy optimizations.
1064 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1065
1066 * include/loop_unroll.h: New file.
1067 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1068 besides generic implementation.
1069
1070 2019-04-03 DJ Delorie <dj@redhat.com>
1071
1072 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1073 snprintf truncating output.
1074
1075 2019-04-02 DJ Delorie <dj@redhat.com>
1076
1077 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1078 warning.
1079
1080 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1081
1082 [BZ #22964]
1083 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1084 era.
1085 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1086 (mkreftable): Add rules for the new Japanese era and the new dates.
1087
1088 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1089 Rafal Luzynski <digitalfreak@lingonborough.com>
1090
1091 * time/tst-strftime2.c (date_t): Explicitly define the type.
1092 (dates): Use natural month and year numbers to express a date.
1093 (is_before): New function to compare dates.
1094 (mkreftable): Minor improvements to simplify maintenance.
1095 (do_test): Reflect the changes in dates array.
1096
1097 [BZ #24293]
1098 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1099 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1100 * time/tst-strftime2.c (locales): Likewise.
1101 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1102 2010-04-01, and 2011-04-01.
1103 (mkreftable): Add rules for the new locales and the new dates.
1104
1105 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1106
1107 * localedata/locales/ja_JP: Add comments to era entries.
1108
1109 2019-04-01 DJ Delorie <dj@redhat.com>
1110
1111 [BZ #24394]
1112 * time/strptime_l.c (%Ey): Fix fencepost error.
1113 * time/tst-strftime3.c: New.
1114 * time/Makefile (tests): Add tst-strftime3.
1115
1116 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1117
1118 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1119 conditional branch to DIVBYZERO. Fix unwind info.
1120 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1121 excb after conditional branch to $powerof2. Add missing unop
1122 instructions and .align directives and reorder instructions to
1123 match __divqu.
1124
1125 2019-04-01 Richard Henderson <rth@twiddle.net>
1126
1127 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1128 Do not redefine.
1129 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1130 Do not redefine.
1131
1132 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1133
1134 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1135 $libc_cv_riscv_float_abi in `test' invocation.
1136 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1137
1138 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1139
1140 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1141 asm with builtin.
1142 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1143 Likewise.
1144 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1145 (_GET_SI_FPSCR): Likewise.
1146 (_SET_SI_FPSCR): Likewise.
1147
1148 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1149
1150 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1151 clang 2.8.
1152 (signbit): Use builtin for clang 3.3.
1153 (isinf): Use builtin for clang 3.7.
1154
1155 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1156
1157 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1158
1159 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1160
1161 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1162 quote in printf.
1163
1164 2019-03-25 Mike Crowe <mac@mcrowe.com>
1165
1166 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1167 pthread_rwlock_timedrdlock with calls to
1168 pthread_rwlock_timedwrlock to ensure that the latter is tested
1169 too. Use new function name in diagnostic messages too.
1170
1171 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1172 (do_test) Use libsupport test macros rather than hand-coded
1173 conditionals and error messages. Ensure that sem_init returns zero
1174 rather than not -1. Use <support/test-driver.c> rather than
1175 test-skeleton.c.
1176
1177 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1178 test macros rather than hand-coded conditionals and error messages.
1179 Use <support/test-driver.c> rather than test-skeleton.c.
1180
1181 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1182
1183 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1184
1185 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1186 (NT_MIPS_MSA): Likewise.
1187
1188 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1189
1190 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1191 * benchtests/README: Update description.
1192 * benchtests/bench-timing.h: Default to hp-timing.
1193 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1194 HP_TIMING_PRINT): Remove.
1195 (HP_TIMING_NOW): Add generic implementation.
1196 (hp_timing_t): Change to uint64_t.
1197
1198 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1199 HP_TIMING_INLINE.
1200 * nptl/descr.h: Likewise.
1201 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1202 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1203 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1204 Abstract hp-timing usage with RTLD_* macros.
1205 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1206 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1207 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1208 HP_TIMING_NONAVAIL): Likewise.
1209 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1210 Likewise.
1211 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1212 HP_SMALL_TIMING_AVAIL): Likewise.
1213 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1214 HP_SMALL_TIMING_AVAIL): Likewise.
1215 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1216 HP_SMALL_TIMING_AVAIL): Likewise.
1217 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1218 HP_SMALL_TIMING_AVAIL): Likewise.
1219 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1220 Likewise.
1221 * sysdeps/generic/hp-timing-common.h: Update comment with
1222 HP_TIMING_AVAIL removal.
1223
1224 * include/random-bits.h: New file.
1225 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1226 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1227 random_bits.
1228 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1229 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1230 Likewise.
1231
1232 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1233 * rt/Makefile (clock-routines): Remove get_clockfreq.
1234 * rt/get_clockfreq.c: Remove file.
1235 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1236 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1237 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1238 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1239 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1240
1241 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1242 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1243 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1244 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1245 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1246
1247 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1248 pthread_clock_settime.
1249 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1250 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1251 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1252 * elf/rtld.c (_dl_start_final): Likewise.
1253 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1254 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1255 Remove.
1256 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1257 (_dl_cpuclock_offset): Remove.
1258 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1259 cpuclock_offset_ununsed.
1260 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1261 cpuclock_offset set.
1262 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1263 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1264 * nptl/pthread_clock_gettime.c: Remove file.
1265 * nptl/pthread_clock_settime.c: Likewise.
1266 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1267 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1268 and CLOCK_PROCESS_CPUTIME_ID support.
1269 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1270 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1271 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1272 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1273 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1274 Likewise.
1275 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1276
1277 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1278
1279 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1280 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1281 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1282 New defines.
1283 * sysdeps/s390/memmem-arch13.S: New file.
1284 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1285 if it is only used as fallback.
1286 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1287 * sysdeps/s390/multiarch/ifunc-impl-list.c
1288 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1289
1290 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1291
1292 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1293 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1294 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1295 New defines.
1296 * sysdeps/s390/multiarch/ifunc-impl-list.c
1297 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1298 * sysdeps/s390/strstr-arch13.S: New file.
1299 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1300 if it is only used as fallback.
1301 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1302
1303 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1304
1305 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1306 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1307 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1308 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1309 ifunc selector.
1310 * sysdeps/s390/multiarch/ifunc-impl-list.c
1311 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1312 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1313 S390_IS_ARCH13_MIE3): New defines.
1314
1315 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1316
1317 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1318 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1319 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1320 * sysdeps/s390/configure: Regenerated.
1321
1322 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1323
1324 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1325 Add vxe2, vxp, dflt, sort flags.
1326 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1327 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1328 capabilities.
1329 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1330 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1331 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1332 HWCAP_S390_DFLT): Define.
1333
1334 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1335
1336 [BZ #24372]
1337 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1338 of compiler warning.
1339 * locale/programs/ld-collate.c (collate_output): Likewise.
1340
1341 2019-03-21 DJ Delorie <dj@redhat.com>
1342
1343 [BZ #24372]
1344 * iconv/iconvconfig.c (write_output): Replace floating point math
1345 with integer math to avoid imprecise results.
1346 * locale/programs/ld-collate.c (collate_output): Likewise.
1347
1348 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1349
1350 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1351 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1352
1353 2019-03-20 mansayk <6688000@gmail.com>
1354
1355 [BZ #24296]
1356 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1357 (abday): Likewise, but remove the trailing dots.
1358
1359 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1360
1361 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1362 macro.
1363 (HWCAP_PACA): Likewise.
1364 (HWCAP_PACG): Likewise.
1365 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1366 Increase to 32.
1367 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1368
1369 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1370
1371 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1372 should be handled.
1373
1374 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1375
1376 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1377 version to 5.0.
1378 (old_getpagesize): New syscall.
1379
1380 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1381
1382 [BZ #24293]
1383 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1384 * localedata/locales/cmn_TW (era): Likewise.
1385 * localedata/locales/hak_TW (era): Likewise.
1386 * localedata/locales/lzh_TW (era): Likewise.
1387 * localedata/locales/nan_TW (era): Likewise.
1388
1389 2019-03-14 Adam Maris <amaris@redhat.com>
1390
1391 * malloc/malloc.c (_int_malloc): Check for large bin list
1392 corruption when inserting unsorted chunk.
1393
1394 2019-03-14 Florian Weimer <fweimer@redhat.com>
1395
1396 Remove obsolete, never-implemented XSI STREAMS declarations.
1397 * manual/terminal.texi (Allocation): Remove portability note and
1398 adjust example.
1399 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1400 _SC_STREAMS.
1401 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1402 * sysdeps/unix/inet/Subdirs (streams): Remove.
1403 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1404 (conformtest-headers-UNIX98): Likewise.
1405 (conformtest-headers-XOPEN2K): Likewise.
1406 (conformtest-headers-POSIX2008): Likewise.
1407 * posix/compat-streams.c: New file.
1408 * posix/Makefile (routines): Add it.
1409 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1410 getpmsg, isastream, putmsg, putpmsg.
1411 (GLIBC_2.30): New section.
1412 * bits/stropts.h: Remove file.
1413 * bits/xtitypes.h: Likewise.
1414 * conform/data/stropts.h-data: Likewise.
1415 * include/stropts.h: Likewise.
1416 * include/sys/stropts.h: Likewise.
1417 * include/xtitypes.h: Likewise.
1418 * streams/Makefile: Likewise.
1419 * streams/fattach.c: Likewise.
1420 * streams/fdetach.c: Likewise.
1421 * streams/getmsg.c: Likewise.
1422 * streams/getpmsg.c: Likewise.
1423 * streams/isastream.c: Likewise.
1424 * streams/putmsg.c: Likewise.
1425 * streams/putpmsg.c: Likewise.
1426 * streams/stropts.h: Likewise.
1427 * streams/sys/stropts.h: Likewise.
1428 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1429 * sysdeps/s390/bits/xtitypes.h: Likewise.
1430 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1431 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1432 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1433 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1434 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1435 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1436 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1437 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1438 * sysdeps/x86/bits/xtitypes.h: Likewise.
1439
1440 2019-03-14 Florian Weimer <fweimer@redhat.com>
1441
1442 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1443 libnss_files.
1444 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1445 but not with libnss_files.
1446 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1447
1448 2019-03-14 Zack Weinberg <zackw@panix.com>
1449
1450 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1451 Specify encoding="utf-8" when opening headers to check.
1452
1453 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1454
1455 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1456 version to 5.0.
1457 (Context.checkout_tar): Handle variable major version for Linux
1458 kernel.
1459
1460 2019-03-13 Florian Weimer <fweimer@redhat.com>
1461
1462 [BZ #24047]
1463 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1464
1465 2019-03-13 Zack Weinberg <zackw@panix.com>
1466
1467 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1468 Move to stdlib.
1469 * include/inttypes.h: Adjust to match.
1470 * include/stdint.h: New wrapper.
1471
1472 2019-03-13 Zack Weinberg <zackw@panix.com>
1473
1474 * scripts/check-obsolete-constructs.py: New test script.
1475 * scripts/check-installed-headers.sh: Remove tests for
1476 obsolete typedefs, superseded by check-obsolete-constructs.py.
1477 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1478 as a special test. Update commentary.
1479 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1480 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1481 Update commentary.
1482 * posix/sys/types.h (__u_intN_t): Remove.
1483 (u_int8_t): Typedef using __uint8_t.
1484 (u_int16_t): Typedef using __uint16_t.
1485 (u_int32_t): Typedef using __uint32_t.
1486 (u_int64_t): Typedef using __uint64_t.
1487
1488 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1489
1490 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1491 call _dl_procinfo.
1492 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1493 Ignore types other than AT_HWCAP.
1494 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1495 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1496 Likewise.
1497 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1498 in the case of falling back to generic output mechanism.
1499 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1500 Likewise.
1501
1502 2019-03-12 Florian Weimer <fweimer@redhat.com>
1503
1504 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1505
1506 2019-03-12 Florian Weimer <fweimer@redhat.com>
1507
1508 [BZ #24047]
1509 resolv: Enable full ICMP errors for UDP DNS sockets
1510 * resolv/res_enable_icmp.c: New file.
1511 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1512 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1513 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1514 socket.
1515
1516 2019-03-11 Mao Han <han_mao@c-sky.com>
1517
1518 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1519 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1520
1521 2019-03-11 Mao Han <han_mao@c-sky.com>
1522
1523 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1524 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1525 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1526
1527 2019-03-11 Mao Han <han_mao@c-sky.com>
1528
1529 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
1530 directly.
1531 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
1532 definition.
1533
1534 2019-03-11 Mao Han <han_mao@c-sky.com>
1535
1536 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
1537 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
1538 in mcontext_t
1539
1540 2019-03-08 Mike FABIAN <mfabian@redhat.com>
1541
1542 [BZ #24307]
1543 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
1544 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1545 Unicode 12.0.0.
1546 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1547 * localedata/unicode-gen/PropList.txt: Likewise.
1548 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1549 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
1550 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
1551 * localedata/charmaps/UTF-8: Regenerate.
1552 * localedata/locales/i18n_ctype: Likewise.
1553 * localedata/locales/tr_TR: Likewise.
1554 * localedata/locales/translit_circle: Likewise.
1555 * localedata/locales/translit_cjk_compat: Likewise.
1556 * localedata/locales/translit_combining: Likewise.
1557 * localedata/locales/translit_compat: Likewise.
1558 * localedata/locales/translit_font: Likewise.
1559 * localedata/locales/translit_fraction: Likewise.
1560
1561 2019-03-07 Joseph Myers <joseph@codesourcery.com>
1562
1563 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
1564 than after operators.
1565 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
1566 (setitimer_locked): Likewise.
1567 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1568 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1569 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
1570 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
1571 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
1572 (PPC_CPU_SUPPORTED): Likewise.
1573 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
1574 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
1575 (stat_overflow): Likewise.
1576 (statfs_overflow): Likewise.
1577 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
1578 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
1579 (eq_ttyname_r): Likewise.
1580 (run_chroot_tests): Likewise.
1581
1582 2019-03-07 Florian Weimer <fweimer@redhat.com>
1583
1584 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
1585 header check.
1586
1587 2019-03-07 Martin Liska <mliska@suse.cz>
1588
1589 * math/Makefile: Change location where math-vector-fortran.h is
1590 installed.
1591 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
1592 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
1593 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
1594 * scripts/check-installed-headers.sh: Skip Fortran header files.
1595 * scripts/check-wrapper-headers.py: Likewise.
1596
1597 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1598
1599 * nptl/nptl-init.c (__have_futex_clock_realtime,
1600 __have_futex_clock_realtime): Remove definition.
1601 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
1602 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
1603 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
1604 __ASSUME_FUTEX_CLOCK_REALTIME support.
1605 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1606 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1607 * sysdeps/unix/sysv/linux/kernel-features.h
1608 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
1609 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
1610 Adjust comment.
1611
1612 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1613
1614 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
1615 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
1616 __GI___wcscpy and wcscpy.
1617
1618 2019-03-04 Florian Weimer <fweimer@redhat.com>
1619
1620 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
1621 declaration.
1622 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
1623 defined.
1624
1625 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
1626
1627 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
1628 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1629
1630 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1631
1632 [BZ #24162]
1633 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
1634 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
1635
1636 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1637
1638 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
1639 tests.
1640 (do_test): Likewise.
1641 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1642 (do_test_call_varg): Likewise.
1643 (do_test_call_rarg): Likewise.
1644 * sysdeps/ieee754/ldbl-opt/Makefile
1645 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
1646 tst-nldbl-error.
1647 ($(objpfx)tst-nldbl-warn.c): New rule.
1648 ($(objpfx)tst-nldbl-error.c): Likewise.
1649 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
1650 New variables.
1651
1652 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1653
1654 [BZ #23984]
1655 * include/bits/error-ldbl.h: New file.
1656 * include/error.h: Include stdarg.h. Declare internal functions
1657 __error_internal and __error_at_line_internal.
1658 * misc/Makefile (headers): Add bits/error-ldbl.h.
1659 * misc/bits/error-ldbl.h: New file.
1660 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
1661 avoid the inclusion of bits/error.h.
1662 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
1663 and __nldbl_error_at_line.
1664 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
1665 (__nldbl_error, __ndlbl_error_at_line): New functions.
1666 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
1667 Redirect error and error_at_line.
1668 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1670 Likewise.
1671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1672 Likewise.
1673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1674 Likewise.
1675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1676 Likewise.
1677 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1678 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1679 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1680
1681 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1682
1683 [BZ #23984]
1684 * include/bits/err-ldbl.h: New file.
1685 * include/err.h: Add prototypes for the internal functions:
1686 __vwarnx_internal and __vwarn_internal.
1687 * misc/Makefile (headers): Add bits/err-ldbl.h.
1688 * misc/bits/err-ldbl.h: New file.
1689 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
1690 defined, i.e.: when -mlong-double-64 is in use.
1691 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
1692 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
1693 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
1694 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
1695 (VA_CALL): New macro.
1696 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
1697 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
1698 functions.
1699 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
1700 declare prototypes for the new functions.
1701 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1703 Likewise.
1704 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1705 Likewise.
1706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1707 Likewise.
1708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1709 Likewise.
1710 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1711 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1712 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1713
1714 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1715
1716 * sysdeps/ieee754/ldbl-opt/Makefile
1717 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
1718 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
1719 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
1720
1721 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1722
1723 [BZ #23983]
1724 * argp/Makefile (headers): Add bits/argp-ldbl.h.
1725 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
1726 * argp/bits/argp-ldbl.h: New file.
1727 * include/argp.h: Include stdarg.h. Add prototypes for internal
1728 functions: __argp_error_internal and __argp_failure_internal.
1729 * include/bits/argp-ldbl.h: New file.
1730 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
1731 __nldbl_argp_error and __nldbl_argp_failure.
1732 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
1733 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
1734 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
1735 Redirect argp_error and argp_failure calls.
1736 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1738 Likewise.
1739 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1740 Likewise.
1741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1742 Likewise.
1743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1744 Likewise.
1745 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1746 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1747 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1748
1749 2019-03-01 Florian Weimer <fweimer@redhat.com>
1750
1751 [BZ #20419]
1752 * elf/tst-big-note-lib.S: Create a syntactically valid note.
1753 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
1754 code, to avoid creating an ABI tag note.
1755 (modules-names-nobuild): Add tst-big-note-lib.
1756
1757 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
1758
1759 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
1760 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
1761
1762 2019-03-01 Florian Weimer <fweimer@redhat.com>
1763
1764 [BZ #20271]
1765 * sysdeps/unix/sysv/linux/netlink_assert_response.c
1766 (__netlink_assert_response): Add additional missing newlines.
1767
1768 2019-02-28 Joseph Myers <joseph@codesourcery.com>
1769
1770 * sysdeps/powerpc/powerpc32/dl-machine.c
1771 (__elf_machine_fixup_plt): Use space before '('.
1772 (__process_machine_rela): Likewise.
1773 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
1774 Likewise.
1775 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
1776 Likewise.
1777 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
1778 Likewise.
1779 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
1780 (pattern): Likewise.
1781 (delta): Likewise.
1782 (check_result): Likewise.
1783 (check_excepts): Likewise.
1784 (check_op): Likewise.
1785 (fail_xr): Likewise.
1786 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
1787 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
1788 (SCNHSZ): Likewise.
1789 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
1790 Likewise.
1791 (ARGS): Likewise.
1792 (__makecontext): Likewise.
1793 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
1794 Likewise.
1795
1796 2019-02-28 Florian Weimer <fweimer@redhat.com>
1797
1798 [BZ #23937]
1799 elf: Add test with a local IFUNC resolver.
1800 * elf/ifuncmain9.c: New file.
1801 * elf/ifuncmain9pic.c: Likewise.
1802 * elf/ifuncmain9picstatic.c: Likewise.
1803 * elf/ifuncmain9pie.c: Likewise.
1804 * elf/ifuncmain9static.c: Likewise.
1805 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
1806 ifuncmain9static, ifuncmain9picstatic.
1807 * elf/Makefile [multi-arch && build-shared] (tests-internal):
1808 Add ifuncmain9, ifuncmain9pic.
1809 * elf/Makefile [multi-arch && build-shared && have-fpie]
1810 (ifunc-pie-tests): Add ifuncmain9pie.
1811 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
1812 (CFLAGS-ifuncmain9picstatic.c): Likewise.
1813 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
1814
1815 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1816
1817 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
1818 * configure: Regenerated.
1819 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
1820
1821 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1822
1823 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
1824 symbol as __wcspcy instead of wcscpy.
1825
1826 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1827
1828 * include/stdio.h (__renameat2): New hidden prototype.
1829 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
1830 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
1831 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
1832 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
1833
1834 2019-02-27 Joseph Myers <joseph@codesourcery.com>
1835
1836 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
1837 if statement.
1838
1839 * benchtests/bench-strcpy.c (do_test): Use space before '('.
1840 * benchtests/bench-string.h (cmdline_process_function): Likewise.
1841 * benchtests/bench-strlen.c (do_test): Likewise.
1842 (test_main): Likewise.
1843 * catgets/gencat.c (read_old): Likewise.
1844 * elf/cache.c (load_aux_cache): Likewise.
1845 * iconvdata/bug-iconv8.c (do_test): Likewise.
1846 * math/test-tgmath-ret.c (do_test): Likewise.
1847 * nis/nis_call.c (rec_dirsearch): Likewise.
1848 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
1849 * nptl/tst-audit-threads.c (do_test): Likewise.
1850 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
1851 * nss/nss_test1.c (init): Likewise.
1852 * nss/test-netdb.c (test_hosts): Likewise.
1853 * posix/execvpe.c (maybe_script_execute): Likewise.
1854 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
1855 * stdio-common/tst-printf.c (do_test): Likewise.
1856 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
1857 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
1858 * stdlib/qsort.c (STACK_SIZE): Likewise.
1859 * stdlib/test-canon.c (do_test): Likewise.
1860 * stdlib/tst-swapcontext1.c (do_test): Likewise.
1861 * string/memcmp.c (OPSIZ): Likewise.
1862 * string/test-strcpy.c (do_test): Likewise.
1863 (do_random_tests): Likewise.
1864 * string/test-strlen.c (do_test): Likewise.
1865 (test_main): Likewise.
1866 * string/test-strrchr.c (do_test): Likewise.
1867 (do_random_tests): Likewise.
1868 * string/tester.c (test_memrchr): Likewise.
1869 (test_memchr): Likewise.
1870 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
1871 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
1872 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
1873 (read_encoded_value_with_base): Likewise.
1874 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
1875 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
1876 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
1877 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
1878 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
1879 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
1880 Likewise.
1881 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
1882 Likewise.
1883 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
1884 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
1885 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
1886 Likewise.
1887 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
1888 Likewise.
1889 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
1890 Likewise.
1891 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
1892 Likewise.
1893 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
1894 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
1895 (FP_XSTATE_MAGIC2_SIZE): Likewise.
1896 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
1897 * time/test_time.c (main): Likewise.
1898
1899 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1900
1901 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
1902
1903 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
1904 wmemcpy.
1905
1906 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
1907 wmemcpy.
1908
1909 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
1910
1911 * include/wchar.h (__wcscpy): New prototype.
1912 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
1913 (__wcscpy): Route internal symbol to generic implementation.
1914 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
1915 Add internal __wcscpy alias.
1916 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
1917 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
1918 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
1919 * wcsmbs/wcscpy.c (wcscpy): Add
1920 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
1921 use generic implementation.
1922 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
1923
1924 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
1925 wmemset.
1926
1927 * sysdeps/m68k/wcpcpy.c: Remove file.
1928 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
1929
1930 2019-02-26 Joseph Myers <joseph@codesourcery.com>
1931
1932 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
1933 than after operators.
1934 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1935 * sysdeps/mach/hurd/getcwd.c
1936 (__hurd_canonicalize_directory_name_internal): Likewise.
1937 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
1938 (pthread_mutex_consistent): Likewise.
1939 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
1940 Likewise.
1941 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
1942 (__pthread_mutex_transfer_np): Likewise.
1943 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
1944 (__pthread_mutex_unlock): Likewise.
1945 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
1946 (mtx_owned_p): Likewise.
1947 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
1948 (pthread_mutexattr_getrobust): Likewise.
1949 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
1950 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1951 Likewise.
1952 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1953 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
1954 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
1955 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
1956 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
1957 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1958 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
1959 Likewise.
1960 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
1961 Likewise.
1962 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
1963 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
1964 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
1965 (____longjmp_chk): Likewise.
1966 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
1967 Likewise.
1968 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1969 (INTERNAL_SYSCALL): Likewise.
1970 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1971 (INTERNAL_SYSCALL): Likewise.
1972 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1973 (__get_clockfreq_via_cpuinfo): Likewise.
1974
1975 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
1976 comments.
1977 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
1978 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
1979 (WORD_COPY_BWD): Likewise.
1980 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1981 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1982 Likewise.
1983 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
1984 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
1985 comment.
1986 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
1987
1988 2019-02-25 Joseph Myers <joseph@codesourcery.com>
1989
1990 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
1991 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
1992 rather than after operators.
1993 * elf/cache.c (print_cache): Likewise.
1994 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
1995 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
1996 * hurd/hurdinit.c (_hurd_setproc): Likewise.
1997 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
1998 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
1999 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2000 (reauth_proc): Likewise.
2001 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2002 (__file_name_split_at): Likewise.
2003 (__directory_name_split_at): Likewise.
2004 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2005 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2006 * iconv/gconv_dl.c (do_print): Likewise.
2007 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2008 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2009 * locale/setlocale.c (new_composite_name): Likewise.
2010 * malloc/memusagestat.c (main): Likewise.
2011 * misc/fstab.c (fstab_convert): Likewise.
2012 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2013 Likewise.
2014 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2015 (getgrent_next_file): Likewise.
2016 (internal_getgrnam_r): Likewise.
2017 (internal_getgrgid_r): Likewise.
2018 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2019 Likewise.
2020 (internal_getgrent_r): Likewise.
2021 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2022 (getpwent_next_nss): Likewise.
2023 (getpwent_next_file): Likewise.
2024 (internal_getpwnam_r): Likewise.
2025 (internal_getpwuid_r): Likewise.
2026 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2027 Likewise.
2028 (getspent_next_nss): Likewise.
2029 (internal_getspnam_r): Likewise.
2030 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2031 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2032 * string/strchr.c (STRCHR): Likewise.
2033 * string/strchrnul.c (STRCHRNUL): Likewise.
2034 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2035 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2036 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2037 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2038 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2039 Likewise.
2040 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2041 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2042 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2043 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2044 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2045 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2046 (open_file): Likewise.
2047 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2048 (pthread_mutexattr_setprotocol): Likewise.
2049 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2050 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2051 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2052 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2053 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2054 Likewise.
2055 (elf_machine_rela): Likewise.
2056 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2057 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2058 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2059 * sysdeps/posix/rename.c (rename): Likewise.
2060 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2061 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2062 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2063 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2064 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2065 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2066 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2067 Likewise.
2068 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2069 Likewise.
2070 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2071 * time/tzfile.c (__tzfile_compute): Likewise.
2072
2073 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2074
2075 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2076 rather than after operators.
2077 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2078 * crypt/md5.c (md5_finish_ctx): Likewise.
2079 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2080 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2081 * elf/cache.c (load_aux_cache): Likewise.
2082 * elf/dl-load.c (open_verify): Likewise.
2083 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2084 * elf/readelflib.c (process_elf_file): Likewise.
2085 * elf/rtld.c (dl_main): Likewise.
2086 * elf/sprof.c (generate_call_graph): Likewise.
2087 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2088 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2089 * hurd/dtable.c (reauth_dtable): Likewise.
2090 * hurd/getdport.c (__getdport): Likewise.
2091 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2092 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2093 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2094 Likewise.
2095 * hurd/hurdioctl.c (fioctl): Likewise.
2096 * hurd/hurdselect.c (_hurd_select): Likewise.
2097 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2098 (STOPSIGS): Likewise.
2099 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2100 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2101 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2102 * hurd/msgportdemux.c (msgport_server): Likewise.
2103 * hurd/setauth.c (_hurd_setauth): Likewise.
2104 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2105 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2106 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2107 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2108 * login/tst-utmp.c (do_check): Likewise.
2109 (simulate_login): Likewise.
2110 * mach/lowlevellock.h (lll_lock): Likewise.
2111 (lll_trylock): Likewise.
2112 * math/test-fenv.c (ALL_EXC): Likewise.
2113 * math/test-fenvinline.c (ALL_EXC): Likewise.
2114 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2115 * nis/nis_call.c (__do_niscall3): Likewise.
2116 * nis/nis_callback.c (cb_prog_1): Likewise.
2117 * nis/nis_defaults.c (searchaccess): Likewise.
2118 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2119 * nis/nis_ismember.c (internal_ismember): Likewise.
2120 * nis/nis_local_names.c (nis_local_principal): Likewise.
2121 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2122 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2123 Likewise.
2124 * nis/ypclnt.c (yp_match): Likewise.
2125 (yp_first): Likewise.
2126 (yp_next): Likewise.
2127 (yp_master): Likewise.
2128 (yp_order): Likewise.
2129 * nscd/hstcache.c (cache_addhst): Likewise.
2130 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2131 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2132 (internal_getpwuid_r): Likewise.
2133 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2134 * posix/glob.h (__GLOB_FLAGS): Likewise.
2135 * posix/regcomp.c (peek_token): Likewise.
2136 (peek_token_bracket): Likewise.
2137 (parse_expression): Likewise.
2138 * posix/regexec.c (sift_states_iter_mb): Likewise.
2139 (check_node_accept_bytes): Likewise.
2140 * posix/tst-spawn3.c (do_test): Likewise.
2141 * posix/wordexp-test.c (testit): Likewise.
2142 * posix/wordexp.c (parse_tilde): Likewise.
2143 (exec_comm): Likewise.
2144 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2145 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2146 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2147 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2148 * stdio-common/tst-fileno.c (do_test): Likewise.
2149 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2150 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2151 * stdlib/strtod_l.c (round_and_return): Likewise.
2152 (____STRTOF_INTERNAL): Likewise.
2153 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2154 * string/strcspn.c (STRCSPN): Likewise.
2155 * string/test-memmem.c (simple_memmem): Likewise.
2156 * termios/tcsetattr.c (tcsetattr): Likewise.
2157 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2158 * time/asctime.c (asctime_internal): Likewise.
2159 * time/strptime_l.c (__strptime_internal): Likewise.
2160 * time/sys/time.h (timercmp): Likewise.
2161 * time/tzfile.c (__tzfile_compute): Likewise.
2162
2163 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2164
2165 [BZ #21915]
2166 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2167
2168 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2169
2170 * argp/argp-help.c (__argp_error_internal): New function,
2171 renamed from __argp_error, but that takes a 'mode_flags'
2172 parameter to control the format of long double parameters.
2173 (__argp_error): Converted into a call __argp_error_internal.
2174 (__argp_failure_internal): New function, renamed from
2175 __argp_failure, but that takes a 'mode_flags' parameter.
2176 (__argp_failure): Converted into a call __argp_failure_internal.
2177 * misc/err.c (__vwarnx_internal): New function, renamed from
2178 vwarnx, but that takes a 'mode_flags' parameter.
2179 (vwarnx): Converted into a call to __vwarnx_internal.
2180 (__vwarn_internal): New function, renamed from vwarn, but that
2181 takes a 'mode_flags' parameter.
2182 (vwarn): Converted into a call to __vwarn_internal.
2183 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2184 call to __vfxprintf with 'mode_flags'.
2185 (__error_internal): New function, renamed from error, but that
2186 takes a 'mode_flags' parameter.
2187 (error): Converted into a call to __error_internal.
2188 (__error_at_line_internal): New function, renamed from
2189 error_at_line, but that takes a 'mode_flags' parameter.
2190 (error_at_line): Converted into a call to
2191 __error_at_line_internal.
2192 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2193 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2194 Likewise.
2195
2196 2019-02-20 Martin Liska <mliska@suse.cz>
2197
2198 * math/Makefile: Install math-vector-fortran.h.
2199 * bits/math-vector-fortran.h: New file.
2200 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2201
2202 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2203
2204 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2205 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2206
2207 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2208
2209 * nptl/pthread_mutex_trylock.c: Fix comment.
2210
2211 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2212
2213 * nptl/pthread_tryjoin.c: Fix comment.
2214
2215 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2216
2217 [BZ #24231]
2218 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2219 after R_SPARC_H34 case.
2220
2221 2019-02-18 Florian Weimer <fweimer@redhat.com>
2222
2223 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2224 (getanswer): Do not call Dprintf.
2225 (res_gethostbyname2_context): Likewise.
2226 (res_gethostbyaddr_context): Likewise.
2227
2228 2019-02-18 Florian Weimer <fweimer@redhat.com>
2229
2230 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2231 declaration.
2232 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2233 Remove definitions.
2234 * libio/stdfiles.c: Update comment.
2235 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2236 set _IO_stdin, _IO_stdout, _IO_stderr.
2237 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2238 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2239 inline function.
2240 (_IO_deallocate_file): New inline function.
2241 * libio/iolibio.h (_IO_vprintf): Remove definition.
2242 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2243 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2244 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2245 _IO_legacy_file.
2246 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2247 __builtin_expect. Use _IO_legacy_file.
2248
2249 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2250
2251 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2252 Initialize ctid with a known value and remove update of ctid
2253 after clone.
2254 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2255 as assumed current value of ctid_ptr.
2256
2257 2019-02-16 Florian Weimer <fweimer@redhat.com>
2258
2259 Check that non-sysdeps headers have wrapper headers.
2260 * scripts/check-wrapper-headers.py: New file.
2261 * Makefile (tests-special): Add check-wrapper-headers.out.
2262 (check-wrapper-headers.out): New target.
2263 * Rules (tests-special): Add check-wrapper-headers.out.
2264 (check-wrapper-headers.out): New target.
2265
2266 2019-02-16 Florian Weimer <fweimer@redhat.com>
2267
2268 Add missing header wrappers under include/.
2269 * include/ar.h: New file.
2270 * include/bits/mqueue2.h: Likewise.
2271 * include/bits/stdio.h: Likewise.
2272 * include/bits/stdio2.h: Likewise.
2273 * include/fstab.h: Likewise.
2274 * include/fts.h: Likewise.
2275 * include/lastlog.h: Likewise.
2276 * include/netinet/icmp6.h: Likewise.
2277 * include/netinet/igmp.h: Likewise.
2278 * include/netinet/ip6.h: Likewise.
2279 * include/re_comp.h: Likewise.
2280 * include/regexp.h: Likewise.
2281 * include/rpcsvc/bootparam.h: Likewise.
2282 * include/rpcsvc/yp_prot.h: Likewise.
2283 * include/sys/random.h: Likewise.
2284 * include/sys/stropts.h: Likewise.
2285 * include/sys/ttychars.h: Likewise.
2286 * include/sys/vfs.h: Likewise.
2287 * include/wait.h: Likewise.
2288
2289 2019-02-16 Florian Weimer <fweimer@redhat.com>
2290
2291 * nptl_db/proc_service.h: Move to ...
2292 * sysdeps/nptl/proc_service.h: ... here.
2293 * nptl_db/thread_db.h: Move to ...
2294 * sysdeps/nptl/thread_db.h: ... here.
2295 * nptl/descr.h: Include <thread_db.h>.
2296
2297 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2298
2299 * io/Makefile (tests): Add tst-lockf.
2300 * io/lockf.c (lockf): Use __fcntl and only define for
2301 !__OFF_T_MATCHES_OFF64_T.
2302 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2303 __OFF_T_MATCHES_OFF64_T case.
2304 * io/tst-lockf.c: New file.
2305 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2306 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2307 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2308 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2309 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2311 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2312 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2313 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2314
2315 2019-02-15 Florian Weimer <fweimer@redhat.com>
2316
2317 [BZ #24211]
2318 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2319 pd->result after the thread descriptor has been freed.
2320
2321 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2322
2323 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2324 from function return type.
2325
2326 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2327
2328 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2329
2330 * scripts/test_printers_common.py: Set TERM to a known harmless
2331 value.
2332
2333 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2334
2335 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2336 (xdr_u_int): Likewise.
2337 (xdr_enum): Likewise.
2338 (xdr_bytes): Reword fall-through comment.
2339 (xdr_string): Likewise.
2340
2341 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2342
2343 [BZ #2421]
2344 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2345 (tests): Add tst-join8 tst-join9.
2346 * nptl/lll_timedwait_tid.c: Remove file.
2347 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2348 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2349 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2350 * nptl/pthread_join_common.c (timedwait_tid): New function.
2351 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2352 is set.
2353 * nptl/tst-join5.c (thread_join): New function.
2354 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2355 check.
2356 * nptl/tst-join8.c: New file.
2357 * nptl/tst-join9.c: Likewise.
2358 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2359 lll_futex_timed_wait_cancel): Add generic macros.
2360 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2361 Remove definitions.
2362 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2363 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2364 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2365 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2366 Remove function.
2367 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2368 Likewise.
2369 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2370 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2371 (lll_futex_timed_wait_cancel): New macro.
2372
2373 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2374
2375 * benchtests/Makefile: Add malloc-simple benchmark.
2376 * benchtests/bench-malloc-simple.c: New benchmark.
2377
2378 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2379
2380 * benchtests/bench-memmove.c (do_one_test): Remove unused
2381 ORIG_SRC.
2382 (do_test): Adjust.
2383 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2384 ORIG_SRC.
2385 (do_test): Adjust.
2386
2387 2019-01-13 Jim Wilson <jimw@sifive.com>
2388
2389 [BZ #24040]
2390 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2391 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2392 (func): New.
2393 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2394 call func directly.
2395 * nptl/Makefile (tests): Add tst-unwind-thread.
2396 (CFLAGS-tst-unwind-thread.c): Define.
2397 * nptl/tst-unwind-thread.c: New file.
2398 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2399 as undefined.
2400
2401 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2402
2403 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2404 comment wording.
2405 * nis/nis_call.c (__do_niscall3): Likewise.
2406
2407 * catgets/gencat.c (normalize_line): Use braces around empty
2408 'else' body.
2409 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2410 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2411 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2412 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2413 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2414 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2415 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2416 definition.
2417
2418 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2419 execlp returns.
2420
2421 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2422
2423 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2424 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2425 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2426 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2427 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2428 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2429 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2430 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2431 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2432 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2433 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2434 * benchtests/bench-bcopy.c: Delete file.
2435 * benchtests/bench-bzero.c: Likewise.
2436 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2437 (simple_memccpy): Remove.
2438 (generic_memccpy): Add function.
2439 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2440 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2441 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2442 (generic_mempcpy): Add new function.
2443 * benchtests/bench-memset.c (simple_bzero): Remove.
2444 (builtin_bzero): Remove.
2445 (builtin_memset): Remove.
2446 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2447 (generic_rawmemchr): Add new function.
2448
2449 2019-02-12 Florian Weimer <fweimer@redhat.com>
2450
2451 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2452
2453 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2454
2455 [BZ #24122]
2456 * elf/Makefile (tests): Add tst-audit13.
2457 (modules-names): Add tst-audit13mod1.
2458 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2459 rule.
2460 * elf/tst-audit13.c: New file.
2461 * elf/tst-audit13mod1.c: Likewise.
2462
2463 2019-02-12 Florian Weimer <fweimer@redhat.com>
2464
2465 [BZ #24122]
2466 * elf/rtld.c (unload_audit_module): New function.
2467 (report_audit_module_load_error): Likewise.
2468 (load_audit_module): Likewise. Extracted from dl_main. Call
2469 _dl_close if the laversion symbol cannot be found. Use early
2470 returns for error handling. Add malloc error check. Check for a
2471 zero return value from la_version. Remove spurious comment about
2472 static TLS initialization. Remove useless casts.
2473 (notify_audit_modules_of_loaded_object): New function. Extracted
2474 from dl_main.
2475 (load_audit_module): Likewise.
2476 (dl_main): Call load_audit_modules.
2477
2478 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2479
2480 * elf/dl-exception.c (_dl_exception_create_format): Add
2481 fall-through comments.
2482 * elf/ldconfig.c (parse_conf_include): Likewise.
2483 * elf/rtld.c (print_statistics): Likewise.
2484 * locale/programs/charmap.c (parse_charmap): Likewise.
2485 * misc/mntent_r.c (__getmntent_r): Likewise.
2486 * posix/wordexp.c (parse_arith): Likewise.
2487 (parse_backtick): Likewise.
2488 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2489 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2490 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2491
2492 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2493
2494 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2495 Use float instead of double.
2496
2497 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2498
2499 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2500
2501 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2502
2503 * sysdeps/powerpc/bits/mathinline.h: Remove.
2504
2505 2019-02-08 Florian Weimer <fweimer@redhat.com>
2506
2507 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2508 * math/bits/math-finite.h: Move to ...
2509 * bits/math-finite.h: ... here.
2510
2511 2019-02-08 Florian Weimer <fweimer@redhat.com>
2512
2513 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2514 * bits/unistd_ext.h: here.
2515
2516 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2517
2518 [BZ #21915]
2519 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2520 * nss/tst-nss-files-hosts-long.c: New file.
2521 * nss/tst-nss-files-hosts-long.root: New directory.
2522 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2523 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2524
2525 2019-02-08 Florian Weimer <fweimer@redhat.com>
2526
2527 * include/bits/unistd_ext.h: Remove file.
2528 * posix/bits/unistd_ext.h: Move to ...
2529 * sysdeps/generic/bits/unistd_ext.h: ... here.
2530
2531 2019-02-08 Florian Weimer <fweimer@redhat.com>
2532
2533 * include/bits/unistd_ext.h: New file.
2534
2535 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
2536
2537 * time/tst-strftime2.c: Use array_length macros instead of magic
2538 numbers.
2539
2540 2019-02-08 Florian Weimer <fweimer@redhat.com>
2541
2542 [BZ #24161]
2543 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
2544 argument.
2545 * nptl/register-atfork.c (__run_fork_handlers): Only perform
2546 locking if the new do_locking argument is true.
2547 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
2548 __run_fork_handlers.
2549
2550 2019-02-08 Florian Weimer <fweimer@redhat.com>
2551
2552 [BZ #6399]
2553 Linux: Add gettid system call wrapper.
2554 * posix/Makefile (headers): Add bits/unistd_ext.h.
2555 * posix/bits/unistd_ext.h: New file.
2556 * posix/unistd.h: Include it.
2557 * manual/process.texi (Process Identification): Document gettid.
2558 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
2559 tst-gettid, tst-gettid-kill.
2560 (tst-gettid): Link with $(shared-thread-library).
2561 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
2562 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
2563 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
2564 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
2565 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
2566 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2567 Add gettid.
2568 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2569 Likewise.
2570 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2571 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2572 Likewise.
2573 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2574 Likewise.
2575 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2576 Likewise.
2577 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2578 Likewise.
2579 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2580 Likewise.
2581 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2582 Likewise.
2583 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2584 Likewise.
2585 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2586 (GLIBC_2.30): Likewise.
2587 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2588 (GLIBC_2.30): Likewise.
2589 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2590 (GLIBC_2.30): Likewise.
2591 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2592 (GLIBC_2.30): Likewise.
2593 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2594 Likewise.
2595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2596 (GLIBC_2.30): Likewise.
2597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2598 (GLIBC_2.30): Likewise.
2599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2600 (GLIBC_2.30): Likewise.
2601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2602 (GLIBC_2.30): Likewise.
2603 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2604 Likewise.
2605 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2606 Likewise.
2607 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2608 Likewise.
2609 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2610 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2611 Likewise.
2612 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2613 Likewise.
2614 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2615 Likewise.
2616 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2617 Likewise.
2618 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
2619
2620 2019-02-08 Florian Weimer <fweimer@redhat.com>
2621
2622 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
2623 compatibility symbols.
2624
2625 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
2626
2627 [BZ #24180]
2628 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
2629 Add compiler barriers and comments.
2630
2631 2019-02-07 Florian Weimer <fweimer@redhat.com>
2632
2633 * include/array_length.h (array_length): Do not use a statement
2634 expression and _Static_assert, so that array_length can be used at
2635 file scope and as a constant expression.
2636
2637 2019-02-07 Florian Weimer <fweimer@redhat.com>
2638
2639 * support/xdlfcn.h (xdlmopen): Declare.
2640 * support/xdlmopen.c: New file.
2641 * support/Makefile (libsupport-routines): Add xdlmopen.
2642
2643 2019-02-06 Joseph Myers <joseph@codesourcery.com>
2644
2645 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
2646 before return type, without separate inline.
2647 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
2648 * elf/dl-tunables.h (tunable_is_name): Likewise.
2649 * malloc/malloc.c (do_set_trim_threshold): Likewise.
2650 (do_set_top_pad): Likewise.
2651 (do_set_mmap_threshold): Likewise.
2652 (do_set_mmaps_max): Likewise.
2653 (do_set_mallopt_check): Likewise.
2654 (do_set_perturb_byte): Likewise.
2655 (do_set_arena_test): Likewise.
2656 (do_set_arena_max): Likewise.
2657 (do_set_tcache_max): Likewise.
2658 (do_set_tcache_count): Likewise.
2659 (do_set_tcache_unsorted_limit): Likewise.
2660 * nis/nis_subr.c (count_dots): Likewise.
2661 * nptl/allocatestack.c (advise_stack_range): Likewise.
2662 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
2663 (do_sin): Likewise.
2664 (reduce_sincos): Likewise.
2665 (do_sincos): Likewise.
2666 * sysdeps/unix/sysv/linux/x86/elision-conf.c
2667 (do_set_elision_enable): Likewise.
2668 (TUNABLE_CALLBACK_FNDECL): Likewise.
2669
2670 2019-02-06 Florian Weimer <fweimer@redhat.com>
2671
2672 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
2673 (xdlsym): Use dlerror to detect a NULL symbol.
2674
2675 2019-02-06 Florian Weimer <fweimer@redhat.com>
2676
2677 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
2678 <stap-probe.h>.
2679 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2680
2681 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2682
2683 * libio/tst-bz24153.c (wide): Use wide char format specifier.
2684
2685 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2686
2687 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
2688 __wmemcmp and weak alias to wmemcmp.
2689
2690 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2691
2692 [BZ #23403]
2693 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
2694 TLS_TCB_AT_TP tls variant.
2695 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
2696 Add alignment checks.
2697 * support/Makefile (libsupport-routines): Add xposix_memalign and
2698 xpthread_setstack.
2699 * support/support.h: Add xposix_memalign.
2700 * support/xthread.h: Add xpthread_attr_setstack.
2701 * support/xposix_memalign.c: New File.
2702 * support/xpthread_attr_setstack.c: Likewise.
2703
2704 2019-02-05 Florian Weimer <fweimer@redhat.com>
2705
2706 [BZ #24164]
2707 arm: Use "nr" constraint for Systemtap probes, to avoid the
2708 compiler using memory operands for constants, due to the "o"
2709 alternative in the default "nor" constraint.
2710 * include/stap-probe.h [USE_STAP_PROBE]: Include
2711 <stap-probe-machine.h>
2712 * sysdeps/generic/stap-probe-machine.h: New file.
2713 * sysdeps/arm/stap-probe-machine.h: Likewise.
2714
2715 2019-02-04 Joseph Myers <joseph@codesourcery.com>
2716
2717 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
2718 with 0, not tcache->entries[tc_idx].
2719
2720 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
2721 once.
2722
2723 2019-02-04 Andreas Schwab <schwab@suse.de>
2724
2725 [BZ #16976]
2726 [BZ #17396]
2727 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
2728 looking up collating elements match against (wide) character
2729 sequence instead of name. Correct alignment adjustment.
2730 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
2731 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
2732 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
2733 (LOCALES): Add cs_CZ.ISO-8859-2.
2734 * posix/tst-fnmatch4.c: New file.
2735 * posix/tst-fnmatch5.c: New file.
2736 * include/wchar.h (__wmemcmp): Declare.
2737 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
2738 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2739 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
2740 * sysdeps/s390/wmemcmp.c: Likewise.
2741
2742 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
2743
2744 [BZ #24155]
2745 CVE-2019-7309
2746 * NEWS: Updated for CVE-2019-7309.
2747 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
2748 upper 32 bits of RDX register for x32. Use unsigned Jcc
2749 instructions, instead of signed.
2750 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
2751 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
2752
2753 2019-02-04 Florian Weimer <fweimer@redhat.com>
2754
2755 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
2756 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
2757 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
2758 Likewise.
2759 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
2760 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
2761 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
2762 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
2763 Likewise.
2764 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
2765 Likewise.
2766 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
2767 Likewise.
2768 (posix_spawn_file_actions_addopen): Likewise.
2769 (posix_spawn_file_actions_addclose): Likewise.
2770 (posix_spawn_file_actions_adddup2): Likewise.
2771 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
2772 qualifiers.
2773 (posix_spawn_file_actions_addfchdir_np): Likewise.
2774
2775 2019-02-04 David Newall <glibc@davidnewall.com>
2776
2777 elf: Implement --preload option for the dynamic linker.
2778 * elf/rtld.c (preloadarg): New variable.
2779 (handle_preload_list): Pass through “where” argument to
2780 do_preload.
2781 (dl_main): Handle "--preload" and add second call to
2782 handle_preload_list.
2783 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
2784 (tst-rtld-preload-OBJS): Set variable.
2785 (tst-rtld-preload.out): New target.
2786 * elf/tst-rtld-preload.sh: New file.
2787
2788 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
2789
2790 * Makefile (testrun.sh): Exit in case of incorrect argument.
2791
2792 2019-02-04 Florian Weimer <fweimer@redhat.com>
2793
2794 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
2795 alignment gaps.
2796
2797 2019-02-03 Florian Weimer <fweimer@redhat.com>
2798
2799 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
2800 implicit overflow checks.
2801
2802 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
2803
2804 * stdlib/isomac.c: Include <unistd.h>.
2805
2806 2019-02-03 Florian Weimer <fweimer@redhat.com>
2807
2808 * include/time.h (__tzfile_default): Use int, not long int, for
2809 the GMT offsets.
2810 * time/tzfile.c (struct ttinfo): Change type of the offset member
2811 to int.
2812 (__tzfile_read): Remove useless cast.
2813 (__tzfile_default): Adjust prototype.
2814 * time/tzset.c (tz_rule): Change type of the offset member to int.
2815 (parse_offset): Change the type of the sign variable to int.
2816
2817 2019-02-03 Florian Weimer <fweimer@redhat.com>
2818
2819 [BZ #24153]
2820 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
2821 * libio/getchar.c (getchar): Likewise.
2822 * libio/getchar_u.c (getchar_unlocked): Likewise.
2823 * libio/getwchar.c (getwchar): Likewise.
2824 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
2825 * libio/iogets.c (_IO_gets): Likewise.
2826 * libio/vscanf.c (_IO_vscanf): Likewise.
2827 * libio/vwscanf.c (__vwscanf): Likewise.
2828 * libio/tst-bz24153.c: New file.
2829 * libio/Makefile (tests): Add it.
2830
2831 2019-02-02 Florian Weimer <fweimer@redhat.com>
2832
2833 [BZ #14829]
2834 * manual/resource.texi (Basic Scheduling Functions): Add
2835 portability note. Change process to task throughout the section.
2836 Remove incorrect comment about sched_yield as it affects
2837 tasks/threads, not entire processes.
2838 * sysdeps/unix/sysv/linux/bits/posix_opt.h
2839 (_POSIX_PRIORITY_SCHEDULING): Update comment.
2840
2841 2019-02-01 Joseph Myers <joseph@codesourcery.com>
2842
2843 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
2844 * configure: Regenerated.
2845 * manual/install.texi (Tools for Compilation): Update minimum GCC
2846 version.
2847 * INSTALL: Regenerated.
2848
2849 2019-02-01 Florian Weimer <fweimer@redhat.com>
2850
2851 * support/support_test_compare_string.c
2852 (support_test_compare_string): Use "string" in error message.
2853 * support/tst-test_compare_string.c (do_test): Adjust.
2854
2855 2019-02-01 Florian Weimer <fweimer@redhat.com>
2856
2857 * support/support_format_address_family.c
2858 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
2859
2860 2019-02-01 Florian Weimer <fweimer@redhat.com>
2861
2862 * manual/socket.texi (Internet Address Formats): Clarify the byte
2863 order of struct sockaddr_in, struct sockaddr_in6. Document
2864 sin6_flowinfo and sin6_scope_id.
2865
2866 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
2867
2868 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
2869 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
2870 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
2871 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
2872 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
2873 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
2874
2875 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2876
2877 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
2878 [!MEMCHR](MEMCHR): Set to __memchr.
2879 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2880 Add memchr_generic and memchr_nosimd.
2881 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2882 (__libc_ifunc_impl_list): Add memchr ifuncs.
2883 * sysdeps/aarch64/multiarch/memchr.c: New file.
2884 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
2885 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
2886
2887 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2888
2889 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2890 Add memset_emag.
2891 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2892 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
2893 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
2894 Add IS_EMAG check for ifunc dispatch.
2895 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
2896 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
2897
2898 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2899
2900 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
2901 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2902 Add emag.
2903 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
2904 New macro.
2905
2906 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
2907
2908 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
2909
2910 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
2911
2912 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
2913 syscall-template file.
2914
2915 2019-01-31 Carlos O'Donell <carlos@redhat.com>
2916 Torvald Riegel <triegel@redhat.com>
2917 Rik Prohaska <prohaska7@gmail.com>
2918
2919 [BZ# 23844]
2920 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
2921 tst-rwlock-trywrlock-stall.
2922 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
2923 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
2924 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
2925 Set __wrphase_fute to 1 only if we started the write phase.
2926 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
2927 * nptl/tst-rwlock-trywrlock-stall.c: New file.
2928 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
2929 * support/xpthread_rwlock_destroy.c: New file.
2930 * support/xthread.h: Declare xpthread_rwlock_destroy.
2931
2932 2019-02-01 Joseph Myers <joseph@codesourcery.com>
2933
2934 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
2935 version to 4.0.2.
2936
2937 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2938
2939 [BZ #24051]
2940 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
2941 * libio/fileops.c (_IO_new_file_underflow): Likewise
2942 * libio/wfileops.c (_IO_wfile_underflow): Likewise
2943 * libio/putchar.c (putchar): Likewise.
2944 * libio/putchar_u.c (putchar_unlocked): Likewise.
2945 * libio/putwchar.c (putchar): Likewise.
2946 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
2947 * libio/tst-bz24051.c: New test.
2948 * libio/Makefile (tests): Add tst-bz24051
2949
2950 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
2951
2952 CVE-2019-9169
2953 regex: fix read overrun [BZ #24114]
2954 Problem found by AddressSanitizer, reported by Hongxu Chen in:
2955 https://debbugs.gnu.org/34140
2956 * posix/regexec.c (proceed_next_node):
2957 Do not read past end of input buffer.
2958
2959 2019-01-31 Florian Weimer <fweimer@redhat.com>
2960
2961 [BZ #24059]
2962 * nss/nss_files/files-alias.c (get_next_alias): Handle
2963 continuation line without newline at the end.
2964 * nss/tst-nss-files-alias-truncated.c: New file.
2965 * nss/Makefile [$(build-shared)] (tests): Add
2966 tst-nss-files-alias-truncated.
2967 (tst-nss-files-alias-truncated): Link with libnss_files.so.
2968 * support/namespace.h (struct support_chroot_configuration): Add
2969 aliases member.
2970 (struct support_chroot): Add path_aliases member.
2971 * support/support_chroot.c (support_chroot_create): Handle
2972 aliases.
2973 (support_chroot_free): Free path_aliases.
2974
2975 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
2976
2977 * version.h (RELEASE): Set to "development".
2978 (VERSION): Set to "2.29.9000".
2979 * NEWS: Add section for 2.30.
2980
2981 * version.h (RELEASE): Set to "stable".
2982 (VERSION): Set to "2.29".
2983 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
2984
2985 * NEWS: Add the list of bugs fixed in 2.29.
2986 * manual/contrib.texi: Update contributors list with some more
2987 names.
2988 * manual/install.texi: Update latest versions of packages
2989 tested.
2990 * INSTALL: Regenerated.
2991
2992 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
2993
2994 * po/be.po: Update translations.
2995 * po/bg.po: Likewise.
2996 * po/ca.po: Likewise.
2997 * po/cs.po: Likewise.
2998 * po/da.po: Likewise.
2999 * po/de.po: Likewise.
3000 * po/el.po: Likewise.
3001 * po/eo.po: Likewise.
3002 * po/es.po: Likewise.
3003 * po/fi.po: Likewise.
3004 * po/fr.po: Likewise.
3005 * po/gl.po: Likewise.
3006 * po/hr.po: Likewise.
3007 * po/hu.po: Likewise.
3008 * po/ia.po: Likewise.
3009 * po/id.po: Likewise.
3010 * po/it.po: Likewise.
3011 * po/ja.po: Likewise.
3012 * po/ko.po: Likewise.
3013 * po/lt.po: Likewise.
3014 * po/nb.po: Likewise.
3015 * po/nl.po: Likewise.
3016 * po/pl.po: Likewise.
3017 * po/pt_BR.po: Likewise.
3018 * po/ru.po: Likewise.
3019 * po/rw.po: Likewise.
3020 * po/sk.po: Likewise.
3021 * po/sl.po: Likewise.
3022 * po/sv.po: Likewise.
3023 * po/tr.po: Likewise.
3024 * po/uk.po: Likewise.
3025 * po/vi.po: Likewise.
3026 * po/zh_CN.po: Likewise.
3027 * po/zh_TW.po: Likewise.
3028
3029 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3030
3031 [BZ #24130]
3032 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3033 of $f3 register on $y_is_neg path.
3034
3035 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3036
3037 [BZ #24110]
3038 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3039 sigaltstack.ss_flags.
3040
3041 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3042
3043 [BZ #23758]
3044 * manual/time.texi (strftime): Document "%Ey".
3045 * time/strftime_l.c (__strftime_internal): Set the default width
3046 padding with zero of "%Ey" to 2.
3047
3048 [BZ #24096]
3049 * manual/time.texi (strftime): Document "%EC" and "%EY".
3050 * time/Makefile (tests): Add tst-strftime2.
3051 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3052 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3053 override padding for "%Ey".
3054 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3055 "%Ey" in the subformat as if decorated with that flag.
3056 * time/tst-strftime2.c: New file.
3057
3058 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3059
3060 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3061 are not defined.
3062
3063 [BZ #24122]
3064 * elf/Makefile (tests): Add tst-audit13.
3065 (modules-names): Add tst-audit13mod1.
3066 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3067 rule.
3068 * elf/rtld.c (dl_main): Handle invalid audit module version.
3069 * elf/tst-audit13.c: New file.
3070 * elf/tst-audit13mod1.c: Likewise.
3071
3072 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3073
3074 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3075 returned by __hurd_at_flags.
3076 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3077 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3078 directly instead of __hurd_file_name_lookup.
3079
3080 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3081
3082 * scripts/build-many-glibcs.py (Context.checkout): Default
3083 binutils version to 2.32 branch.
3084
3085 2019-01-21 Florian Weimer <fweimer@redhat.com>
3086
3087 [BZ #20018]
3088 CVE-2016-10739
3089 resolv: Reject trailing characters in host names
3090 * include/arpa/inet.h (__inet_aton_exact): Declare.
3091 (inet_aton): Remove hidden prototype. No longer used internally.
3092 * nscd/gai.c (__inet_aton): Do not define.
3093 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3094 * nss/digits_dots.c (__inet_aton): Likewise.
3095 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3096 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3097 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3098 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3099 (tst-resolv-trailing): Likewise.
3100 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3101 libc.
3102 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3103 Make static. Add endp parameter.
3104 (__inet_aton_exact): New function.
3105 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3106 (__inet_addr): Call inet_aton_end.
3107 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3108 not just IPv6. Call __inet_aton_exact.
3109 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3110 (tests): Make const. Add additional test cases with trailing
3111 characters.
3112 (do_test): Use array_length.
3113 * resolv/tst-inet_aton_exact.c: New file.
3114 * resolv/tst-resolv-trailing.c: Likewise.
3115 * resolv/tst-resolv-nondecimal.c: Likewise.
3116 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3117
3118 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3119
3120 [BZ# 24097]
3121 CVE-2019-6488
3122 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3123 Clear the upper 32 bits of RSI register.
3124 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3125 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3126 and tst-size_t-wcsnlen.
3127 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3128 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3129
3130 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3131
3132 [BZ# 24097]
3133 CVE-2019-6488
3134 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3135 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3136 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3137 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3138 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3139
3140 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3141
3142 [BZ# 24097]
3143 CVE-2019-6488
3144 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3145 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3146 * sysdeps/x86_64/strcmp.S: Likewise.
3147 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3148 tst-size_t-strncmp and tst-size_t-wcsncmp.
3149 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3150 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3151 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3152
3153 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3154
3155 [BZ# 24097]
3156 CVE-2019-6488
3157 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3158 RDX_LP for length. Clear the upper 32 bits of RDX register.
3159 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3160 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3161 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3162 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3163
3164 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3165
3166 [BZ# 24097]
3167 CVE-2019-6488
3168 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3169 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3170 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3171 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3172
3173 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3174
3175 [BZ# 24097]
3176 CVE-2019-6488
3177 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3178 length. Clear the upper 32 bits of RDX register.
3179 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3180 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3181 Likewise.
3182 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3183 Likewise.
3184 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3185 tst-size_t-wmemchr.
3186 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3187
3188 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3189
3190 [BZ# 24097]
3191 CVE-2019-6488
3192 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3193 length. Clear the upper 32 bits of RDX register.
3194 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3195 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3196 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3197 tst-size_t-wmemcmp.
3198 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3199 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3200
3201 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3202
3203 [BZ# 24097]
3204 CVE-2019-6488
3205 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3206 upper 32 bits of RDX register.
3207 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3208 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3209 tst-size_t-wmemchr.
3210 * sysdeps/x86_64/x32/test-size_t.h: New file.
3211 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3212 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3213
3214 2019-01-18 Florian Weimer <fweimer@redhat.com>
3215
3216 [BZ #24112]
3217 resolv: Do not send queries for non-host-names in nss_dns.
3218 * resolv/nss_dns/dns-host.c (check_name): New function.
3219 (_nss_dns_gethostbyname2_r): Use it.
3220 (_nss_dns_gethostbyname_r): Likewise.
3221 (_nss_dns_gethostbyname4_r): Likewise.
3222
3223 2019-01-21 Florian Weimer <fweimer@redhat.com>
3224
3225 * resolv/inet_addr.c: Reformat to GNU style.
3226 (__inet_addr, __inet_aton): Update comment.
3227
3228 2019-01-18 Florian Weimer <fweimer@redhat.com>
3229
3230 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3231 ("malloc: Use current (C11-style) atomics for fastbin access").
3232 This commit introduces a substantial performance regression on
3233 POWER and Aarch64.
3234 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3235 (REMOVE_FB): Define.
3236 (_int_malloc): Use it and reindent.
3237 (_int_free): Use CAS loop with
3238 catomic_compare_and_exchange_val_rel.
3239 (malloc_consolidate): Use atomic_exchange_acq.
3240
3241
3242 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3243
3244 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3245 -Wl,-z,now.
3246 (LDFLAGS-tst-minsigstksz-2): Likewise.
3247 (LDFLAGS-tst-minsigstksz-3): Likewise.
3248 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3249 (LDFLAGS-tst-minsigstksz-4): Likewise.
3250
3251 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3252
3253 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3254 than "alternate".
3255
3256 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3257
3258 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3259
3260 2019-01-16 Zack Weinberg <zackw@panix.com>
3261
3262 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3263 (xget_sigstack_location): New test support functions.
3264 * support/xsigstack.c: New file, implementing them.
3265 * support/tst-xsigstack.c: New test for them.
3266 * support/Makefile: Update.
3267
3268 * signal/tst-minsigstksz-1.c
3269 * signal/tst-minsigstksz-2.c
3270 * signal/tst-minsigstksz-3.c
3271 * signal/tst-minsigstksz-3a.c
3272 * signal/tst-minsigstksz-4.c: New tests.
3273 * signal/Makefile: Run them.
3274
3275 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3276
3277 * po/libc.pot: Regenerate.
3278
3279 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3280
3281 * math/libm-test-fma.inc (fma_test_data): Set
3282 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3283
3284 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3285
3286 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3287 (do_test): Changed __vector __int128_t to __vector unsigned int.
3288
3289 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3290
3291 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3292 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3293 stpcpy-avx2 and stpncpy-avx2.
3294 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3295 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3296 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3297 and __stpncpy_avx2.
3298 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3299 ifunc-strcpy.h}: rename header for a more generic name.
3300 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3301 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3302 AVX unaligned load is fast and vzeroupper is preferred.
3303 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3304 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3305 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3306 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3307 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3308 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3309
3310 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3311
3312 * argp/argp-help.c: Fix typo in comment.
3313 * misc/sys/cdefs.h: Likewise.
3314 * posix/regexec.c (sift_states_iter_mb): Likewise.
3315 * socket/sockatmark.c: Likewise.
3316 * socket/sys/socket.h: Likewise.
3317 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3318 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3319 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3320 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3321 * sysdeps/unix/sockatmark.c: Likewise.
3322 * time/strptime_l.c: Likewise.
3323
3324 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3325
3326 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3327 missing space after the cast of "_NL_CURRENT".
3328
3329 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3330
3331 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3332 ifdef to fix read of VSCR.
3333 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3334 tst-ucontext-ppc64-vscr.c to test list.
3335 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3336
3337 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3338
3339 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3340 fall-through.
3341
3342 2019-01-09 Jim Wilson <jimw@sifive.com>
3343
3344 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3345
3346 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3347
3348 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3349 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3350 __memcpy_falkor for ares.
3351 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3352 Add new define.
3353 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3354 Add ares cpu.
3355
3356 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3357
3358 [BZ #24066]
3359 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3360 4_FP_W_TYPEs are used for IEEE quad precision.
3361 * soft-fp/extendhftf2.c: Likewise.
3362 * soft-fp/extendsftf2.c: Likewise.
3363 * soft-fp/extendxftf2.c: Likewise.
3364 * soft-fp/trunctfdf2.c: Likewise.
3365 * soft-fp/trunctfhf2.c: Likewise.
3366 * soft-fp/trunctfsf2.c: Likewise.
3367 * soft-fp/trunctfxf2.c: Likewise.
3368 * sysdeps/alpha/ots_cvttx.c: Likewise.
3369 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3370 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3371 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3372 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3373 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3374 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3375 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3376 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3377 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3378 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3379 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3380 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3381 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3382 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3383 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3384 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3385 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3386
3387 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3388
3389 [BZ #24024]
3390 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3391 code with -fmath-errno.
3392 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3393 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3394 * string/test-strerror-errno.c: New file.
3395
3396 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3397
3398 [BZ #24046]
3399 * localedata/locales/en_US (date_fmt): Add, set to
3400 "%a %d %b %Y %r %Z".
3401
3402 2019-01-07 Florian Weimer <fweimer@redhat.com>
3403
3404 [BZ #24063]
3405 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3406 instead of @var{errno}.
3407 (Parsing of Integers): Likewise.
3408 (Parsing of Floats): Likewise.
3409 * manual/filesys.texi (Working with Directory Trees): Likewise.
3410 (Temporary Files): Likewise.
3411 * manual/job.texi (Terminal Access Functions): Likewise.
3412 * manual/llio.texi (Synchronizing I/O): Likewise.
3413 * manual/math.texi (SVID Random): Likewise.
3414 * manual/message.texi (The catgets Functions): Likewise.
3415 (Translation with gettext): Likewise.
3416 (Locating gettext catalog): Likewise.
3417 (Charset conversion in gettext): Likewise.
3418 * manual/nss.texi (NSS Module Function Internals): Likewise.
3419 * manual/search.texi (Hash Search Function): Likewise.
3420 * manual/setjmp.texi (System V contexts): Likewise.
3421 * manual/time.texi (Sleeping): Likewise.
3422 * manual/users.texi (Lookup User): Likewise.
3423 (Lookup Group): Likewise.
3424
3425 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3426
3427 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3428 fix typo.
3429
3430 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3431
3432 [BZ #19444]
3433 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3434 __builtin_unreachable for default case in switch.
3435 (__ieee754_yn): Likewise.
3436 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3437 (__ieee754_ynl): Likewise.
3438 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3439 (__ieee754_ynl): Likewise.
3440 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3441 (__ieee754_ynl): Likewise.
3442
3443 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3444
3445 * manual/maint.texi: Use @{ and @}.
3446
3447 2019-01-04 Florian Weimer <fweimer@redhat.com>
3448
3449 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3450 function.
3451 (do_in_chroot_1): Call it.
3452 (run_chroot_tests):
3453 Improve error reporting in case it is not possible to create a
3454 collision for the PTY name required by the test.
3455
3456 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3457
3458 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3459 lll_wait_tid with timeout.
3460 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3461 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3462 futex_reltimed_wait_cancelable for cancelabla mode.
3463 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3464 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3465 macros.
3466 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3467 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3468 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3469 SYSCALL_CANCEL_NCS): New macro.
3470 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3471 (lll_timedwait_tid): Remove macro.
3472 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3473 Likewise.
3474 (lll_timedwait_tid): Likewise.
3475 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3476 Likewise.
3477 (lll_timedwait_tid): Likewise.
3478 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3479 Likewise.
3480 (lll_timedwait_tid): Likewise.
3481 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3482 Use INTERNAL_SYSCALL_CANCEL.
3483 * sysdeps/unix/sysv/linux/futex-internal.h
3484 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3485 instead of __pthread_{enable,disable}_asynccancel.
3486 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3487 (lll_futex_wait_cancel): New macro.
3488
3489 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3490 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3491
3492 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3493 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3494
3495 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3496 in backtrace analysis.
3497 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3498 side-effects.
3499 (tf_send): Likewise.
3500
3501 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3502 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3503 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3504 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3505 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3506 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3507 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3508 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3509 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3510 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3511 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3512 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3513 Likewise.
3514 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3515 tst-cancel-wrappers.sh.
3516 (generated): Remove tst-cancel-wrappers.out.
3517 (tst-cancel-wrappers.out): Remove rule.
3518 * nptl/tst-cancel-wrappers.sh: Remove file.
3519
3520 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3521
3522 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3523 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3524 Update.
3525
3526 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3527
3528 [BZ #23640]
3529 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
3530 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
3531 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
3532 close-on-exec reset for adddup2 file action.
3533 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3534
3535 2019-01-03 Zack Weinberg <zackw@panix.com>
3536
3537 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
3538 parameter. Only use deprecated scanf when __USE_GNU is defined
3539 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
3540 than 201103L, whichever is relevant for the language being compiled.
3541
3542 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
3543 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
3544 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
3545 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
3546 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
3547
3548 * libio/iovsscanf.c
3549 * libio/fwscanf.c
3550 * libio/iovswscanf.c
3551 * libio/swscanf.c
3552 * libio/vscanf.c
3553 * libio/vwscanf.c
3554 * libio/wscanf.c
3555 * stdio-common/fscanf.c
3556 * stdio-common/scanf.c
3557 * stdio-common/vfscanf.c
3558 * stdio-common/vfwscanf.c
3559 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3560 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
3561 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
3562 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
3563 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
3564 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
3565 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
3566 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
3567 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
3568 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
3569 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
3570 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
3571 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
3572 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
3573 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
3574
3575 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
3576 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
3577 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
3578 not sscanf.
3579 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
3580 with a preprocessor macro.
3581
3582 * stdio-common/bug21.c, stdio-common/scanf14.c:
3583 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
3584 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3585 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
3586 to xscanf, xfscanf, xsscanf.
3587
3588 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
3589 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3590 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
3591 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
3592 xfscanf, xsscanf.
3593 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
3594 override feature selection macros or provide definitions of u_char etc.
3595 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
3596 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
3597 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
3598 with -std=gnu89.
3599
3600 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3601
3602 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3603 bits/termios-misc.h.
3604 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
3605 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3606 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3607 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3608 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
3609 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
3610
3611 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
3612 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3613 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
3614 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
3615 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
3616 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
3617 termios-misc.h.
3618 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
3619 (sysdep_headers): Add termios-misc.h.
3620
3621 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
3622 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3623 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3624
3625 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3626 termios-tcflow.h.
3627 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
3628 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
3629 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
3630 TCSAFLUSH): Move to termios-tcflow.h.
3631 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3632 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3633 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3634 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3635
3636 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3637 termios-c_lflag.h.
3638 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
3639 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
3640 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
3641 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
3642 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
3643 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
3644 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
3645 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
3646 Likewise.
3647 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3648 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3649 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3650 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3651
3652 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3653 termios-c_cflag.h.
3654 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
3655 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
3656 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
3657 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
3658 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
3659 termios-c_cflag.h.
3660 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3661 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3662 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3663 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3664
3665 [BZ #23783]
3666 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3667 termios-baud.h.
3668 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
3669 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
3670 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
3671 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
3672 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
3673 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
3674 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
3675 __MAX_BAUD): Move to termios-baud.h.
3676 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
3677 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
3678 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3679 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3680 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3681
3682 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
3683 termios-c_oflag.h.
3684 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
3685 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
3686 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
3687 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
3688 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
3689 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
3690 termios-c_oflag.h.
3691 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
3692 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
3693 FFR1): Likewise.
3694 [USE_MISC] (XTABS): Likewise.
3695 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3696 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3697 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3698 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
3699
3700 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3701 termios-c_iflag.h.
3702 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
3703 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
3704 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
3705 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
3706 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
3707 IUTF8): Move to termios-c_iflag.h.
3708 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3709 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3710 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3711 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3712
3713 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3714 termios-cc.h.
3715 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
3716 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
3717 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
3718 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
3719 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
3720 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
3721 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
3722 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
3723 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3724 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3725 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3726 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3727
3728 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
3729 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
3730 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
3731 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
3732 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3733 termios-struct.h.
3734 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
3735 termios-struct.h.
3736 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
3737 Likewise.
3738 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
3739 Likewise.
3740 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
3741 Likewise.
3742 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
3743 Likewise.
3744 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
3745 _HAVE_C_OSPEED): Define.
3746 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
3747 _HAVE_C_OSPEED): Likewise.
3748 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
3749 _HAVE_C_OSPEED): Likewise.
3750 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
3751 (cfsetospeed): Check for define value instead of existence.
3752 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
3753 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3754 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
3755 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3756 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
3757
3758 [BZ #17783]
3759 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
3760 Define.
3761 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3762 (TIOCSER_TEMT): Likewise.
3763 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
3764 (TEOCSER_TEMT): Likewise.
3765
3766 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
3767
3768 [BZ #24011]
3769 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
3770
3771 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3772
3773 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3774
3775 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3776
3777 * sysdeps/htl/pt-barrierattr-setpshared.c
3778 (pthread_barrierattr_setpshared): Add stub warning.
3779 * sysdeps/htl/pt-condattr-setpshared.c
3780 (pthread_condattr_setpshared): Likewise.
3781 * sysdeps/htl/pt-mutexattr-setpshared.c
3782 (pthread_mutexattr_setpshared): Likewise.
3783 * sysdeps/htl/pt-rwlockattr-setpshared.c
3784 (pthread_rwlockattr_setpshared): Likewise.
3785 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
3786 (pthread_mutexattr_setpshared): Likewise.
3787
3788 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3789
3790 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
3791 constants to match with Linux 4.20.
3792
3793 * sysdeps/mips/mips32/libm-test-ulps: Update.
3794 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3795
3796 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
3797
3798 [BZ #24034]
3799 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
3800 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
3801 than __typeof (...) for the a_ptr variable.
3802
3803 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3804
3805 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
3806 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
3807 * libio/Makefile (tests): Add tst-sprintf-ub and
3808 tst-sprintf-chk-ub.
3809 (CFLAGS-tst-sprintf-ub.c): New variable.
3810 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
3811 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
3812 destination buffer and check for overflows in fortified mode.
3813 * libio/libioP.h (PRINTF_CHK): New macro.
3814 * libio/tst-sprintf-chk-ub.c: New file.
3815 * libio/tst-sprintf-ub.c: Likewise.
3816
3817 2019-01-02 Florian Weimer <fweimer@redhat.com>
3818
3819 [BZ #24018]
3820 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
3821 failure.
3822
3823 2019-01-02 Florian Weimer <fweimer@redhat.com>
3824
3825 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
3826
3827 2019-01-01 Joseph Myers <joseph@codesourcery.com>
3828
3829 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
3830 macro.
3831
3832 * sysdeps/unix/sysv/linux/netpacket/packet.h
3833 (PACKET_IGNORE_OUTGOING): New macro.
3834
3835 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
3836 macro.
3837
3838 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3839 version to 4.20.
3840 (riscv_flush_icache): New syscall.
3841
3842 * manual/texinfo.tex: Update to version 2018-12-28.17 with
3843 trailing whitespace removed.
3844 * scripts/config.guess: Update to version 2019-01-01.
3845 * scripts/config.sub: Update to version 2019-01-01.
3846 * scripts/move-if-change: Update from gnulib.
3847
3848 * NEWS: Update copyright dates.
3849 * catgets/gencat.c (print_version): Likewise.
3850 * csu/version.c (banner): Likewise.
3851 * debug/catchsegv.sh: Likewise.
3852 * debug/pcprofiledump.c (print_version): Likewise.
3853 * debug/xtrace.sh (do_version): Likewise.
3854 * elf/ldconfig.c (print_version): Likewise.
3855 * elf/ldd.bash.in: Likewise.
3856 * elf/pldd.c (print_version): Likewise.
3857 * elf/sotruss.sh: Likewise.
3858 * elf/sprof.c (print_version): Likewise.
3859 * iconv/iconv_prog.c (print_version): Likewise.
3860 * iconv/iconvconfig.c (print_version): Likewise.
3861 * locale/programs/locale.c (print_version): Likewise.
3862 * locale/programs/localedef.c (print_version): Likewise.
3863 * login/programs/pt_chown.c (print_version): Likewise.
3864 * malloc/memusage.sh (do_version): Likewise.
3865 * malloc/memusagestat.c (print_version): Likewise.
3866 * malloc/mtrace.pl: Likewise.
3867 * manual/libc.texinfo: Likewise.
3868 * nptl/version.c (banner): Likewise.
3869 * nscd/nscd.c (print_version): Likewise.
3870 * nss/getent.c (print_version): Likewise.
3871 * nss/makedb.c (print_version): Likewise.
3872 * posix/getconf.c (main): Likewise.
3873 * scripts/test-installation.pl: Likewise.
3874 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3875
3876 * All files with FSF copyright notices: Update copyright dates
3877 using scripts/update-copyrights.
3878 * locale/programs/charmap-kw.h: Regenerated.
3879 * locale/programs/locfile-kw.h: Likewise.
3880
3881 2018-12-31 Joseph Myers <joseph@codesourcery.com>
3882
3883 * timezone/zdump.c: Update from tzcode 2018i.
3884 * timezone/zic.c: Likewise.
3885
3886 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
3887
3888 regex: improve Gnulib port to AIX
3889 From the glibc point of view, this removes duplicate macro
3890 definitions and is obviously safe.
3891 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
3892 * posix/regex_internal.h:
3893 (__attribute__, __attribute_warn_unused_result__):
3894 Remove; already defined elsewhere.
3895
3896 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
3897
3898 [BZ #24027]
3899 * malloc/malloc.c (_int_realloc): Always call memcpy for the
3900 copying operation. (ncopies had the wrong type, resulting in an
3901 integer wraparound and too few elements being copied.)
3902
3903 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
3904
3905 [BZ #24022]
3906 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
3907 <asm/syscalls.h> exists with __has_include__ before including it.
3908
3909 2018-12-31 Joseph Myers <joseph@codesourcery.com>
3910
3911 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3912 version to 4.20.
3913
3914 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
3915
3916 * hurd/lookup-retry: Include <unistd.h>.
3917 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
3918 Release it on return. Handle "pid" magical lookup retry.
3919
3920 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
3921
3922 [BZ #10496]
3923 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
3924 (t_fmt_ampm): Likewise.
3925 * localedata/locales/aa_ER (t_fmt): Likewise.
3926 (t_fmt_ampm): Likewise.
3927 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
3928 (t_fmt_ampm): Likewise.
3929 * localedata/locales/aa_ET (t_fmt): Likewise.
3930 (t_fmt_ampm): Likewise.
3931 * localedata/locales/am_ET (t_fmt): Likewise.
3932 (t_fmt_ampm): Likewise.
3933 * localedata/locales/byn_ER (t_fmt): Likewise.
3934 (t_fmt_ampm): Likewise.
3935 * localedata/locales/om_ET (t_fmt): Likewise.
3936 (t_fmt_ampm): Likewise.
3937 * localedata/locales/sid_ET (t_fmt): Likewise.
3938 (t_fmt_ampm): Likewise.
3939 * localedata/locales/so_DJ (t_fmt): Likewise.
3940 (t_fmt_ampm): Likewise.
3941 * localedata/locales/so_ET (t_fmt): Likewise.
3942 (t_fmt_ampm): Likewise.
3943 * localedata/locales/so_SO (t_fmt): Likewise.
3944 (t_fmt_ampm): Likewise.
3945 * localedata/locales/ti_ER (t_fmt): Likewise.
3946 (t_fmt_ampm): Likewise.
3947 * localedata/locales/ti_ET (t_fmt): Likewise.
3948 (t_fmt_ampm): Likewise.
3949 * localedata/locales/tig_ER (t_fmt): Likewise.
3950 (t_fmt_ampm): Likewise.
3951 * localedata/locales/wal_ET (t_fmt): Likewise.
3952 (t_fmt_ampm): Likewise.
3953
3954 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
3955 * localedata/locales/ar_IN (t_fmt): Likewise.
3956 * localedata/locales/bhb_IN (t_fmt): Likewise.
3957 * localedata/locales/bho_IN (t_fmt): Likewise.
3958 * localedata/locales/bi_VU (t_fmt): Likewise.
3959 * localedata/locales/bn_BD (t_fmt): Likewise.
3960 * localedata/locales/bn_IN (t_fmt): Likewise.
3961 * localedata/locales/brx_IN (t_fmt): Likewise.
3962 * localedata/locales/doi_IN (t_fmt): Likewise.
3963 * localedata/locales/en_HK (t_fmt): Likewise.
3964 (t_fmt_ampm): Likewise.
3965 * localedata/locales/en_IN (t_fmt): Likewise.
3966 * localedata/locales/en_PH (t_fmt): Likewise.
3967 * localedata/locales/gu_IN (t_fmt): Likewise.
3968 * localedata/locales/hi_IN (t_fmt): Likewise.
3969 * localedata/locales/hif_FJ (t_fmt): Likewise.
3970 * localedata/locales/hne_IN (t_fmt): Likewise.
3971 * localedata/locales/kn_IN (t_fmt): Likewise.
3972 * localedata/locales/kok_IN (t_fmt): Likewise.
3973 * localedata/locales/ks_IN (t_fmt): Likewise.
3974 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
3975 * localedata/locales/mag_IN (t_fmt): Likewise.
3976 * localedata/locales/mai_IN (t_fmt): Likewise.
3977 * localedata/locales/mjw_IN (t_fmt): Likewise.
3978 * localedata/locales/ml_IN (t_fmt): Likewise.
3979 * localedata/locales/mni_IN (t_fmt): Likewise.
3980 * localedata/locales/mr_IN (t_fmt): Likewise.
3981 * localedata/locales/ms_MY (t_fmt): Likewise.
3982 * localedata/locales/pa_IN (t_fmt): Likewise.
3983 * localedata/locales/raj_IN (t_fmt): Likewise.
3984 * localedata/locales/sa_IN (t_fmt): Likewise.
3985 * localedata/locales/sat_IN (t_fmt): Likewise.
3986 * localedata/locales/sd_IN (t_fmt): Likewise.
3987 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
3988 * localedata/locales/tcy_IN (t_fmt): Likewise.
3989 * localedata/locales/the_NP (t_fmt): Likewise.
3990 * localedata/locales/to_TO (t_fmt): Likewise.
3991 * localedata/locales/ur_IN (t_fmt): Likewise.
3992
3993 * localedata/locales/hif_FJ (d_t_fmt): Set to
3994 "%A %d %b %Y %I:%M:%S %p".
3995 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
3996
3997 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
3998 * localedata/locales/ar_BH (t_fmt): Likewise.
3999 * localedata/locales/ar_DZ (t_fmt): Likewise.
4000 * localedata/locales/ar_EG (t_fmt): Likewise.
4001 * localedata/locales/ar_IQ (t_fmt): Likewise.
4002 * localedata/locales/ar_JO (t_fmt): Likewise.
4003 * localedata/locales/ar_KW (t_fmt): Likewise.
4004 * localedata/locales/ar_LB (t_fmt): Likewise.
4005 * localedata/locales/ar_LY (t_fmt): Likewise.
4006 * localedata/locales/ar_OM (t_fmt): Likewise.
4007 * localedata/locales/ar_QA (t_fmt): Likewise.
4008 * localedata/locales/ar_SD (t_fmt): Likewise.
4009 * localedata/locales/ar_SS (t_fmt): Likewise.
4010 * localedata/locales/ar_SY (t_fmt): Likewise.
4011 * localedata/locales/ar_TN (t_fmt): Likewise.
4012 * localedata/locales/ar_YE (t_fmt): Likewise.
4013
4014 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4015 (t_fmt_ampm): Likewise.
4016 * localedata/locales/gez_ET (t_fmt): Likewise.
4017 (t_fmt_ampm): Likewise.
4018
4019 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4020 (t_fmt_ampm): Likewise.
4021 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4022
4023 * localedata/locales/zh_HK (t_fmt):
4024 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4025
4026 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4027 because this locale does not use the 12-hour clock.
4028 (t_fmt): Set to "%Z %H:%M:%S".
4029 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4030
4031 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4032 because this locale does not use the 12-hour clock.
4033 (t_fmt): Set to "%H:%M:%S %Z".
4034 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4035
4036 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4037 because this locale does not use the 12-hour clock.
4038 (t_fmt): Set to "%T".
4039 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4040 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4041
4042 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4043 because this locale does not use the 12-hour clock.
4044 (t_fmt): Set to "%H:%M:%S %Z".
4045 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4046
4047 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4048 because this locale does not use the 12-hour clock.
4049 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4050 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4051
4052 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4053
4054 [BZ #10496]
4055 [BZ #23724]
4056 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4057 (t_fmt_ampm): Likewise.
4058 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4059 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4060 (d_fmt): Set to "%-d.%-m.%y".
4061
4062 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4063
4064 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4065 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4066 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4067 Likewise.
4068 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4069 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4070 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4071 function.
4072 * support/blob_repeat.c (check_mul_overflow_size_t,
4073 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4074
4075 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4076
4077 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4078
4079 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4080
4081 regex: simplify Gnulib port
4082 This simplifies the code, by removing stuff intended for porting
4083 to Gnulib but no longer needed there.
4084 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4085 uses of libc_hidden_def, weak_alias.
4086 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4087 _Restrict_ except for public-facing headers.
4088 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4089 Remove; already defined elsewhere.
4090 * posix/regex.c, posix/regex_internal.h:
4091 Use __GNUC_PREREQ instead of rolling our own.
4092 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4093
4094 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4095
4096 * benchtests/bench-strlen.c (generic_strlen): New function.
4097 (memchr_strlen): New function.
4098
4099 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4100
4101 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4102 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4103 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4104
4105 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4106
4107 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4108
4109 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4110
4111 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4112 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4113 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4114 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4115 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4116 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4117 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4118
4119 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4120
4121 [BZ #24023]
4122 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4123 PLT reference in libc.so.
4124 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4125 _Q_lltoq and _Q_qtod PLT references in libc.so.
4126
4127 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4128
4129 * benchtests/bench-memchr.c: Cleanup defines.
4130 * benchtests/bench-memcmp.c: Likewise.
4131 * benchtests/bench-memset.c: Likewise.
4132 * benchtests/bench-memset-large.c: Likewise.
4133 * benchtests/bench-memset-walk.c: Likewise.
4134 * benchtests/bench-stpcpy.c: Likewise.
4135 * benchtests/bench-stpncpy.c: Likewise.
4136 * benchtests/bench-strcat.c: Likewise.
4137 * benchtests/bench-strchr.c: Likewise.
4138 * benchtests/bench-strcmp.c: Likewise.
4139 * benchtests/bench-strcpy.c: Likewise.
4140 * benchtests/bench-strcspn.c: Likewise.
4141 * benchtests/bench-string.h: Likewise.
4142 * benchtests/bench-strlen.c: Likewise.
4143 * benchtests/bench-strncat.c: Likewise.
4144 * benchtests/bench-strncmp.c: Likewise.
4145 * benchtests/bench-strncpy.c: Likewise.
4146 * benchtests/bench-strnlen.c: Likewise.
4147 * benchtests/bench-strpbrk.c: Likewise.
4148 * benchtests/bench-strrchr.c: Likewise.
4149 * benchtests/bench-strspn.c: Likewise.
4150
4151 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4152
4153 * stdlib/longlong.h: Update from GCC.
4154
4155 [BZ #23993]
4156 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4157 * configure: Regenerated.
4158 * manual/install.texi (Tools for Compilation): Update minimum GCC
4159 version.
4160 * INSTALL: Regenerated.
4161
4162 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4163
4164 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4165
4166 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4167
4168 * malloc/malloc.c (mremap_chunk): Additional checks.
4169
4170 2018-12-21 Mao Han <han_mao@c-sky.com>
4171
4172 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4173 * scripts/build-many-glibcs.py: Add C-SKY targets.
4174 * sysdeps/csky/Implies: New file.
4175 * sysdeps/csky/Makefile: Likewise.
4176 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4177 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4178 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4179 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4180 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4181 * sysdeps/csky/abiv2/memmove.S: Likewise.
4182 * sysdeps/csky/abiv2/memset.S: Likewise.
4183 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4184 * sysdeps/csky/abiv2/start.S: Likewise.
4185 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4186 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4187 * sysdeps/csky/abiv2/strlen.S: Likewise.
4188 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4189 * sysdeps/csky/abort-instr.h: Likewise.
4190 * sysdeps/csky/atomic-machine.h: Likewise.
4191 * sysdeps/csky/bits/endian.h: Likewise.
4192 * sysdeps/csky/bits/fenv.h: Likewise.
4193 * sysdeps/csky/bits/link.h: Likewise.
4194 * sysdeps/csky/bits/setjmp.h: Likewise.
4195 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4196 * sysdeps/csky/bsd-setjmp.S: Likewise.
4197 * sysdeps/csky/configure: Likewise.
4198 * sysdeps/csky/configure.ac: Likewise.
4199 * sysdeps/csky/dl-machine.h: Likewise.
4200 * sysdeps/csky/dl-procinfo.c: Likewise.
4201 * sysdeps/csky/dl-procinfo.h: Likewise.
4202 * sysdeps/csky/dl-sysdep.h: Likewise.
4203 * sysdeps/csky/dl-tls.h: Likewise.
4204 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4205 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4206 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4207 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4208 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4209 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4210 * sysdeps/csky/fpu/fegetround.c: Likewise.
4211 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4212 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4213 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4214 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4215 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4216 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4217 * sysdeps/csky/fpu/fesetround.c: Likewise.
4218 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4219 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4220 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4221 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4222 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4223 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4224 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4225 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4226 * sysdeps/csky/fpu_control.h: Likewise.
4227 * sysdeps/csky/gccframe.h: Likewise.
4228 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4229 * sysdeps/csky/ldsodefs.h: Likewise.
4230 * sysdeps/csky/libc-tls.c: Likewise.
4231 * sysdeps/csky/linkmap.h: Likewise.
4232 * sysdeps/csky/machine-gmon.h: Likewise.
4233 * sysdeps/csky/memusage.h: Likewise.
4234 * sysdeps/csky/nofpu/Implies: Likewise.
4235 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4236 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4237 * sysdeps/csky/nptl/Makefile: Likewise.
4238 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4239 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4240 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4241 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4242 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4243 * sysdeps/csky/nptl/tls.h: Likewise.
4244 * sysdeps/csky/preconfigure: Likewise.
4245 * sysdeps/csky/sfp-machine.h: Likewise.
4246 * sysdeps/csky/sotruss-lib.c: Likewise.
4247 * sysdeps/csky/stackinfo.h: Likewise.
4248 * sysdeps/csky/sysdep.h: Likewise.
4249 * sysdeps/csky/tininess.h: Likewise.
4250 * sysdeps/csky/tst-audit.h: Likewise.
4251 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4252 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4253 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4254 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4255 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4256 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4257 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4258 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4259 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4260 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4261 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4262 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4263 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4264 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4265 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4266 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4267 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4268 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4269 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4270 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4271 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4272 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4273 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4274 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4275 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4276 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4277 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4278 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4279 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4280 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4281 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4282 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4283 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4284 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4285 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4286 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4287 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4288 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4289 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4290 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4291 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4292 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4293 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4294 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4295
4296 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4297
4298 * include/time.h (__difftime64): Add.
4299 * time/difftime.c (subtract): convert to 64-bit time.
4300 * time/difftime.c (__difftime64): Add.
4301 * time/difftime.c (__difftime): Wrap around __difftime64.
4302
4303 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4304
4305 * manual/examples/add.c: Remove redundant "if not".
4306 * manual/examples/argp-ex1.c: Likewise.
4307 * manual/examples/argp-ex2.c: Likewise.
4308 * manual/examples/argp-ex3.c: Likewise.
4309 * manual/examples/argp-ex4.c: Likewise.
4310 * manual/examples/atexit.c: Likewise.
4311 * manual/examples/db.c: Likewise.
4312 * manual/examples/dir.c: Likewise.
4313 * manual/examples/dir2.c: Likewise.
4314 * manual/examples/execinfo.c: Likewise.
4315 * manual/examples/filecli.c: Likewise.
4316 * manual/examples/filesrv.c: Likewise.
4317 * manual/examples/fmtmsgexpl.c: Likewise.
4318 * manual/examples/genpass.c: Likewise.
4319 * manual/examples/inetcli.c: Likewise.
4320 * manual/examples/inetsrv.c: Likewise.
4321 * manual/examples/isockad.c: Likewise.
4322 * manual/examples/longopt.c: Likewise.
4323 * manual/examples/memopen.c: Likewise.
4324 * manual/examples/memstrm.c: Likewise.
4325 * manual/examples/mkdirent.c: Likewise.
4326 * manual/examples/mkfsock.c: Likewise.
4327 * manual/examples/mkisock.c: Likewise.
4328 * manual/examples/mygetpass.c: Likewise.
4329 * manual/examples/pipe.c: Likewise.
4330 * manual/examples/popen.c: Likewise.
4331 * manual/examples/rprintf.c: Likewise.
4332 * manual/examples/search.c: Likewise.
4333 * manual/examples/select.c: Likewise.
4334 * manual/examples/setjmp.c: Likewise.
4335 * manual/examples/sigh1.c: Likewise.
4336 * manual/examples/sigusr.c: Likewise.
4337 * manual/examples/stpcpy.c: Likewise.
4338 * manual/examples/strdupa.c: Likewise.
4339 * manual/examples/strftim.c: Likewise.
4340 * manual/examples/subopt.c: Likewise.
4341 * manual/examples/swapcontext.c: Likewise.
4342 * manual/examples/termios.c: Likewise.
4343 * manual/examples/testopt.c: Likewise.
4344 * manual/examples/testpass.c: Likewise.
4345 * manual/examples/timeval_subtract.c: Likewise.
4346
4347 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4348
4349 * sysdeps/x86/fpu/math_private.h: New file.
4350 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4351
4352 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4353 definition.
4354 (cosh): Likewise.
4355 (tanh): Likewise.
4356
4357 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4358
4359 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4360 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4361 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4362 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4363 fields.
4364 (_dl_show_auxv): Give a special treatment to
4365 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4366 and AT_L3_CACHEGEOMETRY.
4367 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4368 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4369 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4370 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4371
4372 2018-12-19 Andreas Schwab <schwab@suse.de>
4373
4374 * nscd/connections.c (check_use): Don't abort on invalid len.
4375
4376 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4377
4378 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4379 values in the 64bit value cases.
4380
4381 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4382
4383 * include/time.h
4384 (__ctime64_r): Add.
4385 * time/ctime_r.c
4386 (__ctime64_r): Add.
4387 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4388
4389 * include/time.h
4390 (__ctime64): Add.
4391 * time/gmtime.c
4392 (__ctime64): Add.
4393 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4394
4395 * include/time.h
4396 (__gmtime64_r): Add.
4397 * time/gmtime.c
4398 (__gmtime64_r): Add.
4399 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4400
4401 * include/time.h
4402 (__gmtime64): Add.
4403 * time/gmtime.c
4404 (__gmtime64): Add.
4405 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4406
4407 * include/time.h
4408 (__localtime64_r): Add.
4409 * time/localtime.c
4410 (__localtime64_r): Add.
4411 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4412
4413 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4414
4415 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4416 kernel_sigction definition.
4417
4418 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4419
4420 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4421
4422 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4423 __syscall_rt_sigaction.
4424 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4425 (kernel_sigaction): Use Linux generic defintion.
4426 (STUB): Define.
4427 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4428 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4429 (__syscall_rt_sigaction): Remove implementation.
4430 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4431 hidden.
4432 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4433 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4434 INTERNAL_SYSCALL): Remove definitions.
4435 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4436 action and signal set size.
4437 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4438 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4439
4440 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4441 James Clarke <jrtc27@jrtc27.com>
4442
4443 [BZ #23967]
4444 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4445 Define if SA_RESTORER is defined.
4446 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4447 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4448 already defined.
4449 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4450 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4451 definitions.
4452 (HAS_SA_RESTORER): Define.
4453 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4454 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4455 (HAS_SA_RESTORER): Define.
4456 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4457 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4458 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4459 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4460 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4461
4462 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4463
4464 * sysdeps/unix/sysv/linux/kernel-features.h
4465 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4466 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4467 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4468 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4469 (__ASSUME_ST_INO_64_BIT): Likewise.
4470 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4471 <kernel-features.h>.
4472 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4473 Remove conditional code.
4474 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4475 <kernel-features.h>.
4476 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4477 Remove conditional code.
4478 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4479 <kernel-features.h>.
4480 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4481 Remove conditional code.
4482 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4483 <kernel-features.h>.
4484 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4485 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4486
4487 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4488
4489 * sysdeps/s390/multiarch/ifunc-resolve.h
4490 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4491 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4492 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4493 Delete macro definition.
4494 (s390_libc_ifunc_init): Rename to
4495 s390_libc_ifunc_expr_stfle_init.
4496 * sysdeps/s390/bzero: Use
4497 s390_libc_ifunc_expr_stfle_init instead of
4498 s390_libc_ifunc_init.
4499 * sysdeps/s390/memcmp.c: Likewise.
4500 * sysdeps/s390/memcpy.c: Likewise.
4501 * sysdeps/s390/mempcpy.c: Likewise.
4502 * sysdeps/s390/memset.c: Likewise.
4503
4504 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4505
4506 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4507 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4508
4509 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4510
4511 * sysdeps/s390/multiarch/Makefile
4512 (sysdep_routines): Remove wmemcmp variants.
4513 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4514 * sysdeps/s390/multiarch/ifunc-impl-list.c
4515 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4516 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4517 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4518 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4519 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4520 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4521 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4522 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4523
4524 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4525
4526 * sysdeps/s390/multiarch/Makefile
4527 (sysdep_routines): Remove wmemset variants.
4528 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
4529 * sysdeps/s390/multiarch/ifunc-impl-list.c
4530 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
4531 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
4532 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
4533 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
4534 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
4535 * sysdeps/s390/multiarch/wmemset.c: Move to ...
4536 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
4537 * sysdeps/s390/ifunc-wmemset.h: New file.
4538
4539 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4540
4541 * sysdeps/s390/multiarch/Makefile
4542 (sysdep_routines): Remove wmemchr variants.
4543 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
4544 * sysdeps/s390/multiarch/ifunc-impl-list.c
4545 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
4546 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
4547 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
4548 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
4549 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
4550 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
4551 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
4552 * sysdeps/s390/ifunc-wmemchr.h: New file.
4553
4554 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4555
4556 * sysdeps/s390/multiarch/Makefile
4557 (sysdep_routines): Remove wcscspn variants.
4558 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
4559 * sysdeps/s390/multiarch/ifunc-impl-list.c
4560 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
4561 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
4562 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
4563 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
4564 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
4565 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
4566 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
4567 * sysdeps/s390/ifunc-wcscspn.h: New file.
4568
4569 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4570
4571 * sysdeps/s390/multiarch/Makefile
4572 (sysdep_routines): Remove wcspbrk variants.
4573 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
4574 * sysdeps/s390/multiarch/ifunc-impl-list.c
4575 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
4576 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
4577 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
4578 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
4579 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
4580 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
4581 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
4582 * sysdeps/s390/ifunc-wcspbrk.h: New file.
4583
4584 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4585
4586 * sysdeps/s390/multiarch/Makefile
4587 (sysdep_routines): Remove wcsspn variants.
4588 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
4589 * sysdeps/s390/multiarch/ifunc-impl-list.c
4590 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
4591 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
4592 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
4593 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
4594 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
4595 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
4596 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
4597 * sysdeps/s390/ifunc-wcsspn.h: New file.
4598
4599 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4600
4601 * sysdeps/s390/multiarch/Makefile
4602 (sysdep_routines): Remove wcsrchr variants.
4603 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
4604 * sysdeps/s390/multiarch/ifunc-impl-list.c
4605 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
4606 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
4607 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
4608 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
4609 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
4610 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
4611 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
4612 * sysdeps/s390/ifunc-wcsrchr.h: New file.
4613
4614 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4615
4616 * sysdeps/s390/multiarch/Makefile
4617 (sysdep_routines): Remove wcschrnul variants.
4618 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
4619 * sysdeps/s390/multiarch/ifunc-impl-list.c
4620 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
4621 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
4622 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
4623 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
4624 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
4625 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
4626 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
4627 * sysdeps/s390/ifunc-wcschrnul.h: New file.
4628
4629 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4630
4631 * sysdeps/s390/multiarch/Makefile
4632 (sysdep_routines): Remove wcschr variants.
4633 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
4634 * sysdeps/s390/multiarch/ifunc-impl-list.c
4635 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
4636 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
4637 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
4638 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
4639 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
4640 * sysdeps/s390/multiarch/wcschr.c: Move to ...
4641 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
4642 * sysdeps/s390/ifunc-wcschr.h: New file.
4643
4644 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4645
4646 * sysdeps/s390/multiarch/Makefile
4647 (sysdep_routines): Remove wcsncmp variants.
4648 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
4649 * sysdeps/s390/multiarch/ifunc-impl-list.c
4650 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
4651 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
4652 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
4653 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
4654 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
4655 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
4656 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
4657 * sysdeps/s390/ifunc-wcsncmp.h: New file.
4658
4659 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4660
4661 * sysdeps/s390/multiarch/Makefile
4662 (sysdep_routines): Remove wcscmp variants.
4663 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
4664 * sysdeps/s390/multiarch/ifunc-impl-list.c
4665 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
4666 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
4667 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
4668 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
4669 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
4670 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
4671 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
4672 * sysdeps/s390/ifunc-wcscmp.h: New file.
4673
4674 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4675
4676 * sysdeps/s390/multiarch/Makefile
4677 (sysdep_routines): Remove wcsncat variants.
4678 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
4679 * sysdeps/s390/multiarch/ifunc-impl-list.c
4680 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
4681 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
4682 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
4683 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
4684 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
4685 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
4686 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
4687 * sysdeps/s390/ifunc-wcsncat.h: New file.
4688
4689 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4690
4691 * sysdeps/s390/multiarch/Makefile
4692 (sysdep_routines): Remove wcscat variants.
4693 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
4694 * sysdeps/s390/multiarch/ifunc-impl-list.c
4695 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
4696 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
4697 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
4698 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
4699 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
4700 * sysdeps/s390/multiarch/wcscat.c: Move to ...
4701 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
4702 * sysdeps/s390/ifunc-wcscat.h: New file.
4703
4704 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4705
4706 * sysdeps/s390/multiarch/Makefile
4707 (sysdep_routines): Remove wcpncpy variants.
4708 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
4709 * sysdeps/s390/multiarch/ifunc-impl-list.c
4710 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
4711 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
4712 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
4713 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
4714 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
4715 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
4716 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
4717 * sysdeps/s390/ifunc-wcpncpy.h: New file.
4718
4719 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4720
4721 * sysdeps/s390/multiarch/Makefile
4722 (sysdep_routines): Remove wcsncpy variants.
4723 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
4724 * sysdeps/s390/multiarch/ifunc-impl-list.c
4725 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
4726 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
4727 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
4728 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
4729 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
4730 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
4731 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
4732 * sysdeps/s390/ifunc-wcsncpy.h: New file.
4733
4734 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4735
4736 * sysdeps/s390/multiarch/Makefile
4737 (sysdep_routines): Remove wcpcpy variants.
4738 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
4739 * sysdeps/s390/multiarch/ifunc-impl-list.c
4740 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
4741 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
4742 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
4743 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
4744 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
4745 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
4746 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
4747 * sysdeps/s390/ifunc-wcpcpy.h: New file.
4748
4749 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4750
4751 * sysdeps/s390/multiarch/Makefile
4752 (sysdep_routines): Remove wcscpy variants.
4753 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
4754 * sysdeps/s390/multiarch/ifunc-impl-list.c
4755 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
4756 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
4757 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
4758 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
4759 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
4760 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
4761 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
4762 * sysdeps/s390/ifunc-wcscpy.h: New file.
4763
4764 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4765
4766 * sysdeps/s390/multiarch/Makefile
4767 (sysdep_routines): Remove wcsnlen variants.
4768 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
4769 * sysdeps/s390/multiarch/ifunc-impl-list.c
4770 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
4771 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
4772 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
4773 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
4774 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
4775 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
4776 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
4777 * sysdeps/s390/ifunc-wcsnlen.h: New file.
4778
4779 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4780
4781 * sysdeps/s390/multiarch/Makefile
4782 (sysdep_routines): Remove wcslen variants.
4783 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
4784 * sysdeps/s390/multiarch/ifunc-impl-list.c
4785 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
4786 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
4787 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
4788 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
4789 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
4790 * sysdeps/s390/multiarch/wcslen.c: Move to ...
4791 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
4792 * sysdeps/s390/ifunc-wcslen.h: New file.
4793
4794 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4795
4796 * sysdeps/s390/multiarch/Makefile
4797 (sysdep_routines): Remove memrchr variants.
4798 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
4799 * sysdeps/s390/multiarch/ifunc-impl-list.c
4800 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
4801 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
4802 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
4803 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
4804 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
4805 * sysdeps/s390/multiarch/memrchr.c: Move to ...
4806 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
4807 * sysdeps/s390/ifunc-memrchr.h: New file.
4808
4809 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4810
4811 * sysdeps/s390/multiarch/Makefile
4812 (sysdep_routines): Remove memccpy variants.
4813 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
4814 * sysdeps/s390/multiarch/ifunc-impl-list.c
4815 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
4816 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
4817 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
4818 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
4819 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
4820 * sysdeps/s390/multiarch/memccpy.c: Move to ...
4821 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
4822 * sysdeps/s390/ifunc-memccpy.h: New file.
4823
4824 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4825
4826 * sysdeps/s390/multiarch/Makefile
4827 (sysdep_routines): Remove rawmemchr variants.
4828 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
4829 * sysdeps/s390/multiarch/ifunc-impl-list.c
4830 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
4831 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
4832 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
4833 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
4834 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
4835 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
4836 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
4837 * sysdeps/s390/ifunc-rawmemchr.h: New file.
4838
4839 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4840
4841 * sysdeps/s390/multiarch/Makefile
4842 (sysdep_routines): Remove memchr variants.
4843 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
4844 * sysdeps/s390/multiarch/ifunc-impl-list.c
4845 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
4846 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
4847 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
4848 * sysdeps/s390/multiarch/memchr.c: Move to ...
4849 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
4850 * sysdeps/s390/ifunc-memchr.h: New file.
4851 * sysdeps/s390/s390-64/memchr.S: Move to ...
4852 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
4853 for 31/64bit and ifunc handling.
4854 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
4855 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
4856 * sysdeps/s390/s390-32/memchr.S: Likewise.
4857
4858 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4859
4860 * sysdeps/s390/multiarch/Makefile
4861 (sysdep_routines): Remove strcspn variants.
4862 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
4863 * sysdeps/s390/multiarch/ifunc-impl-list.c
4864 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
4865 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
4866 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
4867 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
4868 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
4869 * sysdeps/s390/multiarch/strcspn.c: Move to ...
4870 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
4871 * sysdeps/s390/ifunc-strcspn.h: New file.
4872
4873 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4874
4875 * sysdeps/s390/multiarch/Makefile
4876 (sysdep_routines): Remove strpbrk variants.
4877 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
4878 * sysdeps/s390/multiarch/ifunc-impl-list.c
4879 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
4880 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
4881 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
4882 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
4883 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
4884 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
4885 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
4886 * sysdeps/s390/ifunc-strpbrk.h: New file.
4887
4888 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4889
4890 * sysdeps/s390/multiarch/Makefile
4891 (sysdep_routines): Remove strspn variants.
4892 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
4893 * sysdeps/s390/multiarch/ifunc-impl-list.c
4894 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
4895 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
4896 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
4897 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
4898 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
4899 * sysdeps/s390/multiarch/strspn.c: Move to ...
4900 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
4901 * sysdeps/s390/ifunc-strspn.h: New file.
4902
4903 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4904
4905 * sysdeps/s390/multiarch/Makefile
4906 (sysdep_routines): Remove strrchr variants.
4907 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
4908 * sysdeps/s390/multiarch/ifunc-impl-list.c
4909 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
4910 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
4911 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
4912 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
4913 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
4914 * sysdeps/s390/multiarch/strrchr.c: Move to ...
4915 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
4916 * sysdeps/s390/ifunc-strrchr.h: New file.
4917
4918 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4919
4920 * sysdeps/s390/multiarch/Makefile
4921 (sysdep_routines): Remove strchrnul variants.
4922 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
4923 * sysdeps/s390/multiarch/ifunc-impl-list.c
4924 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
4925 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
4926 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
4927 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
4928 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
4929 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
4930 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
4931 * sysdeps/s390/ifunc-strchrnul.h: New file.
4932
4933 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4934
4935 * sysdeps/s390/multiarch/Makefile
4936 (sysdep_routines): Remove strchr variants.
4937 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
4938 * sysdeps/s390/multiarch/ifunc-impl-list.c
4939 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
4940 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
4941 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
4942 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
4943 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
4944 * sysdeps/s390/multiarch/strchr.c: Move to ...
4945 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
4946 * sysdeps/s390/ifunc-strchr.h: New file.
4947
4948 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4949
4950 * sysdeps/s390/multiarch/Makefile
4951 (sysdep_routines): Remove strncmp variants.
4952 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
4953 * sysdeps/s390/multiarch/ifunc-impl-list.c
4954 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
4955 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
4956 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
4957 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
4958 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
4959 * sysdeps/s390/multiarch/strncmp.c: Move to ...
4960 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
4961 * sysdeps/s390/ifunc-strncmp.h: New file.
4962
4963 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4964
4965 * sysdeps/s390/multiarch/Makefile
4966 (sysdep_routines): Remove strcmp variants.
4967 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
4968 * sysdeps/s390/multiarch/ifunc-impl-list.c
4969 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
4970 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
4971 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
4972 * sysdeps/s390/multiarch/strcmp.c: Move to ...
4973 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
4974 * sysdeps/s390/ifunc-strcmp.h: New file.
4975 * sysdeps/s390/s390-64/strcmp.S: Move to ...
4976 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
4977 for 31/64bit and ifunc handling.
4978 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
4979 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
4980 * sysdeps/s390/s390-32/strcmp.S: Likewise.
4981
4982 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4983
4984 * sysdeps/s390/multiarch/Makefile
4985 (sysdep_routines): Remove strncat variants.
4986 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
4987 * sysdeps/s390/multiarch/ifunc-impl-list.c
4988 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
4989 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
4990 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
4991 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
4992 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
4993 * sysdeps/s390/multiarch/strncat.c: Move to ...
4994 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
4995 * sysdeps/s390/ifunc-strncat.h: New file.
4996
4997 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4998
4999 * sysdeps/s390/multiarch/Makefile
5000 (sysdep_routines): Remove strcat variants.
5001 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5002 * sysdeps/s390/multiarch/ifunc-impl-list.c
5003 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5004 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5005 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5006 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5007 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5008 * sysdeps/s390/multiarch/strcat.c: Move to ...
5009 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5010 * sysdeps/s390/ifunc-strcat.h: New file.
5011
5012 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5013
5014 * sysdeps/s390/multiarch/Makefile
5015 (sysdep_routines): Remove stpncpy variants.
5016 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5017 * sysdeps/s390/multiarch/ifunc-impl-list.c
5018 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5019 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5020 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5021 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5022 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5023 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5024 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5025 * sysdeps/s390/ifunc-stpncpy.h: New file.
5026
5027 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5028
5029 * sysdeps/s390/multiarch/Makefile
5030 (sysdep_routines): Remove strncpy variants.
5031 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5032 * sysdeps/s390/multiarch/ifunc-impl-list.c
5033 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5034 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5035 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5036 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5037 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5038 * sysdeps/s390/ifunc-strncpy.h: New file.
5039 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5040 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5041 and adjust ifunc handling.
5042 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5043 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5044 and adjust ifunc handling.
5045 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5046 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5047
5048 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5049
5050 * sysdeps/s390/multiarch/Makefile
5051 (sysdep_routines): Remove stpcpy variants.
5052 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5053 * sysdeps/s390/multiarch/ifunc-impl-list.c
5054 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5055 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5056 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5057 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5058 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5059 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5060 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5061 * sysdeps/s390/ifunc-stpcpy.h: New file.
5062
5063 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5064
5065 * sysdeps/s390/multiarch/Makefile
5066 (sysdep_routines): Remove strcpy variants.
5067 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5068 * sysdeps/s390/multiarch/ifunc-impl-list.c
5069 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5070 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5071 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5072 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5073 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5074 * sysdeps/s390/ifunc-strcpy.h: New file.
5075 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5076 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5077 for 31/64bit and ifunc handling.
5078 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5079 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5080 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5081
5082 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5083
5084 * sysdeps/s390/multiarch/Makefile
5085 (sysdep_routines): Remove strnlen variants.
5086 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5087 * sysdeps/s390/multiarch/ifunc-impl-list.c
5088 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5089 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5090 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5091 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5092 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5093 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5094 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5095 * sysdeps/s390/ifunc-strnlen.h: New file.
5096
5097 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5098
5099 * sysdeps/s390/multiarch/Makefile
5100 (sysdep_routines): Remove strlen variants.
5101 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5102 * sysdeps/s390/multiarch/ifunc-impl-list.c
5103 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5104 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5105 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5106 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5107 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5108 * sysdeps/s390/multiarch/strlen.c: Move to ...
5109 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5110 * sysdeps/s390/ifunc-strlen.h: New file.
5111
5112 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5113
5114 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5115 * sysdeps/s390/multiarch/ifunc-impl-list.c
5116 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5117 * sysdeps/s390/ifunc-memmem.h: New file.
5118 * sysdeps/s390/memmem.c: Likewise.
5119 * sysdeps/s390/memmem-c.c: Likewise.
5120 * sysdeps/s390/memmem-vx.c: Likewise.
5121
5122 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5123
5124 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5125 * sysdeps/s390/multiarch/ifunc-impl-list.c
5126 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5127 * sysdeps/s390/ifunc-strstr.h: New file.
5128 * sysdeps/s390/strstr.c: Likewise.
5129 * sysdeps/s390/strstr-c.c: Likewise.
5130 * sysdeps/s390/strstr-vx.c: Likewise.
5131
5132 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5133
5134 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5135 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5136 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5137 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5138 New defines.
5139 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5140 * sysdeps/s390/memmove-c.c: New file.
5141 * sysdeps/s390/memmove.c: Likewise.
5142 * sysdeps/s390/multiarch/ifunc-impl-list.c
5143 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5144
5145 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5146
5147 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5148 * sysdeps/s390/configure.ac: Add check for z13 support.
5149 * sysdeps/s390/configure: Regenerated.
5150
5151 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5152
5153 * sysdeps/s390/memcopy.h: New file.
5154
5155 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5156
5157 * sysdeps/s390/s390-32/bcopy.S: Remove.
5158 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5159
5160 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5161
5162 * sysdeps/s390/ifunc-memcpy.h: New File.
5163 * sysdeps/s390/memcpy.S: Move to ...
5164 * sysdeps/s390/memcpy-z900.S ... here.
5165 Move implementations from memcpy-s390x.s to here.
5166 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5167 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5168 Remove memcpy/mempcpy variants.
5169 * sysdeps/s390/Makefile (sysdep_routines):
5170 Add memcpy/mempcpy variants.
5171 * sysdeps/s390/multiarch/ifunc-impl-list.c
5172 (__libc_ifunc_impl_list): Adjust ifunc variants for
5173 memcpy and mempcpy.
5174 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5175 to ...
5176 * sysdeps/s390/memcpy.c: ... here.
5177 Adjust ifunc variants for memcpy.
5178 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5179 * sysdeps/s390/mempcpy.c: ... here.
5180 Adjust ifunc variants for mempcpy.
5181 * sysdeps/s390/mempcpy.S: Delete file.
5182
5183 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5184
5185 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5186 * sysdeps/s390/memcpy.S: ... here.
5187 Adjust to be usable for 31/64bit.
5188 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5189 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5190 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5191 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5192 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5193 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5194 Adjust to be usable for 31/64bit.
5195 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5196 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5197 * sysdeps/s390/multiarch/memcpy.c: ... here.
5198 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5199
5200 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5201
5202 * sysdeps/s390/ifunc-memcmp.h: New File.
5203 * sysdeps/s390/memcmp.S: Move to ...
5204 * sysdeps/s390/memcmp-z900.S ... here.
5205 Move implementations from memcmp-s390x.s to here.
5206 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5207 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5208 Remove memcmp variants.
5209 * sysdeps/s390/Makefile (sysdep_routines):
5210 Add memcmp variants.
5211 * sysdeps/s390/multiarch/ifunc-impl-list.c
5212 (__libc_ifunc_impl_list): Adjust ifunc variants for
5213 memcmp.
5214 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5215 to ...
5216 * sysdeps/s390/memcmp.c: ... here.
5217 Adjust ifunc variants for memcmp.
5218
5219 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5220
5221 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5222 * sysdeps/s390/memcmp.S: ... here.
5223 Adjust to be usable for 31/64bit.
5224 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5225 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5226 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5227 Remove memcmp.
5228 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5229 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5230 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5231 Adjust to be usable for 31/64bit.
5232 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5233 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5234 * sysdeps/s390/multiarch/memcmp.c: ... here.
5235 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5236
5237 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5238
5239 * sysdeps/s390/s390-32/bzero.S: Delete file.
5240 * sysdeps/s390/s390-64/bzero.S: Likewise.
5241 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5242 * sysdeps/s390/bzero.c: New file.
5243 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5244 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5245 * sysdeps/s390/multiarch/ifunc-impl-list.c
5246 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5247
5248 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5249
5250 * sysdeps/s390/ifunc-memset.h: New File.
5251 * sysdeps/s390/memset.S: Move to ...
5252 * sysdeps/s390/memset-z900.S ... here.
5253 Move implementations from memset-s390x.s to here.
5254 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5255 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5256 Remove memset variants.
5257 * sysdeps/s390/Makefile (sysdep_routines):
5258 Add memset variants.
5259 * sysdeps/s390/multiarch/ifunc-impl-list.c
5260 (__libc_ifunc_impl_list): Adjust ifunc variants for
5261 memset.
5262 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5263 to ...
5264 * sysdeps/s390/memset.c: ... here.
5265 Adjust ifunc variants for memset.
5266
5267 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5268
5269 * sysdeps/s390/s390-64/memset.S: Move to ...
5270 * sysdeps/s390/memset.S: ... here.
5271 Adjust to be usable for 31/64bit.
5272 * sysdeps/s390/s390-32/memset.S: Delete File.
5273 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5274 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5275 Remove memset.
5276 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5277 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5278 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5279 Adjust to be usable for 31/64bit.
5280 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5281 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5282 * sysdeps/s390/multiarch/memset.c: ... here.
5283 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5284
5285 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5286
5287 * sysdeps/s390/multiarch/ifunc-resolve.h
5288 (s390_libc_ifunc_init, s390_libc_ifunc,
5289 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5290
5291 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5292
5293 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5294 * sysdeps/s390/configure.ac: Add check for z10 support.
5295 * sysdeps/s390/configure: Regenerated.
5296
5297 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5298
5299 * sysdeps/i386/atomic-machine.h: Merged with ...
5300 * sysdeps/x86_64/atomic-machine.h: To ...
5301 * sysdeps/x86/atomic-machine.h: This. New file.
5302
5303 2018-12-18 Florian Weimer <fweimer@redhat.com>
5304
5305 Rewrite locale/gen-translit.pl in Python.
5306 * locale/Makefile (generated): Add C-translit.h.
5307 (before-compile): Add $(objpfx)C-translit.h.
5308 (C-translit.h): Move to $(objpfx). Create target directory.
5309 Build using Python script.
5310 * locale/gen-translit.py: New file.
5311 * locale/gen-translit.pl: Remove file.
5312 * locale/C-translit.h.in: Change comment character to '#' for
5313 easier parsing without a C preprocessor.
5314 * locale/C-translit.h: Remove generated file.
5315 * manual/install.texi (Tools for Compilation): Do not mention
5316 C-translit.h.
5317 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5318 Remove locale/C-translit.h.
5319 * scripts/update-copyrights: Likewise.
5320 * INSTALL: Regenerate.
5321
5322 2018-12-18 Florian Weimer <fweimer@redhat.com>
5323
5324 [BZ #23995]
5325 * localedata/locales/bi_VU: Remove executable bit from file.
5326
5327 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5328
5329 * include/time.h
5330 (__localtime64): Add.
5331 * manual/maint.texi: Document Y2038 symbol handling.
5332 * time/localtime.c
5333 (__localtime64): Add.
5334 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5335
5336 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5337
5338 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5339 Do not clobber r12.
5340
5341 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5342 to allow extra macros from first or second sources.
5343 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5344 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5345 (tests-special): Add $(objpfx)tst-mman-consts.out.
5346 ($(objpfx)tst-mman-consts.out): New makefile target.
5347
5348 2018-12-17 Mao Han <han_mao@c-sky.com>
5349
5350 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5351 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5352 without stat64 system call support.
5353 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5354 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5355 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5356 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5357 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5358 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5359 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5360 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5361 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5362 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5363 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5364
5365 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5366
5367 regex: fix storage-exhaustion error
5368 [BZ #18040]
5369 * posix/regexec.c (get_subexp):
5370 Do not continue if storage is exhausted.
5371
5372 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5373
5374 regex: fix heap-use-after-free error
5375 [BZ #18040]
5376 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5377 https://debbugs.gnu.org/32592
5378 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5379 call extend_buffers which reallocates the re_string_t internal buffer.
5380 Local variable 'buf' was not updated in such case, resulting in
5381 use-after-free.
5382 * posix/regexec.c (get_subexp): Update 'buf' after call to
5383 get_subexp_sub.
5384
5385 2018-12-15 Florian Weimer <fweimer@redhat.com>
5386
5387 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5388 (minimum_stride_size): Use it.
5389 (support_blob_repeat_allocate): Likewise.
5390
5391 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5392
5393 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5394 definition.
5395 (acosh): Likewise.
5396 (atanh): Likewise.
5397
5398 2018-12-14 Florian Weimer <fweimer@redhat.com>
5399
5400 * manual/process.texi (Process Creation Concepts): Remove
5401 documentation of process (ID) lifetime. List more process
5402 creation functions. Reference Process Identification section.
5403 (Process Identification): Add information about process ID
5404 lifetime. Describe Linux thread/task IDs.
5405 * manual/signal.texi (Signaling Another Process): Mention that the
5406 signal is always sent to the process.
5407
5408 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5409
5410 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5411 and tst-ldbl-efgcvt.
5412 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5413 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5414 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5415 (fcvt_tests, output_error, output_r_error, do_test): Use the
5416 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5417 select the type of floating-point variables and arguments; to
5418 produce extra tests for double and conversion specifiers for
5419 printf; and to set the names of called functions.
5420 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5421 in tst-efgcvt-template.c.
5422 * misc/tst-ldbl-efgcvt.c: Likewise.
5423
5424 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5425
5426 * nss/Makefile (tst-nss-test3.out): New rule.
5427
5428 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5429
5430 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5431 clobber sp.
5432
5433 2018-12-13 fanjinke <fanjinke@hygon.cn>
5434
5435 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5436 "HygonGenuine".
5437
5438 2018-12-13 Andreas Schwab <schwab@suse.de>
5439
5440 [BZ #23861]
5441 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5442 (__pthread_rwlock_rdlock_full): Update expected value for
5443 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5444 * nptl/tst-rwlock-pwn.c: New file.
5445 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5446
5447 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5448
5449 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5450 definition.
5451
5452 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5453
5454 * benchtests/scripts/compare_bench.py (do_compare): write to
5455 stderr in casestat is not present.
5456 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5457 stderr in case timings field is not present. Also string showing
5458 the output filename goes into the stderr.
5459
5460 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5461
5462 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5463 and ZeroDivisorError exceptions.
5464 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5465 argument to loop through user provided statistics.
5466 * benchtests/scripts/compare_bench.py (main): Include the --stats
5467 argument.
5468
5469 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5470
5471 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5472 instead of return.
5473
5474 2018-12-12 Florian Weimer <fweimer@redhat.com>
5475
5476 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5477 clause to copyright header.
5478
5479 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5480
5481 [BZ #23614]
5482 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5483 registers saved in the stack frame.
5484 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5485 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5486
5487 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5488
5489 * include/bits/monetary-ldbl.h: New file.
5490 * include/bits/printf-ldbl.h: Likewise.
5491 * include/bits/stdio-ldbl.h: Likewise.
5492 * include/bits/stdlib-ldbl.h: Likewise.
5493 * include/bits/syslog-ldbl.h: Likewise.
5494 * include/bits/wchar-ldbl.h: Likewise.
5495
5496 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5497
5498 * libio/libio.h: Remove redirection for _IO_vfprintf.
5499
5500 2018-12-11 Andreas Schwab <schwab@suse.de>
5501
5502 * Makerules: Remove all references to abilist-pattern.
5503 (update-all-abi): Simplify find expression.
5504
5505 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5506
5507 [BZ #23961]
5508 * math/auto-libm-test-in: Add new test case.
5509 * math/auto-libm-test-out-pow: Regenerated.
5510 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5511
5512 2018-12-10 DJ Delorie <dj@redhat.com>
5513
5514 [BZ #23948]
5515 * support/test-container.c: Move postclean step to before we
5516 change namespaces.
5517
5518 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5519
5520 * scripts/gen-as-const.py (main): Handle --python option.
5521 * scripts/gen-py-const.awk: Remove.
5522 * Makerules (py-const-script): Use gen-as-const.py.
5523 ($(py-const)): Likewise.
5524 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5525 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5526 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5527 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5528 ~PTHREAD_MUTEX_NO_ELISION_NP.
5529 * manual/README.pretty-printers: Update reference to
5530 gen-py-const.awk.
5531
5532 * scripts/glibcextract.py: New file.
5533 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
5534 or tempfile. Import glibcexctract.
5535 (compute_c_consts): Remove. Moved to glibcextract.py.
5536 (gen_test): Update reference to compute_c_consts.
5537 (main): Likewise.
5538 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
5539 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
5540 * sysdeps/unix/sysv/linux/Makefile
5541 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
5542 Redirect stderr as well as stdout.
5543
5544 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
5545
5546 [BZ #19767]
5547 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
5548 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
5549 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
5550 ALWAYS_USE_VSYSCALL.
5551 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
5552 ALWAYS_USE_VSYSCALL.
5553 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
5554 ALWAYS_USE_VSYSCALL.
5555
5556 2018-12-10 Florian Weimer <fweimer@redhat.com>
5557
5558 [BZ #23972]
5559 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
5560 offset instead of count for clarity. Fix typo in comment.
5561 (__old_getdents64): Keep track of previous offset. Use it to call
5562 handle_overflow.
5563 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
5564 that d_off is never zero.
5565
5566 2018-12-10 Andreas Schwab <schwab@suse.de>
5567
5568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
5569 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
5570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
5571 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
5572 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
5573
5574 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5575
5576 * timezone/private.h: Update from tzcode 2018g.
5577 * timezone/tzfile.h: Likewise.
5578 * timezone/tzselect.ksh: Likewise.
5579 * timezone/zdump.c: Likewise.
5580 * timezone/zic.c: Likewise.
5581
5582 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
5583
5584 [BZ #23490]
5585 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
5586 (do_test): Adjust buffer size and fix format.
5587
5588 2018-12-07 DJ Delorie <dj@redhat.com>
5589
5590 [BZ #23907]
5591 * malloc/tst-tcfree3.c: New.
5592 * malloc/Makefile: Add it.
5593
5594 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5595
5596 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
5597
5598 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5599
5600 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
5601 used as a mask for the mode argument of __vfscanf_internal and
5602 __vfwscanf_internal.
5603 * stdio-common/vfscanf-internal.c
5604 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
5605 (__strtof128_internal): Define to __wcstof128_internal.
5606 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
5607 __strtof128_internal or __wcstof128_internal when the format of
5608 long double is the same as _Float128.
5609
5610 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5611
5612 * include/unistd.h (__confstr): Add prototype and hidden prototype.
5613 * posix/confstr.c (confstr): Rename to __confstr.
5614 (__confstr): Add hidden def.
5615 (confstr): Add weak alias for __confstr.
5616 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
5617 confstr.
5618
5619 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5620
5621 * NEWS: Mention getcpu.
5622 * include/sched.h (__getcpu): New libc_hidden_proto.
5623 * manual/resource.texi: Document getcpu.
5624 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
5625 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
5626 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
5627 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5628 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5629 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5630 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5631 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5632 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5633 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5634 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5635 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5636 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5637 Likewise.
5638 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5639 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5640 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5641 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5642 Likewise.
5643 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5644 Likewise.
5645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5646 Likewise.
5647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5648 Likewise.
5649 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5650 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5651 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5652 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5653 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5654 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5655 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5656 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5657 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
5658 * sysdeps/unix/sysv/linux/getcpu.c: New file.
5659 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
5660 Also check getcpu.
5661
5662 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5663
5664 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
5665 functions.
5666 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
5667
5668 2018-12-07 Florian Weimer <fweimer@redhat.com>
5669
5670 [BZ #17405]
5671 * posix/Makefile (routines): Add spawn_faction_addfchdir.
5672 * posix/Versions (GLIBC_2.29): Export
5673 posix_spawn_file_actions_addfchdir_np.
5674 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
5675 * posix/spawn_faction_destroy.c
5676 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
5677 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
5678 and the field action.fchdir_action.
5679 * posix/tst-spawn-chdir.c (add_chdir): New function.
5680 (do_test): Add do_fchdir loop. Call add_chdir.
5681 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
5682 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5683 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5684 posix_spawn_file_actions_addfchdir_np.
5685 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5686 Likewise.
5687 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5688 Likewise.
5689 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5690 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5691 Likewise.
5692 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5693 Likewise.
5694 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5695 Likewise.
5696 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5697 Likewise.
5698 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5699 Likewise.
5700 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5701 Likewise.
5702 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5703 (GLIBC_2.29): Likewise.
5704 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5705 (GLIBC_2.29): Likewise.
5706 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5707 (GLIBC_2.29): Likewise.
5708 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5709 (GLIBC_2.29): Likewise.
5710 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5711 Likewise.
5712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5713 (GLIBC_2.29): Likewise.
5714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5715 (GLIBC_2.29): Likewise.
5716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5717 (GLIBC_2.29): Likewise.
5718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5719 (GLIBC_2.29): Likewise.
5720 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5721 Likewise.
5722 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5723 Likewise.
5724 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5725 Likewise.
5726 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5727 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5728 Likewise.
5729 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5730 Likewise.
5731 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5732 Likewise.
5733 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5734 Likewise.
5735
5736 2018-12-06 Joseph Myers <joseph@codesourcery.com>
5737
5738 * manual/texinfo.tex: Update to version 2018-09-21.20 with
5739 trailing whitespace removed.
5740 * scripts/config.guess: Update to version 2018-11-28.
5741 * scripts/config.sub: Update to version 2018-11-28.
5742 * scripts/install-sh: Update to version 2018-03-11.20.
5743 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
5744 * scripts/move-if-change: Update to version 2018-03-07 03:47.
5745
5746 2018-12-07 Florian Weimer <fweimer@redhat.com>
5747
5748 [BZ #23927]
5749 CVE-2018-19591
5750 * inet/tst-if_index-long.c: New file.
5751 * inet/Makefile (tests): Add tst-if_index-long.
5752
5753 2018-12-07 Florian Weimer <fweimer@redhat.com>
5754
5755 * support/check.h (support_record_failure_is_failed): Declare.
5756 * support/descriptors.h: New file.
5757 * support/support_descriptors.c: Likewise.
5758 * support/tst-support_descriptors.c: Likewise.
5759 * support/support_record_failure.c
5760 (support_record_failure_is_failed): New function.
5761 * support/Makefile (libsupport-routines): Add support_descriptors.
5762 (tests): Add tst-support_descriptors.
5763
5764 2018-12-05 Zack Weinberg <zackw@panix.com>
5765 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5766
5767 * stdio-common/vfprintf-internal.c
5768 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
5769 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
5770 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
5771 and __no_long_double.
5772 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
5773 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
5774 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
5775 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
5776 and __nldbl_*syslog* functions.
5777 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
5778 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
5779 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
5780 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
5781 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
5782 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
5783 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
5784 (__nldbl_vwprintf, __nldbl_wprintf):
5785 Directly call the appropriate __v*printf_internal routine, passing
5786 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
5787 variable names.
5788 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
5789 (__nldbl___printf_chk, __nldbl___snprintf_chk)
5790 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
5791 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
5792 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
5793 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5794 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
5795 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
5796 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
5797 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
5798 Likewise, and also pass PRINTF_FORTIFY when appropriate.
5799 (__nldbl_syslog, __nldbl_vsyslog):
5800 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
5801 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5802 appropriate.
5803 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5804 appropriate.
5805
5806 2018-12-05 Zack Weinberg <zackw@panix.com>
5807 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5808
5809 [BZ #11319]
5810 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
5811 Moved here from debug/vsprintf_chk.c.
5812 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
5813 and completion logic for the strfile to match exactly what
5814 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
5815 _IO_str_init_static_internal instead of maxlen-1.
5816 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5817 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
5818 __vsprintf_internal.
5819
5820 * debug/vsprintf_chk.c (__vsprintf_chk)
5821 * debug/sprintf_chk.c (__sprintf_chk):
5822 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
5823 'flags' argument is positive, and slen as maxlen. No need to lock
5824 the FILE and/or construct a temporary FILE. Minimize and normalize
5825 header inclusions and variable names. Do not libc_hidden_def anything.
5826
5827 * debug/asprintf_chk.c (__asprintf_chk)
5828 * debug/dprintf_chk.c (__dprintf_chk)
5829 * debug/fprintf_chk.c (__fprintf_chk)
5830 * debug/fwprintf_chk.c (__fwprintf_chk)
5831 * debug/printf_chk.c (__printf_chk)
5832 * debug/snprintf_chk.c (__snprintf_chk)
5833 * debug/swprintf_chk.c (__swprintf_chk)
5834 * debug/vasprintf_chk.c (__vasprintf_chk)
5835 * debug/vdprintf_chk.c (__vdprintf_chk)
5836 * debug/vfprintf_chk.c (__vfprintf_chk)
5837 * debug/vfwprintf_chk.c (__vfwprintf_chk)
5838 * debug/vprintf_chk.c (__vprintf_chk)
5839 * debug/vsnprintf_chk.c (__vsnprintf_chk)
5840 * debug/vswprintf_chk.c (__vswprintf_chk)
5841 * debug/vwprintf_chk.c (__vwprintf_chk)
5842 * debug/wprintf_chk.c (__wprintf_chk):
5843 Directly call the corresponding vxxprintf_internal function, passing
5844 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
5845 the FILE and/or construct a temporary FILE. Minimize and normalize
5846 header inclusions and variable names. Do not libc_hidden_def anything.
5847
5848 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
5849 __obstack_vprintf_internal.
5850 (__obstack_vprintf_chk): Convert into a wrapper that calls
5851 __obstack_vprintf_internal (these two functions already had the
5852 same code) and move to new file...
5853 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
5854 file.
5855 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
5856 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
5857 * debug/Makefile (routines): Add vobprintf_chk.
5858
5859 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5860 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5861 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
5862 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5863 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
5864 (__nldbl___obstack_vfprintf_chk):
5865 Directly call the corresponding vxxprintf_internal function,
5866 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
5867 duplicate comparison of slen with 0 or maxlen from the corresponding
5868 non-__nldbl function.
5869
5870 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
5871 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
5872 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
5873 Remove libc_hidden_proto.
5874
5875 * stdio-common/vfprintf-internal.c
5876 (__vfprintf_internal, __vfwprintf_internal):
5877 Do not check _IO_FLAGS2_FORTIFY.
5878 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
5879 * libio/libioP.h: Update prototype of __vsprintf_internal and add
5880 a comment explaining why it has the maxlen argument.
5881 (_IO_acquire_lock_clear_flags2_fct): Remove.
5882 (_IO_acquire_lock_clear_flags2): Remove.
5883 (_IO_release_lock): Remove conditional statement which will
5884 now never execute.
5885 (_IO_acquire_lock): Remove variable which is now unused.
5886 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
5887 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
5888
5889 * stdio-common/Makefile (tests): Add tst-bz11319 and
5890 tst-bz11319-fortify2.
5891 (CFLAGS-tst-bz11319-fortify2.c): New macro.
5892 * stdio-common/tst-bz11319-fortify2.c: New file.
5893 * stdio-common/tst-bz11319.c: Likewise.
5894
5895 2018-12-05 Zack Weinberg <zackw@panix.com>
5896 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5897
5898 * misc/syslog.c: Include libioP.h, not iolibio.h.
5899 (__vsyslog_internal): New function with the former body of
5900 __vsyslog_chk; takes mode_flags argument same as
5901 __v*printf_internal. Call __vfprintf_internal directly.
5902
5903 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
5904 Remove libc_hidden_def.
5905 (__syslog, __syslog_chk): Use __vsyslog_internal.
5906 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
5907
5908 * include/sys/syslog.h: Add multiple inclusion guard.
5909 Add prototype for __vsyslog_internal.
5910 Remove declaration and libc_hidden_proto for __vsyslog_chk.
5911
5912 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
5913 Use __vsyslog_internal.
5914
5915 2018-12-05 Zack Weinberg <zackw@panix.com>
5916 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5917
5918 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
5919 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
5920 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
5921 New functions.
5922 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
5923 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
5924
5925 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
5926 Include wctype.h here if COMPILE_WPRINTF is defined.
5927 Define __vfprintf_internal or __vfwprintf_internal, depending
5928 on COMPILE_WPRINTF.
5929 Temporarily, on entry to this function, update mode_flags
5930 according to the environmental settings corresponding to
5931 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
5932 Throughout, check mode_flags instead of __ldbl_is_dbl and
5933 _IO_FLAGS2_FORTIFY on the destination FILE.
5934 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
5935 Include vfprintf-internal.c. Don't include wctype.h.
5936 * stdio-common/vfprintf.c: New file. Just define __vfprintf
5937 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
5938 and vfprintf.
5939 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
5940 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
5941 and vfwprintf.
5942 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
5943
5944 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
5945 and add mode_flags argument; use __vfprintf_internal.
5946 (__vdprintf): New function. Alias vdprintf to this.
5947 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
5948 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
5949 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
5950 (__obstack_printf): Use __obstack_printf_internal.
5951 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
5952 public aliases __vsnprintf and vsnprintf.
5953 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
5954 called internally.
5955 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
5956 public aliases _IO_vsprintf and vsprintf.
5957 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
5958 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
5959 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
5960 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
5961 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
5962
5963 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
5964 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
5965 * stdio-common/fprintf.c, stdio-common/fxprintf.c
5966 * stdio-common/printf.c: Use __vfprintf_internal.
5967
5968 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
5969 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
5970 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
5971
5972 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
5973 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
5974 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
5975 __vfwprintf_internal.
5976
5977 * libio/libio.h: Remove libc_hidden_proto and declaration for
5978 _IO_vfprintf.
5979 Remove declaration of _IO_vfwprintf.
5980 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
5981 _IO_vsprintf.
5982 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
5983 _IO_obstack_printf.
5984 * include/stdio.h: Add prototype for __vasprintf.
5985 (__vsnprintf): Remove declaration, because there are no more
5986 internal calls.
5987 * include/wchar.h (__vfwprintf, __vswprintf): Remove
5988 declaration, because there are no more internal calls.
5989
5990 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
5991 __vsnprintf_internal, instead of _IO_vsnprintf.
5992 * argp/argp-help.c (__argp_error, __argp_failure): Use
5993 __vasprintf_internal, instead of _IO_vasprintf.
5994 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
5995 redefine, because there are no more internal calls.
5996
5997 2018-12-05 Zack Weinberg <zackw@panix.com>
5998 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5999
6000 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6001 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6002 Include libio/strfile.h instead of libioP.h.
6003 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6004 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6005 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6006 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6007 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6008 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6009 necessary. Do not set __no_long_double. Normalize variable names.
6010 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6011 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6012 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6013 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6014 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6015 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6016 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6017 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6018 Do not set __no_long_double. Normalize variable names.
6019
6020 2018-12-05 Zack Weinberg <zackw@panix.com>
6021 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6022
6023 * stdio-common/isoc99_scanf.c
6024 * stdio-common/isoc99_fscanf.c
6025 * stdio-common/isoc99_sscanf.c
6026 * stdio-common/isoc99_vscanf.c
6027 * stdio-common/isoc99_vfscanf.c
6028 * stdio-common/isoc99_vsscanf.c
6029 * wcsmbs/isoc99_wscanf.c
6030 * wcsmbs/isoc99_fwscanf.c
6031 * wcsmbs/isoc99_swscanf.c
6032 * wcsmbs/isoc99_vwscanf.c
6033 * wcsmbs/isoc99_vfwscanf.c
6034 * wcsmbs/isoc99_vswscanf.c:
6035 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6036 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6037 No need to lock and unlock the FILE passed to that function.
6038
6039 * stdio-common/vfscanf-internal.c
6040 (__vfscanf_internal, __vfwscanf_internal):
6041 Don't look at _IO_FLAGS2_SCANF_STD.
6042 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6043 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6044 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6045
6046 2018-12-05 Zack Weinberg <zackw@panix.com>
6047 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6048
6049 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6050 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6051 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6052 * libio/strfile.h: Add multiple inclusion guard.
6053 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6054
6055 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6056 consistency with the other version of this file.
6057 (ldbl_compat_symbol): New macro.
6058 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6059 New macro.
6060
6061 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6062 Define __vfscanf_internal or __vfwscanf_internal, depending on
6063 COMPILE_WSCANF; don't define any other public symbols.
6064 Remove errval and code to set errp.
6065 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6066 as the mode_flags argument.
6067 (encode_error, conv_error, input_error): Don't set errval.
6068 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6069 Include vfscanf-internal.c.
6070 * stdio-common/vfscanf.c: New file defining the public entry
6071 point vfscanf, which calls __vfscanf_internal.
6072 * stdio-common/vfwscanf.c: New file defining the public entry
6073 point vfwscanf, which calls __vfwscanf_internal.
6074
6075 * stdio-common/iovfscanf.c: New file.
6076 * stdio-common/iovfwscanf.c: Likewise.
6077
6078 * stdio-common/Makefile (routines): Add vfscanf-internal,
6079 vfwscanf-internal, iovfscanf, iovfwscanf.
6080 * stdio-common/Versions: Mention GLIBC_2.29, so that
6081 it can be used in SHLIB_COMPAT expressions.
6082 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6083 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6084 Call __vfscanf_internal, instead of _IO_vfscanf.
6085 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6086 _IO_vfscanf.
6087 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6088 _IO_vfwscanf.
6089
6090 * libio/iovsscanf.c: Clean up includes, when possible. Use
6091 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6092 __vfscanf_internal or __vfwscanf_internal directly.
6093 * libio/iovswscanf.c: Likewise.
6094 * libio/swscanf.c: Likewise.
6095 * libio/vscanf.c: Likewise.
6096 * libio/vwscanf.c: Likewise.
6097 * libio/wscanf.c: Likewise.
6098 * stdio-common/isoc99_fscanf.c: Likewise.
6099 * stdio-common/isoc99_scanf.c: Likewise.
6100 * stdio-common/isoc99_sscanf.c: Likewise.
6101 * stdio-common/isoc99_vfscanf.c: Likewise.
6102 * stdio-common/isoc99_vscanf.c: Likewise.
6103 * stdio-common/isoc99_vsscanf.c: Likewise.
6104 * stdio-common/scanf.c: Likewise.
6105 * stdio-common/sscanf.c: Likewise.
6106 * wcsmbs/isoc99_fwscanf.c: Likewise.
6107 * wcsmbs/isoc99_swscanf.c: Likewise.
6108 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6109 * wcsmbs/isoc99_vswscanf.c: Likewise.
6110 * wcsmbs/isoc99_vwscanf.c: Likewise.
6111 * wcsmbs/isoc99_wscanf.c: Likewise.
6112
6113 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6114
6115 * include/time.h
6116 (__tz_compute): Replace time_t with __time64_t.
6117 (__tz_convert): Replace time_t* with __time64_t.
6118 (__offtime): Replace time_t* with __time64_t.
6119 * time/gmtime.c
6120 (__gmtime_r): Adjust call to __tz_convert.
6121 (gmtime): Likewise.
6122 * time/localtime.c
6123 (__localtime_r): Likewise.
6124 (localtime): Likewise.
6125 * time/offtime.c: Replace time_t with __time64_t.
6126 * time/tzset.c: Likewise.
6127
6128 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6129
6130 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6131 dynamic linker unless [$(run-built-tests) = yes].
6132
6133 2018-12-03 DJ Delorie <dj@delorie.com>
6134
6135 * support/test-container.c (check_for_unshare_hints): New.
6136 (main): Call it if unshare fails. Add support for "su" scriptlet
6137 command.
6138
6139 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6140
6141 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6142 'START' to indicate that start text should be output.
6143 (gen_test): Likewise.
6144 (main): Generate 'START' for first symbol or '--' line, or at end
6145 of input if not previously generated.
6146
6147 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6148
6149 [BZ #19767]
6150 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6151 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6152 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6153 ALWAYS_USE_VSYSCALL.
6154
6155 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6156
6157 [BZ #23913]
6158 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6159 new_argv by one.
6160
6161 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6162
6163 [BZ #23923]
6164 * locale/programs/localedef.c: Declare boolean hard_links default true.
6165 (options): Add --no-hard-links option.
6166 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6167 * locale/programs/localedef.h: Declare prototype for hard_links.
6168 * locale/programs/locfile.c (write_locale_data): Don't use hard
6169 links if hard_links is false.
6170
6171 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6172
6173 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6174 cpu_features_basic.
6175 (__cache_sysconf): Likewise.
6176 (init_cacheinfo): Likewise.
6177 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6178 populate COMMON_CPUID_INDEX_80000007 and
6179 COMMON_CPUID_INDEX_80000008.
6180 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6181 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6182 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6183 (init_cpu_features): Use _Static_assert on
6184 index_arch_Fast_Unaligned_Load.
6185 __get_cpuid_registers and __get_arch_feature. Updated for
6186 cpu_features_basic. Set stepping in cpu_features.
6187 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6188 (FEATURE_INDEX_2): New.
6189 (FEATURE_INDEX_MAX): Changed to enum.
6190 (COMMON_CPUID_INDEX_D_ECX_1): New.
6191 (COMMON_CPUID_INDEX_80000007): Likewise.
6192 (COMMON_CPUID_INDEX_80000008): Likewise.
6193 (cpuid_registers): Likewise.
6194 (cpu_features_basic): Likewise.
6195 (CPU_FEATURE_USABLE): Likewise.
6196 (bit_arch_XXX_Usable): Likewise.
6197 (cpu_features): Use cpuid_registers and cpu_features_basic.
6198 (bit_arch_XXX): Reweritten.
6199 (bit_cpu_XXX): Likewise.
6200 (index_cpu_XXX): Likewise.
6201 (reg_XXX): Likewise.
6202 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6203 <support/check.h>.
6204 (CHECK_CPU_FEATURE): New.
6205 (CHECK_CPU_FEATURE_USABLE): Likewise.
6206 (cpu_kinds): Likewise.
6207 (do_test): Print vendor, family, model and stepping. Check
6208 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6209 (TEST_FUNCTION): Removed.
6210 Include <support/test-driver.c> instead of
6211 "../../test-skeleton.c".
6212 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6213 Check POPCNT instead of POPCOUNT.
6214 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6215
6216 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6217
6218 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6219 there is no element in `consts'.
6220
6221 2018-12-01 Florian Weimer <fweimer@redhat.com>
6222
6223 * support/support_capture_subprocess.c
6224 (support_capture_subprocess): Check that pipe descriptors have
6225 expected values. Close original pipe descriptors in subprocess.
6226
6227 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6228
6229 [BZ #23032]
6230 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6231 attr with __pthread_default_barrierattr.
6232 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6233 attr with __pthread_default_condattr.
6234 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6235 attr with __pthread_default_mutexattr.
6236 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6237 attr with __pthread_default_rwlockattr.
6238
6239 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6240
6241 * manual/tunables.texi (POSIX Thread Tunables): New node.
6242 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6243 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6244 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6245 __pthread_tunables_init.
6246 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6247 (max_adaptive_count): Define.
6248 * nptl/pthread_mutex_conf.c: New file.
6249 * nptl/pthread_mutex_conf.h: New file.
6250 * sysdeps/generic/adaptive_spin_count.h: New file.
6251 * sysdeps/nptl/dl-tunables.list: New file.
6252 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6253 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6254 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6255 Likewise.
6256
6257 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6258
6259 [BZ #20544]
6260 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6261 * stdlib/on_exit.c (__on_exit): Likewise.
6262 * stdlib/Makefile (tests): Add tst-bz20544.
6263 * stdlib/tst-bz20544.c: New test.
6264
6265 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6266
6267 [BZ #19767]
6268 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6269 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6270 New.
6271
6272 2018-11-30 Florian Weimer <fweimer@redhat.com>
6273
6274 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6275 Extend error logging.
6276 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6277 symbol.
6278
6279 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6280
6281 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6282 __sigismember instead of sigismember.
6283 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6284 cancel_handler): New definitions.
6285 (do_system): Use posix_spawn instead of fork and execl and remove
6286 reentracy code.
6287 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6288 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6289 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6290 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6291 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6292 * sysdeps/unix/sysv/linux/system.c: Likewise.
6293
6294 [BZ #22834]
6295 [BZ #17490]
6296 * NEWS: Add new semantic for atfork with popen and system.
6297 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6298 fork and execl.
6299
6300 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6301
6302 [BZ #23690]
6303 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6304 modification order when accessing reloc_result->addr.
6305 * include/link.h (reloc_result): Add field init.
6306 * nptl/Makefile (tests): Add tst-audit-threads.
6307 (modules-names): Add tst-audit-threads-mod1 and
6308 tst-audit-threads-mod2.
6309 Add rules to build tst-audit-threads.
6310 * nptl/tst-audit-threads-mod1.c: New file.
6311 * nptl/tst-audit-threads-mod2.c: Likewise.
6312 * nptl/tst-audit-threads.c: Likewise.
6313 * nptl/tst-audit-threads.h: Likewise.
6314
6315 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6316
6317 * scripts/gen-as-const.py: New file.
6318 * scripts/gen-as-const.awk: Remove.
6319 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6320 gen-as-const.py.
6321 ($(objpfx)test-as-const-%.c): Likewise.
6322
6323 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6324
6325 * elf/dl-exception.c: Include <_itoa.h>.
6326
6327 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6328
6329 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6330 returned by __f_setlk.
6331
6332 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6333 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6334
6335 * elf/Makefile (tests-internal): Add tst-create_format1.
6336 * elf/dl-exception.c (_dl_exception_create_format): Support
6337 %x, %lx and %zx.
6338 * elf/tst-create_format1.c: New file.
6339
6340 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6341
6342 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6343 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6344 gnulib.)
6345 * argp/argp-help.c (__argp_failure): Likewise.
6346
6347 2018-11-29 Mao Han <han_mao@c-sky.com>
6348
6349 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6350 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6351 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6352 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6353 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6354 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6355 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6356 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6357 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6358 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6359 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6360 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6361 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6362 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6363 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6364 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6365 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6366 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6367 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6368 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6369 (R_CKCORE_TLS_TPOFF32): New defines.
6370
6371 2018-11-29 Florian Weimer <fweimer@redhat.com>
6372
6373 * posix/Makefile (before-compile): Remove testcases.h and
6374 ptestcases.h.
6375 (generated): Add testcases.h and ptestcases.h.
6376 (testcases.h, ptestcases.h): Move to $(objpfx).
6377 (runtests.o): Add dependency on testcases.h.
6378 (runptests.o): Add dependency on ptestcases.h.
6379 * posix/testcases.h, posix/ptestcases.h: Remove files.
6380 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6381 not touch posix/testcases.h and posix/ptestcases.h.
6382
6383 2018-11-28 Florian Weimer <fweimer@redhat.com>
6384
6385 support: Add signal support to support_capture_subprocess_check.
6386 * support/capture_subprocess.h (support_capture_subprocess_check):
6387 Adjust comment and rename parameter.
6388 * support/support_capture_subprocess_check.c
6389 (print_actual_status): New function.
6390 (support_capture_subprocess_check): Support negative
6391 status_or_signal. Call print_actual_status.
6392 * support/tst-support_capture_subprocess.c (do_test): Call
6393 support_capture_subprocess_check.
6394 * libio/tst-vtables-common.c (termination_status)
6395 (init_termination_status): Remove.
6396 (check_for_termination): Adjust support_capture_subprocess_check
6397 call.
6398 (do_test): Remove call to init_termination_status.
6399
6400 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6401
6402 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6403 source directory instead of a copy.
6404 (CommandList.create_copy_dir): Remove.
6405
6406 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6407
6408 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6409
6410 2018-11-28 Florian Weimer <fweimer@redhat.com>
6411
6412 * support/support.h (support_quote_string): Do not use str
6413 parameter name.
6414
6415 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6416
6417 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6418 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6419
6420 2018-11-27 Florian Weimer <fweimer@redhat.com>
6421
6422 * support/support.h (support_quote_string): Declare.
6423 * support/support_quote_string.c: New file.
6424 * support/tst-support_quote_string.c: Likewise.
6425 * support/Makefile (libsupport-routines): Add
6426 support_quote_string.
6427 (tests): Add tst-support_quote_string.
6428
6429 2018-11-27 Florian Weimer <fweimer@redhat.com>
6430
6431 [BZ #23927]
6432 CVE-2018-19591
6433 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6434 descriptor leak in case of ENODEV error.
6435
6436 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6437
6438 [BZ #19767]
6439 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6440 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6441 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6442
6443 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6444
6445 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6446 Error for unknown lines.
6447
6448 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6449
6450 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6451 Touch additional files.
6452
6453 2018-11-26 Florian Weimer <fweimer@redhat.com>
6454
6455 [BZ #23907]
6456 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6457 double-frees.
6458
6459 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6460
6461 [BZ #19767]
6462 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6463 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6464 SHARED. Include sysdep.h.
6465 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6466 ALWAYS_USE_VSYSCALL.
6467 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6468 ALWAYS_USE_VSYSCALL.
6469
6470 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6471
6472 [BZ #19767]
6473 * nptl/Makefile (tests-static): Add tst-cond11-static.
6474 (tests): Likewise.
6475 * nptl/tst-cond11-static.c: New File.
6476 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6477 tst-affinity-static.
6478 (tests): Likewise.
6479 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6480 instead of SHARED.
6481 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6482 (USE_VSYSCALL): Likewise.
6483 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6484 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6485 instead of SHARED.
6486 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6487 SHARED.
6488 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6489 New.
6490
6491 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6492
6493 [BZ #23915]
6494 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6495 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6496 Undefine.
6497
6498 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6499
6500 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6501 (tst-cet-legacy-1a-ARGS): New.
6502 ($(objpfx)tst-cet-legacy-1a): New target.
6503 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6504
6505 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6506
6507 * conform/conformtest.py (CompileSubTest.__init__): Set
6508 self.run_early to False.
6509 (ExecuteSubTest.__init__): Likewise.
6510 (HeaderTests.run): Try running all non-optional, non-XFAILed
6511 compilation tests in a single execution of the compiler.
6512
6513 * conform/conformtest.py (CompileSubTest): New class.
6514 (ExecuteSubTest): Likewise.
6515 (ElementTest.run): Rename to gen_subtests. Append tests to
6516 self.subtests instead of running them.
6517 (ConstantTest.run): Likewise.
6518 (SymbolTest.run): Likewise.
6519 (TypeTest.run): Likewise.
6520 (TagTest.run): Likewise.
6521 (FunctionTest.run): Likewise.
6522 (VariableTest.run): Likewise.
6523 (MacroFunctionTest.run): Likewise.
6524 (MacroStrTest.run): Likewise.
6525 (HeaderTests.handle_test_line): Generate subtests for tests.
6526 (HeaderTests.run): Run subtests for tests.
6527
6528 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6529
6530 * math/Versions (GLIBC_2.29): Add pow.
6531 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
6532 symbol.
6533 * math/w_pow.c: New file.
6534 * sysdeps/i386/fpu/w_pow.c: New file.
6535 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
6536 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
6537 and add necessary aliases.
6538 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
6539 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
6540 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6541 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6542 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6543 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6544 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6545 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6546 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6547 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6548 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6549 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6550 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6551 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6552 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6554 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6556 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6557 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6558 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6559 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6560 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6561 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6562 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6563 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6564 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
6565 __pow.
6566 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
6567 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
6568 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
6569
6570 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6571
6572 * math/Versions (GLIBC_2.29): Add log2.
6573 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
6574 symbol.
6575 * math/w_log2.c: New file.
6576 * sysdeps/i386/fpu/w_log2.c: New file.
6577 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
6578 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
6579 and add necessary aliases.
6580 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
6581 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
6582 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6583 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6584 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6585 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6586 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6587 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6588 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6589 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6590 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6591 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6592 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6593 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6594 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6597 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6599 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6600 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6601 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6602 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6603 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6604 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6605 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6606
6607 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6608
6609 * math/Versions (GLIBC_2.29): Add log.
6610 * math/w_log_compat.c (__log_compat): Change to versioned compat
6611 symbol.
6612 * math/w_log.c: New file.
6613 * sysdeps/i386/fpu/w_log.c: New file.
6614 * sysdeps/ia64/fpu/e_log.S: Update.
6615 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
6616 and add necessary aliases.
6617 * sysdeps/ieee754/dbl-64/w_log.c: New file.
6618 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
6619 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6620 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6621 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6622 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6623 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6624 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6625 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6626 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6627 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6628 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6629 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6630 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6631 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6636 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6637 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6638 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6639 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6640 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6641 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6642 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6643 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
6644 __log.
6645 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
6646 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
6647 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
6648 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
6649
6650 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6651
6652 * math/Versions (GLIBC_2.29): Add exp and exp2.
6653 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
6654 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
6655 * math/w_exp_compat.c (__exp_compat): Likewise.
6656 * math/w_exp.c: New file.
6657 * math/w_exp2.c: New file.
6658 * sysdeps/i386/fpu/w_exp.c: New file.
6659 * sysdeps/i386/fpu/w_exp2.c: New file.
6660 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
6661 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6662 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
6663 and add necessary aliases.
6664 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
6665 and add necessary aliases.
6666 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
6667 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
6668 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
6669 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
6670 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6671 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6672 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6673 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6674 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6675 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6676 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6677 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6678 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6679 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6680 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6681 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6682 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6687 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6688 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6689 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6690 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6691 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6692 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6693 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6694 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
6695 (__ieee754_exp): Rename to __exp.
6696 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
6697 (__ieee754_exp): Rename to __exp.
6698 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
6699 (__ieee754_exp): Rename to __exp.
6700 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
6701 __exp.
6702 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
6703
6704 2018-11-20 DJ Delorie <dj@redhat.com>
6705
6706 * malloc/malloc.c (tcache_entry): Add key field.
6707 (tcache_put): Set it.
6708 (tcache_get): Likewise.
6709 (_int_free): Check for double free in tcache.
6710 * malloc/tst-tcfree1.c: New.
6711 * malloc/tst-tcfree2.c: New.
6712 * malloc/Makefile: Run the new tests.
6713 * manual/probes.texi: Document memory_tcache_double_free probe.
6714
6715 * dlfcn/dlerror.c (check_free): Prevent double frees.
6716
6717 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
6718
6719 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
6720
6721 2018-11-20 Joseph Myers <joseph@codesourcery.com>
6722
6723 * conform/conformtest.py (ElementTest.run): Use unique identifiers
6724 in tests. Use names for format arguments.
6725 (ConstantTest.run): Likewise.
6726 (SymbolTest.run): Likewise.
6727 (TypeTest.run): Likewise.
6728 (TagTest.run): Likewise.
6729 (FunctionTest.run): Likewise.
6730 (VariableTest.run): Likewise.
6731 (MacroFunctionTest.run): Likewise.
6732 (MacroStrTest.run): Likewise.
6733 (HeaderTests.__init__): Set self.num_tests.
6734 (HeaderTests.handle_test_line): Set test.num. Increment
6735 self.num_tests.
6736
6737 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6738
6739 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
6740 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
6741 SEEK_SET.
6742
6743 2018-11-19 Mao Han <han_mao@c-sky.com>
6744
6745 * scripts/config.guess: Update to version 2018-08-29.
6746 * scripts/config.sub: Update to version 2018-08-29.
6747
6748 2018-11-19 Florian Weimer <fweimer@redhat.com>
6749
6750 support: Print timestamps in timeout handler.
6751 * support/support_test_main.c (print_timestamp): New function.
6752 (signal_handler): Use it to print the termination time and the
6753 time of the last write to standard output.
6754
6755 2018-11-16 Zack Weinberg <zackw@panix.com>
6756 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6757
6758 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
6759 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
6760 argument.
6761 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
6762 and add flags argument. Check flags instead of __ldbl_is_dbl when
6763 deciding whether to set is_long_double.
6764 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
6765 passing zero for flags argument.
6766 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
6767
6768 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6769 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
6770 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
6771 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
6772 variable names. Remove libc_hidden_def/libc_hidden_proto from
6773 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
6774 longer called from within the library.
6775 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
6776 for __nldbl___vstrfmon_l, declare it explicitly.
6777
6778 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
6779
6780 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
6781
6782 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
6783 macros
6784 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
6785 F_SETLK64, F_SETLKW64, respectively.
6786 * sysdeps/mach/hurd/f_setlk.c: New file.
6787 * sysdeps/mach/hurd/f_setlk.h: New file.
6788 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
6789 f_setlk.
6790 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
6791 (__libc_fcntl): Move non-flock operations to...
6792 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
6793 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
6794
6795 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
6796
6797 mktime: DEBUG_MKTIME cleanup
6798 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
6799 And it’s no longer needed now that glibc and Gnulib both have
6800 their own testing mechanisms for mktime.
6801 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
6802
6803 mktime: fix non-EOVERFLOW errno handling
6804 [BZ#23789]
6805 mktime was not properly reporting failures when the underlying
6806 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
6807 them like EOVERFLOW failures, and set errno to EOVERFLOW.
6808 The problem could happen on non-glibc platforms, with Gnulib.
6809 * time/mktime.c (guess_time_tm): Remove, replacing with ...
6810 (tm_diff): ... this simpler function, which does not change errno.
6811 All callers changed to deal with errno themselves.
6812 (ranged_convert, __mktime_internal): Return failure immediately if
6813 the underlying function reports any failure other than EOVERFLOW.
6814 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
6815 gap code fails.
6816
6817 mktime: fix bug with Y2038 DST transition
6818 [BZ#23789]
6819 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
6820 mishandle a DST transition that jumps over the Y2038 boundary.
6821 No such DST transitions are known so this is only a theoretical
6822 bug, but we might as well do things right.
6823
6824 mktime: make more room for overflow
6825 [BZ#23789]
6826 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
6827 This is so that we can add tm_diff results to a previous guess,
6828 which will be useful in a later patch.
6829
6830 mktime: simplify offset guess
6831 [BZ#23789]
6832 * time/mktime.c (__mktime_internal): Omit excess precision.
6833
6834 mktime: new test for mktime failure
6835 [BZ#23789]
6836 Based on a test suggested by Albert Aribaud in:
6837 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
6838 * time/Makefile (tests): Add bug-mktime4.
6839 * time/bug-mktime4.c: New file.
6840
6841 mktime: fix EOVERFLOW bug
6842 [BZ#23789]
6843 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
6844 Include libc-config.h, not config.h, for __set_errno.
6845 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
6846
6847 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6848
6849 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
6850 __attribute_copy__ to copy attributes from name. Drop static qualifier
6851 to avoid warnings about leaf attribute not having effect on static
6852 functions.
6853
6854 2018-11-13 Florian Weimer <fweimer@redhat.com>
6855
6856 * malloc/malloc.c (fastbin_push_entry): New function.
6857 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
6858 (REMOVE_FB): Remove macro.
6859 (_int_malloc): Use fastbin_pop_entry and reindent.
6860 (_int_free): Use fastbin_push_entry.
6861 (malloc_consolidate): Use atomic_exchange_acquire.
6862
6863 2018-11-13 Joseph Myers <joseph@codesourcery.com>
6864
6865 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
6866 alias attribute, not with strong_alias.
6867
6868 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
6869 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
6870 with additional parameter thread.
6871 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
6872 in terms of __hidden_ver2.
6873 (hidden_tls_def): New macro.
6874 (libc_hidden_tls_def): Likewise.
6875 (rtld_hidden_tls_def): Likewise.
6876 (libm_hidden_tls_def): Likewise.
6877 (libmvec_hidden_tls_def): Likewise.
6878 (libresolv_hidden_tls_def): Likewise.
6879 (librt_hidden_tls_def): Likewise.
6880 (libdl_hidden_tls_def): Likewise.
6881 (libnss_files_hidden_tls_def): Likewise.
6882 (libnsl_hidden_tls_def): Likewise.
6883 (libnss_nisplus_hidden_tls_def): Likewise.
6884 (libutil_hidden_tls_def): Likewise.
6885 (libutil_hidden_tls_def): Likweise.
6886 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
6887 libc_hidden_tls_def.
6888 (__sim_disabled_exceptions_thread): Likewise.
6889 (__sim_round_mode_thread): Likewise.
6890
6891 * sysdeps/sparc/sparc-ifunc.h [SHARED]
6892 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
6893 copy attributes from name.
6894
6895 2018-11-12 Joseph Myers <joseph@codesourcery.com>
6896
6897 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
6898 Use __attribute_copy__ to copy attributes from name.
6899
6900 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
6901 with __hidden_ver1 call.
6902 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
6903 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
6904 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
6905 (__cosf): Do not declare here.
6906 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
6907 (__sincosf): Do not declare here.
6908 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
6909 (__sinf): Do not declare here.
6910
6911 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
6912 (__BIG_ENDIAN): Likewise.
6913 (__BYTE_ORDER): Likewise.
6914 (strong_alias): Likewise.
6915 (_strong_alias): Likewise.
6916
6917 2018-11-12 Florian Weimer <fweimer@redhat.com>
6918
6919 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
6920 function. Move after the definition of in_smallbin_range. Do not
6921 use __builtin_expect for paths that lead to a noreturn function.
6922 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
6923 because it is unclear whether this is in fact an unlikely
6924 condition.
6925 (_int_malloc, _int_free): Adjust.
6926 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
6927 variables.
6928 * malloc/arena.c (heap_trim): Likewise.
6929
6930 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
6931
6932 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
6933 it, free it if needed.
6934 (reauthenticate): Test and use ccwdir.
6935 (child_init_port): In non-resetids case, test and use ccwdir.
6936 (child_chdir): New nested function to set ccwdir.
6937 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
6938 * hurd/hurd/port.h (_hurd_port_move): New function.
6939 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
6940 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
6941 * hurd/Versions (_hurd_port_move): Export function.
6942 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
6943 symbol.
6944 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
6945 of dtablesize for allocating dtable_cloexec.
6946
6947 2018-11-09 Martin Sebor <msebor@redhat.com>
6948
6949 * include/libc-symbols.h (__attribute_copy__): Define macro unless
6950 it's already defined.
6951 (_strong_alias): Use __attribute_copy__.
6952 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
6953 * misc/sys/cdefs.h (__attribute_copy__): New macro.
6954 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
6955 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
6956 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
6957 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
6958 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
6959 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
6960 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
6961 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
6962 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
6963 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
6964 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
6965 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
6966 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
6967 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
6968 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
6969 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
6970 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
6971
6972 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6973
6974 * misc/tst-efgcvt.c: Include support/check.h and
6975 support/test-driver.c. Do not include test-skeleton.c.
6976 (error_count): Remove.
6977 (output_error): Replace increments to error_count with calls to
6978 support_record_failure.
6979 (output_r_error): Likewise.
6980 (special): Likewise.
6981 (do_test): Unconditionally return zero.
6982 (TEST_FUNCTION): Remove.
6983
6984 2018-11-09 Joseph Myers <joseph@codesourcery.com>
6985
6986 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
6987 not $(@D)/scratch.
6988 ($(linknamespace-header-tests)): Likewise.
6989
6990 * conform/conformtest.py: New file.
6991 * conform/conformtest.pl: Remove.
6992 * conform/GlibcConform.pm: Likewise.
6993 * conform/glibcconform.py (KEYWORDS_C90): New constant.
6994 (KEYWORDS_C99): Likewise.
6995 (KEYWORDS): Likewise.
6996 * conform/Makefile ($(conformtest-header-tests)): Use
6997 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
6998 option. Use --header instead of --headers.
6999 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7000 function entries.
7001 * conform/data/spawn.h-data: Likewise.
7002 * conform/data/fcntl.h-data (openat): Add space after function
7003 name.
7004 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7005 (wcscasecmp_l): Likewise.
7006 * conform/data/termios.h-data (c_cc): Add space after element
7007 name.
7008
7009 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7010
7011 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7012 instead of manually comparing and reporting mismatching strings.
7013 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7014 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7015
7016 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7017
7018 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7019 __ASSUME_SOCKETCALL.
7020 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7021 (__ASSUME_SOCKETCALL): Remove.
7022 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7023 (__ASSUME_SOCKETCALL): Likewise.
7024 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7025 (__ASSUME_SOCKETCALL): Likewise.
7026 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7027 (__ASSUME_SOCKETCALL): Likewise.
7028 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7029 (__ASSUME_SOCKETCALL): Likewise.
7030 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7031 (__ASSUME_SOCKETCALL): Likewise.
7032 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7033 (__ASSUME_SOCKETCALL): Likewise.
7034
7035 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7036
7037 [BZ #23509]
7038 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7039 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7040 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7041 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7042 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7043 lc_unknown.
7044
7045 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7046
7047 [BZ #17630]
7048 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7049
7050 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7051
7052 [BZ #23867]
7053 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7054 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7055 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7056 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7057
7058 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7059
7060 * support/support_test_compare_string.c
7061 (support_test_compare_string): Fix printf format.
7062
7063 2018-11-07 Florian Weimer <fweimer@redhat.com>
7064
7065 Implement TEST_COMPARE_STRING.
7066 * support/check.h (TEST_COMPARE_STRING): Define.
7067 (support_test_compare_string): Declare.
7068 * support/Makefile (libsupport-routines): Add
7069 support_test_compare_string.
7070 (tests): Add tst-test_compare_string.
7071 * support/support_test_compare_string.c: New file.
7072 * support/tst-test_compare_string.c: Likewise.
7073
7074 2018-11-07 Andreas Schwab <schwab@suse.de>
7075
7076 [BZ #23864]
7077 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7078 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7079 Undef.
7080
7081 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7082
7083 [BZ #23862]
7084 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7085 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7086 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7087 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7088 Likewise.
7089
7090 2018-11-06 Florian Weimer <fweimer@redhat.com>
7091
7092 [BZ #17405]
7093 * posix/Makefile (routines): Add spawn_faction_addchdir.
7094 (tests): Add tst-spawn-chdir.
7095 * posix/Versions (GLIBC_2.29): Add
7096 posix_spawn_file_actions_addchdir_np.
7097 * posix/spawn_faction_addchdir.c: New file.
7098 * posix/spawn_faction_destroy.c
7099 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7100 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7101 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7102 chdir_action.
7103 * posix/tst-spawn-chdir.c: New file.
7104 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7105 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7106 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7107 posix_spawn_file_actions_addchdir_np.
7108 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7109 Likewise.
7110 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7111 Likewise.
7112 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7113 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7114 Likewise.
7115 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7116 Likewise.
7117 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7118 Likewise.
7119 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7120 Likewise.
7121 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7122 Likewise.
7123 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7124 Likewise.
7125 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7126 (GLIBC_2.29): Likewise.
7127 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7128 (GLIBC_2.29): Likewise.
7129 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7130 (GLIBC_2.29): Likewise.
7131 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7132 (GLIBC_2.29): Likewise.
7133 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7134 Likewise.
7135 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7136 (GLIBC_2.29): Likewise.
7137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7138 (GLIBC_2.29): Likewise.
7139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7140 (GLIBC_2.29): Likewise.
7141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7142 (GLIBC_2.29): Likewise.
7143 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7144 Likewise.
7145 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7146 Likewise.
7147 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7148 Likewise.
7149 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7150 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7151 Likewise.
7152 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7153 Likewise.
7154 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7155 Likewise.
7156 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7157 Likewise.
7158
7159 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7160
7161 * misc/Makefile (tests): Add tst-ldbl-error.
7162 * misc/tst-ldbl-error.c: New file.
7163
7164 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7165
7166 * misc/Makefile (tests): Add tst-ldbl-warn.
7167 * misc/tst-ldbl-warn.c: New file.
7168
7169 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7170
7171 * argp/Makefile (tests): Add tst-ldbl-argp.
7172 * argp/tst-ldbl-argp.c: New file.
7173
7174 2018-11-05 Arjun Shankar <arjun@redhat.com>
7175
7176 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7177 __gconv_path_elem and call __gconv_get_path unconditionally.
7178
7179 2018-11-05 Andreas Schwab <schwab@suse.de>
7180
7181 [BZ #22927]
7182 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7183 creating the first helper thread failed.
7184
7185 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7186
7187 * sysdeps/mach/hurd/msync.c: New file.
7188
7189 2018-11-02 Florian Weimer <fweimer@redhat.com>
7190
7191 * support/shell-container.c (copy_func): Call
7192 support_copy_file_range instead of copy_file_range to support
7193 cross-device copies.
7194
7195 2018-11-02 Florian Weimer <fweimer@redhat.com>
7196
7197 * support/test-container.c: Include <libc-pointer-arith.h> for
7198 ALIGN_UP.
7199
7200 2018-11-01 Zong Li <zong@andestech.com>
7201
7202 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7203 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7204 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7205 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7206
7207 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7208 variable to avoid overlap arguments.
7209
7210 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7211
7212 * posix/bug-regex22.c (main): Use puts with distinct error
7213 messages for unexpected success of re_compile_pattern, not printf
7214 with NULL argument to %s.
7215
7216 * stdio-common/bug22.c: Include <libc-diag.h>.
7217 (do_test): Disable -Wformat-overflow= warnings around fprintf
7218 calls outputting more than INT_MAX characters.
7219 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7220 around printf call with NULL %s argument.
7221
7222 [BZ #23848]
7223 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7224 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7225 Undefine.
7226 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7227 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7228 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7229 (__ASSUME_SENDTO_SYSCALL): Likewise.
7230 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7231 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7232 [!__arch64__].
7233 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7234 (__ASSUME_CONNECT_SYSCALL): Likewise.
7235 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7236 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7237 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7238 Define.
7239 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7240 Likewise.
7241 [__LINUX_KERNEL_VERSION >= 0x040400]
7242 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7243 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7244 Remove.
7245 (listen): Likewise.
7246 (setsockopt): Likewise.
7247
7248 2018-11-01 Fredrik Noring <noring@nocrew.org>
7249
7250 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7251 with the ISA override.
7252
7253 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7254
7255 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7256 #endif.
7257
7258 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7259
7260 * manual/errno.texi (EIEIO): Document how translators should
7261 translate the error message.
7262 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7263 printing trailing whitespaces refused by git.
7264 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7265 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7266 * hurd/Makefile (user-interfaces): Add pci.
7267
7268 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7269
7270 * conform/linknamespace.py: New file.
7271 * conform/linknamespace.pl: Remove file.
7272 * conform/Makefile ($(linknamespace-header-tests)): Use
7273 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7274 option.
7275
7276 2018-10-30 Florian Weimer <fweimer@redhat.com>
7277
7278 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7279 memory leaks.
7280
7281 2018-10-30 Florian Weimer <fweimer@redhat.com>
7282
7283 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7284
7285 2018-10-30 Florian Weimer <fweimer@redhat.com>
7286
7287 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7288 support_blob_repeat.
7289
7290 2018-10-30 Florian Weimer <fweimer@redhat.com>
7291
7292 Avoid spurious test failures in stdlib/test-bz22786.
7293 * support/Makefile (libsupport-routines): Add blob_repeat.
7294 (tests): Add tst-support_blob_repeat.
7295 * support/blob_repeat.h: New file.
7296 * support/blob_repeat.c: Likewise.
7297 * support/tst-support_blob_repeat.c: Likewise.
7298 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7299 support_blob_repeat_allocate.
7300
7301 2018-10-30 Andreas Schwab <schwab@suse.de>
7302
7303 [BZ #23125]
7304 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7305 Don't use tail call.
7306 * elf/tst-unwind-main.c: New file.
7307 * elf/Makefile (tests): Add tst-unwind-main.
7308 (CFLAGS-tst-unwind-main.c): Define.
7309
7310 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7311
7312 [BZ #23791]
7313 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7314 n_cs_precedes to 0.
7315 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7316
7317 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7318
7319 * conform/glibcconform.py: Do not import shutil.
7320 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7321 of mkdtemp.
7322
7323 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7324 critic_missing for versions before 3.4.
7325 * configure: Regenerated.
7326 * manual/install.texi (Tools for Compilation): Document
7327 requirement for Python to build glibc.
7328 * INSTALL: Regenerated.
7329 * Rules [PYTHON]: Make code unconditional.
7330 * benchtests/Makefile [PYTHON]: Likewise.
7331 * conform/Makefile [PYTHON]: Likewise.
7332 * manual/Makefile [PYTHON]: Likewise.
7333 * math/Makefile [PYTHON]: Likewise.
7334
7335 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7336
7337 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7338 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7339 answer to interrupt_operation, return EIEIO instead of EINTR.
7340 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7341 _hurd_intr_rpc_msg_about_to global point to start of controlled
7342 assembly snippet. Make it check canceled flag.
7343 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7344 the _hurd_intr_rpc_msg_about_to point.
7345 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7346 issue, remove cancel flag check.
7347
7348 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7349
7350 * scripts/build-many-glibcs.py: Remove compatibility for missing
7351 os.cpu_count and re.fullmatch.
7352
7353 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7354
7355 [BZ #23822]
7356 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7357 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7358 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7359
7360 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7361
7362 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7363 macro.
7364
7365 2018-10-25 Florian Weimer <fweimer@redhat.com>
7366
7367 [BZ #23562]
7368 [BZ #23821]
7369 XFAIL siginfo_t si_band conform test on sparc64.
7370 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7371 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7372 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7373 (conformtest-xfail-conds): Add sparc64-linux.
7374 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7375 sparc64.
7376 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7377
7378 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7379
7380 * elf/elf.h (NT_MIPS_DSP): New macro.
7381 (NT_MIPS_FP_MODE): Likewise.
7382
7383 2018-10-25 Zong Li <zong@andestech.com>
7384
7385 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7386 name by adding the file extension (.so).
7387
7388 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7389
7390 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7391 (test-xfail-ISO11/threads.h/linknamespace,
7392 test-xfail-ISO11/threads.h/conform): Add.
7393
7394 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7395
7396 * math/gen-libm-test.py: Import os.
7397 (ALL_FLOATS_MANUAL): New constant.
7398 (ALL_FLOATS_SUFFIX): Likewise.
7399 (Ulps.all_functions): New function.
7400 (real_all_ulps): Likewise.
7401 (generate_err_table_sub): Likewise.
7402 (generate_err_table): Likewise.
7403 (main): Handle -s and -m options.
7404 * manual/libm-err-tab.pl: Remove.
7405 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7406 instead of libm-err-tab.pl.
7407 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7408 != no].
7409 * manual/install.texi (Tools for Compilation): Document
7410 requirement for Python to build manual.
7411 * INSTALL: Regenerated.
7412
7413 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7414
7415 * bits/time64.h: New file.
7416 * include/time.h: Replace internal_time_t with __time64_t.
7417 * posix/bits/types (__time64_t): Add.
7418 * stdlib/Makefile: Add bits/time64.h to includes.
7419 * time/tzfile.c: Replace internal_time_t with __time64_t.
7420
7421 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7422
7423 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7424 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7425 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7426 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7427 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7428 prototype.
7429 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7430 * posix/spawn_faction_addclose.c
7431 (__posix_spawn_file_actions_addclose): Add hidden definition.
7432 * posix/spawn_faction_adddup2.c
7433 (__posix_spawn_file_actions_adddup2): Likewise.
7434 * posix/spawn_faction_destroy.c
7435 (__posix_spawn_file_actions_destroy): Likewise.
7436 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7437 Likewise.
7438 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7439 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7440 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7441 Likewise.
7442 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7443 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7444 Likewise.
7445
7446 2018-10-24 Andreas Schwab <schwab@suse.de>
7447
7448 [BZ #18093]
7449 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7450 format cache.
7451 * elf/cache.c (print_cache): Likewise.
7452
7453 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7454
7455 * bits/timesize.h: New file.
7456 * stdlib/Makefile (headers): Add bits/timesize.h.
7457 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7458 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7459 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7460 (__SEM_PAD_AFTER_TIME): Likewise.
7461 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7462 (__SHM_PAD_AFTER_TIME): Likewise.
7463 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7464 (__MSQ_PAD_BEFORE_TIME): Likewise.
7465 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7466 (__SEM_PAD_BEFORE_TIME): Likewise.
7467 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7468 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7469 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7470 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7471 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7472 (__MSQ_PAD_BEFORE_TIME): Likewise.
7473 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7474 (__SEM_PAD_BEFORE_TIME): Likewise.
7475 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7476 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7477 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7478 (__MSQ_PAD_BEFORE_TIME): Likewise.
7479 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7480 (__SEM_PAD_BEFORE_TIME): Likewise.
7481 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7482 (__SHM_PAD_BEFORE_TIME): Likewise.
7483 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7484 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7485 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7486
7487 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7488
7489 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7490 USE_RDTSCP is defined.
7491 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7492 USE_RDTSCP is defined.
7493
7494 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7495
7496 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7497 defined.
7498
7499 [BZ #23709]
7500 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7501 independently of other flags.
7502
7503 2018-10-23 Florian Weimer <fweimer@redhat.com>
7504
7505 * time/tst-mktime2.c (N_STRINGS): Remove.
7506 (set_timezone): New function.
7507 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7508 (mktime_test1): Report localtime failure and check errno value.
7509 Use TEST_COMPARE.
7510 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7511 (do_test): Remove alarm call. Use set_timezone and array_length.
7512
7513 2018-10-23 Andreas Schwab <schwab@suse.de>
7514
7515 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7516 (__start_context): Use END instead of PSEUDO_END.
7517
7518 2018-10-22 Joseph Myers <joseph@codesourcery.com>
7519
7520 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7521 version to 4.19.
7522
7523 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7524 version to 4.19.
7525
7526 [BZ #23793]
7527 * wcsmbs/c32rtomb.c: New file.
7528 * wcsmbs/mbrtoc32.c: Likewise.
7529 * wcsmbs/tst-c32-state.c: Likewise.
7530 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
7531 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
7532 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
7533 (tests): Add tst-c32-state.
7534 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
7535 $(gen-locales).
7536
7537 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
7538
7539 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
7540 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
7541
7542 2018-10-19 Joseph Myers <joseph@codesourcery.com>
7543
7544 [BZ #23794]
7545 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
7546 pair and return 0 in that case, and use saved character to
7547 interpret following character.
7548 * wcsmbs/tst-c16-surrogate.c: New file.
7549 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
7550 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
7551 Depend on $(gen-locales)
7552
7553 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7554
7555 [BZ #23562]
7556 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
7557 (struct siginfo_t): Use correct type for si_band.
7558
7559 2018-10-19 Florian Weimer <fweimer@redhat.com>
7560
7561 [BZ #23689]
7562 * resource/bits/types/struct_rusage.h (struct rusage): Update
7563 comment on struct. Remove extraneous field comment.
7564
7565 2018-10-18 David S. Miller <davem@davemloft.net>
7566
7567 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
7568 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
7569 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
7570 sysdep_routines in subdir elf.
7571 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
7572 version for __vdso_clock_gettime.
7573 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
7574 Define.
7575 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7576 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7577
7578 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
7579
7580 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
7581
7582 * sysdeps/i386/init-arch.h: Removed.
7583 * sysdeps/i386/i586/init-arch.h: Likewise.
7584 * sysdeps/i386/i686/init-arch.h: Likewise.
7585 * sysdeps/i386/i686/hp-timing.h: Likewise.
7586 * sysdeps/x86_64/hp-timing.h: Likewise.
7587 * sysdeps/i386/isa.h: New file.
7588 * sysdeps/i386/i586/isa.h: Likewise.
7589 * sysdeps/i386/i686/isa.h: Likewise.
7590 * sysdeps/x86_64/isa.h: Likewise.
7591 * sysdeps/x86/hp-timing.h: New file.
7592 * sysdeps/x86/init-arch.h: Include <isa.h>.
7593
7594 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7595
7596 * math/libm-test-pow.inc (pow_test_data): Do not allow
7597 divide-by-zero exception for pow(+/- 0, -Inf).
7598
7599 2018-10-17 Zack Weinberg <zackw@panix.com>
7600
7601 * manual/job.texi (Job Control is Optional): Remove node, as
7602 job control has not been optional in quite some time.
7603 (Job Control): Mention briefly that systems older than
7604 POSIX.1-2001 might not support job control.
7605 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
7606 defined on systems conforming to POSIX.1-2001.
7607
7608 2018-10-17 Arjun Shankar <arjun@redhat.com>
7609
7610 [BZ #22062]
7611 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
7612 indentation.
7613 * (__gconv_read_conf): Mark function static.
7614 * (once): New static variable.
7615 * (__gconv_load_conf): New function.
7616 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
7617 * iconv/gconv_db.c (once): Remove static variable.
7618 * (__gconv_compare_alias): Use __gconv_load_conf instead of
7619 __gconv_read_conf.
7620 * (__gconv_find_transform): Likewise.
7621 * iconv/tst-iconv-mt.c: New test.
7622 * iconv/Makefile: Add tst-iconv_mt.
7623
7624 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7625
7626 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7627 bits/shm-pad.h.
7628 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
7629 (shmatt_t): Define as __syscall_ulong_t.
7630 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
7631 and [__SHM_PAD_AFTER_TIME].
7632 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
7633 Define shm_segsz and associated padding based on
7634 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
7635 Use __syscall_ulong_t instead of unsigned long int.
7636 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
7637 unsigned long int.
7638 [__USE_MISC] (struct shm_info): Likewise.
7639 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
7640 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
7641 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
7642 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
7643 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
7644 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7645 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
7646 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7647 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7648 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7649 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
7650
7651 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7652 bits/shmlba.h.
7653 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
7654 (SHMLBA): Remove macro.
7655 (__getpagesize): Remove function declaration.
7656 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
7657 <bits/shmlba.h>.
7658 (SHMLBA): Remove macro.
7659 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
7660 <bits/shmlba.h>.
7661 (SHMLBA): Remove macro.
7662 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
7663 <bits/shmlba.h>.
7664 (SHMLBA): Remove macro.
7665 (__getpagesize): Remove function declaration.
7666 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
7667 <bits/shmlba.h>.
7668 (SHMLBA): Remove macro.
7669 (__getshmlba): Remove function declaration.
7670 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
7671 (SHMLBA): Remove macro.
7672 (__getpagesize): Remove function declaration.
7673 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
7674 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7675 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7676 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
7677 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
7678 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
7679 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
7680 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
7681 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
7682 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
7683
7684 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
7685
7686 [BZ #23275]
7687 * nptl/tst-mutex10.c: New File.
7688 * nptl/Makefile (tests): Add tst-mutex10.
7689 (tst-mutex10-ENV): New variable.
7690 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
7691 Ensure that elision path is used if elision is available.
7692 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
7693 Likewise.
7694 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
7695 Likewise.
7696 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
7697 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
7698 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
7699 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
7700 Likewise.
7701 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
7702 (__pthread_mutex_cond_lock_adjust): Likewise.
7703 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
7704 Likewise.
7705 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
7706 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
7707 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
7708 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
7709 Add comments.
7710 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
7711 Use atomic_load_relaxed and atomic_store_relaxed.
7712 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
7713 Use atomic_store_relaxed.
7714
7715 2018-10-17 Andreas Schwab <schwab@suse.de>
7716
7717 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
7718 * crypt/badsalttest.c (TIMEOUT): Likewise.
7719 * crypt/sha256c-test.c (TIMEOUT): Likewise.
7720 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
7721 * io/test-lfs.c (TIMEOUT): Likewise.
7722 * libio/tst-atime.c (TIMEOUT): Likewise.
7723 * localedata/tst-leaks.c (TIMEOUT): Likewise.
7724 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
7725 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
7726 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
7727 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
7728 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
7729 * nptl/tst-cond11.c (TIMEOUT): Likewise.
7730 * nptl/tst-cond14.c (TIMEOUT): Likewise.
7731 * nptl/tst-cond15.c (TIMEOUT): Likewise.
7732 * nptl/tst-cond24.c (TIMEOUT): Likewise.
7733 * nptl/tst-cond25.c (TIMEOUT): Likewise.
7734 * nptl/tst-kill2.c (TIMEOUT): Likewise.
7735 * nptl/tst-kill3.c (TIMEOUT): Likewise.
7736 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
7737 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
7738 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
7739 * nptl/tst-once2.c (TIMEOUT): Likewise.
7740 * nptl/tst-once3.c (TIMEOUT): Likewise.
7741 * nptl/tst-once4.c (TIMEOUT): Likewise.
7742 * nptl/tst-robust8.c (TIMEOUT): Likewise.
7743 * nptl/tst-robust9.c (TIMEOUT): Likewise.
7744 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
7745 * nptl/tst-sem14.c (TIMEOUT): Likewise.
7746 * nptl/tst-sem6.c (TIMEOUT): Likewise.
7747 * nptl/tst-signal3.c (TIMEOUT): Likewise.
7748 * nptl/tst-spin4.c (TIMEOUT): Likewise.
7749 * nptl/tst-tls3.c (TIMEOUT): Likewise.
7750 * nptl/tst-tls4.c (TIMEOUT): Likewise.
7751 * posix/tst-chmod.c (TIMEOUT): Likewise.
7752 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
7753 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
7754 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
7755 * posix/tst-regex2.c (TIMEOUT): Likewise.
7756 * posix/tst-waitid.c (TIMEOUT): Likewise.
7757 * rt/tst-aio.c (TIMEOUT): Likewise.
7758 * rt/tst-aio10.c (TIMEOUT): Likewise.
7759 * rt/tst-aio4.c (TIMEOUT): Likewise.
7760 * rt/tst-aio5.c (TIMEOUT): Likewise.
7761 * rt/tst-aio6.c (TIMEOUT): Likewise.
7762 * rt/tst-aio64.c (TIMEOUT): Likewise.
7763 * rt/tst-aio7.c (TIMEOUT): Likewise.
7764 * rt/tst-aio9.c (TIMEOUT): Likewise.
7765 * rt/tst-clock.c (TIMEOUT): Likewise.
7766 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
7767 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
7768 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
7769 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
7770 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
7771 * rt/tst-timer4.c (TIMEOUT): Likewise.
7772 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
7773 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
7774 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
7775 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
7776 * time/tst-ftime.c (TIMEOUT): Likewise.
7777 * timezone/tst-tzset.c (TIMEOUT): Likewise.
7778
7779 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
7780
7781 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
7782 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
7783 for thunderX2.
7784
7785 2018-10-15 Joseph Myers <joseph@codesourcery.com>
7786
7787 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7788 bits/sem-pad.h.
7789 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
7790 instead of <bits/wordsize.h>.
7791 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
7792 and [__SEM_PAD_AFTER_TIME].
7793 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
7794 __syscall_ulong_t instead of unsigned long int.
7795 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
7796 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
7797 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
7798 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
7799 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
7800 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
7801 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
7802 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
7803 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
7804 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
7805 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
7806
7807 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
7808
7809 regex: simplify by using intprops.h
7810 [BZ#23744]
7811 * posix/regex_internal.h [_LIBC]: Include intprops.h.
7812 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
7813 intprops.h defines them.
7814
7815 regex: __builtin_expect → __glibc_unlikely
7816 [BZ#23744]
7817 This refactoring was prompted by a problem when the regex code is
7818 used as part of Gnulib and when the builder’s compiler does not grok
7819 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
7820 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
7821 Although this refactoring does not fix the problem directly,
7822 we might as well have Gawk use the now-preferred glibc style for when
7823 __builtin_expect is unavailable.
7824 * posix/regex_internal.h (BE): Remove.
7825 All uses replaced by __glibc_unlikely or __glibc_likely.
7826
7827 2018-10-11 Joseph Myers <joseph@codesourcery.com>
7828
7829 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7830 bits/msq-pad.h.
7831 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
7832 instead of <bits/wordsize.h>.
7833 (msgqnum_t): Define as __syscall_ulong_t.
7834 (msglen_t): Likewise.
7835 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
7836 and [__MSQ_PAD_AFTER_TIME].
7837 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
7838 __syscall_ulong_t instead of unsigned long int.
7839 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
7840 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
7841 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
7842 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
7843 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
7844 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
7845 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
7846 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
7847 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
7848 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
7849 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
7850
7851 2018-10-10 Joseph Myers <joseph@codesourcery.com>
7852
7853 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
7854 (struct shmid_ds): Condition padding after time fields on
7855 [__WORDSIZE == 32].
7856 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
7857 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
7858 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7859
7860 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
7861 (struct semid_ds): Condition padding after time fields on
7862 [__WORDSIZE == 32].
7863 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
7864 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
7865 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
7866 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
7867
7868 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
7869 (struct msqid_ds): Condition padding after time fields on
7870 [__WORDSIZE == 32].
7871 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
7872 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
7873 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
7874 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
7875
7876 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
7877
7878 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
7879
7880 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
7881
7882 * libio/tst-readline.c (TIMEOUT): Define.
7883
7884 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
7885
7886 mktime fix for Gnulib + coreutils
7887 [BZ#23745]
7888 This fix affects only Gnulib. Problem discovered when
7889 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
7890 * time/mktime.c:
7891 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
7892 Do not define since it is not used. Defining an unused static
7893 function prompts a warning from GCC when Coreutils is configured
7894 with --enable-gcc-warnings.
7895
7896 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7897
7898 * benchtests/scripts/compare_bench.py (main): set float type on
7899 threshold argument.
7900
7901 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
7902
7903 [BZ #23740]
7904 * localedata/locales/kl_GL (mon): Update, the relative case.
7905 (alt_mon): Add, fill with month names in the nominative case.
7906 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
7907 (d_fmt): Set to "%b %d %Y".
7908
7909 2018-10-04 Joseph Myers <joseph@codesourcery.com>
7910
7911 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
7912 <bits/mman-linux.h>.
7913 (PROT_READ): Don't define here.
7914 (PROT_WRITE): Likewise.
7915 (PROT_EXEC): Likewise.
7916 (PROT_NONE): Likewise.
7917 (PROT_GROWSDOWN): Likewise.
7918 (PROT_GROWSUP): Likewise.
7919 (MAP_SHARED): Likewise.
7920 (MAP_PRIVATE): Likewise.
7921 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
7922 [__USE_MISC] (MAP_FILE): Likewise.
7923 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
7924 [__USE_MISC] (MAP_ANON): Likewise.
7925 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
7926 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
7927 (MCL_CURRENT): Likewise.
7928 (MCL_FUTURE): Likewise.
7929 (MCL_ONFAULT): Likewise.
7930 [__USE_MISC] (MADV_NORMAL): Likewise.
7931 [__USE_MISC] (MADV_RANDOM): Likewise.
7932 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
7933 [__USE_MISC] (MADV_WILLNEED): Likewise.
7934 [__USE_MISC] (MADV_DONTNEED): Likewise.
7935 [__USE_MISC] (MADV_FREE): Likewise.
7936 [__USE_MISC] (MADV_REMOVE): Likewise.
7937 [__USE_MISC] (MADV_DONTFORK): Likewise.
7938 [__USE_MISC] (MADV_DOFORK): Likewise.
7939 [__USE_MISC] (MADV_HWPOISON): Likewise.
7940 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
7941 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
7942 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
7943 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
7944 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
7945 (__MAP_ANONYMOUS): New macro.
7946 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
7947 <bits/mman-linux.h> inclusion.
7948 (MAP_FIXED): Likewise.
7949 (MS_SYNC): Likewise.
7950 (MS_ASYNC): Likewise.
7951 (MS_INVALIDATE): Likewise.
7952 [__USE_MISC] (MADV_MERGEABLE): Likewise.
7953 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
7954 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
7955 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
7956 [__USE_MISC] (MADV_DONTDUMP): Likewise.
7957 [__USE_MISC] (MADV_DODUMP): Likewise.
7958 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
7959 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
7960
7961 [BZ #23735]
7962 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
7963 Define.
7964 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
7965 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
7966 Add test-nldbl-redirect.
7967 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
7968 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
7969 $(objpfx)libnldbl_nonshared.a.
7970
7971 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
7972
7973 * support/support.h (support_objdir_elf_ldso): New variable.
7974 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
7975 * support/Makefile (CFLAGS-support_paths.c): Add definition
7976 for OBJDIR_ELF_LDSO_PATH.
7977 * support/test-container.c (main): Search for the ld.so
7978 which is also used by the testsuite.
7979
7980 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
7981
7982 [BZ #20209]
7983 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
7984 should be "sap" rather than "sab".
7985 (day): Fix spelling of Sunday, should be "sapaat" rather than
7986 "sabaat".
7987
7988 2018-10-02 Joseph Myers <joseph@codesourcery.com>
7989
7990 * math/libm-test-fma.inc (fma_test_data): Add more tests.
7991
7992 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
7993
7994 [BZ #19444]
7995 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
7996 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
7997 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
7998
7999 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8000
8001 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8002
8003 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8004
8005 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8006 Add -mrtm.
8007 (CFLAGS-elision-unlock.c): Likewise.
8008 (CFLAGS-elision-timed.c): Likewise.
8009 (CFLAGS-elision-trylock.c): Likewise.
8010 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8011
8012 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8013
8014 [BZ #21037]
8015 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8016 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8017 new fd_to_filename interface.
8018 * libio/freopen64.c (freopen64): Likewise.
8019 * libio/tst-memstream.h: New file.
8020 * libio/tst-memstream4.c: Likewise.
8021 * libio/tst-wmemstream4.c: Likewise.
8022 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8023 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8024 and remove internal dynamic allocation.
8025
8026 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8027
8028 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8029 (MREMAP_MAYMOVE): Do not define here.
8030 [__USE_GNU] (MREMAP_FIXED): Likewise.
8031 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8032 (MREMAP_MAYMOVE): Define here instead.
8033 [__USE_GNU] (MREMAP_FIXED): Likewise.
8034 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8035 (MREMAP_MAYMOVE): Remove.
8036 [__USE_GNU] (MREMAP_FIXED): Likewise.
8037
8038 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8039
8040 * math/fromfp.h: Do not include <math_private.h>.
8041 * math/s_cacosh_template.c: Likewise.
8042 * math/s_casin_template.c: Likewise.
8043 * math/s_casinh_template.c: Likewise.
8044 * math/s_ccos_template.c: Likewise.
8045 * math/s_cproj_template.c: Likewise.
8046 * math/s_fdim_template.c: Likewise.
8047 * math/s_fmaxmag_template.c: Likewise.
8048 * math/s_fminmag_template.c: Likewise.
8049 * math/s_iseqsig_template.c: Likewise.
8050 * math/s_ldexp_template.c: Likewise.
8051 * math/s_nextdown_template.c: Likewise.
8052 * math/w_log1p_template.c: Likewise.
8053 * math/w_scalbln_template.c: Likewise.
8054 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8055 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8056 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8057 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8058 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8059 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8060 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8061 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8062 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8063 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8064 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8065 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8066 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8067 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8068 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8069 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8070 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8071 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8072 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8073 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8074 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8075 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8076 * sysdeps/ieee754/k_standardf.c: Likewise.
8077 * sysdeps/ieee754/k_standardl.c: Likewise.
8078 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8079 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8080 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8081 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8082 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8083 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8084 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8085 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8086 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8087 * sysdeps/ieee754/s_signgam.c: Likewise.
8088 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8089 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8090 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8091 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8092 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8093 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8094 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8095 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8096 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8097 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8098 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8099 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8100 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8101 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8102 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8103 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8104 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8105 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8106 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8107 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8108 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8109 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8110 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8111 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8112 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8113 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8114 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8115 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8116 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8117 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8118 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8119 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8120 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8121 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8122 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8123 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8124 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8125 <math_private.h>.
8126 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8127
8128 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8129
8130 [BZ #23716]
8131 * sysdeps/i386/dl-cet.c: Removed.
8132 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8133 prototype.
8134 (_dl_runtime_profile_shstk): Likewise.
8135 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8136 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8137
8138 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8139
8140 [BZ #23579]
8141 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8142 do_test_with_invalid_iov): New tests.
8143 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8144 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8145 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8146 errno is ENOSYS.
8147 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8148 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8149 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8150
8151 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8152
8153 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8154 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8155 (MATH_REDIRECT_BINARY_ARGS): New macro.
8156 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8157 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8158 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8159 header inclusion.
8160 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8161 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8162 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8163 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8164 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8165 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8166 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8167 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8168 Likewise.
8169 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8170 Likewise.
8171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8172 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8173 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8174 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8175 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8176 Likewise.
8177 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8178 Likewise.
8179 * sysdeps/generic/math_private_calls.h
8180 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8181 Do not declare and define as an inline function.
8182 * math/divtc3.c (__divtc3): Use copysign functions instead of
8183 __copysign variants.
8184 * math/multc3.c (__multc3): Likewise.
8185 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8186 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8187 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8188 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8189 Likewise.
8190 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8191 (__ieee754_yn): Likewise.
8192 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8193 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8194 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8195 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8196 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8197 (__sin): Likewise.
8198 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8199 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8200 Likewise.
8201 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8202 Likewise.
8203 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8204 Likewise.
8205 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8206 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8207 Likewise.
8208 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8209 (__ieee754_ynf): Likewise.
8210 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8211 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8212 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8213 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8214 Likewise.
8215 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8216 (__ieee754_ynl): Likewise.
8217 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8218 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8219 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8220 Likewise.
8221 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8222 (__ieee754_ynl): Likewise.
8223 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8224 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8225 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8226 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8227 Likewise.
8228 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8229 (__ieee754_ynl)
8230 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8231 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8232 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8233 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8234 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8235
8236 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8237 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8238 using MATH_REDIRECT.
8239 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8240 header inclusion.
8241 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8242 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8243 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8244 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8245 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8246 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8247 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8248 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8249 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8251 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8252 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8253 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8254 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8255 (round): Redirect to __round.
8256 (__roundl): Call round instead of __round.
8257 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8258 Remove macro.
8259 [_ARCH_PWR5X] (__roundf): Likewise.
8260 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8261 functions instead of __round variants.
8262 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8263 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8264 Likewise.
8265 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8266 Likewise.
8267 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8268 Likewise.
8269 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8270 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8271 __lroundl.
8272 (__ieee754_expl): Call roundl instead of __roundl.
8273
8274 2018-09-27 Andreas Schwab <schwab@suse.de>
8275
8276 [BZ #23717]
8277 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8278 (do_test): Make st1 static.
8279
8280 2018-09-26 Andreas Schwab <schwab@suse.de>
8281
8282 [BZ #23707]
8283 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8284 * elf/Makefile (tests): Add tst-unwind-ctor.
8285 (modules-names): Add tst-unwind-ctor-lib.
8286 ($(objpfx)tst-unwind-ctor): Depend on
8287 $(objpfx)tst-unwind-ctor-lib.so.
8288
8289 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8290
8291 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8292 file. Most contents moved from ....
8293 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8294 and include <bits/mman-map-flags-generic.h>.
8295 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8296 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8297 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8298 <bits/mman-map-flags-generic.h>.
8299 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8300 macros defined in <bits/mman-map-flags-generic.h>.
8301 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8302 <bits/mman-map-flags-generic.h>.
8303 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8304 defined in <bits/mman-map-flags-generic.h>.
8305
8306 2018-09-26 Andreas Schwab <schwab@suse.de>
8307
8308 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8309 output.
8310
8311 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8312 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8313 Fangrui Song <maskray@google.com>
8314
8315 [BZ #20480]
8316 * config.make.in (have-textrel_ifunc): New define.
8317 * configure.ac: Add check if linker supports textrel relocation with
8318 ifunc.
8319 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8320 tst-ifunc-textrel.
8321 (CFLAGS-tst-ifunc-textrel.c): New rule.
8322 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8323 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8324 * elf/tst-ifunc-textrel.c: New file.
8325
8326 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8327
8328 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8329 <bits/procfs-prregset.h>.
8330 (prgregset_t): Define using __prgregset_t.
8331 (prfpregset_t): Define using __prfpregset_t.
8332 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8333 (sysdep_headers): Add bits/procfs-prregset.h.
8334 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8335 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8336 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8337 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8338
8339 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8340 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8341 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8342 pr_uid and pr_gid.
8343 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8344 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8345 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8346 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8347 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8348 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8349 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8350 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8351 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8352 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8353 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8354 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8355 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8356 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8357 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8358 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8359 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8360 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8361 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8362 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8363 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8364 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8365 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8366 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8367
8368 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8369 AArch64 version. Include <bits/procfs.h>.
8370 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8371 (sysdep_headers): Add bits/procfs.h.
8372 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8373 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8374 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8375 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8376 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8377 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8378 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8379 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8380 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8381 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8382 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8383 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8384 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8385 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8386 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8387 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8388 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8389
8390 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8391
8392 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8393 Use libsupport.
8394
8395 2018-09-25 Arjun Shankar <arjun@redhat.com>
8396
8397 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8398 (__gconv_max_path_elem_len): Likewise.
8399 (__gconv_nmodules): Likewise.
8400 (__gconv_get_path): Likewise.
8401 (path_elem): Move to ...
8402 * iconv/gconv_conf.c: ... here.
8403 (__gconv_get_path): Mark function static.
8404 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8405 * iconv/gconv_open.c: ... here.
8406
8407 2018-09-24 Andreas Schwab <schwab@suse.de>
8408
8409 * scripts/haveversions.awk: New file.
8410 * Makerules ($(common-objpfx)Versions.def)
8411 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8412 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8413 Move rules ...
8414 * Makeconfig ($(common-objpfx)Versions.def)
8415 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8416 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8417 ... here.
8418 ($(common-objpfx)Versions.mk): New rule. Include it.
8419 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8420 Emit error if build-obsolete-nsl = yes.
8421 * manual/install.texi (Configuring and compiling): Describe
8422 --enable-obsolete-nsl as unavaiable after version 2.28.
8423 * INSTALL: Regenerate.
8424
8425 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8426
8427 * NEWS: Add note about new TLE support on powerpc64le.
8428 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8429 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8430 __ununsed1.
8431 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8432 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8433 * sysdeps/powerpc/powerpc32/sysdep.h,
8434 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8435 ABORT_TRANSACTION): Remove macros.
8436 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8437 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8438 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8439 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8440 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8441 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8442 usage.
8443 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8444
8445 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8446
8447 [BZ #10425]
8448 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8449 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8450 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8451 which is the same as in it_IT.
8452 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8453 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8454
8455 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8456
8457 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8458 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8459 using MATH_REDIRECT.
8460 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8461 header inclusion.
8462 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8463 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8464 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8465 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8466 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8467 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8468 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8469 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8471 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8472 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8473 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8474 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8475 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8476 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8477 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8478 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8479 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8480 (ceil): Redirect to __ceil.
8481 (floor): Redirect to __floor.
8482 (trunc): Redirect to __trunc.
8483 (__truncl): Call trunc instead of __trunc.
8484 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8485 Remove macro.
8486 [_ARCH_PWR5X] (__truncf): Likewise.
8487 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8488 trunc functions instead of __trunc variants.
8489 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8490 Likewise.
8491 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8492 Likewise.
8493 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8494 Likewise.
8495 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8496 Likewise.
8497
8498 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8499 [__i586__ || __pentium__].
8500 [__i486__]: Handle explicitly.
8501 (HAS_CPUID): Define to 1 if above macros are undefined.
8502 (HAS_I586): Likewise.
8503 (HAS_I686): Likewise.
8504
8505 2018-09-20 Florian Weimer <fweimer@redhat.com>
8506
8507 * misc/tst-gethostid.c: New file.
8508 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8509 (tst-gethostid): Link with -ldl.
8510
8511 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8512
8513 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8514 value from gethostbyname_r.
8515
8516 2018-09-19 Carlos O'Donell <carlos@redhat.com>
8517
8518 * stdlib/tst-setcontext9.c (f1): Rename to...
8519 (f1a): ... this.
8520 (f1b): New function implementing lower half of f1 in alternate stack.
8521
8522 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8523
8524 Fix mktime localtime offset confusion
8525 [BZ #23603]
8526 * include/time.h (__mktime_internal): The localtime offset is now
8527 of type long int instead of time_t. This is the longstanding type
8528 in glibc, and it is more than enough to represent difference
8529 between localtime and gmtime even if it is 32 bits and time_t is
8530 64. Changing it now will let us avoid an unnecessary change when
8531 time_t is widened to 64 bits on 32-bit platforms.
8532 * time/mktime-internal.h (mktime_offset_t): Now long int.
8533
8534 Merge mktime, timegm from upstream Gnulib
8535 [BZ #23603][BZ #16346]
8536 This fixes some obscure problems with integer overflow.
8537 Although it looks scary, it is almost all a byte-for-byte copy
8538 from Gnulib, and the Gnulib code has been tested reasonably well.
8539 * include/intprops.h: New file, copied from Gnulib.
8540 * include/verify.h, time/mktime-internal.h:
8541 New tiny files, simplified from Gnulib.
8542 * time/mktime.c: Copy from Gnulib. This has the following changes:
8543 Do not include config.h if DEBUG_MKTIME is nonzero.
8544 Include stdbool.h, intprops.h, verify.h.
8545 Include string.h only if needed.
8546 Include stdlib.h on MS-Windows.
8547 Include mktime-internal.h.
8548 (DEBUG_MKTIME): Default to 0, and simplify later uses.
8549 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8550 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8551 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8552 simplify later conditionals; default the others to zero. Use
8553 these conditionals to express only the code needed on the current
8554 platform. In uses of these conditionals, explicitly spell out how
8555 _LIBC affects things, so it’s easier to review from a glibc
8556 viewpoint.
8557 (WRAPV): Remove; no longer needed now that we have
8558 systematic overflow checking.
8559 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8560 compartmentalize tzset issues. Move system-dependent tzsettish
8561 code here from mktime.
8562 (verify): Remove; now done by verify.h. All uses changed.
8563 (long_int): Use a more-conservative definition, to avoid
8564 integer overflow.
8565 (SHR): Remove, replacing with ...
8566 (shr): New function, which means we needn’t worry about side
8567 effects in args, and conversion analysis is simpler.
8568 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
8569 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
8570 (time_t_avg, time_t_add_ok): Remove.
8571 (mktime_min, mktime_max): New constants.
8572 (leapyear, isdst_differ): Use bool for booleans.
8573 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8574 Use long_int, not time_t, for mktime differences.
8575 (long_int_avg): New function, replacing time_t_avg.
8576 INT_ADD_WRAPV replaces time_t_add_ok.
8577 (guess_time_tm): 6th arg is now long_int, not time_t const *.
8578 All uses changed.
8579 (convert_time): New function.
8580 (ranged_convert): Use it.
8581 (__mktime_internal): Last arg now points to mktime_offset_t, not
8582 time_t. All uses changed. This is a no-op on glibc, where
8583 mktime_offset_t is always time_t. Use int, not time_t, for UTC
8584 offset guess. Directly check for integer overflow instead of
8585 using a heuristic that works only 99.9...% of the time.
8586 Access *OFFSET only once, to avoid an unlikely race if the
8587 compiler delays a load and if this cascades into a signed integer
8588 overflow.
8589 (mktime): Move tzsettish code to my_tzset, and move
8590 localtime_offset to within mktime so that it doesn’t
8591 need a separate ifdef.
8592 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
8593 instead of localtime.
8594 * time/timegm.c: Copy from Gnulib. This has the following changes:
8595 Include mktime-internal.h.
8596 [!_LIBC]: Include config.h and time.h. Do not include
8597 timegm.h or time_r.h. Make __mktime_internal a macro,
8598 and include mktime-internal.h to get its declaration.
8599 (timegm): Temporary is now mktime_offset_t, not time_t.
8600 This affects only Gnulib.
8601
8602 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8603
8604 [BZ #23637]
8605 * string/test-strstr.c (pr23637): New function.
8606 (test_main): Add tests with longer needles.
8607 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
8608 * string/strstr.c (AVAILABLE): Likewise.
8609
8610 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8611
8612 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
8613
8614 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8615
8616 * NEWS: Mention pow improvements.
8617 * math/Makefile (type-double-routines): Add e_pow_log_data.
8618 * sysdeps/generic/math_private.h (__exp1): Remove.
8619 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
8620 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
8621 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
8622 contraction.
8623 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
8624 (exp_inline): Remove.
8625 (__ieee754_exp): Only single double input is handled.
8626 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
8627 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
8628 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
8629 (__pow_log_data): Define.
8630 * sysdeps/ieee754/dbl-64/upow.h: Remove.
8631 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
8632 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
8633 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
8634 contraction.
8635 (CFLAGS-e_pow-fma4.c): Likewise.
8636
8637 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
8638
8639 Simplify tzfile fstat failure code
8640 [BZ #21716]
8641 * time/tzfile.c (__tzfile_read): Simplify slightly.
8642
8643 Fix tzfile low-memory assertion failure
8644 [BZ #21716]
8645 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
8646 when registering time zone abbreviations.
8647
8648 2018-09-18 Joseph Myers <joseph@codesourcery.com>
8649
8650 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
8651 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
8652 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8653 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8654 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
8655 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
8656 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
8657 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8658 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8659
8660 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
8661 __ceil.
8662 (__ceill): Call ceil instead of __ceil.
8663 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
8664 __floor.
8665 (__floorl): Call floor instead of __floor.
8666
8667 2018-09-17 Joseph Myers <joseph@codesourcery.com>
8668
8669 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8670 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
8671 using MATH_REDIRECT.
8672 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
8673 header inclusion.
8674 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
8675 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8676 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8677 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
8678 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8679 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8680 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8681 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
8682 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
8683 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
8684 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
8685 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
8686 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8687 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8688 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
8689 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
8690 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8691 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8692 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
8693 Remove macro.
8694 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
8695 functions instead of __ceil variants.
8696 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8697 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8698 Likewise.
8699 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8700 Likewise.
8701 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8702 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8703 Likewise.
8704 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8705 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8706
8707 [BZ #21286]
8708 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
8709 constant.
8710 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
8711 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
8712 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
8713 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
8714 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
8715 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
8716 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
8717 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
8718 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
8719 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
8720 (ILL_BADIADDR): Remove constant.
8721 (TRAP_BRANCH): Likewise.
8722 (TRAP_HWBKPT): Likewise.
8723
8724 2018-09-14 Joseph Myers <joseph@codesourcery.com>
8725
8726 [BZ #23656]
8727 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
8728 Remove [_MIPS_SIM = _ABIN32] conditional case.
8729 (struct elf_prpsinfo): Likewise.
8730
8731 [BZ #23649]
8732 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
8733 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
8734 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
8735 Likewise.
8736 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
8737 elf_prpsinfo): Likewise.
8738 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
8739 elf_prpsinfo): Likewise.
8740 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
8741 Likewise.
8742
8743 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8744 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
8745 using MATH_REDIRECT.
8746 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
8747 header inclusion.
8748 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
8749 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8750 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8751 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8752 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8753 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8754 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
8755 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8756 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8757 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8758 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
8759 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
8760 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
8761 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
8762 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
8763 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8764 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8765 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
8766 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8767 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
8768 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
8769 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
8770 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
8771 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
8772 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
8773 * sysdeps/x86_64/fpu/math_private.h: Remove file.
8774 * math/e_scalb.c (invalid_fn): Use rint functions instead of
8775 __rint variants.
8776 * math/e_scalbf.c (invalid_fn): Likewise.
8777 * math/e_scalbl.c (invalid_fn): Likewise.
8778 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8779 Likewise.
8780 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8781 Likewise.
8782 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8783 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
8784 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8785 Likewise.
8786 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8787 Likewise.
8788 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8789 Likewise.
8790 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
8791 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
8792
8793 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8794 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
8795 New macro.
8796 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8797 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
8798 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8799 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
8800 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8801 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
8802 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8803 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
8804 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8805 && !NO_MATH_REDIRECT] (floor): Likewise.
8806 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
8807 header inclusion.
8808 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
8809 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8810 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8811 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
8812 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8813 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8814 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8815 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
8816 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
8817 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
8818 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
8819 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
8820 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8821 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8822 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
8823 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
8824 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
8825 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
8826 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
8827 Remove macro.
8828 [_ARCH_PWR5X] (__floorf): Likewise.
8829 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
8830 inline function.
8831 [__SSE4_1__] (__floorf): Likewise.
8832 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
8833 instead of __floor variants.
8834 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
8835 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
8836 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
8837 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
8838 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
8839 * math/w_tgamma_compat.c (__tgamma): Likewise.
8840 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
8841 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
8842 * math/w_tgammal_compat.c (__tgammal): Likewise.
8843 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
8844 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
8845 Likewise.
8846 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
8847 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
8848 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
8849 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8850 Likewise.
8851 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
8852 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
8853 Likewise.
8854 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
8855 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
8856 Likewise.
8857 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
8858 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
8859 Likewise.
8860 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
8861 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8862 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
8863 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
8864 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8865 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8866
8867 2018-09-12 Joseph Myers <joseph@codesourcery.com>
8868
8869 * elf/Makefile (modules-names-tests): New variable.
8870
8871 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8872
8873 * NEWS: Mention log2 improvements.
8874 * math/Makefile (type-double-routines): Add e_log2_data.
8875 * sysdeps/i386/fpu/e_log2_data.c: New file.
8876 * sysdeps/ia64/fpu/e_log2_data.c: New file.
8877 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
8878 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
8879 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
8880 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
8881 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
8882
8883 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8884
8885 * NEWS: Mention log improvement.
8886 * math/Makefile (type-double-routines): Add e_log_data.
8887 * sysdeps/i386/fpu/e_log_data.c: New file.
8888 * sysdeps/ia64/fpu/e_log_data.c: New file.
8889 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
8890 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
8891 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
8892 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
8893 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
8894 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
8895
8896 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
8897 Xuepeng Guo <xuepeng.guo@intel.com>
8898
8899 [BZ #23606]
8900 * sysdeps/i386/start.S: Include <sysdep.h>
8901 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
8902 enabled. Add cfi_undefined (eip).
8903
8904 2018-09-11 Joseph Myers <joseph@codesourcery.com>
8905
8906 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
8907 (MOVQ): Likewise.
8908 (EXTRACT_WORDS64): Likewise.
8909 (INSERT_WORDS64): Likewise.
8910 (GET_FLOAT_WORD): Likewise.
8911 (SET_FLOAT_WORD): Likewise.
8912
8913 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
8914 argument.
8915 (Config.build_gcc): Use --disable-libsanitizer for first GCC
8916 build, but not for second build if --full-gcc. Use
8917 --enable-languages=all for second build if --full-gcc.
8918 (get_parser): Add --full-gcc option.
8919 (main): Update call to Context.
8920
8921 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
8922
8923 [BZ #10797]
8924 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
8925 Single Quotation Mark).
8926 (thousands_sep): Likewise.
8927 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
8928 * localedata/locales/it_IT (thousands_sep): Use ".".
8929 (grouping): Use "3;3".
8930
8931 2018-09-10 Joseph Myers <joseph@codesourcery.com>
8932
8933 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
8934 x86_64 and i686 configs using --enable-obsolete-rpc
8935 --enable-obsolete-nsl.
8936
8937 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
8938
8939 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8940
8941 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
8942
8943 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
8944 Increment size of new_argv by one.
8945
8946 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
8947
8948 [BZ #17426]
8949 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
8950 * localedata/locales/ar_IN (d_fmt): Likewise.
8951 * localedata/locales/bhb_IN (d_fmt): Likewise.
8952 * localedata/locales/bho_IN (d_fmt): Likewise.
8953 * localedata/locales/bn_BD (d_fmt): Likewise.
8954 * localedata/locales/bn_IN (d_fmt): Likewise.
8955 * localedata/locales/doi_IN (d_fmt): Likewise.
8956 * localedata/locales/gu_IN (d_fmt): Likewise.
8957 * localedata/locales/hi_IN (d_fmt): Likewise.
8958 * localedata/locales/hne_IN (d_fmt): Likewise.
8959 * localedata/locales/kn_IN (d_fmt): Likewise.
8960 * localedata/locales/mag_IN (d_fmt): Likewise.
8961 * localedata/locales/mai_IN (d_fmt): Likewise.
8962 * localedata/locales/mjw_IN (d_fmt): Likewise.
8963 * localedata/locales/ml_IN (d_fmt): Likewise.
8964 * localedata/locales/mni_IN (d_fmt): Likewise.
8965 * localedata/locales/mr_IN (d_fmt): Likewise.
8966 * localedata/locales/pa_IN (d_fmt): Likewise.
8967 * localedata/locales/raj_IN (d_fmt): Likewise.
8968 * localedata/locales/sat_IN (d_fmt): Likewise.
8969 * localedata/locales/sd_IN (d_fmt): Likewise.
8970 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
8971 * localedata/locales/ta_IN (d_fmt): Likewise.
8972 * localedata/locales/ta_LK (d_fmt): Likewise.
8973 * localedata/locales/tcy_IN (d_fmt): Likewise.
8974 * localedata/locales/ur_IN (d_fmt): Likewise.
8975
8976 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
8977 * localedata/locales/ks_IN (d_fmt): Likewise.
8978 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
8979
8980 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
8981 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
8982 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
8983 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
8984
8985 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
8986
8987 * NEWS: Mention exp and exp2 improvements.
8988 * math/Makefile (libm-support): Remove t_exp.
8989 (type-double-routines): Add math_err and e_exp_data.
8990 * sysdeps/aarch64/libm-test-ulps: Update.
8991 * sysdeps/arm/libm-test-ulps: Update.
8992 * sysdeps/i386/fpu/e_exp_data.c: New file.
8993 * sysdeps/i386/fpu/math_err.c: New file.
8994 * sysdeps/i386/fpu/t_exp.c: Remove.
8995 * sysdeps/ia64/fpu/e_exp_data.c: New file.
8996 * sysdeps/ia64/fpu/math_err.c: New file.
8997 * sysdeps/ia64/fpu/t_exp.c: Remove.
8998 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
8999 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9000 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9001 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9002 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9003 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9004 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9005 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9006 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9007 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9008 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9009 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9010 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9011 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9012 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9013 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9014
9015 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9016
9017 * sysdeps/alpha/fpu/math_private.h: Remove.
9018
9019 * sysdeps/generic/math_private.h
9020 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9021 Move this inline function ....
9022 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9023 * include/math.h [!_ISOMAC]: To here....
9024
9025 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9026
9027 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9028 code ....
9029 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9030 * include/fenv.h [!_ISOMAC]: ... to here.
9031 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9032 (feraiseexcept): Likewise.
9033 * math/fromfp.h: Do not include <fenv_private.h>.
9034 * math/s_cexp_template.c: Likewise.
9035 * math/s_csin_template.c: Likewise.
9036 * math/s_csinh_template.c: Likewise.
9037 * math/s_ctan_template.c: Likewise.
9038 * math/s_ctanh_template.c: Likewise.
9039 * math/s_iseqsig_template.c: Likewise.
9040 * math/w_acos_compat.c: Likewise.
9041 * math/w_acosf_compat.c: Likewise.
9042 * math/w_acosl_compat.c: Likewise.
9043 * math/w_asin_compat.c: Likewise.
9044 * math/w_asinf_compat.c: Likewise.
9045 * math/w_asinl_compat.c: Likewise.
9046 * math/w_j0_compat.c: Likewise.
9047 * math/w_j0f_compat.c: Likewise.
9048 * math/w_j0l_compat.c: Likewise.
9049 * math/w_j1_compat.c: Likewise.
9050 * math/w_j1f_compat.c: Likewise.
9051 * math/w_j1l_compat.c: Likewise.
9052 * math/w_jn_compat.c: Likewise.
9053 * math/w_jnf_compat.c: Likewise.
9054 * math/w_log10_compat.c: Likewise.
9055 * math/w_log10f_compat.c: Likewise.
9056 * math/w_log10l_compat.c: Likewise.
9057 * math/w_log2_compat.c: Likewise.
9058 * math/w_log2f_compat.c: Likewise.
9059 * math/w_log2l_compat.c: Likewise.
9060 * math/w_log_compat.c: Likewise.
9061 * math/w_logf_compat.c: Likewise.
9062 * math/w_logl_compat.c: Likewise.
9063 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9064 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9065 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9066 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9067 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9068 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9069 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9070 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9071 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9072 * sysdeps/ieee754/k_standardl.c: Likewise.
9073 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9074 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9075 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9076 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9077 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9078 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9079 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9080 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9081 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9082 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9083 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9084 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9085 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9086 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9087 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9088 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9089 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9090 * math/w_ilogb_template.c: Include <fenv.h> instead of
9091 <fenv_private.h>.
9092 * math/w_llogb_template.c: Likewise.
9093 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9094 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9095
9096 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9097
9098 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9099 * math/fromfp.h: Include <fenv_private.h>.
9100 * math/math-narrow.h: Likewise.
9101 * math/s_cexp_template.c: Likewise.
9102 * math/s_csin_template.c: Likewise.
9103 * math/s_csinh_template.c: Likewise.
9104 * math/s_ctan_template.c: Likewise.
9105 * math/s_ctanh_template.c: Likewise.
9106 * math/s_iseqsig_template.c: Likewise.
9107 * math/w_acos_compat.c: Likewise.
9108 * math/w_acosf_compat.c: Likewise.
9109 * math/w_acosl_compat.c: Likewise.
9110 * math/w_asin_compat.c: Likewise.
9111 * math/w_asinf_compat.c: Likewise.
9112 * math/w_asinl_compat.c: Likewise.
9113 * math/w_ilogb_template.c: Likewise.
9114 * math/w_j0_compat.c: Likewise.
9115 * math/w_j0f_compat.c: Likewise.
9116 * math/w_j0l_compat.c: Likewise.
9117 * math/w_j1_compat.c: Likewise.
9118 * math/w_j1f_compat.c: Likewise.
9119 * math/w_j1l_compat.c: Likewise.
9120 * math/w_jn_compat.c: Likewise.
9121 * math/w_jnf_compat.c: Likewise.
9122 * math/w_llogb_template.c: Likewise.
9123 * math/w_log10_compat.c: Likewise.
9124 * math/w_log10f_compat.c: Likewise.
9125 * math/w_log10l_compat.c: Likewise.
9126 * math/w_log2_compat.c: Likewise.
9127 * math/w_log2f_compat.c: Likewise.
9128 * math/w_log2l_compat.c: Likewise.
9129 * math/w_log_compat.c: Likewise.
9130 * math/w_logf_compat.c: Likewise.
9131 * math/w_logl_compat.c: Likewise.
9132 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9133 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9134 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9135 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9136 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9137 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9138 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9139 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9140 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9141 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9142 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9143 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9144 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9145 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9146 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9147 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9148 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9149 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9150 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9151 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9152 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9153 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9154 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9155 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9156 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9157 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9158 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9159 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9160 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9161 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9162 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9163 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9164 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9165 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9166 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9167 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9168 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9169 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9170 * sysdeps/ieee754/k_standardl.c: Likewise.
9171 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9172 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9173 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9174 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9175 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9176 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9177 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9178 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9179 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9180 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9181 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9182 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9183 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9184 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9185 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9186 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9187 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9188 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9189 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9190 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9191 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9192 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9193 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9194 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9195 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9196 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9197 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9198 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9199 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9200 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9201 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9202 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9203 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9204 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9205 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9206 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9207 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9208 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9209 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9210 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9211 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9212 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9213 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9214 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9215 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9216 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9217 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9218 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9219 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9220 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9221 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9222 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9223 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9224 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9225 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9226 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9227 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9228 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9229 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9230 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9231 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9232 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9233 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9234 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9235 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9236 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9237 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9238 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9239 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9240 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9241 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9242
9243 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9244
9245 [BZ #20271]
9246 * include/stdio.h (__libc_fatal): Mention newline in comment.
9247 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9248 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9249 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9250 * nss/nsswitch.c (__nss_next2): Likewise.
9251 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9252 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9253 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9254 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9255 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9256 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9257 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9258 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9259 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9260 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9261 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9262 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9263 (__netlink_assert_response): Likewise.
9264
9265 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9266
9267 * conform/glibcconform.py: New file.
9268 * conform/list-header-symbols.py: Likewise.
9269 * conform/list-header-symbols.pl: Remove.
9270 * conform/Makefile (tests-special): Only add linknamespace tests
9271 if [PYTHON].
9272 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9273
9274 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9275
9276 [BZ #23597]
9277 * support/Makefile (libsupport-routines): Add
9278 support_copy_file_range and xcopy_file_range.
9279 * support/support.h: Include <sys/types.h>.
9280 (support_copy_file_range): New prototype.
9281 * support/support_copy_file_range.c: New file. Copied and
9282 modified from io/copy_file_range-compat.c.
9283 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9284 instead of copy_file_range.
9285 * support/xcopy_file_range.c: New file.
9286 * support/xunistd.h (xcopy_file_range): New prototype.
9287
9288 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9289
9290 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9291 xpthread_create and xpthread_join.
9292
9293 2018-08-30 Florian Weimer <fweimer@redhat.com>
9294
9295 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9296
9297 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9298
9299 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9300 if malloc fails.
9301
9302 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9303
9304 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9305 and minus_oflow as non-finite.
9306
9307 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9308
9309 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9310 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9311 moved to fenv_private.h except for ...
9312 (TOINT_INTRINSICS): Kept in math_private.h.
9313 (roundtoint): Likewise.
9314 (converttoint): Likewise.
9315 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9316 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9317 * sysdeps/arm/math_private.h: Remove.
9318 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9319 ....
9320 * sysdeps/generic/math_private.h: ... this file. Include
9321 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9322 Include <fenv_private.h>. Remove functions and macros moved to
9323 fenv_private.h.
9324 * sysdeps/i386/fpu/math_private.h: Remove.
9325 * sysdeps/mips/math_private.h: Move to ....
9326 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9327 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9328 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9329 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9330 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9331 * sysdeps/powerpc/fpu/math_private.h: Do not include
9332 <fenv_private.h>.
9333 * sysdeps/riscv/rvf/math_private.h: Move to ....
9334 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9335 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9336 <fenv_private.h>.
9337 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9338 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9339 * sysdeps/sparc/fpu/math_private.h: Remove.
9340 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9341 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9342 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9343 <fenv_private.h>.
9344 * sysdeps/x86_64/fpu/math_private.h: Do not include
9345 <sysdeps/i386/fpu/fenv_private.h>.
9346
9347 2018-08-28 Florian Weimer <fweimer@redhat.com>
9348
9349 [BZ #23578]
9350 * posix/tst-regcomp-truncated.c: New file.
9351 * posix/Makefile (tests): Add it.
9352 (tst-regcomp-truncated.out): Depend on generated locales.
9353
9354 2018-08-28 Florian Weimer <fweimer@redhat.com>
9355
9356 * support/test-container.c (main): Treat unshare failure with
9357 EPERM as an unsupported test.
9358
9359 2018-08-28 Florian Weimer <fweimer@redhat.com>
9360
9361 [BZ #23520]
9362 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9363 * nscd/netgroupcache.c
9364 (addgetnetgrentX): Add tofreep parameter. Do not free
9365 heap-allocated buffer.
9366 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9367 (addgetnetgrentX_ignore): New function.
9368 (addgetnetgrent): Call it.
9369 (readdgetnetgrent): Likewise.
9370
9371 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9372
9373 * string/memmem.c: Use memcmp for first match.
9374
9375 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9376
9377 [BZ #17426]
9378 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9379
9380 2018-08-27 DJ Delorie <dj@redhat.com>
9381
9382 * support/Makefile (others): Don't list programs explicitly as a
9383 dependency of "others".
9384
9385 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9386
9387 * sysdeps/generic/math-tests-trap-force.h: New file.
9388 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9389 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9390 * sysdeps/powerpc/math-tests.h: Remove file.
9391 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9392
9393 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9394 Torvald Riegel <triegel@redhat.com>
9395
9396 [BZ #23538]
9397 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9398 Update r to include the set wake-request flag if waiters are
9399 remaining after spinning.
9400
9401 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9402
9403 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9404
9405 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9406
9407 [BZ #23578]
9408 regex: fix uninitialized memory access
9409 I introduced this bug into gnulib in commit
9410 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9411 eventually it was merged into glibc. The bug was found by
9412 project-repo <bugs@feusi.co> and reported here:
9413 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9414 Diagnosis and draft fix reported by Assaf Gordon here:
9415 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9416 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9417 * posix/regex_internal.c (build_wcs_upper_buffer):
9418 Fix bug when mbrtowc returns 0.
9419
9420 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9421
9422 * po/be.po: Update translation.
9423
9424 2018-08-24 DJ Delorie <dj@delorie.com>
9425
9426 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9427 $(libunwind).
9428
9429 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9430
9431 [BZ #23400]
9432 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9433 create temporary files in source tree.
9434
9435 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9436
9437 * sysdeps/generic/math-tests-trap.h: New file.
9438 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9439 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9440 * sysdeps/aarch64/math-tests.h: Remove file.
9441 * sysdeps/arm/math-tests.h: Likewise.
9442 * sysdeps/riscv/math-tests.h: Likewise.
9443 * sysdeps/aarch64/math-tests-trap.h: New file.
9444 * sysdeps/arm/math-tests-trap.h: Likewise.
9445 * sysdeps/riscv/math-tests-trap.h: Likewise.
9446
9447 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9448
9449 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9450 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9451 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9452 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9453 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9454 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9455 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9456 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9457 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9458 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9459 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9460 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9461 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9462 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9463 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9464 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9465 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9466 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9467
9468 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9469
9470 * sysdeps/generic/math-tests-exceptions.h: New file.
9471 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9472 (EXCEPTION_TESTS_float): Do not define here.
9473 (EXCEPTION_TESTS_double): Likewise.
9474 (EXCEPTION_TESTS_long_double): Likewise.
9475 (EXCEPTION_TESTS_float128): Likewise.
9476 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9477 Likewise.
9478 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9479 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9480 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9481 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9482 * sysdeps/mips/math-tests.h: Likewise.
9483 * sysdeps/nios2/math-tests.h: Likewise.
9484 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9485 (EXCEPTION_TESTS_float): Do not define here.
9486 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9487 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9488 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9489
9490 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9491
9492 * NEWS: Move optimized sinf entry to 2.29.
9493
9494 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9495
9496 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9497
9498 2018-08-22 DJ Delorie <dj@redhat.com>
9499
9500 * Makefile (testroot.pristine): New rules to initialize the
9501 test-in-container "testroot".
9502 * Makerules (all-testsuite): Add tests-container.
9503 * Rules (tests-expected): Add tests-container.
9504 (binaries-all-tests): Likewise.
9505 (tests-container): New, run these tests in the testroot container.
9506 * support/Makefile (others): Add *-container, support_paths.c,
9507 xmkdirp, and links-dso-program.
9508 * support/links-dso-program-c.c: New.
9509 * support/links-dso-program.cc: New.
9510 * support/test-container.c: New.
9511 * support/shell-container.c: New.
9512 * support/echo-container.c: New.
9513 * support/true-container.c: New.
9514 * support/xmkdirp.c: New.
9515 * support/xsymlink.c: New.
9516 * support/support_paths.c: New.
9517 * support/support.h: Add support paths prototypes.
9518 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9519
9520 * nss/tst-nss-test3.c: Convert to test-in-container.
9521 * nss/tst-nss-test3.root/: New.
9522
9523 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9524
9525 regex: port Gnulib code to z/OS POSIX environment
9526 Problem reported by Arnold Robbins in:
9527 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9528 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
9529 Undef.
9530
9531 2018-08-22 Joseph Myers <joseph@codesourcery.com>
9532
9533 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
9534 (ROUNDING_TESTS_double): Remove.
9535 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
9536 (ROUNDING_TESTS_double): Remove.
9537 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
9538 (ROUNDING_TESTS_double): Remove.
9539 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
9540 (ROUNDING_TESTS_float): Remove.
9541 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
9542 (ROUNDING_TESTS_float): Remove.
9543 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
9544 (ROUNDING_TESTS_float): Remove.
9545 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
9546 !TEST_MATHVEC here.
9547 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9548 (IF_ROUND_INIT_FE_UPWARD): Likewise.
9549
9550 * sysdeps/generic/math-tests-rounding.h: New file.
9551 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
9552 (ROUNDING_TESTS_float): Do not define here.
9553 (ROUNDING_TESTS_double): Likewise.
9554 (ROUNDING_TESTS_long_double): Likewise.
9555 (ROUNDING_TESTS_float128): Likewise.
9556 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
9557 (ROUNDING_TESTS_double): Undefine before defining.
9558 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
9559 (ROUNDING_TESTS_double): Undefine before defining.
9560 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
9561 (ROUNDING_TESTS_double): Undefine before defining.
9562 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
9563 (ROUNDING_TESTS_float): Undefine before defining.
9564 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
9565 (ROUNDING_TESTS_float): Undefine before defining.
9566 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
9567 (ROUNDING_TESTS_float): Undefine before defining.
9568 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
9569 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
9570 not define here.
9571 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
9572 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
9573 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
9574 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9575 (ROUNDING_TESTS_float): Do not define here.
9576 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
9577 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
9578 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
9579 (ROUNDING_TESTS_float): Likewise.
9580 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
9581 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
9582 * sysdeps/mips/math-tests.h [__mips_soft_float]
9583 (ROUNDING_TESTS_float): Likewise.
9584 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
9585 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
9586 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
9587 (ROUNDING_TESTS_double): Likewise.
9588 (ROUNDING_TESTS_long_double): Likewise.
9589
9590 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
9591
9592 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
9593 (PF_XDP): New macro.
9594 (AF_XDP): New macro.
9595 (SOL_XDP): New macro.
9596
9597 2018-08-21 Joseph Myers <joseph@codesourcery.com>
9598
9599 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
9600 (TCP_INQ): Likewise.
9601 (TCP_CM_INQ): Likewise.
9602 (TCP_REPAIR_ON): Likewise.
9603 (TCP_REPAIR_OFF): Likewise.
9604 (TCP_REPAIR_OFF_NO_WP): Likewise.
9605 (struct tcp_zerocopy_receive): New type.
9606
9607 2018-08-21 Florian Weimer <fweimer@redhat.com>
9608
9609 * support/support.h (support_descriptor_supports_holes): Declare.
9610 * support/Makefile (libsupport-routines): Add
9611 support_descriptor_supports_holes.
9612 * support/support_descriptor_supports_holes.c: New file.
9613 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
9614 and stop testing if holes are not supported.
9615 * io/test-lfs.c (do_prepare): Likewise.
9616 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
9617 Likewise.
9618 * timezone/tst-tzset.c (create_tz_file): Likewise.
9619 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
9620 variable.
9621 (do_prepare): Set it.
9622 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
9623
9624 2018-08-21 Florian Weimer <fweimer@redhat.com>
9625
9626 [BZ #17248]
9627 * Makeconfig (+cflags): Do not sort (and deduplicate).
9628
9629 2018-08-21 Florian Weimer <fweimer@redhat.com>
9630
9631 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
9632 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
9633
9634 2018-08-20 Florian Weimer <fweimer@redhat.com>
9635
9636 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
9637 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
9638
9639 2018-08-20 Joseph Myers <joseph@codesourcery.com>
9640
9641 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
9642 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
9643 and ssi_arch members.
9644
9645 * elf/elf.c (NT_VMCOREDD): New macro.
9646 (AT_MINSIGSTKSZ): Likewise.
9647
9648 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9649
9650 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
9651 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
9652 s_cosf-ppc64 and s_cosf-power8.
9653 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
9654 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9655 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9656 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9657 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
9658 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
9659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
9660 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
9661 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
9662 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
9663 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
9664 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
9665
9666 2018-08-17 Florian Weimer <fweimer@redhat.com>
9667
9668 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9669
9670 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
9671
9672 * malloc/malloc.c (_int_malloc): Additional binning code checks.
9673
9674 2018-08-16 Florian Weimer <fweimer@redhat.com>
9675
9676 * configure.ac: Add --with-nonshared-cflags option.
9677 * config.make.in (extra-nonshared-cflags): Set variable.
9678 * Makeconfig (CFLAGS-.oS): Use it.
9679 * manual/install.texi (Configuring and compiling): Document
9680 --with-nonshared-cflags.
9681 * configure: Regenerate.
9682 * INSTALL: Likewise.
9683
9684 2018-08-16 Florian Weimer <fweimer@redhat.com>
9685
9686 * Makeconfig (ASFLAGS): Always append required assembler flags.
9687
9688 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
9689
9690 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
9691 (malloc_consolidate): Likewise.
9692
9693 2018-08-16 Pochang Chen <johnchen902@gmail.com>
9694
9695 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
9696
9697 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
9698
9699 * benchtests/bench-strlen.c (do_test): Allocate buffers before
9700 every strlen call.
9701
9702 * benchtests/bench-strlen.c: Print performance numbers in json.
9703
9704 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9705
9706 * sysdeps/powerpc/powerpc64/multiarch/Makefile
9707 (sysdep_routines): Build strcmp-power9 and strncmp-power9
9708 only for little endian.
9709 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9710 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
9711 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
9712 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
9713 Add check for little endian.
9714 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
9715 (__strcmp_power9): Add check for little endian.
9716 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
9717 Add check for little endian.
9718 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
9719 (__strncmp_power9): Add check for little endian.
9720 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
9721 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
9722 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
9723 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
9724 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
9725
9726 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
9727
9728 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
9729 [!STRLEN](STRLEN): Set to __strlen.
9730 * sysdeps/aarch64/multiarch/strlen.c: New file.
9731 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
9732 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
9733 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
9734 (__libc_ifunc_impl_list): Add strlen.
9735 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9736 strlen_generic and strlen_asimd.
9737
9738 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9739
9740 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
9741 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
9742 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
9743
9744 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9745
9746 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
9747
9748 2018-08-14 Florian Weimer <fweimer@redhat.com>
9749
9750 [BZ #23519]
9751 * include/stdio.h (__vfxprintf): Declare.
9752 * stdio-common/fxprintf.c (__vfxprintf): New function.
9753 (__fxprintf): Call it.
9754 * misc/err.c (convert_and_print): Remove function.
9755 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
9756 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
9757 * misc/Makefile (tests): Add tst-warn-wide.
9758 * misc/tst-warn-wide.c: New file.
9759
9760 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
9761 Szabolcs Nagy <szabolcs.nagy@arm.com>
9762
9763 * NEWS: Mention sinf, cosf, sincosf.
9764 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
9765 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
9766 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
9767 constants rather than including generic sincosf.h.
9768 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
9769 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
9770 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
9771 (reduced_cos): Remove.
9772 (sinf_poly): New function.
9773 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
9774
9775 2018-08-14 Florian Weimer <fweimer@redhat.com>
9776
9777 [BZ #23521]
9778 [BZ #23522]
9779 * nss/nss_files/files-alias.c (get_next_alias): During :include:
9780 processing, bail out if no room, and close the stream before
9781 returning ERANGE.
9782 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
9783 (tst-nss-files-alias-leak): Link with libdl.
9784 (tst-nss-files-alias-leak.out): Depend on nss_files.
9785
9786 * nss/tst-nss-files-alias-leak.c: New file.
9787
9788 2018-08-14 Florian Weimer <fweimer@redhat.com>
9789
9790 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
9791 server_user, stat_user.
9792
9793 2018-08-13 Joseph Myers <joseph@codesourcery.com>
9794
9795 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9796 version to 4.18.
9797 (io_pgetevents): New syscall.
9798 (rseq): Likewise.
9799
9800 * manual/install.texi (Configuring and compiling): Do not list
9801 tools used for testing pretty printers here.
9802 (Tools for Compilation): List Python, PExpect and GDB here.
9803 Update descriptions of uses of Perl and Python.
9804 * INSTALL: Regenerate.
9805
9806 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9807 version to 4.18.
9808
9809 2018-08-13 Florian Weimer <fweimer@redhat.com>
9810
9811 * misc/error.c (error): Add missing va_end call.
9812 (error_at_line): Likewise.
9813
9814 2018-08-13 Florian Weimer <fweimer@redhat.com>
9815
9816 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
9817
9818 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
9819
9820 * benchtests/scripts/benchout.schema.json (properties): Add
9821 new properties.
9822
9823 * benchtests/bench-skeleton.c (main): Add duration and
9824 iterations attributes.
9825
9826 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
9827
9828 regex: Gnulib unibyte RRI uses bytes not chars
9829 Adjust the non-glibc code to agree with what Gawk needs for
9830 rational range interpretation (RRI) for regular expression ranges.
9831 In unibyte locales, Gawk wants ranges to use the underlying byte
9832 rather than the character code point. This change does not affect
9833 glibc proper.
9834 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
9835 In unibyte locales, use the byte value rather than
9836 running it through btowc.
9837
9838 2018-08-10 Joseph Myers <joseph@codesourcery.com>
9839
9840 * sysdeps/generic/math-tests-snan.h: New file.
9841 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
9842 (SNAN_TESTS_float): Do not define here.
9843 (SNAN_TESTS_double): Likewise.
9844 (SNAN_TESTS_long_double): Likewise.
9845 (SNAN_TESTS_float128): Likewise.
9846 * sysdeps/i386/fpu/math-tests-snan.h: New file.
9847 * sysdeps/i386/fpu/math-tests.h: Remove file.
9848 * sysdeps/ia64/math-tests-snan.h: New file.
9849 * sysdeps/ia64/math-tests.h: Remove file.
9850 * sysdeps/x86/math-tests.h: Likewise.
9851 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
9852
9853 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
9854 Szabolcs Nagy <szabolcs.nagy@arm.com>
9855
9856 * math/Makefile: Add s_sincosf_data.c.
9857 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
9858 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
9859 (sincosf_poly): Likewise.
9860 (reduce_small): Likewise.
9861 (reduce_large): Likewise.
9862 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
9863 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
9864 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
9865 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
9866
9867 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
9868 Szabolcs Nagy <szabolcs.nagy@arm.com>
9869
9870 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
9871 (converttoint): Use lround.
9872 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
9873 document the semantics when TOINT_INTRINSICS is set.
9874 (converttoint): Likewise.
9875 (TOINT_RINT): Remove.
9876 (TOINT_SHIFT): Remove.
9877 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
9878 path.
9879
9880 2018-08-10 Florian Weimer <fweimer@redhat.com>
9881
9882 [BZ #23497]
9883 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
9884 function.
9885 (__old_getdents64): Use getdents64. Convert entries without
9886 moving them.
9887 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
9888 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
9889 tst-readdir64-compat.
9890
9891 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9892
9893 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
9894 Fix unwind.
9895
9896 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9897
9898 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
9899 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
9900 code to s390x-mcount.h and #include it.
9901 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
9902 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
9903 (__fentry__): Add.
9904
9905 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9906
9907 * stdlib/Versions: Remove __fentry__.
9908 * sysdeps/i386/Versions: Add __fentry__.
9909 * sysdeps/x86_64/Versions: Add __fentry__.
9910
9911 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9912
9913 * sysdeps/s390/Makefile: Register the new tests.
9914 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
9915 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
9916 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
9917 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
9918 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
9919 * sysdeps/s390/tst-dl-runtime.c: New file.
9920
9921 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9922
9923 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
9924 Do not clobber R0.
9925
9926 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9927
9928 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
9929 Do not clobber R0.
9930
9931 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9932
9933 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
9934 Do not clobber R0.
9935
9936 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9937
9938 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
9939 Do not clobber R0.
9940
9941 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9942
9943 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
9944 Use symbolic offsets for stack variables.
9945
9946 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9947
9948 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
9949 Use symbolic offsets for stack variables.
9950
9951 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9952
9953 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
9954 Use symbolic offsets for stack variables.
9955
9956 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9957
9958 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
9959 Use symbolic offsets for stack variables.
9960
9961 2018-08-09 Joseph Myers <joseph@codesourcery.com>
9962
9963 * math/gen-libm-test.py: New file.
9964 * math/gen-libm-test.pl: Remove.
9965 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
9966 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
9967 gen-libm-test.pl.
9968 ($(libm-test-c-noauto-obj)): Likewise.
9969 ($(libm-test-c-auto-obj)): Likewise.
9970 ($(libm-test-c-narrow-obj)): Likewise.
9971 (regen-ulps): Likewise.
9972 * math/README.libm-test: Update references to gen-libm-test.pl.
9973 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
9974 referencing gen-libm-test.pl.
9975 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
9976 * math/libm-test-support.c: Likewise.
9977 * math/libm-test-support.h: Likewise.
9978 * sysdeps/generic/libm-test-ulps: Likewise.
9979
9980 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
9981
9982 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
9983 Fix value.
9984
9985 2018-08-08 Joseph Myers <joseph@codesourcery.com>
9986
9987 * math/libm-test-nextdown.inc (do_test): Move comment to ....
9988 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
9989
9990 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9991
9992 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
9993 symbols.
9994 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
9995 __pthread_setspecific): Add hidden proto.
9996 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
9997 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
9998
9999 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10000
10001 * benchtests/bench-string.h (buf1_size, buf2_size): New
10002 variables.
10003 (init_sizes): New function.
10004 (test_init): Use it.
10005 (alloc_buf, exit_error): New functions.
10006 (alloc_bufs): Use ALLOC_BUF.
10007 (realloc_bufs): Remove.
10008 * benchtests/bench-memcmp.c (do_test): Adjust.
10009 * benchtests/bench-memset-large.c (do_test): Likewise.
10010 * benchtests/bench-memset-walk.c (do_test): Likewise.
10011 * benchtests/bench-memset.c (do_test): Likewise.
10012 * benchtests/bench-strncmp.c (do_test): Likewise.
10013
10014 2018-08-06 Andreas Schwab <schwab@suse.de>
10015
10016 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10017 of CONST_THREAD_AREA.
10018
10019 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10020
10021 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10022 (STATE_SAVE_MASK): Likewise.
10023 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10024 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10025 (STATE_SAVE_MASK): Likewise.
10026 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10027 instead of <cpu-features.h>.
10028
10029 2018-08-03 DJ Delorie <dj@redhat.com>
10030
10031 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10032 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10033
10034 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10035
10036 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10037
10038 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10039 after TEST_* calls.
10040 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10041 * math/libm-test-logb.inc (logb_test_data): Likewise.
10042
10043 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10044
10045 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10046 * string/strstr.c (AVAILABLE): Likewise.
10047
10048 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10049
10050 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10051 <init-arch.h>.
10052 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10053 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10054 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10055
10056 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10057
10058 * po/be.po: Update translation.
10059
10060 * po/be.po: Update translation.
10061
10062 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10063
10064 * sysdeps/x86/cpu-features-offsets.sym
10065 (rtld_global_ro_offsetof): Removed.
10066 (CPU_FEATURES_SIZE): Likewise.
10067 (CPUID_OFFSET): Likewise.
10068 (CPUID_SIZE): Likewise.
10069 (CPUID_EAX_OFFSET): Likewise.
10070 (CPUID_EBX_OFFSET): Likewise.
10071 (CPUID_ECX_OFFSET): Likewise.
10072 (CPUID_EDX_OFFSET): Likewise.
10073 (FAMILY_OFFSET): Likewise.
10074 (MODEL_OFFSET): Likewise.
10075 (FEATURE_OFFSET): Likewise.
10076 (FEATURE_SIZ): Likewise.
10077 (COMMON_CPUID_INDEX_1): Likewise.
10078 (COMMON_CPUID_INDEX_7): Likewise.
10079 (FEATURE_INDEX_1): Likewise.
10080 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10081
10082 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10083
10084 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10085 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10086 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10087 (install-locales): Depend on install-locale-archive.
10088 (install-locale-archive): Define.
10089 (install-locale-files): Define.
10090 (build-one-locale): Define macro.
10091 * manual/install.texi (Running make install): Document.
10092 * manual/INSTALL: Regenerate.
10093
10094 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10095
10096 * benchtests/scripts/compare_strings.py: Import traceback.
10097 (parse_file): Pretty-print error.
10098
10099 * NEWS: Mention the change.
10100 * elf/dl-tunables.list: Rename tune namespace to cpu.
10101 * sysdeps/powerpc/dl-tunables.list: Likewise.
10102 * sysdeps/x86/dl-tunables.list: Likewise.
10103 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10104 cpu.name.
10105 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10106 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10107 * manual/README.tunables: Likewise.
10108 * manual/tunables.texi: Likewise.
10109 * sysdeps/powerpc/cpu-features.c: Likewise.
10110 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10111 (init_cpu_features): Likewise.
10112 * sysdeps/x86/cpu-features.c: Likewise.
10113 * sysdeps/x86/cpu-features.h: Likewise.
10114 * sysdeps/x86/cpu-tunables.c: Likewise.
10115 * sysdeps/x86_64/Makefile: Likewise.
10116 * sysdeps/x86/dl-cet.c: Likewise.
10117
10118 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10119
10120 [BZ #23479]
10121 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10122 [__mips_hard_float].
10123 (FE_UNDERFLOW): Likewise.
10124 (FE_OVERFLOW): Likewise.
10125 (FE_DIVBYZERO): Likewise.
10126 (FE_INVALID): Likewise.
10127 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10128 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10129 (FE_UPWARD): Likewise.
10130 (FE_DOWNWARD): Likewise.
10131 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10132 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10133 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10134 [__mips_hard_float].
10135 (FP_ROUNDMODE): Likewise.
10136 (FP_RND_NEAREST): Likewise.
10137 (FP_RND_ZERO): Likewise.
10138 (FP_RND_PINF): Likewise.
10139 (FP_RND_MINF): Likewise.
10140 (FP_EX_INVALID): Likewise.
10141 (FP_EX_OVERFLOW): Likewise.
10142 (FP_EX_UNDERFLOW): Likewise.
10143 (FP_EX_DIVZERO): Likewise.
10144 (FP_EX_INEXACT): Likewise.
10145 (FP_INIT_ROUNDMODE): Likewise.
10146 * sysdeps/mips/nofpu/fesetenv.c: New file.
10147 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10148
10149 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10150
10151 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10152 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10153 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10154 conditional on [FE_UPWARD].
10155
10156 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10157
10158 regex: fix memory leak in Gnulib
10159 Problem and fix reported by Assaf Gordon in:
10160 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10161 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10162 range_ends members too, as they are defined in 'struct
10163 re_charset_t' even if not _LIBC. This affects only Gnulib.
10164
10165 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10166
10167 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10168 ...
10169 (get_common_indices): This.
10170 (init_cpu_features): Updated.
10171
10172 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10173
10174 * sysdeps/generic/math-tests-snan-payload.h: New file.
10175 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10176 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10177 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10178 * sysdeps/generic/math-tests.h: Include
10179 <math-tests-snan-payload.h>.
10180 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10181 * sysdeps/hppa/math-tests.h: Remove file.
10182 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10183 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10184 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10185 Likewise.
10186
10187 * sysdeps/generic/math-tests-snan-cast.h: New file.
10188 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10189 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10190 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10191 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10192
10193 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10194
10195 * version.h (RELEASE): Set to "development".
10196 (VERSION): Set to "2.28.9000".
10197 * NEWS (2.29): New section.
10198
10199 * version.h (RELEASE): Set to "stable".
10200 (VERSION): Set to "2.28".
10201 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10202 * NEWS: Add the list of bugs fixed in 2.28.
10203
10204 * po/ca.po: Update to latest version.
10205 * po/cs.po: Likewise
10206 * po/da.po: Likewise
10207 * po/el.po: Likewise
10208 * po/eo.po: Likewise
10209 * po/es.po: Likewise
10210 * po/fi.po: Likewise
10211 * po/fr.po: Likewise
10212 * po/gl.po: Likewise
10213 * po/hu.po: Likewise
10214 * po/ia.po: Likewise
10215 * po/id.po: Likewise
10216 * po/it.po: Likewise
10217 * po/ja.po: Likewise
10218 * po/ko.po: Likewise
10219 * po/lt.po: Likewise
10220 * po/nb.po: Likewise
10221 * po/nl.po: Likewise
10222 * po/pt_BR.po: Likewise
10223 * po/ru.po: Likewise
10224 * po/rw.po: Likewise
10225 * po/sk.po: Likewise
10226 * po/sl.po: Likewise
10227 * po/tr.po: Likewise
10228 * po/zh_CN.po: Likewise
10229 * po/zh_TW.po: Likewise
10230
10231 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10232
10233 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10234 initialization...
10235 (init): ... before initializing libpthread.
10236
10237 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10238 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10239 (__mach_setup_tls): ... new function.
10240 (mach_setup_tls): New alias.
10241 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10242 __mach_setup_thread.
10243 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10244 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10245 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10246 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10247
10248 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10249
10250 * manual/install.texi: Update versions.
10251 * INSTALL: Regenerate.
10252
10253 * manual/contrib.texi (Contributors): Update contributions.
10254
10255 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10256
10257 * po/be.po: Update translations.
10258
10259 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10260
10261 * sysdeps/sh/libm-test-ulps: Update.
10262
10263 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10264
10265 * po/bg.po: Update translations.
10266 * po/de.po: Likewise.
10267 * po/hr.po: Likewise.
10268 * po/pt_BR.po: Likewise.
10269 * po/sv.po: Likewise.
10270 * po/vi.po: Likewise.
10271
10272 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10273
10274 [BZ #23467]
10275 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10276 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10277 (CFLAGS-tst-cet-property-1.o): New.
10278 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10279 ($(objpfx)tst-cet-property-2): Likewise.
10280 ($(objpfx)tst-cet-property-2.out): Likewise.
10281 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10282 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10283 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10284 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10285 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10286
10287 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10288
10289 [BZ #23458]
10290 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10291
10292 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10293
10294 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10295 __sbrk): Do not set attribute_hidden.
10296 * sysdeps/mach/hurd/not-errno.h: New file.
10297 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10298 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10299
10300 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10301
10302 * po/uk.po: Update translations.
10303 * po/cs.po: Likewise.
10304 * po/pl.po: Likewise.
10305
10306 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10307
10308 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10309 parse beyond the note end.
10310
10311 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10312
10313 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10314 kernel does not support OFD locks.
10315 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10316
10317 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10318
10319 * sysdeps/mach/hurd/Versions (libc): Make __access and
10320 __access_noerrno external so they can override the ld symbols.
10321 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10322 __writev, __open64, __access_noerrno extern so they can be overrided.
10323 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10324 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10325
10326 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10327
10328 * po/libc.pot: Regenerate.
10329
10330 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10331
10332 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10333
10334 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10335
10336 [BZ #23459]
10337 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10338 function.
10339 (init_cpu_features): Call get_extended_indices for both Intel
10340 and AMD CPUs.
10341 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10342 Remove "for AMD" comment.
10343
10344 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10345
10346 [BZ # 23456]
10347 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10348 COMMON_CPUID_INDEX_80000001.
10349
10350 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10351
10352 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10353 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10354
10355 2018-07-26 Florian Weimer <fweimer@redhat.com>
10356
10357 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10358 aliases for symbols not in the implementation namespace.
10359
10360 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10361
10362 [BZ #23393]
10363 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10364 lowercase in LATIN script.
10365 * localedata/Makefile (test-input): Add en_US.UTF-8.
10366 * localedata/en_US.UTF-8.in: New file.
10367 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10368 and restore old tests.
10369 * posix/tst-regexloc.c (do_test): Add back range expression test.
10370
10371 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10372
10373 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10374
10375 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10376
10377 * nptl/threads.h: Move to ...
10378 * sysdeps/nptl/threads.h: ... here.
10379 * sysdeps/hurd/stdc-predef.h: New file.
10380
10381 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10382
10383 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10384 tst-cet-setcontext-1 if CET is enabled.
10385 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10386 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10387
10388 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10389
10390 * include/threads.h: Move to ...
10391 * sysdeps/nptl/threads.h: ... here.
10392 * sysdeps/htl/threads.h: New file.
10393 * conform/Makefile (linknamespace-libs-ISO11): Use
10394 static-thread-library instead of linking libpthread.
10395 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10396
10397 2018-07-25 Florian Weimer <fweimer@redhat.com>
10398
10399 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10400 nanoseconds into seconds.
10401 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10402 (do_test): Likewise.
10403 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10404 (do_test): Likewise. Avoid nanosecond overflow and spurious
10405 timeouts due to system load.
10406 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10407 (child_wait): Increment it.
10408 (do_test): Wait as long as necessary until all expected threads
10409 have arrived.
10410
10411 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10412 H.J. Lu <hongjiu.lu@intel.com>
10413
10414 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10415 __ssp.
10416 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10417 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10418 (__push___start_context): New.
10419 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10420 <asm/prctl.h>.
10421 (__getcontext): Record the current shadow stack base. Save the
10422 caller's shadow stack pointer and base.
10423 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10424 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10425 (__push___start_context): New prototype.
10426 (__makecontext): Call __push___start_context to allocate a new
10427 shadow stack, push __start_context onto the new stack as well
10428 as the new shadow stack.
10429 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10430 <asm/prctl.h>.
10431 (__setcontext): Restore the target shadow stack.
10432 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10433 <asm/prctl.h>.
10434 (__swapcontext): Record the current shadow stack base. Save
10435 the caller's shadow stack pointer and base. Restore the target
10436 shadow stack.
10437 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10438 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10439 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10440
10441 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10442
10443 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10444 tst-setcontext8 and tst-setcontext9.
10445 * stdlib/tst-setcontext6.c: New file.
10446 * stdlib/tst-setcontext7.c: Likewise.
10447 * stdlib/tst-setcontext8.c: Likewise.
10448 * stdlib/tst-setcontext9.c: Likewise.
10449
10450 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10451
10452 * stdlib/Makefile ((tests): Add tst-setcontext5.
10453 * stdlib/tst-setcontext5.c: New file.
10454
10455 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10456
10457 * stdlib/Makefile (tests): Add tst-setcontext4.
10458 * stdlib/tst-setcontext4.c: New file.
10459
10460 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10461
10462 * stdlib/Makefile (tests): Add tst-swapcontext1.
10463 * stdlib/tst-swapcontext1.c: New test.
10464
10465 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10466
10467 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10468 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10469 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10470 and tst-cet-legacy-4c.
10471 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10472 and tst-cet-legacy-mod-4.
10473 (CFLAGS-tst-cet-legacy-2.c): New.
10474 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10475 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10476 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10477 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10478 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10479 ($(objpfx)tst-cet-legacy-1): Likewise.
10480 ($(objpfx)tst-cet-legacy-2): Likewise.
10481 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10482 ($(objpfx)tst-cet-legacy-2a): Likewise.
10483 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10484 ($(objpfx)tst-cet-legacy-4): Likewise.
10485 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10486 ($(objpfx)tst-cet-legacy-4a): Likewise.
10487 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10488 (tst-cet-legacy-4a-ENV): Likewise.
10489 ($(objpfx)tst-cet-legacy-4b): Likewise.
10490 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10491 (tst-cet-legacy-4b-ENV): Likewise.
10492 ($(objpfx)tst-cet-legacy-4c): Likewise.
10493 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10494 (tst-cet-legacy-4c-ENV): Likewise.
10495 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10496 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10497 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10498 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10499 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10500 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10501 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10502 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10503 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10504 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10505 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10506
10507 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10508
10509 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10510 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10511 with ssp_base.
10512 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10513 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10514 with ssp_base.
10515
10516 2018-07-25 Andreas Schwab <schwab@suse.de>
10517
10518 [BZ #23442]
10519 * locale/weightwc.h (findidx): Handle the case where usrc is a
10520 prefix of cp but one character too short.
10521
10522 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10523
10524 * NEWS: Add ISO C threads addition.
10525
10526 2018-07-24 Florian Weimer <fweimer@redhat.com>
10527
10528 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10529 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
10530 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
10531 4.13.
10532
10533 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10534
10535 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
10536 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
10537 <sys/prctl.h> and <asm/prctl.h>.
10538 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
10539 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
10540 and <asm/prctl.h>.
10541 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
10542 ARCH_CET_LEGACY_BITMAP.
10543 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
10544 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
10545 * sysdeps/x86/libc-start.c: Include <startup.h>.
10546
10547 2018-07-24 Florian Weimer <fweimer@redhat.com>
10548
10549 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
10550 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
10551
10552 2018-07-24 Rical Jasan <rj@2c3t.io>
10553 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10554 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10555
10556 [BZ #14092]
10557 * manual/debug.texi: Update adjacent chapter name.
10558 * manual/probes.texi: Likewise.
10559 * manual/threads.texi (ISO C Threads): New section.
10560 (POSIX Threads): Convert to a section.
10561
10562 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10563 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10564
10565 [BZ# 14092]
10566 * nptl/Makefile (tests): Add new test files.
10567 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
10568 * nptl/tst-cnd-basic.c: Likewise.
10569 * nptl/tst-cnd-broadcast.c: Likewise.
10570 * nptl/tst-cnd-timedwait.c: Likewise.
10571 * nptl/tst-mtx-basic.c: Likewise.
10572 * nptl/tst-mtx-recursive.c: Likewise.
10573 * nptl/tst-mtx-timedlock.c: Likewise.
10574 * nptl/tst-mtx-trylock.c: Likewise.
10575 * nptl/tst-thrd-basic.c: Likewise.
10576 * nptl/tst-thrd-detach.c: Likewise.
10577 * nptl/tst-thrd-sleep.c: Likewise.
10578 * nptl/tst-tss-basic.c: Likewise.
10579
10580 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10581
10582 [BZ #14092]
10583 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10584 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
10585 symbols.
10586 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10587 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10588 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10589 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10590 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10591 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10592 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10593 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10594 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10595 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10596 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10597 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10599 Likewise.
10600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10601 Likewise.
10602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10603 Likewise.
10604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10605 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10606 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10607 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10608 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10609 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10610 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10611 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10612 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10613 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
10614 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
10615 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
10616 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
10617 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
10618 Likewise.
10619 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
10620 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
10621 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
10622 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
10623 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
10624 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
10625 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
10626 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
10627 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
10628 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
10629 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
10630 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
10631 ikewise.
10632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
10633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
10634 Likewise.
10635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
10636 Likewise.
10637 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
10638 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
10639 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
10640 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
10641 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
10642 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
10643 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
10644 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
10645
10646 [BZ #14092]
10647 * conform/data/threads.h-data (thread_local): New macro.
10648 (TSS_DTOR_ITERATIONS): Likewise.
10649 (tss_t): New type.
10650 (tss_dtor_t): Likewise.
10651 (tss_create): New function.
10652 (tss_get): Likewise.
10653 (tss_set): Likewise.
10654 (tss_delete): Likewise.
10655 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
10656 tss_get, and tss_set objects.
10657 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10658 * nptl/tss_create.c: New file.
10659 * nptl/tss_delete.c: Likewise.
10660 * nptl/tss_get.c: Likewise.
10661 * nptl/tss_set.c: Likewise.
10662 * sysdeps/nptl/threads.h (thread_local): New define.
10663 (TSS_DTOR_ITERATIONS): Likewise.
10664 (tss_t): New typedef.
10665 (tss_dtor_t): Likewise.
10666 (tss_create): New prototype.
10667 (tss_get): Likewise.
10668 (tss_set): Likewise.
10669 (tss_delete): Likewise.
10670
10671 [BZ #14092]
10672 * conform/data/threads.h-data (cnd_t): New type.
10673 (cnd_init): New function.
10674 (cnd_signal): Likewise.
10675 (cnd_broadcast): Likewise.
10676 (cnd_wait): Likewise.
10677 (cnd_timedwait): Likewise.
10678 (cnd_destroy): Likewise.
10679 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
10680 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
10681 object.
10682 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10683 * nptl/cnd_broadcast.c: New file.
10684 * nptl/cnd_destroy.c: Likewise.
10685 * nptl/cnd_init.c: Likewise.
10686 * nptl/cnd_signal.c: Likewise.
10687 * nptl/cnd_timedwait.c: Likewise.
10688 * nptl/cnd_wait.c: Likewise.
10689 * sysdeps/nptl/threads.h (cnd_t): New type.
10690 (cnd_init): New prototype.
10691 (cnd_signa): Likewise.
10692 (cnd_broadcast): Likewise.
10693 (cnd_wait): Likewise.
10694 (cnd_timedwait): Likewise.
10695 (cnd_destroy): Likewise.
10696
10697 [BZ #14092]
10698 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
10699 (once_flag): New type.
10700 (call_once): New function.
10701 * nptl/Makefile (libpthread-routines): Add call_once object.
10702 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
10703 * nptl/call_once.c: New file.
10704 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
10705 (once_flag): New type.
10706 (call_once): New prototype.
10707
10708 [BZ #14092]
10709 * conform/data/threads.h-data (mtx_plain): New constant.
10710 (mtx_recursive): Likewise.
10711 (mtx_timed): Likewise.
10712 (mtx_t): New type.
10713 (mtx_init): New function.
10714 (mtx_lock): Likewise.
10715 (mtx_timedlock): Likewise.
10716 (mtx_trylock): Likewise.
10717 (mtx_unlock): Likewise.
10718 (mtx_destroy): Likewise.
10719 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
10720 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
10721 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
10722 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
10723 * nptl/mtx_destroy.c: New file.
10724 * nptl/mtx_init.c: Likewise.
10725 * nptl/mtx_lock.c: Likewise.
10726 * nptl/mtx_timedlock.c: Likewise.
10727 * nptl/mtx_trylock.c: Likewise.
10728 * nptl/mtx_unlock.c: Likewise.
10729 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
10730 (mtx_recursive): Likewise.
10731 (mtx_timed): Likewise.
10732 (mtx_t): New type.
10733 (mtx_init): New prototype.
10734 (mtx_lock): Likewise.
10735 (mtx_timedlock): Likewise.
10736 (mtx_trylock): Likewise.
10737 (mtx_unlock): Likewise.
10738 (mtx_destroy): Likewise.
10739
10740 [BZ #14092]
10741 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
10742 (linknamespace-libs-ISO11): Add libpthread.a.
10743 * conform/data/threads.h-data: New file: add C11 thrd_* types and
10744 functions.
10745 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
10746 * nptl/Makefile (headers): Add threads.h.
10747 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
10748 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
10749 thrd_yield.
10750 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
10751 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
10752 thrd_join, thrd_sleep, and thrd_yield symbols.
10753 * nptl/descr.h (struct pthread): Add c11 field.
10754 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
10755 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
10756 routine with expected function prototype.
10757 (__pthread_create_2_1): Add C11 threads check based on attribute
10758 value.
10759 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
10760 * nptl/thrd_create.c: New file.
10761 * nptl/thrd_current.c: Likewise.
10762 * nptl/thrd_detach.c: Likewise.
10763 * nptl/thrd_equal.c: Likewise.
10764 * nptl/thrd_exit.c: Likewise.
10765 * nptl/thrd_join.c: Likewise.
10766 * nptl/thrd_priv.h: Likewise.
10767 * nptl/thrd_sleep.c: Likewise.
10768 * nptl/thrd_yield.c: Likewise.
10769 * include/threads.h: Likewise.
10770
10771 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10772
10773 * bits/indirect-return.h: New file.
10774 * misc/sys/cdefs.h (__glibc_has_attribute): New.
10775 * sysdeps/x86/bits/indirect-return.h: Likewise.
10776 * stdlib/Makefile (headers): Add bits/indirect-return.h.
10777 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
10778 (swapcontext): Add __INDIRECT_RETURN.
10779 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
10780 (prepare_test_buffer): Use it.
10781
10782 2018-07-24 Andreas Schwab <schwab@suse.de>
10783
10784 [BZ #23448]
10785 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
10786 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
10787
10788 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10789
10790 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
10791 Redefine if shadow stack is enabled.
10792 (SYSCALL_ERROR_LABEL): Likewise.
10793 (__vfork): Pop shadow stack and jump back to to caller directly
10794 when shadow stack is in use.
10795 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
10796 Redefine if shadow stack is enabled.
10797 (SYSCALL_ERROR_LABEL): Likewise.
10798 (__vfork): Pop shadow stack and jump back to to caller directly
10799 when shadow stack is in use.
10800
10801 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10802
10803 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
10804 enabled.
10805 (foo): Likewise.
10806 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
10807 (foo): Likewise.
10808
10809 2018-07-20 Joseph Myers <joseph@codesourcery.com>
10810
10811 * scripts/build-many-glibcs.py (Context.checkout): Default
10812 binutils version to 2.31 branch.
10813
10814 2018-07-20 Zong Li <zong@andestech.com>
10815
10816 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
10817 URL of gcc's tarball.
10818
10819 2018-07-20 Florian Weimer <fweimer@redhat.com>
10820
10821 [BZ #23396]
10822 * posix/regcomp.c (build_equiv_class): When comparing weights, do
10823 not compare an extra byte after the end of the weights.
10824
10825 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
10826
10827 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
10828 to 1.
10829 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
10830 hidden prototypes.
10831 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
10832 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
10833 * scripts/check-execstack.awk: Consider `xfail' variable containing a
10834 list of libraries whose stack executability is expected.
10835 * elf/Makefile ($(objpfx)check-execstack.out): Pass
10836 $(check-execstack-xfail) to check-execstack.awk through `xfail'
10837 variable.
10838 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
10839 libc.so libpthread.so.
10840
10841 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
10842
10843 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
10844 SOCK_NONBLOCK.
10845 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
10846 and SOCK_NONBLOCK.
10847 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
10848 implement __pipe2.
10849 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
10850
10851 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10852
10853 * benchtests/scripts/compare_bench.py (__main__): use the argparse
10854 library to improve command line parsing.
10855 (__main__): make schema file as optional parameter (--schema),
10856 defaulting to benchtests/scripts/benchout.schema.json.
10857 (main): move out of the parsing stuff to __main_  and leave it
10858 only as caller of main comparison functions.
10859
10860 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
10861
10862 * NEWS: Add a note for Intel CET status.
10863 * manual/install.texi: Likewise.
10864 * INSTALL: Regenerated.
10865
10866 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
10867
10868 [BZ #23140]
10869 * localedata/locales/oc_FR (mon): Rename to...
10870 (alt_mon): This, then update October (typo fix).
10871 (mon): New content (genitive case, month names preceded by
10872 "de" or "d’").
10873
10874 [BZ #23422]
10875 * localedata/locales/oc_FR (abday): Update all items.
10876 (day): Update Wednesday and Saturday (typo fixes).
10877 (abmon): Update all items, except May.
10878 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
10879 (LC_IDENTIFICATION): Bump the revision number and date.
10880 Keep the "category" entries in alphabetic order.
10881 (LC_ADDRESS): Remove no longer needed comment.
10882 (LC_COLLATE): Use “copy "ca_ES"”.
10883 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
10884 "name_mrs".
10885
10886 2018-07-18 Joseph Myers <joseph@codesourcery.com>
10887
10888 * grp/tst_fgetgrent.c: Include <unistd.h>.
10889 (main): Use mkstemp instead of tmpnam.
10890 * io/test-utime.c (main): Likewise.
10891 * posix/annexc.c (macrofile): Change to modifiable array.
10892 (main): Remove macrofile here.
10893 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
10894 macrofile here.
10895 (check_header): Do not remove macrofile here.
10896 * posix/bug-getopt1.c: Include <stdlib.h>.
10897 (do_test): Use mkstemp instead of tmpnam.
10898 * posix/bug-getopt2.c: Include <stdlib.h>.
10899 (do_test): Use mkstemp instead of tmpnam.
10900 * posix/bug-getopt3.c: Include <stdlib.h>.
10901 (do_test): Use mkstemp instead of tmpnam.
10902 * posix/bug-getopt4.c: Include <stdlib.h>.
10903 (do_test): Use mkstemp instead of tmpnam.
10904 * posix/bug-getopt5.c: Include <stdlib.h>.
10905 (do_test): Use mkstemp instead of tmpnam.
10906 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
10907 (main): Use mkstemp instead of tmpnam.
10908 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
10909 (main): Use mkstemp instead of tmpnam.
10910 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
10911 (main): use mkstemp instead of tmpnam.
10912 * stdlib/isomac.c (macrofile): Change to modifiable array.
10913 (main): Remove macrofile here.
10914 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
10915 macrofile here.
10916 (check_header): Do not remove macrofile here.
10917
10918 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10919
10920 * manual/tunables.texi: Document glibc.tune.x86_ibt and
10921 glibc.tune.x86_shstk.
10922
10923 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10924
10925 * NEWS: Mention --enable-cet.
10926 * manual/install.texi: Document --enable-cet.
10927 * INSTALL: Regenerated.
10928
10929 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10930
10931 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
10932 Add _CET_NOTRACK before indirect jump to jump table.
10933
10934 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10935
10936 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
10937 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10938 to jump table.
10939
10940 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10941
10942 * sysdeps/i386/i686/multiarch/strcat-sse2.S
10943 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10944 to jump table.
10945
10946 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10947
10948 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
10949 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10950 to jump table.
10951
10952 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10953
10954 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
10955 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10956 to jump table.
10957
10958 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10959
10960 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
10961 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10962 to jump table.
10963 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
10964
10965 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10966
10967 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
10968 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10969 to jump table.
10970
10971 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10972
10973 * sysdeps/i386/i686/multiarch/memset-sse2.S
10974 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10975 to jump table.
10976
10977 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10978
10979 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
10980 indirect jump to jump table.
10981
10982 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10983
10984 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
10985 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10986 to jump table.
10987 (MEMCPY): Likewise.
10988
10989 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10990
10991 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
10992 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10993 to jump table.
10994 (MEMCPY): Likewise.
10995
10996 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10997
10998 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
10999 _CET_NOTRACK before indirect jump to jump table.
11000
11001 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11002
11003 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11004 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11005 to jump table.
11006
11007 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11008
11009 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11010 indirect jump to jump table.
11011
11012 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11013
11014 [BZ #22241]
11015 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11016 (LOCALES): Likewise.
11017 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11018 * localedata/locales/sah_RU: New file.
11019 * localedata/sah_RU.UTF-8.in: New file.
11020
11021 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11022
11023 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11024 "sysdep.h".
11025 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11026 _CET_ENDBR to indirect jump targets and adjust jump destination
11027 for _CET_ENDBR.
11028 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11029 "sysdep.h".
11030 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11031 _CET_ENDBR to indirect jump targets and adjust jump destination
11032 for _CET_ENDBR.
11033 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11034 "sysdep.h".
11035 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11036 _CET_ENDBR to indirect jump targets and adjust jump destination
11037 for _CET_ENDBR.
11038
11039 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11040
11041 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11042 _CET_ENDBR.
11043
11044 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11045
11046 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11047 _CET_ENDBR.
11048 (_dl_tlsdesc_undefweak): Likewise.
11049 (_dl_tlsdesc_dynamic): Likewise.
11050 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11051 (_dl_tlsdesc_resolve_rel): Likewise.
11052 (_dl_tlsdesc_resolve_rela): Likewise.
11053 (_dl_tlsdesc_resolve_hold): Likewise.
11054 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11055 (_dl_tlsdesc_undefweak): Likewise.
11056 (_dl_tlsdesc_dynamic): Likewise.
11057 (_dl_tlsdesc_resolve_rela): Likewise.
11058 (_dl_tlsdesc_resolve_hold): Likewise.
11059
11060 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11061
11062 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11063 (_fini): Likewise.
11064 * sysdeps/x86_64/crti.S (_init): Likewise.
11065 (_fini): Likewise.
11066
11067 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11068
11069 [BZ #23140]
11070 * localedata/locales/os_RU (mon): Rename to...
11071 (alt_mon): This.
11072 (mon): Import from CLDR (genitive case).
11073
11074 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11075
11076 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11077 cet-tunables.h> when CET is enabled.
11078
11079 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11080
11081 [BZ #21598]
11082 * configure.ac: Add --enable-cet.
11083 * configure: Regenerated.
11084 * elf/Makefille (all-built-dso): Add a comment.
11085 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11086 Include <dl-prop.h>.
11087 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11088 segment.
11089 * elf/dl-open.c: Include <dl-prop.h>.
11090 (dl_open_worker): Call _dl_open_check.
11091 * elf/rtld.c: Include <dl-prop.h>.
11092 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11093 _rtld_main_check.
11094 * sysdeps/generic/dl-prop.h: New file.
11095 * sysdeps/i386/dl-cet.c: Likewise.
11096 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11097 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11098 * sysdeps/x86/cet-tunables.h: Likewise.
11099 * sysdeps/x86/check-cet.awk: Likewise.
11100 * sysdeps/x86/configure: Likewise.
11101 * sysdeps/x86/configure.ac: Likewise.
11102 * sysdeps/x86/dl-cet.c: Likewise.
11103 * sysdeps/x86/dl-procruntime.c: Likewise.
11104 * sysdeps/x86/dl-prop.h: Likewise.
11105 * sysdeps/x86/libc-start.h: Likewise.
11106 * sysdeps/x86/link_map.h: Likewise.
11107 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11108 _CET_ENDBR.
11109 (_dl_runtime_profile): Likewise.
11110 (_dl_runtime_resolve_shstk): New.
11111 (_dl_runtime_profile_shstk): Likewise.
11112 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11113 if CET is enabled.
11114 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11115 (CFLAGS-.os): Likewise.
11116 (CFLAGS-.op): Likewise.
11117 (CFLAGS-.oS): Likewise.
11118 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11119 is enabled.
11120 (tests-special): Add $(objpfx)check-cet.out.
11121 (cet-built-dso): New.
11122 (+$(cet-built-dso:=.note)): Likewise.
11123 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11124 ($(objpfx)check-cet.out): New.
11125 (generated): Add check-cet.out.
11126 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11127 <cet-tunables.h>.
11128 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11129 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11130 (init_cpu_features): Call get_cet_status to check CET status
11131 and update dl_x86_feature_1 with CET status. Call
11132 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11133 (set_x86_shstk). Disable and lock CET in libc.a.
11134 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11135 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11136 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11137 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11138 (_CET_ENDBR): Define if not defined.
11139 (ENTRY): Add _CET_ENDBR.
11140 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11141 x86_shstk.
11142 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11143 _CET_ENDBR.
11144 (_dl_runtime_profile): Likewise.
11145
11146 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11147
11148 [BZ #21895]
11149 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11150 restore r2 on longjmp.
11151 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11152 test list.
11153 Added rules to build test tst-setjmp-bug21895-static.
11154 Added module setjmp-bug21895 and rules to build a shared object from it.
11155 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11156 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11157
11158 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11159
11160 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11161 * benchtests/bench-strstr.c: Likewise.
11162 * string/memmem.c (FASTSEARCH): Define.
11163 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11164 Add support for FASTSEARCH.
11165 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11166 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11167 (FASTSEARCH): Define.
11168 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11169 * string/test-strstr.c: Likewise.
11170
11171 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11172
11173 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11174 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11175
11176 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11177 H.J. Lu <hongjiu.lu@intel.com>
11178
11179 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11180 (__longjmp): Restore shadow stack pointer if shadow stack is
11181 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11182 isn't defined for __longjmp_cancel.
11183 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11184 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11185 and SHADOW_STACK_POINTER_OFFSET is defined.
11186 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11187 (setjmp): Save shadow stack pointer if shadow stack is enabled
11188 and SHADOW_STACK_POINTER_OFFSET is defined.
11189 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11190 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11191 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11192 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11193 <jmp_buf-ssp.h>.
11194 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11195 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11196 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11197 Remove jmp_buf-ssp.sym.
11198 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11199 <jmp_buf-ssp.h>.
11200 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11201 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11202 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11203 jmp_buf-ssp.sym.
11204 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11205 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11206 (__longjmp): Restore shadow stack pointer if shadow stack is
11207 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11208 isn't defined for __longjmp_cancel.
11209 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11210 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11211 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11212
11213 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11214
11215 [BZ #22563]
11216 * nptl/pthread_create.c: Include <tls-setup.h>.
11217 (__pthread_create_2_1): Call tls_setup_tcbhead.
11218 * sysdeps/generic/tls-setup.h: New file.
11219 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11220 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11221 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11222 Likewise.
11223 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11224 to feature_1.
11225 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11226 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11227 (X86_FEATURE_1_SHSTK): Likewise.
11228 (CET_ENABLED): Likewise.
11229 (IBT_ENABLED): Likewise.
11230 (SHSTK_ENABLED): Likewise.
11231
11232 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11233
11234 [BZ #23208]
11235 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11236 (LOCALES): Likewise.
11237 * localedata/dsb_DE.UTF-8.in: New file.
11238 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11239
11240 2018-07-12 Florian Weimer <fweimer@redhat.com>
11241
11242 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11243 __mprotect, not mprotect.
11244
11245 2018-07-11 Florian Weimer <fweimer@redhat.com>
11246
11247 * io/Makefile (headers): Add bits/statx.h.
11248
11249 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11250
11251 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11252 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11253 and headers.
11254 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11255 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11256 for utf8_gen.py
11257
11258 2018-07-10 Florian Weimer <fweimer@redhat.com>
11259
11260 * io/Makefile (routines): Add statx.
11261 (tests-internal): Add tst-statx.
11262 * io/Versions (GLIBC_2.28): Export statx.
11263 * io/bits/statx.h: New file.
11264 * io/sys/stat.h [__USE_GNU]: Include it.
11265 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11266 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11267 Define.
11268 * io/statx.c: New file.
11269 * io/statx_generic.: Likewise.
11270 * io/tst-statx.: Likewise.
11271 * include/bits/statx.h: Likewise.
11272 * sysdeps/unix/sysv/linux/kernel-features.h
11273 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11274 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11275 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11276 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11277 Undefine.
11278 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11279 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11280 * sysdeps/unix/sysv/linux/statx.c: New file.
11281 * manual/filesys.texi: Note that statx is undocumented.
11282 * sysdeps/**/libc*.abilist: Update.
11283
11284 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11285
11286 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11287 a kernel issue which lead to test failure in some cases.
11288
11289 2018-07-10 Florian Weimer <fweimer@redhat.com>
11290
11291 [BZ #23036]
11292 * posix/regexec.c (check_node_accept_bytes): When comparing
11293 weights, do not compare an extra byte after the end of the
11294 weights.
11295
11296 2018-07-10 Florian Weimer <fweimer@redhat.com>
11297
11298 * libio/readline.c: Fix copyright year.
11299 * libio/tst-readline.c Likewise.
11300 * nss/tst-nss-files-hosts-getent.c: Likewise.
11301
11302 2018-07-06 Florian Weimer <fweimer@redhat.com>
11303
11304 [BZ #18991]
11305 * nss/nss_files/files-XXX.c (internal_getent): Use
11306 __libc_readline_unlocked. Seek back to the start of the line if
11307 parsing failes with ERANGE.
11308 (get_contents_ret, get_contents): Remove.
11309 * nss/tst-nss-files-hosts-getent.c: New file.
11310 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11311 (tst-nss-files-hosts-getent): Link with -ldl.
11312
11313 2018-07-06 Florian Weimer <fweimer@redhat.com>
11314
11315 * include/stdio.h (__libc_readline_unlocked): Declare.
11316 (__ftello64, __fseeko64): Declare aliases.
11317 * libio/readline.c: New file.
11318 * libio/tst-readline.c: Likewise.
11319 (routines): Add readline.
11320 (tests-internal): Add tst-readlime.
11321 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11322 __libc_readline_unlocked.
11323 * libio/fseeko.c (__fseeko): Rename from fseeko.
11324 (fseeko): Add alias.
11325 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11326 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11327 (fseeko64): Add alias.
11328 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11329 * libio/ftello64.c (__ftello64): Rename from ftello64.
11330 (ftello64): Add alias.
11331
11332 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11333
11334 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11335 HWCAP_ATOMICS.
11336
11337 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11338
11339 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11340 Use dl_hwcap without masking.
11341 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11342 Remove HWCAP_CPUID.
11343
11344 2018-07-06 Florian Weimer <fweimer@redhat.com>
11345
11346 * conform/conformtest.pl (checknamespace): Escape literal braces
11347 in regular expressions.
11348
11349 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11350
11351 * sysdeps/x86/cpu-features.c (get_common_indeces):
11352 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11353 * sysdeps/x86/cpu-features.c (init_cpu_features):
11354 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11355
11356 2018-07-05 Florian Weimer <fweimer@redhat.com>
11357
11358 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11359 protector.
11360 (CFLAGS-elf-init.oS): Likewise.
11361
11362 2018-07-05 Florian Weimer <fweimer@redhat.com>
11363 Carlos O'Donell <carlos@redhat.com>
11364
11365 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11366 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11367 with stack protector enabled because there is no risk of infinite
11368 recursion.
11369
11370 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11371
11372 [BZ #19818]
11373 [BZ #23307]
11374 * libc-abis (ABSOLUTE): New ABI.
11375 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11376 * NEWS: Mention the new ABI.
11377
11378 2018-07-05 Florian Weimer <fweimer@redhat.com>
11379
11380 [BZ # 17662]
11381 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11382 (RENAME_WHITEOUT): Define.
11383 [__USE_GNU] (renameat2): Declare.
11384 * stdio-common/Makefile (routines): Add renameat2.
11385 (tests): Add tst-renameat2.
11386 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11387 * stdio-common/renameat2.c: New file.
11388 * stdio-common/tst-renameat2.c: Likewise.
11389 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11390 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11391 undocumented.
11392 * sysdeps/unix/sysv/linux/kernel-features.h
11393 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11394 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11395 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11396 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11397 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11398 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11399 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11400 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11401 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11402 * include/stdio.h (__renameat): Add alias for renameat.
11403 * stdio-common/renameat.c (__renameat): Rename from renameat.
11404 Add hidden definition and alias.
11405 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11406 * sysdeps/mach/hurd/renameat.c: Likewise.
11407 * sysdeps/**/libc*.abilist: Add renameat2.
11408
11409 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11410
11411 * posix/bug-regex33.c: Fix build after regex sync.
11412
11413 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11414
11415 [BZ #23164]
11416 * localedata/tst-langinfo-setlocale.c: New file.
11417 * localedata/tst-langinfo-setlocale-static.c: New file.
11418 * localedata/tst-langinfo-newlocale.c: New file.
11419 * localedata/tst-langinfo-newlocale-static.c: New file.
11420 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11421 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11422 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11423 (tests-static): Remove tst-langinfo-static. Add
11424 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11425 (tests-special): Remove $(objpfx)tst-langinfo.out,
11426 $(objpfx)tst-langinfo-static.out. Add
11427 $(objpfx)tst-langinfo-setlocale.out,
11428 $(objpfx)tst-langinfo-newlocale.out,
11429 $(objpfx)tst-langinfo-setlocale-static.out,
11430 $(objpfx)tst-langinfo-newlocale-static.out.
11431 ($(objpfx)tst-langinfo.out): Remove.
11432 ($(objpfx)tst-langinfo-static.out): Remove.
11433 ($(objpfx)tst-langinfo-newlocale.out): New target.
11434 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11435 (test-xfail-tst-langinfo-newlocale-static): Add.
11436 ($(objpfx)tst-langinfo-setlocale.out): New target.
11437 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11438 * localedata/tst-langinfo.c: Call test_locale.
11439 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11440 data.
11441
11442 2018-07-04 Florian Weimer <fweimer@redhat.com>
11443
11444 testrun.sh: Implement --tool=strace, --tool=valgrind
11445 * Makefile (testrun-script): Define variable.
11446 (testrun.sh): Use variable.
11447 * manual/install.texi (Tools for Compilation): make 4.0 or later
11448 is required.
11449 * configure.ac: Check for make 4.0 or later.
11450 * INSTALL: Regenerate.
11451 * configure: Likewise.
11452
11453 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11454
11455 [BZ #23233]
11456 [BZ #21163]
11457 [BZ #18986]
11458 [BZ #13762]
11459 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11460 * posix/PCRE.tests: Remove invalid test.
11461 * posix/bug-regex28.c: Fix expected values for used syntax.
11462 * posix/bug-regex37.c: New file.
11463 * posix/bug-regex38.c: Likewise.
11464 * posix/regcomp.c: Sync with gnulib.
11465 * posix/regex.c: Likewise.
11466 * posix/regex.h: Likewise.
11467 * posix/regex_internal.c: Likewise.
11468 * posix/regex_internal.h: Likewise.
11469 * posix/regexec.c: Likewise.
11470
11471 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11472
11473 [BZ #23308]
11474 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11475 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11476 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11477 * localedata/unicode-gen/PropList.txt: likewise.
11478 * localedata/unicode-gen/UnicodeData.txt: likewise.
11479 * localedata/charmaps/UTF-8: Regenerate.
11480 * localedata/locales/i18n_ctype: likewise.
11481 * localedata/locales/tr_TR: likewise.
11482 * localedata/locales/translit_circle: likewise.
11483 * localedata/locales/translit_cjk_compat: likewise.
11484 * localedata/locales/translit_combining: likewise.
11485 * localedata/locales/translit_compat: likewise.
11486 * localedata/locales/translit_font: likewise.
11487 * localedata/locales/translit_fraction: likewise.
11488
11489 2018-07-03 Florian Weimer <fweimer@redhat.com>
11490
11491 [BZ #23363]
11492 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11493 * stdio-common/tst-printf.sh: Adjust expected output.
11494 * LICENSES: Update.
11495
11496 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11497
11498 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11499 symbol.
11500
11501 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11502
11503 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11504 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11505 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11506 * stdio-common/tst-printfsz-islongdouble.c: New file.
11507 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11508 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11509 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11510 [subdir == stdio-common] (tests-internal): Add
11511 test-printf-size-ieee128, and test-printf-size-ibm128.
11512 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11513 (CFLAGS-test-printf-size-ibm128.c): New variables.
11514 [subdir == stdio-common] (tests-special): Add
11515 $(objpfx)test-printf-size-ieee128.out and
11516 $(objpfx)test-printf-size-ibm128.out.
11517 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11518 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11519 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11520 __printf_sizeieee128.
11521 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11522 New file.
11523 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11524 Likewise.
11525 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11526 Likewise.
11527
11528 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
11529
11530 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
11531 (exp2f_inline): Likewise.
11532 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
11533 (__math_uflowf): Likewise.
11534 (__math_may_uflowf): Likewise.
11535 (__math_divzerof): Likewise.
11536 (__math_invalidf): Likewise.
11537 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
11538 (__math_oflowf): Likewise.
11539 (__math_uflowf): Likewise.
11540 (__math_may_uflowf): Likewise.
11541 (__math_divzerof): Likewise.
11542 (__math_invalidf): Likewise.
11543
11544 2018-06-29 DJ Delorie <dj@redhat.com>
11545 Carlos O'Donell <carlos@redhat.com>
11546
11547 [BZ #23329]
11548 * include/libc-symbols.h: Comment the freeres framework.
11549 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
11550 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
11551 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
11552 * dlfcn/dlerror.c: Include libc-symbols.h
11553 (__dlerror_main_freeres): New function.
11554 * dlfcn/dlfreeres.c: New file.
11555 * dlfcn/sdlfreeres.c: New file.
11556 * include/dlfcn.h: Declare __dlerror_main_freeres.
11557 * malloc/set-freeres.c: Declare __libdl_freeres, and
11558 __libpthread_freeres.
11559 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
11560 the releavant libraries are loaded.
11561 * malloc/thread-freeres.c: Add comments.
11562 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
11563 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
11564 * nptl/allocatestack.c (__nptl_free_stacks): New function.
11565 (__free_stacks): Rename to...
11566 (free_stacks): ...this. Mark static.
11567 (queue_stack): Call free_stacks.
11568 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
11569 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
11570 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
11571 ptr_freeres element from struct.
11572 (pthread_functions): Remove .ptr_freeres from struct initializer.
11573 [SHARED] (nptl_freeres): Remove.
11574 * nptl/nptlfreeres.c: New file.
11575 * nptl/pthreadP.h
11576 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
11577 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
11578 attribute_hidden.
11579 (__free_stacks): Rename to...
11580 (__nptl_stacks_freeres): ...this.
11581 (__shm_directory_freeres): Declare.
11582 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
11583 (__nptl_unwind_freeres): ...this.
11584 * resolv/res-close.c: Add comment.
11585 * resolv/resolv_conf.c: Include libc-symbols.h.
11586 * string/strerror_l.c: Include libc-symbols.h.
11587 * sunrpc/rpc_thread.c: Include libc-symbols.h.
11588 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
11589 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
11590 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
11591
11592 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11593
11594 * stdlib/tst-strfmon_l.c: Add tests for long double.
11595
11596 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
11597
11598 [BZ #23208]
11599 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
11600 * localedata/locales/dsb_DE: New file.
11601
11602 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11603
11604 [BZ #23140]
11605 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
11606 genitive case).
11607 (alt_mon): New entry, import from CLDR (nominative case).
11608
11609 2018-06-29 Sylvain Lesage <severo@rednegra.net>
11610
11611 [BZ #22996]
11612 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
11613
11614 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
11615
11616 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11617 Use vector registers.
11618
11619 * sysdeps/aarch64/multiarch/memmove_falkor.S
11620 (__memcpy_falkor): Use vector registers.
11621
11622 2018-06-29 Martin Sebor <msebor@redhat.com>
11623
11624 * manual/stdio.texi (Customizing Printf): Mention interaction
11625 with GCC built-ins.
11626
11627 2018-06-29 Maciej W. Rozycki <macro@mips.com>
11628
11629 [BZ #23307]
11630 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
11631 `st_value' is 0 if `st_shndx' is SHN_ABS.
11632 * elf/tst-absolute-zero.c: New file.
11633 * elf/tst-absolute-zero-lib.c: New file.
11634 * elf/tst-absolute-zero-lib.lds: New file.
11635 * elf/Makefile (tests): Add `tst-absolute-zero'.
11636 (modules-names): Add `tst-absolute-zero-lib'.
11637 (LDLIBS-tst-absolute-zero-lib.so): New variable.
11638 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
11639 ($(objpfx)tst-absolute-zero: New dependency.
11640
11641 2018-06-29 Zack Weinberg <zackw@panix.com>
11642
11643 * configure.ac: New command-line option --disable-crypt.
11644 Force --disable-nss-crypt when --disable-crypt is given, with a
11645 warning if it was explicitly enabled.
11646 * configure: Regenerate.
11647 * config.make.in: New boolean substitution variable $(build-crypt).
11648 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
11649 when $(build-crypt).
11650 * manual/install.texi: Document --disable-crypt.
11651 * INSTALL: Regenerate.
11652
11653 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
11654 which is never set.
11655 * conform/Makefile: Only include libcrypt.a in
11656 linknamespace-libs-xsi and linknamespace-libs-XPG4
11657 when $(build-crypt).
11658 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
11659 USE_CRYPT to 1 when $(build-crypt).
11660 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
11661 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
11662 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
11663
11664 2018-06-29 Zack Weinberg <zackw@panix.com>
11665
11666 * crypt/crypt.h, posix/unistd.h: Update comments and
11667 prototypes for crypt and crypt_r.
11668
11669 * manual/crypt.texi (Cryptographic Functions): New initial
11670 exposition.
11671 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
11672 (Unpredictable Bytes): Improve initial exposition. Clarify error
11673 behavior of getentropy and getrandom.
11674 * manual/examples/genpass.c: Generate a salt using getentropy
11675 instead of the current time. Use hash $5$ (SHA-2-256).
11676 * manual/examples/testpass.c: Demonstrate validation against
11677 hashes generated with three different one-way functions.
11678
11679 * manual/intro.texi: crypt.texi does not need an overview
11680 anymore.
11681
11682 * manual/nss.texi, manual/memory.texi, manual/socket.texi
11683 * manual/terminal.texi: Consistently refer to "passphrases"
11684 * instead of "passwords", and to the "user database" instead
11685 * of the "password database".
11686 * manual/users.texi: Similarly. Add notes about how actual
11687 passphrase hashes are now stored in the shadow database.
11688 Remove 20-year-old junk todo note.
11689
11690 2018-06-29 Zack Weinberg <zackw@panix.com>
11691
11692 * manual/crypt.texi: Use a normal top-level @node declaration.
11693 Move most of the introductory text to the 'crypt' section.
11694 Move the example programs below the @deftypefun for 'crypt_r'.
11695 Move the 'getpass' section...
11696 * manual/terminal.texi: ...here.
11697
11698 2018-06-29 Zack Weinberg <zackw@panix.com>
11699 Florian Weimer <fweimer@redhat.com>
11700
11701 * posix/unistd.h: Do not declare encrypt.
11702 (_XOPEN_CRYPT): Remove macro definition.
11703 (crypt): Declare only for _USE_MISC.
11704 * stdlib/stdlib.h: Do not declare setkey.
11705 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
11706 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
11707
11708 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
11709 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
11710 into compat symbols. Don't define initial_perm if it's not
11711 going to be used.
11712 * crypt/cert.c: Link explicitly with the expected versions for
11713 setkey and encrypt. If they are not available at all, mark
11714 the test as unsupported.
11715
11716 * sunrpc/des_crypt.c: Unconditionally block linkage with
11717 cbc_crypt and ecb_crypt for new binaries.
11718 * sunrpc/des_soft.c: Unconditionally block linkage with
11719 des_setparity for new binaries.
11720
11721 * manual/crypt.texi: Remove the entire "DES Encryption"
11722 section. Also remove the paragraph talking about FIPS 140-2
11723 from the introduction.
11724 * manual/string.texi (strfry, memfrob): Revise. Recommend use
11725 of libgcrypt for "real" encryption, not DES.
11726 * manual/conf.texi (Constants for Sysconf): Mention that
11727 _XOPEN_CRYPT is no longer impelemented.
11728
11729 * conform/data/unistd.h-data: Remove crypt function declaration.
11730
11731 2018-06-29 Florian Weimer <fweimer@redhat.com>
11732
11733 [BZ #23351]
11734 * malloc/hooks.c: Update comments on restoring of dumped heaps.
11735 (disallow_malloc_check): Remove variable.
11736 (__malloc_check_init): Adjust.
11737 (malloc_set_state): Update comment.
11738 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
11739 declarations.
11740
11741 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11742
11743 [BZ #23140]
11744 * localedata/locales/ast_ES (mon): Rename to...
11745 (alt_mon): This.
11746 (mon): Import from CLDR (genitive case).
11747
11748 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
11749 Jakub Sitnicki <jkbs@redhat.com>
11750
11751 [BZ #21812]
11752 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
11753 on NLM_F_DUMP_INTR.
11754
11755 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
11756
11757 * manual/llio.texi: Remove spurious space.
11758
11759 2018-06-28 Florian Weimer <fweimer@redhat.com>
11760
11761 [BZ #23349]
11762 * time/bits/types/struct_timespec.h: Change header inclusion guard to
11763 _STRUCT_TIMESPEC.
11764
11765 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11766
11767 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
11768 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
11769 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
11770 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
11771 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
11772 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
11773 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
11774
11775 2018-06-27 Maciej W. Rozycki <macro@mips.com>
11776
11777 [BZ #23266]
11778 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
11779 Copy and null-terminate entries that are not terminated, in
11780 addition to empty ones.
11781
11782 2018-06-27 Florian Weimer <fweimer@redhat.com>
11783
11784 [BZ #18023]
11785 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
11786 (extend_alloca_account): Remove.
11787 * manual/stdio.texi (Variable Arguments Output): Update comment.
11788
11789 2018-06-27 Joseph Myers <joseph@codesourcery.com>
11790
11791 * nptl/sockperf.c: Remove file.
11792
11793 2018-06-27 Florian Weimer <fweimer@redhat.com>
11794
11795 [BZ #18023]
11796 * elf/dl-deps.c (_dl_map_object_deps): Use struct
11797 scratch_buffer instead of extend_alloca.
11798
11799 2018-06-27 Florian Weimer <fweimer@redhat.com>
11800
11801 [BZ #18023]
11802 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
11803 scratch_buffer instead of extend_alloca. Update comments.
11804
11805 2018-06-27 Florian Weimer <fweimer@redhat.com>
11806
11807 [BZ #18023]
11808 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
11809 instead of extend_alloca.
11810
11811 2018-06-26 Joseph Myers <joseph@codesourcery.com>
11812
11813 [BZ #13888]
11814 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
11815 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
11816 /tmp.
11817 * scripts/test-installation.pl: Put temporary files in build
11818 directory, not /tmp.
11819 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
11820 (CFLAGS-bug4.c): Likewise.
11821 (CFLAGS-bug5.c): Likewise.
11822 (CFLAGS-test-fseek.c): Likewise.
11823 (CFLAGS-test-popen.c): Likewise.
11824 (CFLAGS-test_rdwr.c): Likewise.
11825 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
11826 /tmp.
11827 * stdio-common/bug4.c (main): Likewise.
11828 * stdio-common/bug5.c (main): Likewise.
11829 * stdio-common/test-fseek.c (TESTFILE): Likewise.
11830 * stdio-common/test-popen.c (do_test): Likewise.
11831 * stdio-common/test_rdwr.c (main): Likewise.
11832
11833 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
11834
11835 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
11836 (sem_open): Set sem.newsem.pad to zero for valgrind.
11837
11838 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11839
11840 [BZ #20251]
11841 * NEWS: Mention fcntl64 addition.
11842 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
11843 * login/utmp_file.c: Likewise.
11844 * sysdeps/posix/fdopendir.c: Likewise.
11845 * sysdeps/posix/opendir.c: Likewise.
11846 * sysdeps/unix/pt-fcntl.c: Likewise.
11847 * include/fcntl.h (__libc_fcntl64, __fcntl64,
11848 __fcntl64_nocancel_adjusted): New prototype.
11849 (__fcntl_nocancel_adjusted): Remove prototype.
11850 * io/Makefile (routines): Add fcntl64.
11851 (CFLAGS-fcntl64.c): New rule.
11852 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
11853 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
11854 * io/fcntl.h (fcntl64): Add prototype and redirect if
11855 __USE_FILE_OFFSET64 is defined.
11856 * io/fcntl64.c: New file.
11857 * manual/llio.text: Add a note for which commands fcntl acts a
11858 cancellation point.
11859 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
11860 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
11861 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
11862 New symbols.
11863 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
11864 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
11865 non-LFS case.
11866 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
11867 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
11868 to __fcntl64_nocancel.
11869 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
11870 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
11871 to __fcntl64_nocancel.
11872 * sysdeps/generic/not-cancel.h: Likewise.
11873 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
11874 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
11875 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11876 (fcntl64): New symbol.
11877 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11878 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11879 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11882 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11883 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11885 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11886 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11887 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
11888 fcntl64): Likewise.
11889 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11890 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
11891 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11893 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11894 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11895 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11896 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11897 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11898 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11899 Likewise.
11900 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11901 Likewise.
11902 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11903 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11904 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11905
11906 2018-06-26 Florian Weimer <fweimer@redhat.com>
11907
11908 Run thread shutdown functions in an explicit order.
11909 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
11910 definition.
11911 (__libc_thread_freeres): Call thread shutdown functions
11912 explicitly.
11913 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
11914 * include/string.h (__strerror_thread_freeres): Declare.
11915 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
11916 arena_thread_freeres. No longer static. Remove thread shutdown
11917 hook registration.
11918 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
11919 Declare.
11920 * resolv/res-close.c (__res_thread_freeres): Renamed from
11921 res_thread_freeres. No longer static. Remove thread shutdown
11922 hook registration.
11923 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
11924 * resolv/resolv_conf.c (freeres): Remove incorrect section
11925 attribute and use libc_freeres_fn.
11926 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
11927 strerror_thread_freeres. No longer static. Remove thread
11928 shutdown hook registration.
11929 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
11930 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
11931 shutdown hook registration.
11932 * Makerules (shlib.lds): Do not provide section boundary symbols
11933 for __libc_thread_subfreeres.
11934 * manual/memory.texi (Basic Allocation): Update comment.
11935
11936 2018-06-26 Florian Weimer <fweimer@redhat.com>
11937
11938 Remove always-defined _RPC_THREAD_SAFE_ macro.
11939 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
11940 Do not define _RPC_THREAD_SAFE_.
11941 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
11942 conditional.
11943 * sunrpc/clnt_perr.c: Likewise.
11944 * sunrpc/clnt_raw.c: Likewise.
11945 * sunrpc/clnt_simp.c: Likewise.
11946 * sunrpc/key_call.c: Likewise.
11947 * sunrpc/rpc_common.c: Likewise.
11948 * sunrpc/rpc_main.c: Likewise.
11949 * sunrpc/rpc_thread.c: Likewise.
11950 * sunrpc/svc.c: Likewise.
11951 * sunrpc/svc_raw.c: Likewise.
11952 * sunrpc/svc_simple.c: Likewise.
11953 * sumrpc/svcauth_des.c: Likewise.
11954
11955 2018-06-26 Florian Weimer <fweimer@redhat.com>
11956
11957 * libio/Makefile (tests-internal): Add tst-vtables,
11958 tst-vtables-interposed.
11959 * libio/tst-vtables.c: New file.
11960 * libio/tst-vtables-common.c: Likewise.
11961 * libio/tst-vtables-interposed.c: Likewise.
11962
11963 2018-06-26 Florian Weimer <fweimer@redhat.com>
11964
11965 * support/support_test_main.c (support_test_main): Only call
11966 setvbuf if not disables.
11967 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
11968 * support/test-driver.h (struct test_config): Add no_setvbuf member.
11969
11970 2018-06-26 Florian Weimer <fweimer@redhat.com>
11971
11972 [BZ #23313]
11973 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
11974
11975 2018-06-25 Florian Weimer <fweimer@redhat.com>
11976
11977 [BZ #18023]
11978 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11979 Use struct scratch_buffer instead of extend_alloca.
11980
11981 2018-06-25 Florian Weimer <fweimer@redhat.com>
11982
11983 [BZ #18023]
11984 * nss/getent.c (initgroups_keys): Use dynarray instead of
11985 extend_alloca.
11986
11987 2018-06-25 Florian Weimer <fweimer@redhat.com>
11988
11989 [BZ #18023]
11990 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
11991 Use struct scratch_buffer instead of extend_alloca.
11992
11993 2018-06-25 Florian Weimer <fweimer@redhat.com>
11994
11995 [BZ #18023]
11996 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
11997 back to malloc directly, without stack allocations.
11998
11999 2018-06-25 Florian Weimer <fweimer@redhat.com>
12000
12001 [BZ #18023]
12002 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12003 of extend_alloca.
12004
12005 2018-06-25 Florian Weimer <fweimer@redhat.com>
12006
12007 [BZ #18023]
12008 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12009 of extend_alloca.
12010 * nscd/hstcache.c (addhstbyX): Likewise.
12011 * nscd/pwdcache.c (addpwbyX): Likewise.
12012 * nscd/servicescache.c (addservbyX): Likewise.
12013
12014 2018-06-25 Florian Weimer <fweimer@redhat.com>
12015
12016 [BZ #18023]
12017 * nscd/connections.c (read_cmdline): New function.
12018 (restart): Use it. Update comment.
12019
12020 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12021
12022 [BZ #23140]
12023 * localedata/locales/csb_PL (mon): Rename to...
12024 (alt_mon): This.
12025 (abmon): Rename to...
12026 (ab_alt_mon): This.
12027 (mon): Add with proper genitive forms, copy from Wikipedia.
12028 (abmon): Likewise.
12029
12030 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12031
12032 [BZ #19485]
12033 * localedata/locales/csb_PL (mon): Fix typos:
12034 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12035 (yesstr): Add, value is "jo".
12036 (nostr): Add, value is "nié".
12037
12038 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12039
12040 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12041 all log1p and significand functions on m680x0.
12042 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12043 of s_significand.c..
12044 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12045 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12046 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12047 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12048 s_log1p.c and include it..
12049
12050 2018-06-21 Vincent Chen <vincentc@andestech.com>
12051
12052 * elf/elf.h (R_NDS32_NONE): New define.
12053 (R_NDS32_32_RELA): Likewise.
12054 (R_NDS32_COPY): Likewise.
12055 (R_NDS32_GLOB_DAT): Likewise.
12056 (R_NDS32_JUMP_SLOT): Likewise.
12057 (R_NDS32_RELATIVE): Likewise.
12058 (R_NDS32_TLS_TPOFF): Likewise.
12059 (R_NDS32_TLS_DESC): Likewise.
12060
12061 2018-06-21 Mark Wielaard <mark@klomp.org>
12062
12063 * elf/elf.h (R_BPF_MAP_FD): Removed.
12064 (R_BPF_64_64, R_BPF_64_32): New.
12065
12066 2018-06-21 Florian Weimer <fweimer@redhat.com>
12067
12068 [BZ #23253]
12069 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12070 Renamed from libc_feholdsetround_ctx.
12071 (default_libc_feresetround_ctx): Renamed from
12072 libc_feresetround_ctx.
12073 (default_libc_feholdsetround_noex_ctx): Renamed from
12074 libc_feholdsetround_noex_ctx.
12075 (default_libc_feresetround_noex_ctx): Renamed from
12076 libc_feresetround_noex_ctx.
12077 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12078 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12079 forwardning to the old implementations under the new names.
12080 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12081 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12082 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12083 (libc_feresetround_ctx): Forward to default implements for i386
12084 and MATH_SET_BOTH_ROUNDING_MODES.
12085 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12086 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12087
12088 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12089
12090 * string/tst-cmp.c: Include <libc-diag.h>.
12091 (strncmp_max): Disable -Wstringop-overflow= around call to
12092 strncmp.
12093 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12094 strncasecmp.
12095
12096 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12097 (main): Disable -Wunused-value around call to strpbrk.
12098 * string/bug-strspn1.c: Include <libc-diag.h>.
12099 (main): Disable -Wunused-value around call to strspn.
12100
12101 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12102 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12103
12104 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12105 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12106
12107 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12108
12109 * math/Makefile (libm-calls): Move s_significandF to...
12110 (gen-libm-calls): ... here.
12111 * math/s_significand_template.c: New file.
12112 * math/s_significand.c: Removed.
12113 * math/s_significandf.c: Removed.
12114 * math/s_significandl.c: Removed.
12115 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12116 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12117
12118 * math/e_exp2_template.c (declare_mgen_finite_alias,
12119 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12120 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12121 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12122
12123 2018-06-20 Florian Weimer <fweimer@redhat.com>
12124
12125 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12126
12127 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12128
12129 [BZ #23280]
12130 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12131 floating-point number to strtod functions rather than possibly
12132 negating result of those functions.
12133 * stdio-common/tst-scanf-round.c: New file.
12134 * stdio-common/Makefile (tests): Add tst-scanf-round.
12135 ($(objpfx)tst-scanf-round): Depend on $(libm).
12136
12137 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12138
12139 * sysdeps/mach/hurd/localplt.data: Move to...
12140 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12141 R_386_GLOB_DAT like on Linux i386.
12142
12143 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12144
12145 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12146 (SHM_STAT_ANY): New macro.
12147 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12148 (SHM_STAT_ANY): Likewise.
12149 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12150 (SHM_STAT_ANY): Likewise.
12151 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12152 (SHM_STAT_ANY): Likewise.
12153 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12154 (SHM_STAT_ANY): Likewise.
12155 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12156 (SHM_STAT_ANY): Likewise.
12157 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12158 (SHM_STAT_ANY): Likewise.
12159 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12160 (SHM_STAT_ANY): Likewise.
12161 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12162 (SHM_STAT_ANY): Likewise.
12163 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12164 (SHM_STAT_ANY): Likewise.
12165 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12166 (SHM_STAT_ANY): Likewise.
12167 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12168 (SHM_STAT_ANY): Likewise.
12169
12170 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12171 (SEM_STAT_ANY): New macro.
12172 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12173 (SEM_STAT_ANY): Likewise.
12174 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12175 (SEM_STAT_ANY): Likewise.
12176 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12177 (SEM_STAT_ANY): Likewise.
12178 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12179 (SEM_STAT_ANY): Likewise.
12180 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12181 (SEM_STAT_ANY): Likewise.
12182 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12183 (SEM_STAT_ANY): Likewise.
12184 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12185 (SEM_STAT_ANY): Likewise.
12186 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12187 (SEM_STAT_ANY): Likewise.
12188 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12189 (SEM_STAT_ANY): Likewise.
12190
12191 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12192 (MSG_STAT_ANY): New macro.
12193 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12194 (MSG_STAT_ANY): Likewise.
12195 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12196 (MSG_STAT_ANY): Likewise.
12197 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12198 (MSG_STAT_ANY): Likewise.
12199 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12200 (MSG_STAT_ANY): Likewise.
12201 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12202 (MSG_STAT_ANY): Likewise.
12203 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12204 (MSG_STAT_ANY): Likewise.
12205 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12206 (MSG_STAT_ANY): Likewise.
12207 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12208 (MSG_STAT_ANY): Likewise.
12209 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12210 (MSG_STAT_ANY): Likewise.
12211
12212 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12213 (MAP_TYPE): Change value to 0x2b.
12214
12215 2018-06-18 Florian Weimer <fweimer@redhat.com>
12216
12217 [BZ #15722]
12218 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12219 socket with SOCK_CLOEXEC.
12220
12221 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12222
12223 [BZ #23303]
12224 * sysdeps/powerpc/powerpc64/le/Makefile
12225 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12226 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12227 (gnulib-tests): Also add $(f128-loader-link) for
12228 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12229
12230 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12231
12232 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12233 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12234 of sendfile.
12235 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12236 (sendfile64): New strong alias.
12237 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12238 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12239 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12240 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12241 attribute.
12242 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12243 ___pthread_get_cleanup_stack.
12244 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12245 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12246 * mach/shortcut.awk: Make syscall stubs include
12247 <mach-shortcuts-hidden.h> and add hidden definition.
12248 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12249 (__mach_msg): Add hidden prototype.
12250 * mach/msg.c: Include <mach.h>.
12251 (__mach_msg): Add hidden definition.
12252 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12253 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12254 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12255 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12256 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12257 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12258 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12259 prototype and definition.
12260 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12261 hidden target for _hurd_self_sigstate.
12262
12263 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12264
12265 [BZ #23007]
12266 * stdlib/tst-strtod-nan-sign-main.c: New file.
12267 * stdlib/tst-strtod-nan-sign.c: Likewise.
12268 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12269 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12270 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12271 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12272 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12273
12274 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12275
12276 [BZ #23007]
12277 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12278 appropriate sign.
12279
12280 2018-06-14 Florian Weimer <fweimer@redhat.com>
12281
12282 [BZ #23290]
12283 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12284 that the result stays within the ISO-8859-1 range.
12285 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12286 characters are defined in IBM273.
12287
12288 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12289
12290 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12291 __mach_task_self): Remove attribute_hidden.
12292
12293 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12294
12295 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12296 ignore -Wrestrict for one test.
12297
12298 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12299 Szabolcs Nagy <szabolcs.nagy@arm.com>
12300
12301 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12302
12303 2018-06-14 Florian Weimer <fweimer@redhat.com>
12304
12305 * scripts/update-abilist.sh: Accept empty list of files to patch.
12306
12307 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12308
12309 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12310 test-xfail-check-abi-libmachuser): Add.
12311 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12312 __libc_read and __libc_write to __read and __write.
12313 * sysdeps/hurd/include/hurd/port.h: New file.
12314 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12315 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12316 __thread_switch, __evc_wait): Move declarations to...
12317 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12318 attribute_hidden.
12319 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12320 use PLT to call _hurd_self_sigstate.
12321
12322 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12323
12324 [BZ #23279]
12325 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12326 MAX_EXP as overflowing.
12327 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12328 overflow flag.
12329 (round_str): Output also whether result overflows in each rounding
12330 mode.
12331 * stdlib/tst-strtod-round-data: Add more tests.
12332 * stdlib/tst-strtod-round-data.h: Regenerated.
12333 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12334 (TEST): Handle extra arguments for overflow flags.
12335 (struct test_overflow): New type.
12336 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12337 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12338 (test_in_one_mode): Take argument with overflow information.
12339 (do_test): Update calls to test_in_one_mode.
12340
12341 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12342
12343 * elf/dl-load (_dl_dst_substitute): Correct comment.
12344 (_dl_dst_count): Likewise.
12345
12346 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12347 lll_futex_timed_wait.
12348
12349 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12350
12351 [BZ #23277]
12352 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12353 attribute.
12354 * math/test-nan-const.c: New file.
12355 * math/Makefile (tests): Add test-nan-const.
12356 (CFLAGS-test-nan-const.c): New variable.
12357
12358 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12359
12360 * benchtests/scripts/compare_strings.py (process_results): Add
12361 funcs argument. Compare only functions which are selected.
12362 (main): Check if base function is among selected functions.
12363 Pass selected functions to process_results.
12364 (__main__): Add -f/--functions argument.
12365
12366 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12367 Hongbo Zhang <hongbo.zhang@linaro.org>
12368
12369 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12370 __memcpy_falkor for phecda core.
12371 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12372 __memmove_falkor for phecda core.
12373 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12374 __memset_falkor for phecda core.
12375 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12376 for phecda core.
12377 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12378 macro to identify phecda core.
12379
12380 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12381 Andreas Schwab <schwab@suse.de>
12382 Dmitry V. Levin <ldv@altlinux.org>
12383 Florian Weimer <fweimer@redhat.com>
12384
12385 [BZ #23102]
12386 [BZ #21942]
12387 [BZ #18018]
12388 [BZ #23259]
12389 CVE-2011-0536
12390 * elf/dl-dst.h: Remove DL_DST_COUNT.
12391 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12392 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12393 (is_dst): Comment. Support ELF gABI.
12394 (_dl_dst_count): Comment. Simplify and count DSTs.
12395 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12396 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12397 locals.
12398
12399 2018-06-12 Zack Weinberg <zackw@panix.com>
12400
12401 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12402 * sysdeps/unix/sysv/linux/dl-sysdep.c
12403 Include not-cancel.h. Use __close_nocancel instead of __close,
12404 __open64_nocancel instead of __open, __read_nocancel instead of
12405 __libc_read, and __write_nocancel instead of __libc_write.
12406
12407 * csu/check_fds.c (check_one_fd)
12408 * sysdeps/posix/fdopendir.c (__fdopendir)
12409 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12410 instead of __fcntl and/or __libc_fcntl.
12411
12412 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12413 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12414 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12415 Use __open64_nocancel instead of __open_nocancel.
12416
12417 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12418 hidden_proto declarations to the end and issue them if either
12419 IS_IN(libc) or IS_IN(rtld).
12420 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12421 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12422 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12423 read_nocancel, waitpid_nocancel, write_nocancel.
12424
12425 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12426 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12427 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12428
12429 * nptl/pt-fcntl.c: New file.
12430 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12431 (libpthread-routines): Add pt-fcntl.
12432 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12433 (__libc_fcntl): Remove attribute_hidden.
12434 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12435 __fcntl_nocancel_adjusted, not fcntl_common.
12436 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12437 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12438 to fcntl_nocancel.c.
12439 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12440 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12442 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12443
12444 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12445 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12446 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12447 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12448 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12449 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12450 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12451 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12452 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12453 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12454 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12455 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12456 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12457 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12458 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12459 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12460 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12461 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12462 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12463 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12464
12465 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12466 libpthread-routines.
12467 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12468 defines nothing.
12469
12470 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12471 __libc_read, and __write instead of __libc_write. Define
12472 __open64 in addition to __open.
12473
12474 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12475
12476 [BZ #23250]
12477 [BZ #10686]
12478 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12479 to _private_tm[3] and add __glibc_reserved2.
12480 Add _Static_assert of offset of __private_ss == 0x30.
12481 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12482 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12483
12484 2018-06-12 Florian Weimer <fweimer@redhat.com>
12485
12486 x86: Make strncmp usable from rtld.
12487 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12488 __strncmp_ia32 if in libc (and not in rtld).
12489 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12490 strncmp if not in libc (and not to __strncmp_sse2).
12491
12492 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12493
12494 [BZ #23140]
12495 * localedata/locales/gd_GB (mon): Rename to...
12496 (alt_mon): This.
12497 (mon): Import from CLDR (genitive case).
12498 * localedata/locales/hsb_DE (mon): Rename to...
12499 (alt_mon): This.
12500 (mon): Import from CLDR (genitive case).
12501 * localedata/locales/wa_BE (mon): Rename to...
12502 (alt_mon): This.
12503 (mon): Add, fill with the proper genitive forms, but CLDR data
12504 is incomplete; completed according to the comments in this file.
12505 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12506
12507 * localedata/locales/wa_BE (country_name): Reword
12508 "Beljike" -> "Beldjike".
12509
12510 2018-06-11 Joseph Myers <joseph@codesourcery.com>
12511
12512 [BZ #23272]
12513 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12514 cases of non-finite arguments.
12515 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12516
12517 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
12518
12519 [BZ #23174]
12520 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12521
12522 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12523
12524 [BZ #23264]
12525 * include/unistd.h (__execvpex): New prototype.
12526 * posix/Makefile (tests): Add tst-spawn4.
12527 (tests-internal): Add tst-spawn4-compat.
12528 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
12529 * posix/tst-spawn4-compat.c: New file.
12530 * posix/tst-spawn4.c: Likewise.
12531 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
12532 binaries as shell scripts.
12533 * sysdeps/posix/spawni.c (__spawni): Likewise.
12534
12535 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
12536
12537 [BZ #23145]
12538 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
12539 ($(all-built-dso:=.dynsym): New target.
12540 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
12541 ($(objpfx)check-initfini.out): New target.
12542 (generated): Add check-initfini.out.
12543 * scripts/check-initfini.awk: New file.
12544 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
12545 (_fini): Likewise.
12546 * sysdeps/alpha/crti.S (_init): Mark as hidden.
12547 (_fini): Likewise.
12548 * sysdeps/arm/crti.S (_init): Mark as hidden.
12549 (_fini): Likewise.
12550 * sysdeps/hppa/crti.S (_init): Mark as hidden.
12551 (_fini): Likewise.
12552 * sysdeps/i386/crti.S (_init): Mark as hidden.
12553 (_fini): Likewise.
12554 * sysdeps/ia64/crti.S (_init): Mark as hidden.
12555 (_fini): Likewise.
12556 * sysdeps/m68k/crti.S (_init): Mark as hidden.
12557 (_fini): Likewise.
12558 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
12559 (_fini): Likewise.
12560 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
12561 (_fini): Likewise.
12562 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
12563 (_fini): Likewise.
12564 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
12565 (_fini): Likewise.
12566 * sysdeps/nios2/crti.S (_init): Mark as hidden.
12567 (_fini): Likewise.
12568 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
12569 (_fini): Likewise.
12570 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
12571 (_fini): Likewise.
12572 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
12573 (_fini): Likewise.
12574 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
12575 (_fini): Likewise.
12576 * sysdeps/sh/crti.S (_init): Mark as hidden.
12577 (_fini): Likewise.
12578 * sysdeps/sparc/crti.S (_init): Mark as hidden.
12579 (_fini): Likewise.
12580 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
12581 (_fini): Likewise.
12582
12583 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12584
12585 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
12586 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
12587 and TF redirection to KFtype and KF only when the default
12588 long double type is not the IEEE 128-bit floating point type.
12589
12590 2018-06-05 Joseph Myers <joseph@codesourcery.com>
12591
12592 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
12593 macro.
12594 (HWCAP_USCAT): Likewise.
12595 (HWCAP_ILRCPC): Likewise.
12596 (HWCAP_FLAGM): Likewise.
12597 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12598 Increase to 28.
12599 (_dl_aarch64_cap_flags): Add new flag names.
12600
12601 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12602 (MAP_FIXED_NOREPLACE): New macro.
12603 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
12604 (MAP_FIXED_NOREPLACE): Likewise.
12605 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
12606 (MAP_FIXED_NOREPLACE): Likewise.
12607 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12608 (MAP_FIXED_NOREPLACE): Likewise.
12609 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12610 (MAP_FIXED_NOREPLACE): Likewise.
12611 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12612 (MAP_FIXED_NOREPLACE): Likewise.
12613 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12614 (MAP_FIXED_NOREPLACE): Likewise.
12615 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
12616 (MAP_FIXED_NOREPLACE): Likewise.
12617 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12618 (MAP_FIXED_NOREPLACE): Likewise.
12619 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
12620 (MAP_FIXED_NOREPLACE): Likewise.
12621 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12622 (MAP_FIXED_NOREPLACE): Likewise.
12623 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12624 (MAP_FIXED_NOREPLACE): Likewise.
12625 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
12626 (MAP_FIXED_NOREPLACE): Likewise.
12627 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
12628 (MAP_FIXED_NOREPLACE): Likewise.
12629 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
12630 (MAP_FIXED_NOREPLACE): Likewise.
12631
12632 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12633 version to 4.17.
12634
12635 2018-06-04 Joseph Myers <joseph@codesourcery.com>
12636
12637 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12638 version to 4.17
12639
12640 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12641
12642 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
12643 int.
12644 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
12645
12646 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12647
12648 * benchtests/scripts/compare_string.py: (process_results) Catch
12649 exception in non-existent base_func and catch exception in
12650 non-existent attribute.
12651 (parse_file) Catch exception if input file does not exist.
12652
12653 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12654
12655 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
12656 options to avoid diff calculation and omit header, respectively.
12657 (main): process --no-diff and --no-header
12658
12659 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12660 H.J. Lu <hongjiu.lu@intel.com>
12661
12662 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12663 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
12664 wcsncmp-sse2.
12665 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12666 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
12667 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
12668 and __wcsncmp_sse2.
12669 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
12670 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
12671 AVX unaligned load is fast and vzeroupper is preferred.
12672 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
12673 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
12674 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
12675 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
12676 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
12677 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
12678 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
12679 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
12680 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
12681 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
12682 is undefined.
12683
12684 2018-06-01 Florian Weimer <fweimer@redhat.com>
12685
12686 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
12687 configuring with --disable-multi-arch, building with
12688 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
12689 Haswell-era CPU.
12690
12691 2018-06-01 Florian Weimer <fweimer@redhat.com>
12692
12693 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
12694 results from building with “-march=x86-64 -mtune=generic
12695 -mfpmath=sse” and running on a Haswell-era CPU.
12696
12697 2018-06-01 Joseph Myers <joseph@codesourcery.com>
12698
12699 [BZ #18473]
12700 * soft-fp/sqrttf2.c: Remove file.
12701 * soft-fp/sqrtdf2.c: Move to ....
12702 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
12703 <shlib-compat.h>.
12704 (__sqrtdf2): Make conditional on
12705 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12706 symbol.
12707 * soft-fp/sqrtsf2.c: Move to ....
12708 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
12709 <shlib-compat.h>.
12710 (__sqrtsf2): Make conditional on
12711 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12712 symbol.
12713 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
12714 (gcc-double-routines): Remove sqrtdf2.
12715 (gcc-quad-routines): Remove sqrttf2.
12716 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12717 Do not filter out sqrtsf2 and sqrtdf2.
12718 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
12719 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
12720
12721 2018-06-01 Florian Weimer <fweimer@redhat.com>
12722
12723 * sysdeps/generic/libcidn.abilist: Remove file.
12724
12725 2018-06-01 Florian Weimer <fweimer@redhat.com>
12726
12727 [BZ #23236]
12728 * libio/strfile.h (struct _IO_str_fields): Rename members to
12729 discourage their use and add comment.
12730 (_IO_STR_DYNAMIC): Remove unused macro.
12731 * libio/strops.c (_IO_str_init_static_internal): Do not use
12732 callback pointers. Call malloc and free.
12733 (_IO_str_overflow): Do not use callback pointers. Call malloc
12734 and free.
12735 (enlarge_userbuf): Likewise.
12736 (_IO_str_finish): Call free.
12737 * libio/wstrops.c (_IO_wstr_init_static): Initialize
12738 _allocate_buffer_unused.
12739 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
12740 and free.
12741 (enlarge_userbuf): Likewise.
12742 (_IO_wstr_finish): Call free.
12743 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
12744 _allocate_buffer_unused, _free_buffer_unused.
12745 * libio/memstream.c (__open_memstream): Likewise.
12746 * libio/vasprintf.c (_IO_vasprintf): Likewise.
12747 * libio/wmemstream.c (open_wmemstream): Likewise.
12748
12749 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
12750
12751 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
12752 AMD Ryzen 7 1800X.
12753
12754 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12755
12756 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
12757 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
12758 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
12759 New file.
12760 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
12761 Likewise.
12762 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
12763
12764 2018-05-29 Florian Weimer <fweimer@redhat.com>
12765
12766 * support/Makefile (libsupport-routines): Add
12767 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
12768 xpthread_barrierattr_setpshared.
12769 * support/xpthread_barrierattr_destroy.c: New file.
12770 * support/xpthread_barrierattr_init.c: Likewise.
12771 * support/xpthread_barrierattr_setpshared.c: Likewise.
12772
12773 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
12774
12775 [BZ #23206]
12776 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
12777 _r_debug and update DT_DEBUG for debugger.
12778
12779 2018-05-29 Florian Weimer <fweimer@redhat.com>
12780
12781 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
12782 (tst-strtod5i.out): Likewise.
12783
12784 2018-05-25 Joseph Myers <joseph@codesourcery.com>
12785
12786 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
12787 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
12788 (sparc64-quad-routines): New variable. Moved from ....
12789 [$(subdir) = soft-fp] (sysdep_routines): Add
12790 $(sparc64-quad-routines). Moved from ....
12791 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
12792 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
12793 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
12794 moved from ....
12795 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
12796 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
12797 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
12798 * sysdeps/sparc/sparc64/qp_add.c: ... here.
12799 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
12800 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
12801 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
12802 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
12803 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
12804 * sysdeps/sparc/sparc64/qp_div.c: ... here.
12805 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
12806 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
12807 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
12808 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
12809 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
12810 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
12811 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
12812 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
12813 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
12814 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
12815 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
12816 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
12817 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
12818 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
12819 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
12820 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
12821 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
12822 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
12823 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
12824 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
12825 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
12826 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
12827 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
12828 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
12829 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
12830 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
12831 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
12832 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
12833 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
12834 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
12835 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
12836 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
12837 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
12838 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
12839 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
12840 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
12841 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
12842 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
12843 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
12844 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
12845 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
12846 * sysdeps/sparc/sparc64/qp_util.c: ... here.
12847 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
12848 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
12849 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
12850 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
12851 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
12852 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
12853
12854 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
12855 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
12856 (sparc32-quad-routines): New variable. Moved from ....
12857 [$(subdir) = soft-fp] (sysdep_routines): Add
12858 $(sparc32-quad-routines). Moved from ....
12859 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
12860 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
12861 moved from ....
12862 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
12863 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
12864 * sysdeps/sparc/sparc32/q_add.c: ... here.
12865 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
12866 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
12867 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
12868 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
12869 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
12870 * sysdeps/sparc/sparc32/q_div.c: ... here.
12871 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
12872 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
12873 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
12874 * sysdeps/sparc/sparc32/q_feq.c: ... here.
12875 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
12876 * sysdeps/sparc/sparc32/q_fge.c: ... here.
12877 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
12878 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
12879 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
12880 * sysdeps/sparc/sparc32/q_fle.c: ... here.
12881 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
12882 * sysdeps/sparc/sparc32/q_flt.c: ... here.
12883 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
12884 * sysdeps/sparc/sparc32/q_fne.c: ... here.
12885 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
12886 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
12887 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
12888 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
12889 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
12890 * sysdeps/sparc/sparc32/q_mul.c: ... here.
12891 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
12892 * sysdeps/sparc/sparc32/q_neg.c: ... here.
12893 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
12894 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
12895 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
12896 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
12897 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
12898 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
12899 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
12900 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
12901 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
12902 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
12903 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
12904 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
12905 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
12906 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
12907 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
12908 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
12909 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
12910 * sysdeps/sparc/sparc32/q_sub.c: ... here.
12911 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
12912 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
12913 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
12914 * sysdeps/sparc/sparc32/q_util.c: ... here.
12915 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
12916 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
12917 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
12918 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
12919
12920 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12921 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12922
12923 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
12924 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
12925 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
12926 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
12927
12928 2018-05-24 Joseph Myers <joseph@codesourcery.com>
12929
12930 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
12931 powerpc/soft-fp.
12932 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12933 Likewise.
12934 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
12935 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
12936
12937 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12938
12939 [BZ #23171]
12940 * math/math.h [C++] (iseqsig): Fix parameter type for the long
12941 double version.
12942
12943 2018-05-23 Joseph Myers <joseph@codesourcery.com>
12944
12945 * sysdeps/sh/Implies: Remove sh/soft-fp.
12946 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
12947 * sysdeps/sh/sfp-machine.h: ... here.
12948
12949 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
12950
12951 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12952 (__mempcpy_erms): Skip zero length.
12953 (__memmove_erms): Likewise.
12954 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12955 (__memset_erms): Likewise.
12956
12957 2018-05-23 Joseph Myers <joseph@codesourcery.com>
12958
12959 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
12960 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12961 Add functions moved from ....
12962 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
12963 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
12964 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
12965 from ....
12966 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
12967 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
12968 * sysdeps/alpha/e_sqrtl.c: ... here.
12969 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
12970 * sysdeps/alpha/local-soft-fp.h: ... here.
12971 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
12972 * sysdeps/alpha/ots_add.c: ... here.
12973 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
12974 * sysdeps/alpha/ots_cmp.c: ... here.
12975 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
12976 * sysdeps/alpha/ots_cmpe.c: ... here.
12977 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
12978 * sysdeps/alpha/ots_cvtqux.c: ... here.
12979 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
12980 * sysdeps/alpha/ots_cvtqx.c: ... here.
12981 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
12982 * sysdeps/alpha/ots_cvttx.c: ... here.
12983 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
12984 * sysdeps/alpha/ots_cvtxq.c: ... here.
12985 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
12986 * sysdeps/alpha/ots_cvtxt.c: ... here.
12987 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
12988 * sysdeps/alpha/ots_div.c: ... here.
12989 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
12990 * sysdeps/alpha/ots_mul.c: ... here.
12991 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
12992 * sysdeps/alpha/ots_nintxq.c: ... here.
12993 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
12994 * sysdeps/alpha/ots_sub.c: ... here.
12995 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
12996 * sysdeps/alpha/sfp-machine.h: ... here.
12997
12998 2018-05-23 Florian Weimer <fweimer@redhat.com>
12999
13000 [BZ #19728]
13001 [BZ #19729]
13002 [BZ #22247]
13003 CVE-2016-6261
13004 CVE-2016-6263
13005 CVE-2017-14062
13006 Switch to extern IDNA implementation (libidn2).
13007 * libidn: Remove subdirectory.
13008 * LICENSES: Do not mention licensing conditions for the removed
13009 libidn code.
13010 * config.h.in (HAVE_LIBIDN): Remove.
13011 * include/dlfcn.h (__libc_dlopen): Update comment.
13012 * include/idna.h: Remove file.
13013 * inet/Makefile (routines): Add idna.
13014 (tests-static, tests-internal): Add tst-idna_name_classify.
13015 (LOCALES): Generate locales for tests.
13016 (tst-idna_name_classify.out): Depend on generated locales.
13017 * inet/idna_name_classify.c: New file.
13018 * inet/tst-idna_name_classify.c: Likewise.
13019 * inet/net-internal.h (__idna_to_dns_encoding)
13020 (__idna_from_dns_encoding): Declare.
13021 * inet/net-internal.h (enum idna_name_classification): Define.
13022 (__idna_name_classify): Declare.
13023 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13024 __idna_from_dns_encoding.
13025 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13026 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13027 name as a fallback in case of encoding errors.
13028 (getnameinfo): Use DEPRECATED_NI_IDN.
13029 * inet/idna.c: New file.
13030 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13031 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13032 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13033 (modules-names): Add tst-no-libidn2.
13034 (extra-test-objs): Add tst-no-libidn2.os.
13035 (LDFLAGS-tst-no-libidn2.so): Set soname.
13036 (LOCALES): Set, and generate locales.
13037 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13038 (tst-resolv-ai_idn-latin1): Likewise.
13039 (tst-resolv-ai_idn-nolibidn2): Likewise.
13040 (tst-resolv-ai_idn.out): Depend on locales.
13041 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13042 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13043 tst-no-libidn2.so.
13044 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13045 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13046 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13047 * resolv/tst-resolv-ai_idn.c: New file.
13048 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13049 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13050 * resolv/tst-no-libidn2.c: Likewise.
13051 * support/support_format_addrinfo.c (format_ai_flags): Do not
13052 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13053 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13054 (gaih_inet): Call __idna_to_dns_encoding and
13055 __idna_from_dns_encoding, and use the original (punycode) name if
13056 __idna_from_dns_encoding fails due to an encoding error.
13057 (getaddrinfo): Use DEPRECATED_AI_IDN.
13058 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13059 * sysdeps/unix/inet/configure: Remove file.
13060 * sysdeps/unix/inet/configure.ac: Likewise.
13061
13062 2018-05-23 Florian Weimer <fweimer@redhat.com>
13063
13064 Implement allocate_once.
13065 * include/allocate_once.h: New file.
13066 * misc/allocate_once.c: Likewise.
13067 * misc/tst-allocate_once.c: Likewise.
13068 * misc/Makefile (routines): Add allocate_once.
13069 (tests-internal): Add tst-allocate_once.
13070 (generated): Add tst-allocate_once.mtrace,
13071 tst-allocate_once-mem.out.
13072 (tests-special): Add tst-allocate_once-mem.out.
13073 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13074 (tst-allocate_once-mem.out): Call mtrace.
13075 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13076
13077 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13078
13079 [BZ #23196]
13080 * string/test-memcpy.c (do_test1): New function.
13081 (test_main): Call it.
13082
13083 2018-05-23 Andreas Schwab <schwab@suse.de>
13084
13085 [BZ #23196]
13086 CVE-2018-11237
13087 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13088 (L(preloop_large)): Save initial destination pointer in %r11 and
13089 use it instead of %rax after the loop.
13090 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13091
13092 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13093
13094 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13095 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13096 -I../soft-fp. Moved from ....
13097 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13098 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13099 * sysdeps/aarch64/e_sqrtl.c: ... here.
13100 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13101 * sysdeps/aarch64/sfp-machine.h: ... here.
13102
13103 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13104 -Wmaybe-uninitialized around access to fq[0].
13105 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13106 Likewise.
13107
13108 [BZ #18471]
13109 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13110 aliases for non-libc case of versioned symbols.
13111 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13112 (llseek): Define as compat symbol if
13113 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13114 with link warning.
13115 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13116 Make into a compat symbol, disabled for minimum symbol version
13117 GLIBC_2.28 and later.
13118 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13119
13120 2018-05-22 Florian Weimer <fweimer@redhat.com>
13121
13122 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13123 not add -mpreferred-stack-boundary=4.
13124 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13125 (stack-align-test-flags): Likewise.
13126 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13127 Likewise.
13128 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13129 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13130 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13131 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13132 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13133 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13134 (CFLAGS-tst-align2.c): Likewise.
13135
13136 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13137
13138 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13139 (index_arch_Prefer_FSRM): Likewise.
13140 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13141 Also check Prefer_FSRM.
13142 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13143 Also return OPTIMIZE (erms) for Prefer_FSRM.
13144
13145 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13146
13147 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13148 (index_cpu_FSRM): Likewise.
13149 (reg_FSRM): Likewise.
13150
13151 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13152
13153 * math/gen-tgmath-tests.py: Import sys.
13154 (Tests.__init__): Initialize macros_seen.
13155 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13156 if requested to do so for this macro.
13157 (Tests.add_all_tests): Take argument for macro for which to
13158 generate tests.
13159 (Tests.check_macro_list): New function.
13160 (main): Handle check-list argument and argument specifying macro
13161 for which to generate tests.
13162 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13163 [PYTHON] (tgmath3-macro-tests): Likewise.
13164 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13165 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13166 not test-tgmath3.c.
13167 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13168 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13169 to CFLAGS.
13170 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13171 [PYTHON] ($(foreach
13172 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13173 rule.
13174 [PYTHON] (tests-special): Add
13175 $(objpfx)test-tgmath3-macro-list.out.
13176 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13177
13178 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13179 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13180 later.
13181
13182 [BZ #22639]
13183 * time/tzset.c (SECSPERDAY): Cast to time_t.
13184 * time/tst-y2039.c: New file.
13185 * time/Makefile (tests): Add tst-y2039.
13186
13187 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13188
13189 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13190 (PREFETCH_ONE_SET): Remove duplicate line.
13191
13192 2018-05-17 Florian Weimer <fweimer@redhat.com>
13193
13194 * sysdeps/generic/math-type-macros-double.h: Include
13195 <math-nan-payload-double.h> after <libm-alias-double.h>.
13196 * sysdeps/generic/math-type-macros-float.h: Include
13197 <math-nan-payload-float.h> after <libm-alias-float.h>.
13198 * sysdeps/generic/math-type-macros-float128.h: Include
13199 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13200 * sysdeps/generic/math-type-macros-ldouble.h: Include
13201 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13202
13203 2018-05-17 Andreas Schwab <schwab@suse.de>
13204
13205 * resolv/res_send.c (__res_context_send): Don't set errno when
13206 returing error after malloc failure.
13207
13208 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13209
13210 * nptl/allocatestack.c (allocate_stack): Remove the
13211 !__ASSUME_PRIVATE_FUTEX paths.
13212 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13213 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13214 Likewise.
13215 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13216 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13217 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13218 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13219 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13220 !__ASSUME_PRIVATE_FUTEX path.
13221 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13222 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13223 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13224 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13225 !__ASSUME_PRIVATE_FUTEX macros.
13226 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13227 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13228 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13229 * sysdeps/unix/sysv/linux/kernel-features.h
13230 (__ASSUME_PRIVATE_FUTEX): Removed.
13231
13232 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13233
13234 * math/Makefile (libm-narrow-fns): Add div.
13235 (libm-test-funcs-narrow): Likewise.
13236 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13237 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13238 * math/gen-auto-libm-tests.c (test_functions): Add div.
13239 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13240 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13241 (NARROW_DIV_TRIVIAL): Likewise.
13242 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13243 macro.
13244 (__ddivl): Likewise.
13245 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13246 ddiv.
13247 (CFLAGS-nldbl-ddiv.c): New variable.
13248 (CFLAGS-nldbl-fdiv.c): Likewise.
13249 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13250 __nldbl_ddivl.
13251 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13252 prototype.
13253 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13254 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13255 * math/auto-libm-test-in: Add tests of div.
13256 * math/auto-libm-test-out-narrow-div: New generated file.
13257 * math/libm-test-narrow-div.inc: New file.
13258 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13259 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13260 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13261 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13262 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13263 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13264 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13265 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13266 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13267 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13268 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13269 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13270 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13271 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13272 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13273 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13274 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13275 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13276 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13277 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13278 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13279 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13280 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13281 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13282 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13283 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13284 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13285 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13286 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13287 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13288 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13289 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13291 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13294 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13295 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13296 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13297 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13298 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13299 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13300 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13301 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13302
13303 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13304
13305 [BZ #23178]
13306 * nscd/nscd-client.h (sendfileall): Remove prototype.
13307 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13308 (handle_request): Use writeall instead of sendfileall.
13309 * nscd/aicache.c (addhstaiX): Likewise.
13310 * nscd/grpcache.c (cache_addgr): Likewise.
13311 * nscd/hstcache.c (cache_addhst): Likewise.
13312 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13313 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13314 * nscd/pwdcache.c (cache_addpw): Likewise.
13315 * nscd/servicescache.c (cache_addserv): Likewise.
13316 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13317 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13318 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13319 Remove define.
13320
13321 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13322
13323 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13324 Include <string/strncat.c>.
13325 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13326 alias.
13327 (__GI___strncat): New hidden alias.
13328
13329 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13330
13331 * sysdeps/mips/mips32/libm-test-ulps: Update.
13332 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13333
13334 2018-05-16 Florian Weimer <fweimer@redhat.com>
13335
13336 * support/Makefile (libsupport-routines): Add support_quote_blob,
13337 support_test_compare_blob.
13338 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13339 * support/check.h (TEST_COMPARE_BLOB): Define.
13340 (support_test_compare_blob): Declare.
13341 * support/support.h (support_quote_blob): Declare.
13342 * support/support_quote_blob.c: New file.
13343 * support/support_test_compare_blob.c: Likewise.
13344 * support/tst-support_quote_blob.c: Likewise.
13345 * support/tst-test_compare_blob.c: Likewise.
13346
13347 2018-05-16 Florian Weimer <fweimer@redhat.com>
13348
13349 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13350 of <strtod_nan_double.h>.
13351 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13352 instead of SET_MANTISSA.
13353 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13354 of include <strtod_nan_float.h>.
13355 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13356 instead of <strtod_nan_ldouble.h>.
13357 * stdlib/strtod_nan_double.h: Move to ...
13358 * sysdeps/generic/math-nan-payload-double.h: ... here.
13359 (FLOAT): Remove definition.
13360 (SET_MANTISSA): Rename to ...
13361 (SET_NAN_PAYLOAD): ... this.
13362 * stdlib/strtod_nan_float.h: Move to ...
13363 * sysdeps/generic/math-nan-payload-float.h: ... here.
13364 (FLOAT): Remove definition.
13365 (SET_MANTISSA): Rename to ...
13366 (SET_NAN_PAYLOAD): ... this.
13367 * sysdeps/generic/math-type-macros-double.h: Include
13368 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13369 instead of <math-svid-compat.h>.
13370 * sysdeps/generic/math-type-macros-float.h: Include
13371 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13372 instead of <math-svid-compat.h>.
13373 * sysdeps/generic/math-type-macros-float128.h: Include
13374 <math-nan-payload-float128.h>.
13375 * sysdeps/generic/math-type-macros-ldouble.h: Include
13376 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13377 instead of <math-svid-compat.h>.
13378 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13379 check for definition.
13380 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13381 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13382 Include <ieee754_float128.h>.
13383 (FLOAT): Remove definition.
13384 (SET_MANTISSA): Rename to ...
13385 (SET_NAN_PAYLOAD): ... this.
13386 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13387 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13388 Do not include <float128_private.h>.
13389 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13390 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13391 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13392 (FLOAT): Remove definition.
13393 (SET_MANTISSA): Rename to ...
13394 (SET_NAN_PAYLOAD): ... this.
13395 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13396 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13397 (FLOAT): Remove definition.
13398 (SET_MANTISSA): Rename to ...
13399 (SET_NAN_PAYLOAD): ... this.
13400 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13401 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13402 (FLOAT): Remove definition.
13403 (SET_MANTISSA): Rename to ...
13404 (SET_NAN_PAYLOAD): ... this.
13405 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13406 of "../stdlib/strtod_nan_double.h".
13407 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13408 of "../stdlib/strtod_nan_float.h".
13409 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13410 instead of "../stdlib/strtod_nan_ldouble.h".
13411 * manual/arith.texi (Parsing of Floats): Adjust comment.
13412
13413 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13414
13415 * math/Makefile (libm-narrow-fns): Add mul.
13416 (libm-test-funcs-narrow): Likewise.
13417 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13418 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13419 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13420 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13421 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13422 (NARROW_MUL_TRIVIAL): Likewise.
13423 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13424 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13425 macro.
13426 (__dmull): Likewise.
13427 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13428 dmul.
13429 (CFLAGS-nldbl-dmul.c): New variable.
13430 (CFLAGS-nldbl-fmul.c): Likewise.
13431 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13432 __nldbl_dmull.
13433 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13434 prototype.
13435 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13436 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13437 * math/auto-libm-test-in: Add tests of mul.
13438 * math/auto-libm-test-out-narrow-mul: New generated file.
13439 * math/libm-test-narrow-mul.inc: New file.
13440 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13441 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13442 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13443 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13444 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13445 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13446 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13447 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13448 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13449 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13450 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13451 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13452 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13453 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13454 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13455 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13456 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13457 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13458 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13459 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13460 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13461 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13462 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13463 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13464 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13465 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13466 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13467 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13468 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13469 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13470 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13471 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13472 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13474 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13476 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13477 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13478 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13479 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13480 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13481 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13482 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13483 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13484
13485 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13486
13487 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13488 with *%eax in call.
13489
13490 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13491
13492 * sysdeps/i386/ldsodefs.h: Removed.
13493 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13494 * sysdeps/x86/ldsodefs.h: This.
13495 (La_i86_regs): New.
13496 (La_i86_retval): Likewise.
13497 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13498 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13499
13500 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13501
13502 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13503 unnecessary testl.
13504
13505 2018-05-13 Alan Modra <amodra@gmail.com>
13506
13507 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13508 R_PARISC_TLS_DTPOFF32 reloc addend.
13509
13510 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13511
13512 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13513 * math/math.h: Restrict the prototype definition for the functions
13514 issignaling(_Float128) and iszero(_Float128); and template
13515 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13516 __HAVE_FLOAT128_UNLIKE_LDBL.
13517 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13518 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13519 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13520 __f128() constants; define the type _Float128 as long double;
13521 and reuse long double in __CFLOAT128.
13522
13523 2018-05-11 Joseph Myers <joseph@codesourcery.com>
13524
13525 * sysdeps/generic/math_private.h: Do not include
13526 <math-barriers.h>.
13527 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13528 <math_private.h>.
13529 * math/fromfp.h: Include <math-barriers.h>.
13530 * math/math-narrow.h: Likewise.
13531 * math/s_nextafter.c: Likewise.
13532 * math/s_nexttowardf.c: Likewise.
13533 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
13534 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
13535 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
13536 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
13537 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13538 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13539 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13540 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13541 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13542 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13543 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13544 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13545 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13546 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13547 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13548 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13549 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13550 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13551 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13552 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13553 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13554 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13555 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13556 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13557 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13558 * sysdeps/ieee754/k_standardl.c: Likewise.
13559 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13560 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13561 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13562 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13563 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13564 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13565 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13566 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13567 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13568 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13569 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13570 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13571 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13572 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13573 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13574 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13575 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13576 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13577 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13578 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13579 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
13580 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
13581
13582 2018-05-11 Florian Weimer <fweimer@redhat.com>
13583
13584 Use 64-bit epoch values in the time zone file parser.
13585 * include/time.h (internal_time_t): Define.
13586 (__tzfile_compute): Use it.
13587 * time/tzfile.c (struct leap): Use internal_time_t for epoch
13588 member.
13589 (transitions): Switch to internal_time_t.
13590 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
13591 types.
13592 (__tzfile_compute): Use internal_time_t for timer argument. Check
13593 for truncation before calling __offtime.
13594
13595 2018-05-11 Florian Weimer <fweimer@redhat.com>
13596
13597 [BZ #23166]
13598 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
13599 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
13600 Likewise.
13601 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
13602 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
13603 export without --enable-obsolete-rpc.
13604 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
13605 symbol. This should not have been exported, ever.
13606
13607 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
13608
13609 [BZ #23152]
13610 * localedata/locales/gd_GB (abmon): Fix typo in May:
13611 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
13612
13613 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13614
13615 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13616 Use multiple registers to copy data in loop tail.
13617
13618 * sysdeps/aarch64/multiarch/memmove_falkor.S
13619 (__memmove_falkor): Use multiple registers to move data in
13620 loop tail.
13621
13622 2018-05-10 Joseph Myers <joseph@codesourcery.com>
13623
13624 * math/math-underflow.h: New file.
13625 * sysdeps/generic/math_private.h: Do not include <float.h>.
13626 (fabs_tg): Remove macro. Moved to math-underflow.h.
13627 (min_of_type_f): Likewise.
13628 (min_of_type_): Likewise.
13629 (min_of_type_l): Likewise.
13630 (min_of_type_f128): Likewise.
13631 (min_of_type): Likewise.
13632 (math_check_force_underflow): Likewise.
13633 (math_check_force_underflow_nonneg): Likewise.
13634 (math_check_force_underflow_complex): Likewise.
13635 * math/e_exp2_template.c: Include <math-underflow.h>.
13636 * math/k_casinh_template.c: Likewise.
13637 * math/s_catan_template.c: Likewise.
13638 * math/s_catanh_template.c: Likewise.
13639 * math/s_ccosh_template.c: Likewise.
13640 * math/s_cexp_template.c: Likewise.
13641 * math/s_clog10_template.c: Likewise.
13642 * math/s_clog_template.c: Likewise.
13643 * math/s_csin_template.c: Likewise.
13644 * math/s_csinh_template.c: Likewise.
13645 * math/s_csqrt_template.c: Likewise.
13646 * math/s_ctan_template.c: Likewise.
13647 * math/s_ctanh_template.c: Likewise.
13648 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13649 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13650 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13651 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13652 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13653 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13654 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13655 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13656 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13657 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13658 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13659 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13660 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13661 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13662 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13663 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13664 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13665 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13666 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13667 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13668 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13669 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13670 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13671 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13672 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13673 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13674 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13675 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13676 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13677 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13678 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13679 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13680 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13681 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13682 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13683 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13684 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13685 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13686 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13687 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13688 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13689 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13690 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13691 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13692 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13693 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13694 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13695 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13696 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13697 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13698 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13699 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13700 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13701 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13702 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13703 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13704 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13705 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13706 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13707 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13708 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13709 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13710 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13711 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13712 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13713 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13714 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13715 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13716 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13717 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13718 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13719 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13720 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
13721 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
13722 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13723 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13724 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13725 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13726 * sysdeps/x86/fpu/powl_helper.c: Likewise.
13727 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
13728 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
13729 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
13730 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
13731 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
13732
13733 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13734
13735 * sysdeps/generic/math-barriers.h: New file.
13736 * sysdeps/generic/math_private.h [!math_opt_barrier]
13737 (math_opt_barrier): Move to math-barriers.h.
13738 [!math_opt_barrier] (math_force_eval): Likewise.
13739 * sysdeps/aarch64/fpu/math-barriers.h: New file.
13740 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
13741 math-barriers.h.
13742 (math_force_eval): Likewise.
13743 * sysdeps/alpha/fpu/math-barriers.h: New file.
13744 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
13745 math-barriers.h.
13746 (math_force_eval): Likewise.
13747 * sysdeps/x86/fpu/math-barriers.h: New file.
13748 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
13749 math-barriers.h.
13750 (math_force_eval): Likewise.
13751 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
13752 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
13753 multiple-include guard for rename.
13754 * sysdeps/powerpc/fpu/math-barriers.h: New file.
13755 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
13756 math-barriers.h.
13757 (math_force_eval): Likewise.
13758
13759 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
13760
13761 [BZ #22786]
13762 CVE-2018-11236
13763 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
13764 computation.
13765 * stdlib/Makefile (test-bz22786): New test.
13766 * stdlib/test-bz22786.c: New test.
13767
13768 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13769
13770 * include/math-narrow-eval.h: New file. Contents moved from ....
13771 * sysdeps/generic/math_private.h: ... here.
13772 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
13773 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
13774 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
13775 * stdlib/strtod_l.c: Likewise.
13776 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
13777 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13778 * sysdeps/i386/fpu/s_fdim.c: Likewise.
13779 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13780 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13781 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13782 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13783 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13784 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13785 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
13786 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13787 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13788 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13789 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13790 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13791 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13792 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13793 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13794 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13795 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13796 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13797 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13798 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13799 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13800 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13801 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13802 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13803 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13804 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
13805
13806 2018-05-08 Andreas Schwab <schwab@suse.de>
13807
13808 * sysdeps/nptl/internaltypes.h: Fix comment.
13809
13810 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
13811
13812 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13813 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
13814 hidden.
13815
13816 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13817
13818 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
13819 of I into loop header.
13820 * benchtests/bench-memmove-walk.c
13821 (test_main): Likewise.
13822
13823 2018-05-07 Alexandre Oliva <oliva@gnu.org>
13824
13825 Revert:
13826 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13827 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13828
13829 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
13830
13831 [BZ #20419]
13832 * elf/dl-load.c (open_verify): Fix stack overflow.
13833 * elf/Makefile (tst-big-note): New test.
13834 * elf/tst-big-note-lib.S: New.
13835 * elf/tst-big-note.c: New.
13836
13837 2018-05-04 Joseph Myers <joseph@codesourcery.com>
13838
13839 * scripts/abilist.awk: Ignore absolute symbols.
13840 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
13841 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
13842 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
13843 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
13844 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
13845 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
13846 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13847 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
13848 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
13849 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
13850 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
13851 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
13852 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
13853 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
13854 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
13855 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
13856 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
13857 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
13858 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13859 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
13860 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
13861 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
13862 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
13863 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
13864 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
13865 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
13866 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
13867 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
13868 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13869 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
13870 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
13871 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13872 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
13873 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
13874 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
13875 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
13876 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
13877 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
13878 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
13879 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
13880 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
13881 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13882 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
13883 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
13884 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13885 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
13886 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
13887 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
13888 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
13889 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
13890 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
13891 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
13892 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
13893 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
13894 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13895 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
13896 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
13897 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13898 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
13899 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
13900 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
13901 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
13902 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
13903 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
13904 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
13905 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
13906 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
13907 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13908 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
13909 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
13910 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13911 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
13912 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
13913 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
13914 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
13915 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
13916 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
13917 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
13918 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
13919 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
13920 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13921 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
13922 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
13923 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13924 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
13925 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
13926 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
13927 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
13928 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
13929 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
13930 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
13931 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
13932 Likewise.
13933 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
13934 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13935 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
13936 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
13937 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13938 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
13939 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
13940 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
13941 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
13942 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
13943 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
13944 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
13945 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
13946 Likewise.
13947 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
13948 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13949 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
13950 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
13951 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13952 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
13953 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
13954 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
13955 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
13956 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
13957 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
13958 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
13959 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
13960 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
13961 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13962 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
13963 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
13964 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13965 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
13966 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
13967 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
13968 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
13969 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
13970 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
13971 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13972 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
13973 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
13974 Likewise.
13975 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
13976 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
13977 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
13978 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
13979 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13980 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
13981 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
13982 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
13983 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
13984 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
13985 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
13986 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
13987 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
13988 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
13989 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
13990 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
13991 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
13992 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
13993 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13994 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
13995 Likewise.
13996 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
13997 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
13998 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
13999 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14000 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14001 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14002 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14003 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14004 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14005 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14006 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14007 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14008 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14009 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14010 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14011 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14012 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14013 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14014 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14015 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14016 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14017 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14018 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14019 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14020 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14021 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14022 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14023 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14026 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14028 Likewise.
14029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14030 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14032 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14033 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14034 Likewise.
14035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14036 Likewise.
14037 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14038 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14039 Likewise.
14040 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14041 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14042 Likewise.
14043 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14044 Likewise.
14045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14048 Likewise.
14049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14050 Likewise.
14051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14052 Likewise.
14053 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14056 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14057 Likewise.
14058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14059 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14061 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14063 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14064 Likewise.
14065 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14067 Likewise.
14068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14069 Likewise.
14070 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14071 Likewise.
14072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14073 Likewise.
14074 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14077 Likewise.
14078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14079 Likewise.
14080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14081 Likewise.
14082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14083 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14084 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14085 Likewise.
14086 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14087 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14088 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14089 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14090 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14091 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14092 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14093 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14094 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14095 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14096 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14097 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14098 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14099 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14100 Likewise.
14101 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14102 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14103 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14104 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14105 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14106 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14107 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14108 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14109 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14110 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14111 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14112 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14113 Likewise.
14114 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14115 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14116 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14117 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14118 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14119 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14120 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14121 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14122 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14123 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14124 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14125 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14126 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14127 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14128 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14129 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14130 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14131 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14132 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14133 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14134 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14135 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14136 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14137 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14138 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14139 Likewise.
14140 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14141 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14142 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14143 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14144 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14145 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14146 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14147 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14148 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14149 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14150 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14151 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14152 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14153 Likewise.
14154 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14155 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14156 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14157 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14158 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14159 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14160 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14161 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14162 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14163 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14164 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14165 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14166 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14167 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14168 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14169 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14170 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14171 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14172 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14173 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14174 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14175 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14176 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14177 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14178 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14179 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14180 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14181 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14182 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14183 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14184 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14185 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14186 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14187 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14188 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14189 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14190 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14191 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14192
14193 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14194
14195 [BZ #23137]
14196 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14197 Use atomic_load_acquire to load __tid.
14198
14199 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14200
14201 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14202 Restore the pointer into %rdx, after syscall and use %rdx,
14203 instead of %rsi, to restore context.
14204
14205 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14206
14207 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14208 Pop the pointer into %rdx after syscall and use %rdx, instead
14209 of %rsi, to restore context.
14210
14211 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14212
14213 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14214 handlers after setjmp.
14215 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14216 defined.
14217 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14218 <libc-pointer-arith.h>.
14219 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14220 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14221 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14222 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14223 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14224 * sysdeps/x86/__longjmp_cancel.S: New file.
14225 * sysdeps/x86/longjmp.c: Likewise.
14226 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14227
14228 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14229
14230 * NEWS: Add ustat.h deprecation entry.
14231 * bits/ustat.h: Remove file.
14232 * misc/sys/ustat.h: Likewise.
14233 * misc/ustat.h: Likewise.
14234 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14235 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14236 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14237 compatibility mode.
14238 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14239 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14240 generic Linux implementation.
14241
14242 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14243
14244 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14245 * math/w_expl_compat.c: Likewise.
14246 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14247
14248 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14249
14250 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14251
14252 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14253
14254 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14255 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14256 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14257 Remove.
14258 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14260 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14261 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14262 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14263 and SYSCALL_LL64.
14264
14265 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14266
14267 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14268
14269 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14270 * math/w_asin_template.c: Likewise.
14271 * math/w_atanh_template.c: Likewise.
14272
14273 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14274
14275 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14276 to powerpc/powerpc64/be for big-endian.
14277 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14278 little-endian.
14279
14280 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14281 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14282 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14283 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14284 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14285 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14286 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14287 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14288 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14289 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14290 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14291 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14292 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14293 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14294 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14295 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14296 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14297 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14298 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14299 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14300 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14301 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14302 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14303 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14304 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14305 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14306 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14307 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14308 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14309 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14310 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14311 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14312
14313 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14314 adjusted to imply powerpc64 and older processors on powerpc64/be.
14315 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14316 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14317 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14318 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14319 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14320 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14321 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14322 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14323 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14324 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14325 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14326 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14327 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14328 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14329 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14330 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14331 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14332 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14333 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14334 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14335 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14336 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14337 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14338 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14339 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14340 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14341 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14342 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14343 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14344 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14345 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14346
14347 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14348 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14349 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14350 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14351
14352 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14353 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14354 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14355 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14356
14357 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14358 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14359 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14360 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14361 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14362 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14363 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14364 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14365 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14366 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14367 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14368
14369 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14370 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14371 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14372 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14373 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14374 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14375 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14376 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14377 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14378 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14379 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14380
14381 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14382 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14383 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14384 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14385 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14386 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14387 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14388 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14389 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14390 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14391 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14392 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14393
14394 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14395 and adjusted to imply olders processors.
14396 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14397 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14398 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14399 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14400 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14401 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14402 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14403 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14404 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14405 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14406 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14407
14408 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14409 powerpc64/le.
14410 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14411 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14412
14413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14414 powerpc64le.
14415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14417
14418 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14419 powerpc64/be.
14420 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14421 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14423
14424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14425 powerpc64 and adjusted.
14426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14429 Likewise.
14430
14431 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14432
14433 * sysdeps/tile: Remove.
14434 * sysdeps/unix/sysv/linux/tile: Likewise.
14435 * README (tilegx-*-linux-gnu): Remove from list of supported
14436 configurations.
14437 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14438 contribution of support for generic Linux kernel syscall
14439 interface.
14440 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14441 tilegx configurations.
14442 (Config.install_linux_headers): Do not handle tile.
14443 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14444 in comment.
14445 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14446 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14447 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14448 conditional undefine and redefine.
14449 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14450 in comment.
14451 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14452 conditional undefine and redefine.
14453
14454 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14455
14456 * signal/tst-sigaction.c: New file to test BZ #23069.
14457 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14458
14459 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14460
14461 [BZ #22766]
14462 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14463 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14464 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14465 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14466
14467 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14468
14469 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14470 _DIRENT_MATCHES_DIRENT64 is not defined.
14471 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14472 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14473 is defined.
14474 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14475 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14476
14477 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14478
14479 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14480 version to GCC 8 branch.
14481
14482 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14483
14484 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14485 (check_no_hidden): Use type of original function when declaring
14486 alias.
14487
14488 * sysdeps/unix/sysv/linux/sys/ptrace.h
14489 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14490 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14491 (struct __ptrace_seccomp_metadata): New type.
14492 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14493 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14494 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14495 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14496 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14497 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14498 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14499 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14500 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14501 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14502 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14503 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14504 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14505 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14506 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14507 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14508
14509 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14510
14511 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14512 defined.
14513 * dirent/versionsort.c (versionsort): Likewise.
14514 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14515 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14516 * dirent/versionsort64.c (versionsort64): Likewise.
14517 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14518 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14519 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14520 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14521 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14522 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14523 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14524 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14525 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14526 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
14529 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
14530 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
14531
14532 2018-04-23 Joseph Myers <joseph@codesourcery.com>
14533
14534 * elf/elf.h (NT_PPC_PKEY): New macro.
14535
14536 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
14537
14538 [BZ #23094]
14539 * localedata/locales/hr_HR: fix thousands_sep and
14540 mon_thousands_sep
14541
14542 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14543
14544 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
14545 (XTABS): Define to TAB3.
14546
14547 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14548
14549 * sysdeps/hppa/fpu/libm-test-ulps: Update.
14550
14551 * dirent/scandir-tail-common.c: New file.
14552 * dirent/scandir-tail.c: Use scandir-tail-common.c.
14553 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
14554 * dirent/scandir.c: Use scandir-tail-common.c.
14555 * dirent/scandirat.c: Likewise.
14556 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
14557 * dirent/scandir64.c (scandir64): Always build and alias to scandir
14558 if _DIRENT_MATCHES_DIRENT64 is defined.
14559 * dirent/scandirat64.c (scandirat64): Likewise.
14560 * include/dirent.h (__scandir_tail): Only define iff
14561 _DIRENT_MATCHES_DIRENT64 is not defined.
14562 (__scandir64_tail): Define regardless.
14563 (__scandirat, scandirat64): Remove libc_hidden_proto.
14564 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
14565 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
14566 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
14567 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
14568 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14569 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
14570 * sysdeps/unix/sysv/linux/scandir64.c: New file.
14571
14572 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14573
14574 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
14575 New macro.
14576 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14577 Increase to 24.
14578 (_dl_aarch64_cap_flags): Add asimdfhm.
14579
14580 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
14581
14582 * sysdeps/nios2/libm-test-ulps: Update.
14583
14584 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14585
14586 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
14587 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
14588
14589 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
14590 requirements.
14591 (_DIRENT_MATCHES_DIRENT64): Undef
14592 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
14593 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
14594 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
14595 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
14596 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
14597 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
14598 use getdents64 syscalls as base.
14599 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
14600 symbol if required.
14601 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
14602 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14603 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
14604 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
14605 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
14606 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
14607 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
14608 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
14609 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14610 (__get_clockfreq_via_proc_openprom): Use __getdents64.
14611 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
14612
14613 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14614
14615 * scripts/test_printers_common.py (init_test): Disable lock elision.
14616
14617 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14618
14619 * math/test-tgmath.c (count_double, count_float,
14620 count_ldouble, count_cdouble, count_cfloat,
14621 count_cldouble): Use volatile int.
14622
14623 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
14624
14625 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
14626 (conformtest-xfail-conds): Add i386-gnu.
14627 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
14628 i386-gnu.
14629 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
14630 ipc_perm.cuid, ipc_perm.cgid): Likewise.
14631 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
14632 msqid_ds.msg_lrpid): Likewise.
14633 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
14634 Likewise.
14635 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
14636 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
14637 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
14638 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
14639 unsigned int.
14640 (struct statvfs64): Likewise.
14641 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
14642 Likewise.
14643 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
14644 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
14645 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
14646 instead of wait_queue.
14647 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
14648 instead of vm_area_struct.
14649 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
14650 struct sched_param definition to it.
14651 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14652 * bits/types/struct_sched_param.h: New file.
14653 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
14654 <bits/types/struct_sched_param.h> instead of <sched.h>.
14655 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
14656 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
14657 generic version but include <bits/pthreadtypes.h> to make struct
14658 sigevent's sigev_notify_attributes field a pthread_attr_t*.
14659 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
14660 non-compliant.
14661 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
14662 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
14663 [__USE_XOPEN] (OFDEL): New macro.
14664 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
14665 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
14666 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
14667 prototypes.
14668 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
14669 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
14670 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
14671 non-compliant.
14672 * sysdeps/i386/sys/ucontext.h: Likewise.
14673 * sysdeps/m68k/sys/ucontext.h: Likewise.
14674 * sysdeps/mips/sys/ucontext.h: Likewise.
14675 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
14676 * sysdeps/mach/hurd/i386/Makefile
14677 (test-xfail-POSIX/fcntl.h/conform): Add.
14678 (test-xfail-POSIX/signal.h/conform): Add.
14679 (test-xfail-POSIX/semaphore.h/conform): Add.
14680 (test-xfail-POSIX/regex.h/conform): Add.
14681 (test-xfail-POSIX/aio.h/conform): Add.
14682 (test-xfail-POSIX/mqueue.h/conform): Add.
14683 (test-xfail-POSIX/sys/types.h/conform): Add.
14684 (test-xfail-UNIX98/fcntl.h/conform): Add.
14685 (test-xfail-UNIX98/netdb.h/conform): Add.
14686 (test-xfail-UNIX98/signal.h/conform): Add.
14687 (test-xfail-UNIX98/semaphore.h/conform): Add.
14688 (test-xfail-UNIX98/regex.h/conform): Add.
14689 (test-xfail-UNIX98/aio.h/conform): Add.
14690 (test-xfail-UNIX98/ftw.h/conform): Add.
14691 (test-xfail-UNIX98/mqueue.h/conform): Add.
14692 (test-xfail-UNIX98/netinet/in.h/conform): Add.
14693 (test-xfail-UNIX98/sys/wait.h/conform): Add.
14694 (test-xfail-UNIX98/sys/sem.h/conform): Add.
14695 (test-xfail-UNIX98/sys/uio.h/conform): Add.
14696 (test-xfail-UNIX98/sys/socket.h/conform): Add.
14697 (test-xfail-UNIX98/sys/types.h/conform): Add.
14698 (test-xfail-UNIX98/stdlib.h/conform): Add.
14699 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
14700 (test-xfail-POSIX2008/fcntl.h/conform): Add.
14701 (test-xfail-POSIX2008/netdb.h/conform): Add.
14702 (test-xfail-POSIX2008/signal.h/conform): Add.
14703 (test-xfail-POSIX2008/semaphore.h/conform): Add.
14704 (test-xfail-POSIX2008/regex.h/conform): Add.
14705 (test-xfail-POSIX2008/aio.h/conform): Add.
14706 (test-xfail-POSIX2008/mqueue.h/conform): Add.
14707 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
14708 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
14709 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
14710 (test-xfail-POSIX2008/sys/types.h/conform): Add.
14711 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
14712 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
14713 (test-xfail-XOPEN2K/netdb.h/conform): Add.
14714 (test-xfail-XOPEN2K/signal.h/conform): Add.
14715 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
14716 (test-xfail-XOPEN2K/regex.h/conform): Add.
14717 (test-xfail-XOPEN2K/aio.h/conform): Add.
14718 (test-xfail-XOPEN2K/ftw.h/conform): Add.
14719 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
14720 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
14721 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
14722 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
14723 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
14724 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
14725 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
14726 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
14727 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
14728 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
14729 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
14730 (test-xfail-XOPEN2K8/signal.h/conform): Add.
14731 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
14732 (test-xfail-XOPEN2K8/regex.h/conform): Add.
14733 (test-xfail-XOPEN2K8/aio.h/conform): Add.
14734 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
14735 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
14736 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
14737 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
14738 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
14739 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
14740 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
14741 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
14742 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
14743 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
14744 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
14745 i386-gnu.
14746 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
14747 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
14748
14749 2018-04-18 Joseph Myers <joseph@codesourcery.com>
14750
14751 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14752 --enable-obsolete for powerpc-linux-gnuspe.
14753
14754 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14755
14756 * conform/data/sys/un.h-data: Allow sun_ prefix.
14757 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
14758 prototypes.
14759 * sysdeps/mach/include/mach.h: Likewise.
14760 * sysdeps/mach/include/mach/mig_support.h: Likewise.
14761 * sysdeps/mach/include/mach_error.h: Likewise.
14762
14763 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14764
14765 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
14766 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
14767 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
14768 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
14769
14770 2018-04-16 Andreas Schwab <schwab@suse.de>
14771
14772 [BZ #19527]
14773 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
14774
14775 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14776
14777 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
14778 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
14779
14780 2018-04-12 DJ Delorie <dj@redhat.com>
14781
14782 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14783 version to 4.16.
14784
14785 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
14786
14787 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
14788 (struct kernel_sigaction): Use the same definition on 31bit as is used
14789 on 64bit.
14790
14791 2018-04-09 Florian Weimer <fweimer@redhat.com>
14792
14793 [BZ #23037]
14794 * resolv/res_send.c (send_dg): Use designated initializers instead
14795 of assignment to zero-initialize other fields of struct mmsghdr.
14796
14797 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14798
14799 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
14800 __READDIR_ALIAS): Undefine after usage.
14801 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
14802 __READDIR_R_ALIAS): Likewise.
14803 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
14804 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
14805 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
14806 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
14807 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
14808 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
14809 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14810 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14811 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
14812 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
14813 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
14814 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
14815 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
14816 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
14817 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
14818 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
14819 * sysdeps/unix/sysv/linux/readdir.c: New file.
14820 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
14821 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
14822 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
14823
14824 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
14825
14826 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
14827
14828 * manual/charset.texi (Converting a Character): Fix typo.
14829
14830 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14831
14832 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14833
14834 * sysdeps/arm/libm-test-ulps: Update.
14835
14836 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
14837 as base implementation.
14838 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
14839 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
14840 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14841 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14842 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
14843 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
14844 remove unrequired definitions and update comments.
14845 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
14846 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
14847 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
14848 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
14849 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
14850 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
14851 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
14852 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
14853 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
14854 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
14855 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
14856 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
14857 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
14858 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
14859 and RESET_SA_RESTORER hooks.
14860
14861 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
14862
14863 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14864
14865 2018-04-05 Florian Weimer <fweimer@redhat.com>
14866
14867 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
14868 integer overflow, memory leak on error, and indeterminate errno
14869 value. Add a null wide character to terminate the result string.
14870 * manual/charset.texi (Converting a Character): Mention embedded
14871 null bytes in the mbrtowc input string. Explain what happens in
14872 the -2 result case. Do not claim that mbrtowc is simple or
14873 obvious to use. Adjust the description of the code example. Use
14874 @code, not @var, for concrete variables.
14875
14876 2018-04-05 Florian Weimer <fweimer@redhat.com>
14877
14878 * manual/examples/mbstouwcs.c: New file.
14879 * manual/charset.texi (Converting a Character): Include it.
14880
14881 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14882
14883 * include/dirent.h (dirfd): Add hidden proto.
14884 * dirent/dirfd.c (dirfd): Add hidden def.
14885 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
14886 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
14887
14888 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14889
14890 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
14891 sin, cos and sincos to 1 ULP.
14892
14893 2018-04-04 Maciej W. Rozycki <macro@mips.com>
14894
14895 [BZ #19818]
14896 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
14897 symbols.
14898 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
14899 * elf/tst-absolute-sym.c: New file.
14900 * elf/tst-absolute-sym-lib.c: New file.
14901 * elf/tst-absolute-sym-lib.lds: New file.
14902 * elf/Makefile (tests): Add `tst-absolute-sym'.
14903 (modules-names): Add `tst-absolute-sym-lib'.
14904 (LDLIBS-tst-absolute-sym-lib.so): New variable.
14905 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
14906 ($(objpfx)tst-absolute-sym): New dependency.
14907
14908 [BZ #19818]
14909 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
14910 parameter.
14911 (SYMBOL_ADDRESS): New macro.
14912 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
14913 SYMBOL_ADDRESS for symbol address calculation.
14914 * elf/dl-runtime.c (_dl_fixup): Likewise.
14915 (_dl_profile_fixup): Likewise.
14916 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
14917 * elf/rtld.c (dl_main): Likewise.
14918 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
14919 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
14920 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
14921 (elf_machine_rela): Likewise.
14922 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
14923 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
14924 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
14925 (elf_machine_rela): Likewise.
14926 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14927 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
14928 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
14929 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
14930 Likewise.
14931 (elf_machine_reloc): Likewise.
14932 (elf_machine_got_rel): Likewise.
14933 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
14934 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
14935 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14936 Likewise.
14937 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14938 Likewise.
14939 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
14940 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
14941 Likewise.
14942 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
14943 Likewise.
14944 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14945 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
14946 Likewise.
14947 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
14948 Likewise.
14949 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
14950 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14951
14952 2018-04-04 Zack Weinberg <zackw@panix.com>
14953
14954 * sysdeps/generic/internal-signals.h: Include signal.h,
14955 sigsetops.h, and stdbool.h.
14956 (__libc_signal_block_all): Actually block all signals.
14957 (__libc_signal_block_app): Likewise.
14958 (__libc_signal_restore_set): Actually restore the signal mask.
14959
14960 2018-04-04 Florian Weimer <fweimer@redhat.com>
14961
14962 inet: Actually build and run tst-deadline.
14963 * inet/Makefile (tests-internal): Add tst-deadline and do not
14964 overwrite the variable.
14965 (tests-static-internal): Remove variable.
14966
14967 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
14968
14969 [BZ #22947]
14970 * bits/uio-ext.h (RWF_APPEND): New.
14971 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
14972 * manual/llio.texi: Document RWF_APPEND.
14973 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
14974 (RWF_SUPPORTED): Add RWF_APPEND.
14975
14976 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14977
14978 [BZ #22391]
14979 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
14980 check for internal nptl signals.
14981 * nptl/sigaction.c (__sigaction): Likewise.
14982 * signal/sigaddset.c (sigaddset): Likewise.
14983 * signal/sigdelset.c (sigdelset): Likewise.
14984 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
14985 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
14986 value.
14987 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
14988 to filter out internal nptl signals.
14989 * signal/tst-sigset.c (do_test): Check ech signal indidually and
14990 also check realtime signals using standard macros.
14991 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
14992 __is_internal_signal, __libc_signal_block_all,
14993 __libc_signal_block_app, __libc_signal_restore_set): New functions.
14994 * sysdeps/nptl/sigfillset.c: Remove file.
14995 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
14996 Change return to bool.
14997 (__clear_internal_signals): Remove SIGTIMER clean since it is
14998 equal to SIGCANEL on Linux.
14999 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15000 signal set was constructed using standard functions.
15001
15002 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15003
15004 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15005 ifname is too long.
15006 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15007 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15008 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15009 hidden def.
15010 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15011 * signal/sigaddset.c: Include <sigsetopts.h>.
15012 * signal/sigdelset.c: Likewise.
15013
15014 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15015
15016 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15017 (__cos): Likewise.
15018 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15019 logic as sin and cos.
15020
15021 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15022
15023 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15024 inputs. Return correct sign.
15025 (do_sincos): Remove small input check before do_sin, let do_sin set
15026 the sign.
15027 (__sin): Likewise.
15028 (__cos): Likewise.
15029
15030 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15031
15032 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15033 (do_cos_slow): Likewise.
15034 (do_sin_slow): Likewise.
15035 (reduce_and_compute): Likewise.
15036 (slow): Likewise.
15037 (slow1): Likewise.
15038 (slow2): Likewise.
15039 (sloww): Likewise.
15040 (sloww1): Likewise.
15041 (sloww2): Likewise.
15042 (bslow): Likewise.
15043 (bslow1): Likewise.
15044 (bslow2): Likewise.
15045 (cslow2): Likewise.
15046
15047 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15048
15049 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15050 (do_cos): Remove corp parameter and calculations.
15051 (do_sin): Likewise.
15052 (do_sincos): Remove cor variable.
15053 (__sin): Use do_sincos for huge inputs.
15054 (__cos): Likewise.
15055 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15056 (reduce_and_compute_sincos): Remove unused function.
15057
15058 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15059
15060 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15061 reduce_sincos, improve accuracy to 136 bits.
15062 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15063 (__sin): Use improved reduction and simplified do_sincos calculation.
15064 (__cos): Likewise.
15065 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15066
15067 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15068
15069 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15070 (do_sincos_2): Likewise.
15071 (__sin): Remove middle range reduction case.
15072 (__cos): Likewise.
15073 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15074 reduction case.
15075
15076 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15077
15078 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15079 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15080 inputs.
15081 (__cos): Likewise.
15082 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15083
15084 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15085
15086 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15087 version to 4.16
15088
15089 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15090
15091 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15092 Remove definitions.
15093 (opendir_oflags): Use O_DIRECTORY regardless.
15094 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15095 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15096
15097 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15098
15099 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15100 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15101 macros.
15102 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15103 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15104 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15105 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15106 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15107 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15108
15109 * htl/Makefile: Bump licence to LGPL 2.1+.
15110 * htl/alloca_cutoff.c: Likewise.
15111 * htl/cthreads-compat.c: Likewise.
15112 * htl/lockfile.c: Likewise.
15113 * htl/pt-alloc.c: Likewise.
15114 * htl/pt-cancel.c: Likewise.
15115 * htl/pt-cleanup.c: Likewise.
15116 * htl/pt-create.c: Likewise.
15117 * htl/pt-dealloc.c: Likewise.
15118 * htl/pt-detach.c: Likewise.
15119 * htl/pt-exit.c: Likewise.
15120 * htl/pt-getattr.c: Likewise.
15121 * htl/pt-initialize.c: Likewise.
15122 * htl/pt-internal.h: Likewise.
15123 * htl/pt-join.c: Likewise.
15124 * htl/pt-self.c: Likewise.
15125 * htl/pt-setcancelstate.c: Likewise.
15126 * htl/pt-setcanceltype.c: Likewise.
15127 * htl/pt-sigmask.c: Likewise.
15128 * htl/pt-spin-inlines.c: Likewise.
15129 * htl/pt-testcancel.c: Likewise.
15130 * htl/pt-yield.c: Likewise.
15131 * htl/tests/test-1.c: Likewise.
15132 * htl/tests/test-10.c: Likewise.
15133 * htl/tests/test-11.c: Likewise.
15134 * htl/tests/test-12.c: Likewise.
15135 * htl/tests/test-13.c: Likewise.
15136 * htl/tests/test-14.c: Likewise.
15137 * htl/tests/test-15.c: Likewise.
15138 * htl/tests/test-16.c: Likewise.
15139 * htl/tests/test-17.c: Likewise.
15140 * htl/tests/test-2.c: Likewise.
15141 * htl/tests/test-3.c: Likewise.
15142 * htl/tests/test-4.c: Likewise.
15143 * htl/tests/test-5.c: Likewise.
15144 * htl/tests/test-6.c: Likewise.
15145 * htl/tests/test-7.c: Likewise.
15146 * htl/tests/test-8.c: Likewise.
15147 * htl/tests/test-9.c: Likewise.
15148 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15149 * sysdeps/htl/bits/cancelation.h: Likewise.
15150 * sysdeps/htl/bits/pthread-np.h: Likewise.
15151 * sysdeps/htl/bits/pthread.h: Likewise.
15152 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15153 * sysdeps/htl/bits/semaphore.h: Likewise.
15154 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15155 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15156 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15157 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15158 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15159 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15160 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15161 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15162 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15163 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15164 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15165 * sysdeps/htl/old_pt-atfork.c: Likewise.
15166 * sysdeps/htl/pt-atfork.c: Likewise.
15167 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15168 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15169 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15170 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15171 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15172 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15173 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15174 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15175 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15176 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15177 * sysdeps/htl/pt-attr-init.c: Likewise.
15178 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15179 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15180 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15181 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15182 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15183 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15184 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15185 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15186 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15187 * sysdeps/htl/pt-attr.c: Likewise.
15188 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15189 * sysdeps/htl/pt-barrier-init.c: Likewise.
15190 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15191 * sysdeps/htl/pt-barrier.c: Likewise.
15192 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15193 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15194 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15195 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15196 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15197 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15198 * sysdeps/htl/pt-cond-init.c: Likewise.
15199 * sysdeps/htl/pt-cond-signal.c: Likewise.
15200 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15201 * sysdeps/htl/pt-cond-wait.c: Likewise.
15202 * sysdeps/htl/pt-cond.c: Likewise.
15203 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15204 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15205 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15206 * sysdeps/htl/pt-condattr-init.c: Likewise.
15207 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15208 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15209 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15210 * sysdeps/htl/pt-equal.c: Likewise.
15211 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15212 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15213 * sysdeps/htl/pt-getschedparam.c: Likewise.
15214 * sysdeps/htl/pt-getspecific.c: Likewise.
15215 * sysdeps/htl/pt-init-specific.c: Likewise.
15216 * sysdeps/htl/pt-key-create.c: Likewise.
15217 * sysdeps/htl/pt-key-delete.c: Likewise.
15218 * sysdeps/htl/pt-key.h: Likewise.
15219 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15220 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15221 * sysdeps/htl/pt-mutex-init.c: Likewise.
15222 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15223 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15224 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15225 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15226 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15227 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15228 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15229 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15230 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15231 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15232 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15233 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15234 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15235 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15236 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15237 * sysdeps/htl/pt-mutexattr.c: Likewise.
15238 * sysdeps/htl/pt-once.c: Likewise.
15239 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15240 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15241 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15242 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15243 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15244 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15245 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15246 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15247 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15248 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15249 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15250 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15251 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15252 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15253 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15254 * sysdeps/htl/pt-setschedparam.c: Likewise.
15255 * sysdeps/htl/pt-setschedprio.c: Likewise.
15256 * sysdeps/htl/pt-setspecific.c: Likewise.
15257 * sysdeps/htl/pt-spin.c: Likewise.
15258 * sysdeps/htl/pt-startup.c: Likewise.
15259 * sysdeps/htl/pthread.h: Likewise.
15260 * sysdeps/htl/sem-close.c: Likewise.
15261 * sysdeps/htl/sem-destroy.c: Likewise.
15262 * sysdeps/htl/sem-getvalue.c: Likewise.
15263 * sysdeps/htl/sem-init.c: Likewise.
15264 * sysdeps/htl/sem-open.c: Likewise.
15265 * sysdeps/htl/sem-post.c: Likewise.
15266 * sysdeps/htl/sem-timedwait.c: Likewise.
15267 * sysdeps/htl/sem-trywait.c: Likewise.
15268 * sysdeps/htl/sem-unlink.c: Likewise.
15269 * sysdeps/htl/sem-wait.c: Likewise.
15270 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15271 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15272 * sysdeps/mach/htl/pt-block.c: Likewise.
15273 * sysdeps/mach/htl/pt-spin.c: Likewise.
15274 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15275 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15276 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15277 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15278 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15279 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15280 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15281 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15282 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15283 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15284 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15285 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15286 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15287 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15288 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15289 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15290 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15291 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15292 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15293 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15294 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15295 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15296 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15297 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15298 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15299 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15300 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15301 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15302 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15303 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15304 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15305 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15306 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15307 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15308 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15309 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15310 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15311 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15312 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15313 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15314 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15315 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15316 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15317
15318 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15319 * README: Remove the mention of out-of-tree patches needed for
15320 GNU/Hurd.
15321
15322 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15323 (UTIME_NOW, UTIME_OMIT): Define macros.
15324
15325 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15326 instead of pthread_detach.
15327 (__cthread_fork): Call __pthread_create instead of pthread_create.
15328 (__cthread_keycreate): Call __pthread_key_create instead of
15329 pthread_key_create.
15330 (__cthread_getspecific): Call __pthread_getspecific instead of
15331 pthread_getspecific.
15332 (__cthread_setspecific): Call __pthread_setspecific instead of
15333 pthread_setspecific.
15334 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15335 __pthread_mutex_unlock instead of pthread_mutex_lock and
15336 pthread_mutex_unlock.
15337 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15338 ___pthread_get_cleanup_stack.
15339 (__pthread_get_cleanup_stack): New strong alias.
15340 * htl/pt-create.c: Include <pthreadP.h>.
15341 (entry_point): Call __pthread_exit instead of pthread_exit.
15342 (pthread_create): Rename to __pthread_create.
15343 (pthread_create): New strong alias.
15344 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15345 (pthread_detach): New strong alias.
15346 (__pthread_detach): Call __pthread_cond_broadcast instead of
15347 pthread_cond_broadcast.
15348 * htl/pt-exit.c: Include <pthreadP.h>.
15349 (__pthread_exit): Call __pthread_setcancelstate and
15350 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15351 __pthread_get_cleanup_stack.
15352 * htl/pt-testcancel.c: Include <pthreadP.h>.
15353 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15354 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15355 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15356 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15357 pthread_attr_getstacksize.
15358 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15359 Rename to __pthread_attr_getstackaddr.
15360 (pthread_attr_getstackaddr): New strong alias.
15361 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15362 Rename to __pthread_attr_getstacksize.
15363 (pthread_attr_getstacksize): New strong alias.
15364 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15365 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15366 (pthread_attr_setstack): New strong alias.
15367 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15368 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15369 pthread_attr_getstacksize, pthread_attr_setstacksize and
15370 pthread_attr_setstackaddr.
15371 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15372 Rename to __pthread_attr_setstackaddr.
15373 (pthread_attr_setstackaddr): New strong alias.
15374 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15375 Rename to __pthread_attr_setstacksize.
15376 (pthread_attr_setstacksize): New strong alias.
15377 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15378 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15379 pthread_exit.
15380 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15381 (__pthread_key_create): New hidden def.
15382 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15383 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15384 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15385 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15386 __pthread_setspecific, __pthread_setcancelstate,
15387 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15388 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15389 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15390 declarations.
15391 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15392 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15393 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15394 (pthread_attr_setstackaddr): New strong alias.
15395 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15396 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15397 (pthread_attr_setstacksize): New strong alias.
15398 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15399 (call_exit): Call __pthread_exit instead of pthread_exit.
15400 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15401 (_pthread_mutex_init): New hidden definition.
15402 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15403 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15404 instead of pthread_attr_init and pthread_attr_setstack.
15405
15406 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15407 __vm_deallocate instead of vm_allocate and vm_deallocate.
15408 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15409 setenv.
15410 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15411 of geteuid.
15412 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15413 strdup.
15414 * hurd/siginfo.c: Include <libioP.h>.
15415 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15416 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15417 munmap.
15418 * mach/devstream.c: Include <libioP.h>.
15419 (dealloc_ref): Call __mach_port_deallocate instead of
15420 mach_port_deallocate.
15421 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15422 Call __mach_port_deallocate instead of mach_port_deallocate.
15423 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15424 pathconf.
15425 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15426 munmap.
15427 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15428 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15429 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15430 of munmap.
15431 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15432 of close.
15433 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15434 instead of sysconf.
15435 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15436 __clock_gettime instead of clock_gettime.
15437 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15438 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15439 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15440 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15441 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15442 tcgetattr.
15443 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15444 __clock_gettime and __nanosleep instead of clock_gettime and
15445 nanosleep.
15446 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15447 __hurd_catch_signal.
15448 (hurd_catch_signal): New strong alias.
15449 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15450 __hurd_catch_signal instead of hurd_catch_signal.
15451 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15452 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15453 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15454 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15455 (_hurd_thread_sigstate): Add hidden def.
15456 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15457 mutex_unlock.
15458 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15459 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15460 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15461 __hurd_file_name_path_lookup.
15462 (hurd_file_name_path_lookup): New strong alias.
15463 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15464 hurd_file_name_path_lookup.
15465 * mach/errstring.c (mach_error_type): Add hidden def.
15466 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15467 * mach/mutex-init.c (__mutex_init): Add hidden def.
15468 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15469 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15470 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15471 * sysdeps/mach/hurd/getcwd.c
15472 (_hurd_canonicalize_directory_name_internal): Rename to
15473 __hurd_canonicalize_directory_name_internal.
15474 (_hurd_canonicalize_directory_name_internal): New strong alias.
15475 (__canonicalize_directory_name_internal, __getcwd): Call
15476 __hurd_canonicalize_directory_name_internal instead of
15477 _hurd_canonicalize_directory_name_internal.
15478 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15479 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15480 hidden defs.
15481 * sysdeps/hurd/include/hurd.h: New file.
15482 * sysdeps/hurd/include/hurd/fd.h: New file.
15483 * sysdeps/hurd/include/hurd/signal.h: New file.
15484 * sysdeps/mach/include/lock-intern.h: New file.
15485 * sysdeps/mach/include/mach.h: New file.
15486 * sysdeps/mach/include/mach/mig_support.h: New file.
15487 * sysdeps/mach/include/mach_error.h: New file.
15488 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15489 prototype.
15490 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15491 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15492 _HEADER_H_HIDDEN_DEF macro.
15493 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15494 _hurd_fd_error_signal): Add hidden prototype.
15495 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15496 hidden def.
15497 * libio/iolibio.h (_IO_puts): New hidden prototype.
15498 * libio/ioputs.c (_IO_puts): New hidden def.
15499 * sysdeps/mach/hurd/localplt.data: New file.
15500
15501 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15502 Amos Jeffries <squid3@treenet.co.nz>
15503 David Michael <fedora.dm0@gmail.com>
15504 Marco Gerards <marco@gnu.org>
15505 Marcus Brinkmann <marcus@gnu.org>
15506 Neal H. Walfield <neal@gnu.org>
15507 Pino Toscano <toscano.pino@tiscali.it>
15508 Richard Braun <rbraun@sceen.net>
15509 Roland McGrath <roland@gnu.org>
15510 Samuel Thibault <samuel.thibault@ens-lyon.org>
15511 Thomas DiModica <ricinwich@yahoo.com>
15512 Thomas Schwinge <tschwinge@gnu.org>
15513
15514 * htl: New directory.
15515 * sysdeps/htl: New directory.
15516 * sysdeps/hurd/htl: New directory.
15517 * sysdeps/i386/htl: New directory.
15518 * sysdeps/mach/htl: New directory.
15519 * sysdeps/mach/hurd/htl: New directory.
15520 * sysdeps/mach/hurd/i386/htl: New directory.
15521 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15522 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15523 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15524
15525 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15526
15527 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15528 signals in thread created for runing timers.
15529
15530 2018-04-01 Florian Weimer <fweimer@redhat.com>
15531
15532 * support/support_format_addrinfo.c (support_format_addrinfo):
15533 Include unknown error number in formatted result.
15534
15535 2018-03-29 Florian Weimer <fweimer@redhat.com>
15536
15537 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
15538 capture SIGBUS.
15539
15540 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15541
15542 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
15543 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
15544 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15545 (__ASSUME_CLONE_BACKWARDS): Define.
15546
15547 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
15548
15549 [BZ #23024]
15550 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
15551 early when linux sentinel value is set.
15552
15553 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15554
15555 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
15556
15557 2018-03-27 Andreas Schwab <schwab@suse.de>
15558
15559 [BZ #23005]
15560 * resolv/res_send.c (__res_context_send): Return ENOMEM if
15561 allocation of private copy of nsaddr_list fails.
15562
15563 2018-03-26 Joseph Myers <joseph@codesourcery.com>
15564
15565 [BZ #16552]
15566 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
15567 * sysdeps/unix/sysv/linux/umount.c: ... here.
15568 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
15569 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
15570 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
15571 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
15572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
15573 * sysdeps/unix/sysv/linux/umount.S: Likewise.
15574 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
15575
15576 2018-03-26 Andreas Schwab <schwab@suse.de>
15577
15578 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
15579 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
15580 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
15581 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
15582 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
15583 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
15584 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
15585 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
15586 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
15587 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
15588 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
15589 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
15590 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
15591 (R_RISCV_NUM): Define.
15592
15593 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
15594
15595 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
15596 TLS declaration of errno.
15597 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
15598 __libc_setup_tls.
15599 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
15600 (ARCH_SETUP_TLS): Likewise.
15601 * sysdeps/mach/hurd/libc-start.h: New file copied from
15602 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
15603 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
15604 instead of __libc_setup_tls.
15605 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
15606 __libc_setup_tls before initializing libpthread and running _hurd_init
15607 which starts the signal thread.
15608 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
15609 Declare function.
15610 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15611
15612 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
15613
15614 [BZ #22998]
15615 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
15616 after it is defined.
15617
15618 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
15619 Max Horn <max@quendi.de>
15620
15621 [BZ #22644]
15622 CVE-2017-18269
15623 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
15624 branch conditions.
15625 * string/test-memmove.c (do_test2): New testcase.
15626
15627 2018-03-22 Joseph Myers <joseph@codesourcery.com>
15628
15629 * sysdeps/generic/frame.h: Remove file.
15630 * sysdeps/arm/frame.h: Likewise.
15631 * sysdeps/hppa/frame.h: Likewise.
15632 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
15633 macro.
15634 (GET_FRAME): Likewise.
15635 (GET_STACK): Likewise.
15636 (CALL_SIGHANDLER): Likewise.
15637 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
15638 Likewise.
15639 (GET_FRAME): Likewise.
15640 (GET_STACK): Likewise.
15641 (CALL_SIGHANDLER): Likewise.
15642 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
15643 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15644 (GET_FRAME): Likewise.
15645 (GET_STACK): Likewise.
15646 (CALL_SIGHANDLER): Likewise.
15647 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
15648 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15649 (GET_FRAME): Likewise.
15650 (GET_STACK): Likewise.
15651 (ADVANCE_STACK_FRAME): Likewise.
15652 (CALL_SIGHANDLER): Likewise.
15653 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
15654 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15655 (GET_FRAME): Likewise.
15656 (GET_STACK): Likewise.
15657 (CALL_SIGHANDLER): Likewise.
15658 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
15659 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15660 (GET_FRAME): Likewise.
15661 (GET_STACK): Likewise.
15662 (CALL_SIGHANDLER): Likewise.
15663 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
15664 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15665 (GET_FRAME): Likewise.
15666 (GET_STACK): Likewise.
15667 (CALL_SIGHANDLER): Likewise.
15668 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
15669 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15670 (GET_FRAME): Likewise.
15671 (GET_STACK): Likewise.
15672 (CALL_SIGHANDLER): Likewise.
15673 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
15674 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15675 (GET_FRAME): Likewise.
15676 (GET_STACK): Likewise.
15677 (CALL_SIGHANDLER): Likewise.
15678 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
15679 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15680 (GET_FRAME): Likewise.
15681 (GET_STACK): Likewise.
15682 (CALL_SIGHANDLER): Likewise.
15683 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
15684 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15685 (GET_FRAME): Likewise.
15686 (GET_STACK): Likewise.
15687 (CALL_SIGHANDLER): Likewise.
15688 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
15689 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15690 (GET_FRAME): Likewise.
15691 (GET_STACK): Likewise.
15692 (CALL_SIGHANDLER): Likewise.
15693 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
15694 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15695 (GET_FRAME): Likewise.
15696 (GET_STACK): Likewise.
15697 (CALL_SIGHANDLER): Likewise.
15698 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
15699 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15700 (FIRST_FRAME_POINTER): Likewise.
15701 (ADVANCE_STACK_FRAME): Likewise.
15702 (GET_STACK): Likewise.
15703 (GET_FRAME): Likewise.
15704 (CALL_SIGHANDLER): Likewise.
15705 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
15706 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15707 (ADVANCE_STACK_FRAME): Likewise.
15708 (GET_STACK): Likewise.
15709 (GET_FRAME): Likewise.
15710 (CALL_SIGHANDLER): Likewise.
15711 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
15712 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15713 (GET_FRAME): Likewise.
15714 (GET_STACK): Likewise.
15715 (CALL_SIGHANDLER): Likewise.
15716 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
15717 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15718 (GET_FRAME): Likewise.
15719 (GET_STACK): Likewise.
15720 (CALL_SIGHANDLER): Likewise.
15721
15722 2018-03-21 Joseph Myers <joseph@codesourcery.com>
15723
15724 * sysdeps/x86_64/backtrace.c: Move to ....
15725 * debug/backtrace.c: ... here.
15726 * sysdeps/aarch64/backtrace.c: Remove file.
15727 * sysdeps/alpha/backtrace.c: Likewise.
15728 * sysdeps/hppa/backtrace.c: Likewise.
15729 * sysdeps/ia64/backtrace.c: Likewise.
15730 * sysdeps/mips/backtrace.c: Likewise.
15731 * sysdeps/nios2/backtrace.c: Likewise.
15732 * sysdeps/riscv/backtrace.c: Likewise.
15733 * sysdeps/sh/backtrace.c: Likewise.
15734 * sysdeps/tile/backtrace.c: Likewise.
15735
15736 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15737
15738 [BZ #22987]
15739 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
15740 function.
15741 (fdimf): Likewise.
15742 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
15743
15744 [BZ #17343]
15745 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
15746 possibly overflowing computations.
15747
15748 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15749
15750 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
15751 values from Linux-specific section now that it is in the GNU section.
15752 * sysdeps/gnu/errlist.c: Regenerate.
15753
15754 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15755
15756 * math/Makefile (libm-narrow-fns): Add sub.
15757 (libm-test-funcs-narrow): Likewise.
15758 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
15759 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
15760 * math/gen-auto-libm-tests.c (test_functions): Add sub.
15761 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
15762 (NARROW_SUB_ROUND_TO_ODD): Likewise.
15763 (NARROW_SUB_TRIVIAL): Likewise.
15764 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
15765 macro.
15766 (__dsubl): Likewise.
15767 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
15768 dsub.
15769 (CFLAGS-nldbl-dsub.c): New variable.
15770 (CFLAGS-nldbl-fsub.c): Likewise.
15771 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15772 __nldbl_dsubl.
15773 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
15774 prototype.
15775 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
15776 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
15777 * math/auto-libm-test-in: Add tests of sub.
15778 * math/auto-libm-test-out-narrow-sub: New generated file.
15779 * math/libm-test-narrow-sub.inc: New file.
15780 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15781 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
15782 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
15783 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
15784 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
15785 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
15786 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
15787 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
15788 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
15789 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
15790 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
15791 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
15792 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
15793 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
15794 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
15795 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
15796 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
15797 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
15798 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15799 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15800 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15801 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15802 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15803 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15804 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15805 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15806 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15807 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15808 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15809 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15810 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15811 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15816 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15817 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15818 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15819 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15820 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15821 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15822 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15823 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15824 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15825 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15826
15827 2018-03-19 Joseph Myers <joseph@codesourcery.com>
15828
15829 [BZ #20079]
15830 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
15831
15832 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
15833
15834 * benchtests/bench-timing.h (attribute_hidden): Undefine.
15835
15836 2018-03-18 Richard Braun <rbraun@sceen.net>
15837
15838 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
15839 thread reference.
15840
15841 2018-03-18 Agustina Arzille <avarzille@riseup.net>
15842
15843 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
15844 (__libc_cleanup_fct): Define function.
15845 (__libc_cleanup_region_start, __libc_cleanup_region_end,
15846 __libc_cleanup_end): Rewrite implementation using
15847 __attribute__ ((__cleanup__)).
15848 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
15849 * hurd/Makefile (routines): Add hurdlock.
15850 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
15851 interface.
15852 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
15853 * hurd/hurdpid.c: Include <lowlevellock.h>
15854 (_S_msg_proc_newids): Use lll_wait to synchronize.
15855 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
15856 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
15857 * mach/Makefile (lock-headers): Remove machine-lock.h.
15858 * mach/lock-intern.h: Include <lowlevellock.h> instead of
15859 <machine-lock.h>.
15860 (__spin_lock_t): New type.
15861 (__SPIN_LOCK_INITIALIZER): New macro.
15862 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
15863 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
15864 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
15865 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
15866 (__mutex_init): Initialize with lll.
15867 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
15868 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
15869 needing lll.
15870 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15871 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
15872 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
15873 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
15874 (__setpgid): Use lll for synchronization.
15875 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
15876 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
15877 instead of <cthreads.h>.
15878 (_IO_lock_inexpensive): New macro
15879 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
15880 (__libc_lock_self0): New declaration.
15881 (__libc_lock_owner_self): New macro.
15882 (__libc_key_t): Remove type.
15883 (_LIBC_LOCK_INITIALIZER): New macro.
15884 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
15885 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
15886 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
15887 __libc_lock_define_initialized_recursive,
15888 __rtld_lock_define_initialized_recursive,
15889 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
15890 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
15891 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
15892 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
15893 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
15894 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
15895 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
15896 New macros.
15897 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
15898 * hurd/hurdlock.c: New file.
15899 * hurd/hurdlock.h: New file.
15900 * mach/lowlevellock.h: New file
15901
15902 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15903
15904 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
15905 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
15906 when opening a symlink with O_NOFOLLOW.
15907 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
15908 path when flags contains O_NOFOLLOW.
15909 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
15910 if flags contains O_DIRECTORY and the result is a directory.
15911 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
15912 oneself when the pointer given in D is nul (as set by ext2fs).
15913 * sysdeps/mach/hurd/mlockall.c: New file.
15914 * sysdeps/mach/hurd/munlockall.c: New file.
15915
15916 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15917
15918 * hurd/hurdsig.c: Include <pthread.h>.
15919 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
15920 get the signal thread stack layout.
15921 * hurd/Makefile (headers): Remove threadvar.h.
15922 (inline-headers): Remove threadvar.h.
15923 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
15924 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
15925 __hurd_threadvar_max, __hurd_errno_location.
15926 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
15927 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
15928 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
15929 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
15930 unless TLS is not initialized yet, in which case we do not need a
15931 critical section yet anyway.
15932 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
15933 <machine-sp.h>.
15934 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
15935 declarations.
15936 (__hurd_threadvar_index): Remove enum.
15937 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
15938 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
15939 inlines.
15940 (__hurd_reply_port0): New variable declaration.
15941 (__hurd_local_reply_port): New macro.
15942 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
15943 (interrupted_reply_port_location): Add thread_t parameter. Use it
15944 with THREAD_TCB to access thread-local variables.
15945 (_hurdsig_abort_rpcs): Pass ss->thread to
15946 interrupted_reply_port_location.
15947 (_hurd_internal_post_signal): Likewise.
15948 (_hurdsig_init): Use presence of cthread_fork instead of
15949 __hurd_threadvar_stack_mask to start signal thread by hand.
15950 Remove signal thread threadvar initialization.
15951 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
15952 * hurd/sigunwind.c: Include <hurd/threadvar.h>
15953 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
15954 of threadvar.
15955 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
15956 __libc_lock_self0.
15957 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
15958 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
15959 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
15960 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
15961 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
15962 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
15963 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
15964 define variables.
15965 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
15966 <hurd/threadvar.h>.
15967 [IS_IN(rtld)] (rtld_errno): New variable.
15968 [IS_IN(rtld)] (__errno_location): New weak function.
15969 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
15970 * sysdeps/mach/hurd/errno.c: Remove file.
15971 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
15972 (__fork): Remove THREADVAR_SPACE macro and its use.
15973 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
15974 variable.
15975 (init): Do not initialize threadvar.
15976 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
15977 symbol.
15978 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
15979 __hurd_local_reply_port instead of threadvar.
15980 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
15981 _hurd_sigstate fields.
15982 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
15983 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
15984 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
15985 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
15986 instead of threadvar.
15987 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
15988 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
15989 (use_threadvar, global_reply_port): Remove variables.
15990 (__hurd_reply_port0): New variable.
15991 (__mig_get_reply_port): Use __hurd_local_reply_port and
15992 __hurd_reply_port0 instead of threadvar.
15993 (__mig_dealloc_reply_port): Likewise.
15994 (__mig_init): Do not initialize threadvar.
15995 * sysdeps/mach/hurd/profil.c: Fix comment.
15996 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
15997 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
15998 cthread_keycreate, cthread_getspecific, cthread_setspecific to
15999 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16000 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16001 __cthread_setspecific.
16002 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16003 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16004 __cthread_t instead of cthread_fork, cthread_detach,
16005 pthread_getattr_np, pthread_attr_getstack.
16006 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16007 __cthread_keycreate.
16008 (cthread_getspecific): Rename to __cthread_getspecific.
16009 (cthread_setspecific): Rename to __cthread_setspecific.
16010 (__libc_getspecific): Use __cthread_getspecific instead of
16011 cthread_getspecific.
16012 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16013 __cthread_keycreate instead of cthread_keycreate.
16014 (__libc_setspecific): Use __cthread_setspecific instead of
16015 cthread_setspecific.
16016 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16017 Likewise.
16018 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16019 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16020 testing whether it is defined.
16021
16022 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16023
16024 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16025 Define macro.
16026 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16027 * sysdeps/mach/i386/thread_state.h
16028 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16029 i386_THREAD_STATE.
16030 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16031 i386_THREAD_STATE.
16032 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16033
16034 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16035 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16036
16037 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16038 macros.
16039 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16040 descriptor instead of creating a new one.
16041 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16042
16043 * mach/setup-thread.c: Include <ldsodefs.h>.
16044 (__mach_setup_thread): Call _dl_allocate_tls, pass
16045 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16046 MACHINE_THREAD_STATE_FLAVOR, before getting
16047 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16048 MACHINE_THREAD_STATE_FLAVOR with the result.
16049 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16050 MACHINE_THREAD_STATE_FIX_NEW.
16051 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16052 too. Add original thread parameter.
16053
16054 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16055
16056 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16057 Remove inline function.
16058
16059 * sysdeps/i386/fpu/libm-test-ulps: Update.
16060 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16061
16062 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16063
16064 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16065 commit.
16066
16067 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16068
16069 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16070 (__sincos_code): Remove define and undefine.
16071 [__FAST_MATH__] (__sincos): Remove inline function.
16072 [__FAST_MATH__] (__sincosf): Remove inline function.
16073 [__FAST_MATH__] (__sincosl): Remove inline function.
16074 (__atan2l): Remove inline functions.
16075 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16076 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16077 function.
16078 (floor): Remove inline function.
16079 (ceil): Likewise.
16080 [__FAST_MATH__] (__ldexp_code): Remove macro.
16081 [__FAST_MATH__] (ldexp): Remove inline function.
16082 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16083 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16084 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16085 [__USE_ISOC99] (__lrint_code): Remove macro.
16086 [__USE_ISOC99] (__llrint_code): Likewise.
16087 [__USE_ISOC99] (lrintf): Remove inline function.
16088 [__USE_ISOC99] (lrint): Likewise.
16089 [__USE_ISOC99] (lrintl): Likewise.
16090 [__USE_ISOC99] (llrint): Likewise.
16091 [__USE_ISOC99] (llrintf): Likewise.
16092 [__USE_ISOC99] (llrintl): Likewise.
16093
16094 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16095
16096 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16097 (__ieee754_sqrtf): Remove.
16098 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16099 (__ieee754_sqrtf): Remove.
16100 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16101 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16102 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16103 (__ieee754_sqrtf): Remove.
16104 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16105 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16106 (sqrtf): Remove.
16107 (sqrtl): Remove.
16108 (__ieee754_sqrt): Remove.
16109 (__ieee754_sqrtf): Remove.
16110 (__ieee754_sqrtl): Remove.
16111 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16112 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16113 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16114 (__ieee754_sqrtf): Remove.
16115 (__ieee754_sqrtl): Remove.
16116
16117 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16118
16119 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16120 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16121 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16122 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16123 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16124 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16125 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16126 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16127 Likewise.
16128 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16129 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16130 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16131 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16132 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16133 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16134 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16135 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16136 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16137 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16138 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16139 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16140 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16141 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16142 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16143 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16144 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16145 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16146 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16147 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16148 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16149 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16150 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16151 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16152 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16153 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16154 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16155 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16156 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16157 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16158 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16159 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16160 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16161 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16162 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16163 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16164 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16165 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16166 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16167 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16168
16169 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16170
16171 * include/math.h (sqrt): Declare with asm redirect.
16172 (sqrtf): Likewise.
16173 (sqrtl): Likewise.
16174 (sqrtf128): Likewise.
16175 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16176 nonlib and libnldbl with -fmath-errno.
16177 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16178 * math/w_sqrt_template.c: Likewise.
16179 * math/w_sqrtf_compat.c: Likewise.
16180 * math/w_sqrtl_compat.c: Likewise.
16181 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16182 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16183 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16184 complex.h.
16185
16186 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16187
16188 * benchtests/Makefile: Define _ISOMAC.
16189 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16190 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16191 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16192 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16193 * benchtests/bench-timing.h: Define attribute_hidden.
16194
16195 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16196
16197 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16198 mov + lsr.
16199
16200 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16201
16202 [BZ #22963]
16203 * localedata/locales/cs_CZ (mon): Rename to...
16204 (alt_mon): This.
16205 (mon): Import from CLDR (genitive case).
16206
16207 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16208
16209 [BZ #22937]
16210 * localedata/locales/el_CY (abmon): Rename to...
16211 (ab_alt_mon): This.
16212 (abmon): Import from CLDR (abbreviated genitive case).
16213 * localedata/locales/el_GR (abmon): Rename to...
16214 (ab_alt_mon): This.
16215 (abmon): Import from CLDR (abbreviated genitive case).
16216
16217 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16218
16219 [BZ #22932]
16220 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16221
16222 2018-03-15 Robert Buj <robert.buj@gmail.com>
16223
16224 [BZ #22848]
16225 * localedata/locales/ca_ES (abmon): Rename to...
16226 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16227 (mon): Rename to...
16228 (alt_mon): This.
16229 (abmon): Import from CLDR (genitive case, month names preceded by
16230 "de" or "d’").
16231 (mon): Likewise.
16232 (abday): Synchronize with CLDR.
16233 (d_t_fmt): Likewise.
16234 (d_fmt): Likewise.
16235 (am_pm): Likewise.
16236
16237 (LC_TIME): Improve indentation.
16238 (LC_TELEPHONE): Likewise.
16239 (LC_NAME): Likewise.
16240 (LC_ADDRESS): Likewise.
16241
16242 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16243
16244 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16245 (lrintf): Remove definitions used only with old GCC.
16246 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16247 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16248 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16249 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16250 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16251 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16252 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16253 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16254 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16255 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16256 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16257 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16258 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16259 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16260 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16261 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16262 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16263 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16264 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16265 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16266 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16267 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16268 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16269 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16270 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16271 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16272 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16273 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16274
16275 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16276
16277 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16278 instruction to unbreak builds with binutils 2.26 and older.
16279
16280 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16281
16282 * sysdeps/aarch64/strncmp.S (count): New macro.
16283 (strncmp): Store misaligned length in SRC1 in COUNT.
16284 (mutual_align): Adjust.
16285 (misaligned8): Load dword at a time when it is safe.
16286
16287 2018-03-12 Zack Weinberg <zackw@panix.com>
16288
16289 [BZ #1190]
16290 [BZ #19476]
16291 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16292 if the _IO_EOF_SEEN bit is already set; update commentary.
16293 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16294 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16295
16296 * support/support_openpty.c, support/tty.h: New files.
16297 * support/Makefile (libsupport-routines): Add support_openpty.
16298
16299 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16300 New test cases.
16301 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16302 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16303
16304 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16305
16306 * po/pt_BR.po: Update translations.
16307
16308 2018-03-12 David Michael <fedora.dm0@gmail.com>
16309
16310 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16311 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16312 get a port to the startup server.
16313
16314 2018-03-11 Zack Weinberg <zackw@panix.com>
16315
16316 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16317 before nldbl-compat.h.
16318
16319 2018-03-10 Zack Weinberg <zackw@panix.com>
16320
16321 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16322 math.h or math_private.h.
16323
16324 * sysdeps/alpha/fpu/s_isnan.c
16325 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16326 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16327 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16328 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16329 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16330 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16331 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16332 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16333 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16334 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16335 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16336 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16337 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16338 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16339 Include math_private.h.
16340
16341 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16342 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16343 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16344 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16345 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16346 * sysdeps/powerpc/power7/fpu/s_logb.c:
16347 Include math.h and math_private.h.
16348
16349 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16350 uses of $at in .set noat / .set at.
16351
16352 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16353
16354 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16355 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16356 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16357 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16358 Likewise.
16359
16360 2018-03-09 Florian Weimer <fweimer@redhat.com>
16361
16362 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16363 in comment.
16364
16365 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16366
16367 [BZ #22919]
16368 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16369 Add nop before __startcontext, add explaining comments.
16370
16371 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16372
16373 [BZ #22926]
16374 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16375 empty for __SPE__.
16376 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16377 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16378 Do not build hardware transactional code for __SPE__.
16379 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16380 (__lll_trylock_elision): Likewise.
16381 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16382 (__lll_unlock_elision): Likewise.
16383
16384 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16385 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16386 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16387 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16388 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16389 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16390 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16391 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16392 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16393 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16394 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16395 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16396 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16397 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16398 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16399 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16400 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16401 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16402 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16403 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16404 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16405 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16406 (__ASSUME_CLONE_BACKWARDS): Define.
16407 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16408 __clone2 if __NR_clone2 is defined.
16409 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16410 (__ASSUME_CLONE_BACKWARDS): Likewise.
16411 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16412 (__ASSUME_CLONE_BACKWARDS): Likewise.
16413 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16414 (__ASSUME_CLONE2): Likewise.
16415 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16416 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16417 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16418 variants and the define architecture can use.
16419 (__ASSUME_CLONE_DEFAULT): Define as default.
16420 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16421 (__ASSUME_CLONE_BACKWARDS): Likewise.
16422 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16423 (__ASSUME_CLONE_BACKWARDS): Likewise.
16424 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16425 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16426
16427 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16428
16429 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16430
16431 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16432 time.
16433
16434 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16435 (do_test_limit): Likewise.
16436
16437 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16438 for every implementation.
16439 (do_test): Likewise.
16440
16441 * benchtests/bench-strncmp.c: Convert output to json.
16442
16443 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16444
16445 * io/futimens.c: Add missing start-of-file descriptive comment.
16446 * io/utime.c: Likewise.
16447 * misc/futimesat.c: Likewise.
16448 * misc/utimes.c: Likewise.
16449 * sysdeps/mach/hurd/futimesat.c: Likewise.
16450 * sysdeps/mach/hurd/utimes.c: Likewise.
16451 * sysdeps/posix/utime.c: Likewise.
16452 * sysdeps/posix/utimes.c: Likewise.
16453 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16454 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16455 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16456 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16457
16458 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16459
16460 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16461 hurd_futimes.
16462 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16463 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16464 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16465 (__futimens): Move implementation to...
16466 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16467 utime_tvalue_from_tspec): ... new helper functions.
16468 (hurd_futimens): New function.
16469 * sysdeps/mach/hurd/futimesat.c: New file.
16470 * sysdeps/mach/hurd/utimensat.c: New file.
16471
16472 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16473
16474 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16475 UTIME_OMIT): New macros.
16476 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16477 before reverting to converting time spec to time value and calling
16478 __file_utimes.
16479 * sysdeps/mach/hurd/utime-helper.c: New file.
16480 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16481 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16482 reverting to utime_tvalue_from_tval and __file_utimes.
16483 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16484 (__lutimes): Just call hurd_futimens after lookup.
16485 * sysdeps/mach/hurd/utimes.c: Likewise.
16486
16487 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16488
16489 * bits/sigaction.h: Add include guard.
16490 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16491 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16492 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16493 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16494 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16495 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16496 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16497 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16498 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16499
16500 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16501
16502 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16503 -Wmaybe-uninitialized for -Os.
16504 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16505 this disabling.
16506
16507 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16508
16509 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16510 __INO_T_MATCHES_INO64_T is defined.
16511 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16512 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16513 of definition.
16514 * dirent/alphasort64.c: Likewise.
16515 * dirent/scandir.c: Likewise.
16516 * dirent/scandir64-tail.c: Likewise.
16517 * dirent/scandir64.c: Likewise.
16518 * dirent/scandirat.c: Likewise.
16519 * dirent/scandirat64.c: Likewise.
16520 * dirent/versionsort.c: Likewise.
16521 * dirent/versionsort64.c: Likewise.
16522 * include/dirent.h: Likewise.
16523
16524 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16525 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16526 for socketpair endpoint.
16527 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16528 WRITE_BUFFER_SIZE as buffer size for sending socket.
16529 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
16530 issue on system where send is implemented with sendto syscall.
16531 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
16532 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
16533 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
16534 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
16535
16536 [BZ #21269]
16537 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
16538 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
16539 sa_restorer for vDSO case.
16540 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
16541
16542 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16543
16544 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
16545 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
16546 * hurd/hurd/ioctl.h: Include <mach/port.h>
16547 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
16548 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
16549 <mach/mach_types.h> and <mach/message.h>.
16550 (headers): Move mach/param.h to bits/mach/param.h.
16551 * sysdeps/mach/i386/mach/param.h: Move file to ...
16552 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
16553 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
16554 of <mach/param.h>.
16555 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
16556 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
16557 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
16558 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
16559 trivial, for C++ conformity.
16560 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
16561 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
16562 Process mig output through $(migheadersed).
16563 * hurd/Makefile (migheadersed): Define variable.
16564 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
16565 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
16566 headers.
16567 * hurd/hurd.h: Include <bits/types/sigset_t.h>
16568 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
16569 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
16570 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
16571 <bits/types/sigset_t.h>.
16572 [!defined __USE_GNU]: Do not #error out.
16573 (struct hurd_sigstate): Use _NSIG instead of NSIG.
16574 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
16575 Include <stddef.h> and <bits/types/sigset_t.h>
16576 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
16577 instead of sighandler_t.
16578 * stdlib/errno.h (error_t): Move definition to...
16579 * bits/types/error_t.h: ... new header.
16580 * stdlib/Makefile (headers): Add bits/types/error_t.h.
16581 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
16582 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
16583 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
16584 * hurd/hurd.h: Include <bits/types/error_t.h>
16585 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
16586 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
16587 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
16588 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
16589 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
16590 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
16591 * sysdeps/mach/hurd/futimens.c: New file.
16592
16593 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
16594
16595 [BZ #22918]
16596 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
16597 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
16598 * nscd/gai.c (__nss_hosts_database): Readd definition.
16599 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16600 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16601 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16602
16603 2018-03-02 Joseph Myers <joseph@codesourcery.com>
16604
16605 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
16606 (ifunc_one): Likewise.
16607
16608 2018-03-01 DJ Delorie <dj@delorie.com>
16609
16610 [BZ #22342]
16611 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
16612 key value.
16613
16614 2018-03-01 Maciej W. Rozycki <macro@mips.com>
16615
16616 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
16617 `match_pid' parameter.
16618 (td_ta_thr_iter): Update accordingly.
16619
16620 2018-03-01 Florian Weimer <fweimer@redhat.com>
16621
16622 * nptl/Makefile (install-lib-ldscripts): Remove.
16623 (install): Remove rule.
16624 ($(inst_libdir)/libpthread.so): Likewise.
16625
16626 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16627
16628 [BZ #22896]
16629 * localedata/locales/an_ES: update month and day names,
16630 improve d_fmt, improve postal_fmt, add country_post,
16631 add country_isbn
16632
16633 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16634
16635 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
16636 Ukrainian instead of Bulgarian.
16637
16638 2018-03-01 Florian Weimer <fweimer@redhat.com>
16639
16640 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
16641 reference.
16642
16643 2018-03-01 Florian Weimer <fweimer@redhat.com>
16644
16645 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
16646 * nptl/Makefile (routines): Add pthread_atfork.
16647 (static-only-routines): Set to pthread_atfork.
16648 (libpthread-routines): Remove pthread_atfork.
16649 (libpthread-static-only-routines): Remove.
16650 (install): Update comment.
16651 (libpthread.so): Do not install libpthread_nonshared.a.
16652 (tests): Do not link with libpthread_nonshared.a.
16653 (generated): Remove libpthread_nonshared.a.
16654 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
16655 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
16656 with libpthread_nonshared.a.
16657
16658 2018-02-28 Joseph Myers <joseph@codesourcery.com>
16659
16660 [BZ #22902]
16661 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
16662 (libc_feholdexcept_setroundf128): New macro.
16663 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
16664
16665 [BZ #15105]
16666 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
16667 libc_hidden_def.
16668 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
16669 * include/inttypes.h: New file.
16670
16671 2018-02-27 Joseph Myers <joseph@codesourcery.com>
16672
16673 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
16674 -Os in two more places.
16675
16676 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16677
16678 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
16679 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
16680 be sorted correctly at the moment because of a bug.
16681
16682 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16683
16684 [BZ #22550] - es_ES locale (and other es_* locales): collation should
16685 treat ñ as a primary different character, sync the collation
16686 for Spanish with CLDR.
16687 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
16688 * localedata/Makefile: Add new test files.
16689 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
16690 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
16691 collation order.
16692 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
16693 * localedata/am_ET.UTF-8.in: New test file.
16694 * localedata/az_AZ.UTF-8.in: Likewise.
16695 * localedata/be_BY.UTF-8.in: Likewise.
16696 * localedata/ber_DZ.UTF-8.in: Likewise.
16697 * localedata/ber_MA.UTF-8.in: Likewise.
16698 * localedata/bg_BG.UTF-8.in: Likewise.
16699 * localedata/br_FR.UTF-8.in: Likewise.
16700 * localedata/cmn_TW.UTF-8.in: Likewise.
16701 * localedata/crh_UA.UTF-8.in: Likewise.
16702 * localedata/csb_PL.UTF-8.in: Likewise.
16703 * localedata/cv_RU.UTF-8.in: Likewise.
16704 * localedata/cy_GB.UTF-8.in: Likewise.
16705 * localedata/dz_BT.UTF-8.in: Likewise.
16706 * localedata/eo.UTF-8.in: Likewise.
16707 * localedata/es_ES.UTF-8.in: Likewise.
16708 * localedata/fa_IR.UTF-8.in: Likewise.
16709 * localedata/fi_FI.UTF-8.in: Likewise.
16710 * localedata/fil_PH.UTF-8.in: Likewise.
16711 * localedata/fur_IT.UTF-8.in: Likewise.
16712 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
16713 * localedata/ha_NG.UTF-8.in: Likewise.
16714 * localedata/ig_NG.UTF-8.in: Likewise.
16715 * localedata/ik_CA.UTF-8.in: Likewise.
16716 * localedata/kk_KZ.UTF-8.in: Likewise.
16717 * localedata/ku_TR.UTF-8.in: Likewise.
16718 * localedata/ky_KG.UTF-8.in: Likewise.
16719 * localedata/ln_CD.UTF-8.in: Likewise.
16720 * localedata/mi_NZ.UTF-8.in: Likewise.
16721 * localedata/ml_IN.UTF-8.in: Likewise.
16722 * localedata/mn_MN.UTF-8.in: Likewise.
16723 * localedata/mr_IN.UTF-8.in: Likewise.
16724 * localedata/mt_MT.UTF-8.in: Likewise.
16725 * localedata/nb_NO.UTF-8.in: Likewise.
16726 * localedata/om_KE.UTF-8.in: Likewise.
16727 * localedata/os_RU.UTF-8.in: Likewise.
16728 * localedata/ps_AF.UTF-8.in: Likewise.
16729 * localedata/ro_RO.UTF-8.in: Likewise.
16730 * localedata/ru_RU.UTF-8.in: Likewise.
16731 * localedata/sc_IT.UTF-8.in: Likewise.
16732 * localedata/se_NO.UTF-8.in: Likewise.
16733 * localedata/sq_AL.UTF-8.in: Likewise.
16734 * localedata/sv_SE.UTF-8.in: Likewise.
16735 * localedata/szl_PL.UTF-8.in: Likewise.
16736 * localedata/tg_TJ.UTF-8.in: Likewise.
16737 * localedata/tk_TM.UTF-8.in: Likewise.
16738 * localedata/tt_RU.UTF-8.in: Likewise.
16739 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
16740 * localedata/ug_CN.UTF-8.in: Likewise.
16741 * localedata/uz_UZ.UTF-8.in: Likewise.
16742 * localedata/vi_VN.UTF-8.in: Likewise.
16743 * localedata/yi_US.UTF-8.in: Likewise.
16744 * localedata/yo_NG.UTF-8.in: Likewise.
16745 * localedata/zh_CN.UTF-8.in: Likewise.
16746 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
16747 file and fix bugs in the collation.
16748 * localedata/locales/az_AZ: Likewise.
16749 * localedata/locales/be_BY: Likewise.
16750 * localedata/locales/ber_DZ: Likewise.
16751 * localedata/locales/ber_MA: Likewise.
16752 * localedata/locales/bg_BG: Likewise.
16753 * localedata/locales/br_FR: Likewise.
16754 * localedata/locales/br_FR@euro: Likewise.
16755 * localedata/locales/ca_ES: Likewise.
16756 * localedata/locales/cns11643_stroke: Likewise.
16757 * localedata/locales/crh_UA: Likewise.
16758 * localedata/locales/cs_CZ: Likewise.
16759 * localedata/locales/csb_PL: Likewise.
16760 * localedata/locales/cv_RU: Likewise.
16761 * localedata/locales/cy_GB: Likewise.
16762 * localedata/locales/da_DK: Likewise.
16763 * localedata/locales/dz_BT: Likewise.
16764 * localedata/locales/en_CA: Likewise.
16765 * localedata/locales/eo: Likewise.
16766 * localedata/locales/es_CU: Likewise.
16767 * localedata/locales/es_EC: Likewise.
16768 * localedata/locales/es_ES: Likewise.
16769 * localedata/locales/es_US: Likewise.
16770 * localedata/locales/et_EE: Likewise.
16771 * localedata/locales/fa_IR: Likewise.
16772 * localedata/locales/fi_FI: Likewise.
16773 * localedata/locales/fil_PH: Likewise.
16774 * localedata/locales/fur_IT: Likewise.
16775 * localedata/locales/gez_ER@abegede: Likewise.
16776 * localedata/locales/ha_NG: Likewise.
16777 * localedata/locales/hr_HR: Likewise.
16778 * localedata/locales/hsb_DE: Likewise.
16779 * localedata/locales/hu_HU: Likewise.
16780 * localedata/locales/ig_NG: Likewise.
16781 * localedata/locales/ik_CA: Likewise.
16782 * localedata/locales/is_IS: Likewise.
16783 * localedata/locales/iso14651_t1_pinyin: Likewise.
16784 * localedata/locales/kk_KZ: Likewise.
16785 * localedata/locales/ku_TR: Likewise.
16786 * localedata/locales/ky_KG: Likewise.
16787 * localedata/locales/ln_CD: Likewise.
16788 * localedata/locales/lt_LT: Likewise.
16789 * localedata/locales/lv_LV: Likewise.
16790 * localedata/locales/mi_NZ: Likewise.
16791 * localedata/locales/ml_IN: Likewise.
16792 * localedata/locales/mn_MN: Likewise.
16793 * localedata/locales/mr_IN: Likewise.
16794 * localedata/locales/mt_MT: Likewise.
16795 * localedata/locales/nb_NO: Likewise.
16796 * localedata/locales/om_KE: Likewise.
16797 * localedata/locales/os_RU: Likewise.
16798 * localedata/locales/pl_PL: Likewise.
16799 * localedata/locales/ps_AF: Likewise.
16800 * localedata/locales/ro_RO: Likewise.
16801 * localedata/locales/ru_RU: Likewise.
16802 * localedata/locales/ru_UA: Likewise.
16803 * localedata/locales/sc_IT: Likewise.
16804 * localedata/locales/se_NO: Likewise.
16805 * localedata/locales/si_LK: Likewise.
16806 * localedata/locales/sq_AL: Likewise.
16807 * localedata/locales/sv_FI: Likewise.
16808 * localedata/locales/sv_FI@euro: Likewise.
16809 * localedata/locales/sv_SE: Likewise.
16810 * localedata/locales/szl_PL: Likewise.
16811 * localedata/locales/tg_TJ: Likewise.
16812 * localedata/locales/ti_ER: Likewise.
16813 * localedata/locales/tk_TM: Likewise.
16814 * localedata/locales/tl_PH: Likewise.
16815 * localedata/locales/tr_TR: Likewise.
16816 * localedata/locales/tt_RU: Likewise.
16817 * localedata/locales/tt_RU@iqtelif: Likewise.
16818 * localedata/locales/ug_CN: Likewise.
16819 * localedata/locales/uk_UA: Likewise.
16820 * localedata/locales/uz_UZ: Likewise.
16821 * localedata/locales/uz_UZ@cyrillic: Likewise.
16822 * localedata/locales/vi_VN: Likewise.
16823 * localedata/locales/yi_US: Likewise.
16824 * localedata/locales/yo_NG: Likewise.
16825
16826 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16827
16828 * gen-locales.mk: Make test files which contain @ modifiers in their
16829 name work.
16830 * localedata/gen-locale.sh: Likewise.
16831
16832 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16833
16834 * posix/tst-fnmatch.input: Fix results for range expressions
16835 for non C locales.
16836 * posix/tst-regexloc.c: Do not use a range expression for
16837 de_DE.ISO-8859-1 locale.
16838
16839 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16840
16841 * posix/bug-regex5.c: Fix test case because with the new
16842 iso14651_t1_common file, the da_DK locale now has 6 collating elements
16843 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
16844 file.
16845
16846 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16847
16848 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
16849 downloaded from ISO, the collation order of @-. and space has changed.
16850 Therefore, this test file needed to be adapted.
16851 * localedata/fr_CA.UTF-8.in: Likewise.
16852 * localedata/fr_FR.UTF-8.in: Likewise.
16853 * localedata/uk_UA.UTF-8.in: Likewise.
16854
16855 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16856
16857 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
16858 order of ȥ in the new iso14651_t1_common file.
16859 * localedata/pl_PL.UTF-8.in: Likewise.
16860
16861 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16862
16863 * localedata/locales/iso14651_t1_common: Add sections for various
16864 scripts to the iso14651_t1_common file.
16865
16866 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16867
16868 * localedata/locales/iso14651_t1_common: Use the code point of a
16869 character in the fourth collation level instead of IGNORE for all
16870 entries which have IGNORE on all 4 levels.
16871
16872 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16873
16874 * localedata/locales/iso14651_t1_common: Add some convenient collation
16875 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
16876 rules similar to those in CLDR.
16877
16878 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16879
16880 * localedata/locales/iso14651_t1_common: The new version of this
16881 file downloaded from ISO contained several syntax errors which
16882 are fixed by this patch.
16883
16884 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16885
16886 * localedata/locales/iso14651_t1_common: replace all <U.....>
16887 with <U000.....> because glibc understands only 4 digit or 8 digit
16888
16889 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16890
16891 * localedata/locales/iso14651_t1_common: Necessary changes
16892 to make the file downloaded from ISO usable by glibc.
16893
16894 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16895
16896 [BZ #14095]
16897 * localedata/locales/iso14651_t1_common: Update file to
16898 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
16899
16900 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16901
16902 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
16903 of <nptl/pthreadP.h>
16904 (thread_attr_compare): Move function to...
16905 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
16906 * sysdeps/nptl/timer_routines.h: ... new header.
16907 * sysdeps/mach/hurd/gai_misc.h: New file.
16908
16909 2018-02-26 Joseph Myers <joseph@codesourcery.com>
16910
16911 * string/strcoll_l.c: Include <libc-diag.h>.
16912 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
16913 declarations of seq1 and seq2.
16914
16915 [BZ #15105]
16916 * stdlib/atoi.c (atoi): Use libc_hidden_def.
16917 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
16918
16919 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
16920
16921 [BZ #22433]
16922 [BZ #22807]
16923 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
16924 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
16925 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
16926 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
16927 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
16928 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
16929
16930 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16931
16932 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
16933 macros used in __ptrace_request.
16934
16935 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
16936
16937 [BZ #22792]
16938 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
16939 to $(CC).
16940 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
16941 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
16942 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
16943 <tcb-offsets.h>.
16944
16945 2018-02-23 Joseph Myers <joseph@codesourcery.com>
16946
16947 [BZ #15105]
16948 * ctype/ctype.c (tolower): Use libc_hidden_def.
16949 (toupper): Likewise.
16950 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
16951 [!_ISOMAC] (toupper): Likewise.
16952
16953 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16954
16955 * localedata/Makefile: Remove --quiet argument when
16956 installing locales
16957
16958 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16959
16960 [BZ #17438]
16961 * localedata/locales/pt_BR (LC_TIME): use / instead of -
16962 in d_fmt.
16963 * localedata/locales/pt_PT (LC_TIME): likewise
16964
16965 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16966
16967 [BZ #22646]
16968 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
16969 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
16970 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
16971
16972 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16973
16974 * sysdeps/sparc/fpu/libm-test-ulps: Update.
16975
16976 * nptl/Makefile (routines): Remove unregister-atfork.
16977 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
16978 (fork_handler_alloc): Remove function.
16979 (fork_handlers, fork_handler_init): New variables.
16980 (__fork_lock): Rename to atfork_lock.
16981 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
16982 to use a dynamic array to add/remove atfork handlers.
16983 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
16984 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
16985 Remove declaration.
16986 (fork_handler): Remove next, refcntr, and need_signal member.
16987 (__run_fork_handler_type): New enum.
16988 (__run_fork_handlers): New prototype.
16989 * nptl/register-atfork.c: Remove file.
16990 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
16991
16992 * sysdeps/nptl/nptl-signals.h: Move to ...
16993 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
16994 comments.
16995 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
16996 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
16997 unnecessary check for SIGTIMER.
16998 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
16999 remove unnecessary removal of SIGTIMER.
17000 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17001 include-signals.h rename.
17002 * nptl/pthreadP.h: Likewise.
17003 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17004 __is_internal_signal instead of __nptl_is_internal_signal.
17005
17006 2018-02-22 Andrew Waterman <andrew@sifive.com>
17007
17008 [BZ # 22884]
17009 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17010 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17011 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17012 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17013
17014 2018-02-22 DJ Delorie <dj@delorie.com>
17015
17016 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17017
17018 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17019
17020 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17021 do_misaligned, not misaligned8.
17022
17023 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17024
17025 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17026 Add memcpy_thunderx2.
17027 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17028 Increment to 4.
17029 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17030 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17031 and IS_THUNDERX2PA checks.
17032 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17033 Use macro to set name appropriately.
17034 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17035 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17036 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17037 New macro.
17038 (IS_THUNDERX2): New macro.
17039
17040 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17041
17042 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17043
17044 2018-02-21 Zack Weinberg <zackw@panix.com>
17045
17046 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17047 Define here, unconditionally.
17048 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17049 * libio/libioP.h: Remove #if 0 blocks.
17050 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17051 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17052 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17053
17054 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17055 Assume weak_alias is always defined.
17056
17057 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17058 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17059 Remove #if 0 and #ifdef TODO blocks.
17060 Assume text_set_element is always defined.
17061
17062 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17063 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17064 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17065
17066 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17067 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17068 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17069 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17070 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17071 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17072 Reformat bit flags for _flags field to make occupancy clearer.
17073 Update commentary.
17074 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17075 Keep definitions consistent with those in libio/libio.h.
17076
17077 * libio/libio.h (_IO_file_flags): Remove macro.
17078 All uses changed to _flags.
17079
17080 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17081 (__HAVE_COLUMN, _IO_BE): Don't define.
17082 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17083 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17084 * libio/libioP.h (EOF): Don't define.
17085 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17086 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17087 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17088 testing _IO_UNIFIED_JUMPTABLES.
17089
17090 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17091 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17092 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17093 (_IO_size_t): Delete; all uses changed to size_t.
17094 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17095 (_IO_off_t): Delete; all uses changed to off_t.
17096 (_IO_off64_t): Delete; all uses changed to off64_t.
17097 (_IO_pid_t): Delete; all uses changed to pid_t.
17098 (_IO_uid_t): Delete; all uses changed to uid_t.
17099 (_IO_wint_t): Delete; all uses changed to wint_t.
17100 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17101 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17102 (_IO_cookie_io_functions_t): Delete; all uses changed to
17103 cookie_io_functions_t.
17104 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17105 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17106 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17107 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17108
17109 * libio/iofopncook.c: Remove unnecessary forward declarations.
17110 * libio/iolibio.h: Correct outdated commentary.
17111 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17112 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17113 Remove unnecessary casts.
17114 * stdio-common/getline.c: Use _IO_getdelim directly.
17115 Don't redefine ssize_t.
17116 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17117 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17118 Remove outdated comments.
17119 * stdio-common/vfscanf.c: Don't redefine va_list.
17120
17121 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17122 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17123 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17124 which are always true, and __cplusplus, which is always false.
17125
17126 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17127
17128 [BZ #15105]
17129 [BZ #19463]
17130 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17131 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17132 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17133 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17134 libc_hidden_proto.
17135 [!_ISOMAC] (putc_unlocked): Likewise.
17136 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17137 define inline if [__USE_EXTERN_INLINES].
17138 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17139 putc_unlocked.
17140
17141 [BZ #15105]
17142 [BZ #19463]
17143 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17144 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17145 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17146 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17147 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17148 getc_unlocked.
17149 * time/tzfile.c (__tzfile_read): Likewise.
17150
17151 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17152
17153 [BZ #22517]
17154 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17155
17156 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17157
17158 * io/fcntl.h: Fix a typo in a comment.
17159
17160 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17161
17162 [BZ #22862]
17163 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17164 define _DEFAULT_SOURCE.
17165 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17166
17167 2018-02-21 Florian Weimer <fweimer@redhat.com>
17168
17169 [BZ #20890]
17170 * elf/cache.c (save_cache): Call fsync on temporary file before
17171 renaming it.
17172 (save_aux_cache): Call fdatasync on temporary file before renaming
17173 it.
17174
17175 2018-02-21 Florian Weimer <fweimer@redhat.com>
17176
17177 [BZ #22787]
17178 * include/caller.h: Remove file.
17179 * elf/dl-caller.c: Likewise.
17180 * elf/Makefile (dl-routines): Remove dl-caller.
17181 (shared-only-routines): Do not add dl-caller.
17182 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17183 __check_caller.
17184 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17185 member.
17186 (dl_open_worker): Do not call __check_caller.
17187 (_dl_open): Do not set caller_dl_open member.
17188 * elf/rtld.c (_rtld_global_ro): Do not initialize
17189 _dl_check_caller member.
17190 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17191 _dl_check_caller member.
17192 (_dl_check_caller): Remove declaration.
17193 * sysdeps/unix/sysv/linux/dl-execstack.c
17194 (_dl_make_stack_executable): Do not call __check_caller.
17195
17196 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17197
17198 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17199 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17200
17201 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17202
17203 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17204 description.
17205
17206 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17207
17208 [BZ #16335]
17209 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17210 of 199606L, 200112L, and 200809L.
17211 (_XOPEN_SOURCE): Document special values of 600 and 700.
17212 (_ISOC11_SOURCE): Document macro.
17213 (_ATFILE_SOURCE): Likewise.
17214 (_FORTIFY_SOURCE): Likewise.
17215
17216 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17217
17218 [BZ #15105]
17219 [BZ #19463]
17220 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17221 and define as weak alias of __ferror_unlocked. Use
17222 libc_hidden_weak.
17223 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17224 libc_hidden_proto.
17225 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17226 function if [__USE_EXTERN_INLINES].
17227 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17228 ferror_unlocked.
17229
17230 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17231
17232 [BZ #6889]
17233 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17234
17235 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17236
17237 [BZ #22818]
17238 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17239 the GLIBC_2.1 version.
17240
17241 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17242
17243 [BZ #21508]
17244 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17245 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17246 intl/tst-gettext-de.po from po/de.po by removing the
17247 POT-Creation-Date line.
17248 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17249 ../po/de.po.
17250 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17251 ../po/de.po.
17252
17253 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17254
17255 * mach/Makefile (headers): Add mach/param.h.
17256 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17257 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17258 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17259 (__ptsname_r): Move implementation to...
17260 (__ptsname_internal): ... new function. Add filling the STP
17261 structure.
17262
17263 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17264
17265 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17266 idouble to 1 ULP.
17267
17268 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17269
17270 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17271 syntax.
17272
17273 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17274
17275 * nptl/Makefile (tst-mutex8-ENV): Delete.
17276 * nptl/tst-mutex8.c (check_type):
17277 Add runtime check if mutex will be elided.
17278
17279 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17280
17281 [BZ #20980]
17282 [BZ #21234]
17283 * manual/install.texi (Configuring and compiling): Describe
17284 passing CC and CFLAGS on configure command line, not as
17285 environment variables. Use @code markup on those variables.
17286 Specify what options go in CC and what go in CFLAGS. Note the
17287 requirement to compile with optimization.
17288 * INSTALL: Regenerated.
17289
17290 [BZ #18124]
17291 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17292 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17293 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17294 __sigprocmask instead of sigprocmask.
17295 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17296 Likewise.
17297 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17298 __sigsetjmp and sigprocmask.
17299
17300 [BZ #15105]
17301 * include/argz.h (argz_next): Use libc_hidden_proto.
17302 (__argz_next): Likewise.
17303 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17304 (argz_next): Use libc_hidden_weak.
17305
17306 [BZ #15105]
17307 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17308 libc_hidden_proto.
17309 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17310 libc_hidden_def.
17311
17312 [BZ #15105]
17313 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17314 libc_hidden_proto.
17315 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17316
17317 [BZ #15105]
17318 [BZ #19463]
17319 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17320 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17321 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17322 (__feof_unlocked): New declaration, and inline function if
17323 [__USE_EXTERN_INLINES].
17324 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17325 instead of feof_unlocked.
17326 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17327 * nss/nsswitch.c (nss_parse_file): Likewise.
17328 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17329 Likewise.
17330 * time/getdate.c (__getdate_r): Likewise.
17331 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17332 Define as macro to call __feof_unlocked.
17333
17334 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17335
17336 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17337
17338 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17339
17340 * math/Makefile: Remove mpexp.c and mplog.c
17341 * sysdeps/i386/fpu/mpexp.c: Delete file.
17342 * sysdeps/i386/fpu/mplog.c: Likewise.
17343 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17344 * sysdeps/ia64/fpu/mplog.c: Likewise.
17345 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17346 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17347 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17348 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17349 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17350 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17351 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17352 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17353 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17354 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17355 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17356 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17357 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17358 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17359 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17360 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17361
17362 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17363
17364 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17365
17366 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17367
17368 * sysdeps/sh/libm-test-ulps: Update.
17369
17370 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17371
17372 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17373 idouble to 1 ULP.
17374
17375 2018-02-12 Zack Weinberg <zackw@panix.com>
17376
17377 [BZ #19239]
17378 * posix/sys/types.h: Don't include sys/sysmacros.h.
17379 * misc/sys/sysmacros.h: Remove the conditional deprecation
17380 warnings for the macros defined by this header.
17381
17382 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17383
17384 * manual/probes.texi: Remove slowexp probes.
17385 * math/Makefile: Remove slowexp.
17386 * sysdeps/generic/math_private.h (__slowexp): Remove.
17387 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17388 document error bounds.
17389 * sysdeps/i386/fpu/slowexp.c: Remove.
17390 * sysdeps/ia64/fpu/slowexp.c: Remove.
17391 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17392 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17393 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17394 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17395 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17396 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17397 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17398 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17399 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17400 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17401 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17402
17403 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17404
17405 [BZ #13932]
17406 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17407 * benchtests/pow-inputs: Update comment for slow path cases.
17408 * manual/probes.texi (slowpow_p10): Delete removed probe.
17409 (slowpow_p10): Likewise.
17410 * math/Makefile: Remove halfulp.c and slowpow.c.
17411 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17412 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17413 (__halfulp): Remove.
17414 (__slowpow): Remove.
17415 * sysdeps/i386/fpu/halfulp.c: Delete file.
17416 * sysdeps/i386/fpu/slowpow.c: Likewise.
17417 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17418 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17419 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17420 improve comments and add error analysis.
17421 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17422 (power1): Remove function:
17423 (log1): Remove error argument, add error analysis.
17424 (my_log2): Remove function.
17425 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17426 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17427 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17428 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17429 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17430 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17431 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17432 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17433 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17434 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17435 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17436 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17437 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17438 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17439
17440 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17441
17442 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17443 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17444
17445 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17446
17447 [BZ #22433]
17448 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17449 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17450 and PTRACE_SETHBPREGS.
17451
17452 2018-02-10 Zack Weinberg <zackw@panix.com>
17453
17454 [BZ #22830]
17455 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17456 correctly.
17457 * malloc/tst-malloc-stats-cancellation.c: New test case.
17458 * malloc/Makefile: Add new test case.
17459
17460 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17461
17462 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17463
17464 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17465
17466 * math/Makefile (libm-narrow-fns): Add add.
17467 (libm-test-funcs-narrow): Likewise.
17468 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17469 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17470 * math/gen-auto-libm-tests.c (test_functions): Add add.
17471 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17472 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17473 (NARROW_ADD_TRIVIAL): Likewise.
17474 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17475 macro.
17476 (__daddl): Likewise.
17477 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17478 dadd.
17479 (CFLAGS-nldbl-dadd.c): New variable.
17480 (CFLAGS-nldbl-fadd.c): Likewise.
17481 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17482 __nldbl_daddl.
17483 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17484 prototype.
17485 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17486 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17487 * math/auto-libm-test-in: Add tests of add.
17488 * math/auto-libm-test-out-narrow-add: New generated file.
17489 * math/libm-test-narrow-add.inc: New file.
17490 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17491 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17492 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17493 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17494 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17495 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17496 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17497 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17498 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17499 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17500 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17501 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17502 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17503 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17504 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17505 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17506 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17507 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17508 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17509 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17510 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17511 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17512 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17513 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17514 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17515 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17516 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17517 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17518 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17519 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17520 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17521 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17522 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17524 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17526 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17527 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17528 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17529 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17530 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17531 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17532 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17533 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17534 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17535 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17536
17537 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
17538 (f128-pairs): New variable.
17539 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
17540 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
17541 to CFLAGS.
17542 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
17543 Also make tests add $(f128-loader-link) to gnulib-tests.
17544
17545 2018-02-09 DJ Delorie <dj@redhat.com>
17546
17547 [BZ #22827]
17548 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
17549 64-bit ELF type for 64-bit ELF objects.
17550
17551 2018-02-09 Joseph Myers <joseph@codesourcery.com>
17552
17553 * math/libm-test-driver.c (snan_tests_arg): New variable.
17554 * math/libm-test-support.h (snan_tests_arg): New declaration.
17555 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
17556
17557 * math/Makefile (test-type-pairs): New variable.
17558 (test-type-pairs-f64xf128-yes): Likewise.
17559 (tests): Add test-narrow-macros.
17560 (libm-test-funcs-narrow): New variable.
17561 (libm-test-c-narrow): Likewise.
17562 (generated): Add $(libm-test-c-narrow).
17563 (libm-tests-base-narrow): New variable.
17564 (libm-tests-narrow): Likewise.
17565 (libm-tests): Add $(libm-tests-narrow).
17566 (libm-tests-for-type): Handle $(libm-tests-narrow).
17567 (libm-test-c-narrow-obj): New variable.
17568 ($(libm-test-c-narrow-obj)): New rule.
17569 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
17570 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
17571 $(o-iterator) to set dependencies and CFLAGS.
17572 * math/gen-auto-libm-tests.c: Document use for narrowing
17573 functions.
17574 (output_for_one_input_case): Take argument NARROW.
17575 (generate_output): Likewise. Update call to
17576 output_for_one_input_case.
17577 (main): Take --narrow option. Update call to generate_output.
17578 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
17579 (apply_lit): Update call to _apply_lit.
17580 (apply_arglit): New function.
17581 (parse_args): Handle "a" arguments.
17582 (parse_auto_input): Handle format names using ":".
17583 * math/README.libm-test: Document "a" parameter type.
17584 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
17585 (ARG_TYPE_TRUE_MIN): Likewise.
17586 (ARG_TYPE_MAX): Likwise.
17587 (ARG_MIN_EXP): Likewise.
17588 (ARG_MAX_EXP): Likewise.
17589 (ARG_MANT_DIG): Likewise.
17590 (TEST_COND_arg_ibm128): Likewise.
17591 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
17592 (TEST_COND_arg_fmt): New macro.
17593 (init_max_error): Update prototype.
17594 * math/libm-test-support.c (test_ibm128): New variable.
17595 (init_max_error): Take argument testing_ibm128 and set test_ibm128
17596 instead of using [TEST_COND_ibm128] conditional.
17597 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
17598 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
17599 [TEST_NARROW] (TEST_MSG): New definition.
17600 (arg_plus_zero): New macro.
17601 (arg_minus_zero): Likewise.
17602 (arg_plus_infty): Likewise.
17603 (arg_minus_infty): Likewise.
17604 (arg_qnan_value_pl): Likewise.
17605 (arg_qnan_value): Likewise.
17606 (arg_snan_value_pl): Likewise.
17607 (arg_snan_value): Likewise.
17608 (arg_max_value): Likewise.
17609 (arg_min_value): Likewise.
17610 (arg_min_subnorm_value): Likewise.
17611 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
17612 (RUN_TEST_LOOP_aa_f): New macro.
17613 (TEST_SUFF): New macro.
17614 (TEST_SUFF_STR): Likewise.
17615 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
17616 (TEST_COND_any_ibm128): New macro.
17617 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
17618 this_func. Update call to init_max_error.
17619 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
17620 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
17621 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
17622 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
17623 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
17624 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
17625 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
17626 * math/test-math-scalar.h (TEST_NARROW): Likewise.
17627 * math/test-math-vector.h (TEST_NARROW): Likewise.
17628 * math/test-arg-double.h: New file.
17629 * math/test-arg-float128.h: Likewise.
17630 * math/test-arg-float32x.h: Likewise.
17631 * math/test-arg-float64.h: Likewise.
17632 * math/test-arg-float64x.h: Likewise.
17633 * math/test-arg-ldouble.h: Likewise.
17634 * math/test-math-narrow.h: Likewise.
17635 * math/test-narrow-macros.c: Likewise.
17636 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
17637 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
17638 test-narrow-macros-ldbl-64.
17639 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
17640
17641 * math/bits/mathcalls-narrow.h: New file.
17642 * include/bits/mathcalls-narrow.h: Likewise.
17643 * math/math-narrow.h: Likewise.
17644 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
17645 (__MATHCALL_NARROW_ARGS_2): Likewise.
17646 (__MATHCALL_NARROW_ARGS_3): Likewise.
17647 (__MATHCALL_NARROW_NORMAL): Likewise.
17648 (__MATHCALL_NARROW_REDIR): Likewise.
17649 (__MATHCALL_NARROW): Likewise.
17650 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
17651 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
17652 defined.
17653 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
17654 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
17655 (libm-narrow-fns): New variable.
17656 (libm-narrow-types-basic): Likewise.
17657 (libm-narrow-types-ldouble-yes): Likewise.
17658 (libm-narrow-types-float128-yes): Likewise.
17659 (libm-narrow-types-float128-alias-yes): Likewise.
17660 (libm-narrow-types): Likewise.
17661 (libm-routines): Add narrowing functions.
17662 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
17663 (libc_feholdexcept_setroundf128): New macro.
17664 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
17665 * sysdeps/ieee754/float128/float128_private.h: Include
17666 <math/math-narrow.h>.
17667 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
17668 Undefine and redefine.
17669 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
17670 (libm_alias_float_ldouble): Undefine and redefine.
17671 (libm_alias_double_ldouble): Likewise.
17672
17673 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
17674
17675 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
17676
17677 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
17678 FPCR/FPSR.
17679
17680 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
17681
17682 * manual/creature.texi: Convert references to gcc.info to gcc.
17683 * manual/stdio.texi: Likewise.
17684 * manual/string.texi: Likewise.
17685
17686 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17687
17688 [BZ #17979]
17689 * posix/bits/types.h (__int_least8_t): New typedef.
17690 (__uint_least8_t): Likewise.
17691 (__int_least16_t): Likewise.
17692 (__uint_least16_t): Likewise.
17693 (__int_least32_t): Likewise.
17694 (__uint_least32_t): Likewise.
17695 (__int_least64_t): Likewise.
17696 (__uint_least64_t): Likewise.
17697 * sysdeps/generic/stdint.h (int_least8_t): Define using
17698 __int_least8_t.
17699 (int_least16_t): Define using __int_least16_t.
17700 (int_least32_t): Define using __int_least32_t.
17701 (int_least64_t): Define using __int_least64_t.
17702 (uint_least8_t): Define using __uint_least8_t.
17703 (uint_least16_t): Define using __uint_least16_t.
17704 (uint_least32_t): Define using __uint_least32_t.
17705 (uint_least64_t): Define using __uint_least64_t.
17706 * wcsmbs/uchar.h: Include <bits/types.h>.
17707 (char16_t): Define using __uint_least16_t conditional only on
17708 [!__USE_ISOCXX11].
17709 (char32_t): Define using __uint_least32_t conditional only on
17710 [!__USE_ISOCXX11].
17711 * wcsmbs/test-char-types.c: New file.
17712 * wcsmbs/Makefile (tests): Add test-char-types.
17713
17714 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
17715 version to 4.0.1.
17716
17717 2018-02-07 Zack Weinberg <zackw@panix.com>
17718
17719 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
17720 Delete all contents except for definitions of _G_HAVE_MMAP and
17721 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
17722 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
17723 sysdeps/unix/sysv/linux/_G_config.h. Make same content
17724 change as above.
17725
17726 * libio/libio.h: Don't include bits/_G_config.h here.
17727 Include stddef.h with __need_wchar_t defined. Include
17728 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
17729 Define _IO_iconv_t here, directly.
17730 Don't define _IO_HAVE_ST_BLKSIZE.
17731 * libio/libioP.h: Include _G_config.h here. Move include of
17732 shlib-compat.h up with rest of includes. Simplify conditionals
17733 controlling definition of _IO_JUMPS_OFFSET.
17734
17735 * csu/init.c: Remove always-true #if around entire file.
17736 Don't include stdio.h. Set _IO_stdin_used to hardwired
17737 constant 0x20001, and update commentary.
17738 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
17739 Replace all uses of _G_va_list with __gnuc_va_list.
17740 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
17741 instead of #if _IO_HAVE_ST_BLKSIZE.
17742 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
17743 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
17744 not #ifdef.
17745
17746 * libio/bits/libio.h: Move back to libio/libio.h and adjust
17747 multiple-include guard to match.
17748 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
17749 into this file.
17750 Remove preprocessor conditionals that are always true and/or
17751 redundant to other preprocessor conditionals in the same nest.
17752 Include shlib-compat.h unconditionally.
17753 Error out if _LIBC is not defined, or if _ISOMAC is defined,
17754 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
17755 defined after including stdio.h.
17756 Use __BEGIN_DECLS/__END_DECLS.
17757
17758 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
17759 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
17760 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
17761
17762 2018-02-07 Zack Weinberg <zackw@panix.com>
17763
17764 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
17765 New single-type headers split from _G_config.h.
17766 * libio/bits/types/cookie_io_functions_t.h
17767 * libio/bits/types/struct_FILE.h
17768 New single-type headers split from libio.h.
17769
17770 * libio/Makefile: Install the above new headers. Don't install
17771 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
17772 bits/libio-ldbl.h.
17773 * libio/_G_config.h, libio/libio.h: Delete file.
17774
17775 * libio/bits/libio.h: Remove improper-inclusion guard.
17776 Include stdio.h and don't repeat anything that it does.
17777 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
17778 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
17779 __io_read_fn as cookie_read_function_t,
17780 __io_write_fn as cookie_write_function_t,
17781 __io_seek_fn as cookie_seek_function_t,
17782 __io_close_fn as cookie_close_function_t,
17783 and _IO_cookie_io_functions_t as cookie_io_functions_t.
17784 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
17785 here, in the "compatibility defines" section. Remove an #if 0
17786 block. Use the "body" macros from bits/types/struct_FILE.h to
17787 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
17788 and _IO_ferror_unlocked.
17789 Move prototypes of __uflow and __overflow...
17790
17791 * libio/stdio.h: ...here. Don't include bits/libio.h.
17792 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
17793 directly from stdarg.h. Include bits/types/__fpos_t.h,
17794 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
17795 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
17796 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
17797 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
17798 cookie_io_functions_t, not _IO_cookie_io_functions_t;
17799 __ssize_t, not _IO_ssize_t. Unconditionally define
17800 BUFSIZ as 8192 and EOF as (-1).
17801
17802 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
17803 macros from bits/types/struct_FILE.h instead of _IO_* macros
17804 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
17805 instead of _IO_ssize_t.
17806 * libio/bits/stdio2.h: Similarly.
17807
17808 * libio/iolibio.h: Add multiple-include guard.
17809 Include bits/libio.h after stdio.h.
17810 * libio/libioP.h: Add multiple-include guard.
17811 Include stdio.h and bits/libio.h before iolibio.h.
17812
17813 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
17814 * include/bits/types/cookie_io_functions_t.h
17815 * include/bits/types/struct_FILE.h: New wrappers.
17816
17817 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
17818 Get definitions of _G_fpos_t and _G_fpos64_t from
17819 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
17820 respectively. Remove improper-inclusion guards.
17821
17822 * conform/data/stdio.h-data: Update expectations of va_list.
17823 * scripts/check-installed-headers.sh: Remove special case for
17824 libio.h and _G_config.h.
17825
17826 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17827
17828 [BZ #15105]
17829 [BZ #19463]
17830 * include/sys/sysmacros.h [!_ISOMAC]
17831 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
17832 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
17833 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
17834 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
17835 libc_hidden_proto.
17836 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
17837 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
17838 Likewise.
17839 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
17840 Undefine and redefine to add use __gnu_dev_ prefix.
17841 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
17842 Likewise.
17843 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
17844 and define as hidden inline function.
17845 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
17846 Likewise.
17847 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
17848 Likewise.
17849 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
17850 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
17851 (gnu_dev_minor): Likewise.
17852 (gnu_dev_makedev): Likewise.
17853 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
17854 makedev.
17855 * posix/wordexp.c (exec_comm_child): Likewise.
17856 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
17857 instead of minor and __gnu_dev_major instead of major.
17858 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
17859 __gnu_dev_major instead of major.
17860 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
17861 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
17862 instead of gnu_dev_minor.
17863 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
17864 (SLAVE_P): Likewise.
17865 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
17866 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
17867 instead of major.
17868
17869 [BZ #21313]
17870 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
17871 in another place.
17872 * locale/weightwc.h (findidx): Likewise.
17873
17874 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
17875
17876 * manual/probes.texi (slowlog): Delete documentation of removed probe.
17877 (slowlog_inexact): Likewise
17878 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
17879 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
17880
17881 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
17882
17883 [BZ #22797]
17884 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
17885 missing second underscore to parameter name.
17886
17887 2018-02-06 Joseph Myers <joseph@codesourcery.com>
17888
17889 [BZ #14508]
17890 [BZ #15512]
17891 [BZ #17082]
17892 [BZ #20530]
17893 * bits/byteswap.h: Update file comment. Do not include
17894 <bits/byteswap-16.h>.
17895 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
17896 constant.
17897 (__bswap_16): Define as inline function.
17898 (__bswap_constant_32): Reformat definition.
17899 (__bswap_32): Always define as inline function, not macro, using
17900 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
17901 otherwise __bswap_constant_32.
17902 (__bswap_constant_64): Reformat definition. Do not use
17903 __extension__ here.
17904 (__bswap_64): Always define as inline function, not macro. Use
17905 __extension__ on function definition. Use __builtin_bswap64 if
17906 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
17907 * string/test-endian-file-scope.c: New file.
17908 * string/test-endian-sign-conversion.c: Likewise.
17909 * string/Makefile (headers): Remove bits/byteswap-16.h.
17910 (tests): Add test-endian-file-scope and
17911 test-endian-sign-conversion.
17912 (CFLAGS-test-endian-sign-conversion.c): New variable.
17913 * bits/byteswap-16.h: Remove file.
17914 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
17915 * sysdeps/ia64/bits/byteswap.h: Likewise.
17916 * sysdeps/m68k/bits/byteswap.h: Likewise.
17917 * sysdeps/s390/bits/byteswap-16.h: Likewise.
17918 * sysdeps/s390/bits/byteswap.h: Likewise.
17919 * sysdeps/tile/bits/byteswap.h: Likewise.
17920 * sysdeps/x86/bits/byteswap-16.h: Likewise.
17921 * sysdeps/x86/bits/byteswap.h: Likewise.
17922
17923 [BZ #17721]
17924 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
17925 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
17926 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
17927 199901L] (__restrict): Define to restrict.
17928
17929 [BZ #19667]
17930 * string/testcopy.c: Include <support/support.h>. Do not include
17931 <malloc.h>. Use <support/test-driver.c>.
17932 (main): Rename to do_test. Make static. Use xmalloc instead of
17933 malloc.
17934
17935 [BZ #13575]
17936 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
17937 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
17938 (SSIZE_MAX): Define to INT_MAX.
17939 * posix/test-ssize-max.c: New file.
17940 * posix/Makefile (tests): Add test-ssize-max.
17941
17942 [BZ #19668]
17943 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
17944 <support/support.h>. Do not include <malloc.h>.
17945 (query_auxv): Use xmalloc instead of malloc.
17946
17947 [BZ #14553]
17948 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
17949 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
17950 instead of loff_t.
17951
17952 2018-02-06 Florian Weimer <fweimer@redhat.com>
17953
17954 [BZ #18023]
17955 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17956 Use scratch_buffer instead of extend_alloca.
17957
17958 2018-02-06 Zack Weinberg <zackw@panix.com>
17959
17960 * libio/stdio.h: Don't define getc or putc as macros.
17961 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
17962 not _IO_getc and _IO_putc.
17963
17964 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
17965 * stdio-common/tstgetln.c: Don't redefine ssize_t.
17966
17967 2018-02-06 Joseph Myers <joseph@codesourcery.com>
17968
17969 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
17970 (TCP_FASTOPEN_NO_COOKIE): Likewise.
17971
17972 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
17973
17974 [BZ #14890]
17975 * elf/elf.h (NT_PRFPREG): New macro.
17976 (NT_S390_VXRS_LOW): Likewise.
17977 (NT_S390_VXRS_HIGH): Likewise.
17978 (NT_S390_GS_CB): Likewise.
17979 (NT_S390_GS_BC): Likewise.
17980 (NT_S390_RI_CB): Likewise.
17981
17982 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
17983 (MAP_SYNC): New macro.
17984 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
17985 Likewise.
17986 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
17987 (MAP_SYNC): Likewise.
17988 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
17989 (MAP_SYNC): Likewise.
17990 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
17991 (MAP_SYNC): Likewise.
17992 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
17993 (MAP_SYNC): Likewise.
17994 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
17995 (MAP_SYNC): Likewise.
17996 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
17997 (MAP_SYNC): Likewise.
17998 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
17999 Likewise.
18000 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18001 Likewise.
18002
18003 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18004 (MAP_SHARED_VALIDATE): New macro.
18005 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18006 (MAP_SHARED_VALIDATE): Likewise.
18007
18008 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18009
18010 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18011 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18012 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18013
18014 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18015
18016 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18017 (DT_NUM): Updated to 35.
18018
18019 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18020
18021 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18022 __builtin_expect with __glibc_likely and __glibc_unlikely.
18023 (elf_machine_rela): Likewise.
18024 (elf_machine_lazy_rel): Likewise.
18025
18026 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18027
18028 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18029 __builtin_expect with __glibc_likely and __glibc_unlikely.
18030 (elf_machine_lazy_rel): Likewise.
18031
18032 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18033
18034 [BZ #22638]
18035 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18036 SHARED.
18037 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18038
18039 2018-02-05 Andreas Schwab <schwab@suse.de>
18040
18041 [BZ #22761]
18042 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18043 string.
18044
18045 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18046
18047 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18048 not check against PTHREAD_STACK_MIN.
18049
18050 2018-02-02 Sean McKean <smckean83@gmail.com>
18051
18052 [BZ #22735]
18053 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18054
18055 2018-02-02 Florian Weimer <fweimer@redhat.com>
18056
18057 [BZ #22753]
18058 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18059 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18060 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18061 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18062 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18063 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18064 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18065 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18066 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18067 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18068 * misc/tst-preadvwritev2.c (do_test): Call it.
18069 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18070
18071 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18072
18073 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18074
18075 * benchtests/bench-memcmp.c: Print json instead of plain text.
18076
18077 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18078 every test run.
18079
18080 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18081
18082 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18083 version to 4.15.
18084 (s390_sthyi): New syscall.
18085
18086 * sysdeps/generic/ldbl-classify-compat.h: New file.
18087 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18088 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18089 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18090 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18091 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18092 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18093 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18094 <ldbl-classify-compat.h>.
18095 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18096 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18097 <ldbl-classify-compat.h>.
18098 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18099 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18100 <ldbl-classify-compat.h>.
18101 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18102 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18103 <ldbl-classify-compat.h>.
18104 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18105 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18106 <ldbl-classify-compat.h>.
18107 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18108 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18109 <ldbl-classify-compat.h>.
18110 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18111 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18112 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18113 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18114 * sysdeps/microblaze/math_private.h: Likewise.
18115 * sysdeps/nios2/math_private.h: Likewise.
18116 * sysdeps/sh/math_private.h: Likewise.
18117
18118 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18119 * sysdeps/m68k/coldfire/math_private.h: ... here.
18120 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18121 * sysdeps/tile/math_private.h: Likewise.
18122 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18123 Remove macro.
18124 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18125 Likewise.
18126
18127 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18128 Remove macro.
18129 (libc_fetestexcept): Likewise.
18130 (libc_feupdateenv_test): Likewise.
18131 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18132 (libc_fetestexcept): Likewise.
18133 (libc_feupdateenv_test): Likewise.
18134 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18135 (libc_fetestexcept): Likewise.
18136 (libc_feupdateenv_test): Likewise.
18137 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18138 (libc_fetestexcept): Likewise.
18139 (libc_feupdateenv_test): Likewise.
18140
18141 * sysdeps/generic/math_private.h
18142 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18143 New inline function.
18144 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18145 Likewise.
18146
18147 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18148 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18149 * sysdeps/generic/math_private.h
18150 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18151 inline function.
18152 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18153 Likewise.
18154 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18155 Likewise.
18156 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18157 Likewise.
18158 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18159 Likewise.
18160 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18161 Likewise.
18162 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18163 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18164 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18165 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18166 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18167 (__fegetenv): Likewise.
18168 (fesetenv): Likewise.
18169 (__fesetenv): Likewise.
18170 (feupdateenv): Likewise.
18171 (__feupdateenv): Likewise.
18172 (fegetround): Likewise.
18173 (__fegetround): Likewise.
18174 (fesetround): Likewise.
18175 (__fesetround): Likewise.
18176
18177 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18178 (feraiseexcept): New macro.
18179 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18180 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18181 Remove macro.
18182 (__feraiseexcept): Likewise.
18183 (feclearexcept): Likewise.
18184 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18185 (__feraiseexcept): Likewise.
18186 (feclearexcept): Likewise.
18187 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18188 (__feraiseexcept): Likewise.
18189 (feclearexcept): Likewise.
18190 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18191 (__feraiseexcept): Likewise.
18192 (feclearexcept): Likewise.
18193 (fetestexcept): Likewise.
18194
18195 * sysdeps/m68k/coldfire/math-tests.h: New file.
18196
18197 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18198 * sysdeps/m68k/bits/fenv.h: ... here.
18199 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18200 not define.
18201 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18202 Likewise.
18203 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18204 Likewise.
18205 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18206 Likewise.
18207 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18208 Likewise.
18209 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18210 Define to 0.
18211 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18212 (__FE_UNDEFINED): New enum constant.
18213 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18214 Do not define.
18215 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18216 Likewise.
18217 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18218 Likewise.
18219 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18220 to match generic bits/fenv.h.
18221 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18222 Do not define.
18223
18224 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18225 packed on bits.
18226 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18227 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18228 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18229 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18230
18231 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18232 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18233 Joseph Myers <joseph@codesourcery.com>
18234
18235 [BZ #21314]
18236 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18237 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18238 computation using c.
18239 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18240 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18241 computation using c.
18242
18243 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18244
18245 * version.h (RELEASE): Set to "development".
18246 (VERSION): Set to "2.27.9000".
18247 * NEWS (2.28): New section.
18248
18249 * version.h (RELEASE): Set to "stable".
18250 (VERSION): Set to "2.27".
18251 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18252
18253 * NEWS: Add the list of bugs fixed in 2.27.
18254
18255 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18256
18257 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18258 against PTHREAD_STACK_MIN.
18259
18260 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18261
18262 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18263 New entries.
18264 (Rafal Luzynski, Andreas Schwab): Update.
18265
18266 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18267
18268 [BZ #10871]
18269 * NEWS: List the languages which actually use the alternative
18270 months feature in this release. Also explain that "alt_mon" and
18271 "ab_alt_mon" are optional.
18272
18273 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18274
18275 [BZ #22765]
18276 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18277
18278 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18279
18280 * manual/install.texi (Tools for Compilation): Update the newest
18281 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18282 * INSTALL: Regenerated.
18283
18284 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18285
18286 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18287 instead of __builtin_expect.
18288
18289 2018-01-30 Florian Weimer <fweimer@redhat.com>
18290
18291 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18292 data.
18293 * nss/tst-nss-getpwent.c (do_test): Likewise.
18294
18295 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18296
18297 [BZ #10871]
18298 * localedata/locales/hr_HR (mon): Rename to...
18299 (alt_mon): This.
18300 (mon): Import from CLDR (genitive case).
18301 (d_t_fmt): Update the comment.
18302
18303 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18304
18305 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18306 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18307 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18308
18309 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18310
18311 * mach/Versions: Fix version when __mach_host_self_ was added.
18312 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18313 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18314 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18315 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18316 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18317 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18318 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18319 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18320 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18321 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18322 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18323 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18324 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18325 || to respect codestyle.
18326 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18327 (do_test_bz20181): Rename accordingly.
18328 * malloc/malloc.c: Include <assert.h>.
18329 (assert): Do not define.
18330 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18331 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18332 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18333 * sysdeps/mach/hurd/hp-timing.h: New file.
18334 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18335
18336 2018-01-29 Darius Rad <darius@bluespec.com>
18337
18338 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18339
18340 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18341
18342 * sysdeps/init_array/crti.S (.section .init_array): Add
18343 PREINIT_FUNCTION when defined.
18344 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18345 * config.h.in: Regenerate.
18346 * manual/platform.texi: Add RISC-V documenation for
18347 __riscv_flush_icache.
18348 * sysdeps/riscv/__longjmp.S: New file.
18349 * sysdeps/riscv/backtrace.c: Likewise.
18350 * sysdeps/riscv/bits/endian.h: Likewise.
18351 * sysdeps/riscv/bits/setjmp.h: Likewise.
18352 * sysdeps/riscv/bits/wordsize.h: Likewise.
18353 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18354 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18355 * sysdeps/riscv/dl-trampoline.S: Likewise.
18356 * sysdeps/riscv/gccframe.h: Likewise.
18357 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18358 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18359 * sysdeps/riscv/machine-gmon.h: Likewise.
18360 * sysdeps/riscv/memusage.h: Likewise.
18361 * sysdeps/riscv/setjmp.S: Likewise.
18362 * sysdeps/riscv/sys/asm.h: Likewise.
18363 * sysdeps/riscv/tls-macros.h: Likewise.
18364 * sysdeps/riscv/dl-tls.h: New file.
18365 * sysdeps/riscv/libc-tls.c: Likewise.
18366 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18367 * sysdeps/riscv/nptl/tls.h: Likewise.
18368 * sysdeps/riscv/stackinfo.h: Likewise.
18369 * sysdeps/riscv/bits/fenv.h: New file.
18370 * sysdeps/riscv/e_sqrtl.c: Likewise.
18371 * sysdeps/riscv/fpu_control.h: Likewise.
18372 * sysdeps/riscv/math-tests.h: Likewise.
18373 * sysdeps/riscv/nofpu/Implies: Likewise.
18374 * sysdeps/riscv/sfp-machine.h: Likewise.
18375 * sysdeps/riscv/tininess.h: Likewise.
18376 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18377 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18378 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18379 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18380 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18381 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18382 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18383 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18384 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18385 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18386 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18387 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18388 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18389 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18390 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18391 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18392 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18393 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18394 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18395 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18396 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18397 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18398 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18399 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18400 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18401 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18402 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18403 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18404 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18405 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18406 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18407 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18408 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18409 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18410 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18411 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18412 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18413 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18414 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18415 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18416 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18417 * sysdeps/riscv/rvf/math_private.h: Likewise.
18418 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18419 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18420 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18421 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18422 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18423 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18424 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18425 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18426 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18427 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18428 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18429 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18430 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18431 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18432 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18433 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18434 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18435 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18436 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18437 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18438 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18439 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18440 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18441 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18442 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18443 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18444 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18445 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18446 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18447 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18448 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18449 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18450 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18451 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18452 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18453 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18454 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18455 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18456 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18457 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18458 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18459 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18460 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18461 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18462 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18463 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18464 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18465 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18466 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18467 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18468 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18469 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18470 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18471 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18472 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18473 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18474 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18475 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18476 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18477 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18478 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18479 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18480 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18481 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18482 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18483 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18484 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18485 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18486 * sysdeps/riscv/Implies: New file.
18487 * sysdeps/riscv/Makefile: Likewise.
18488 * sysdeps/riscv/configure: Likewise.
18489 * sysdeps/riscv/configure.ac: Likewise.
18490 * sysdeps/riscv/nptl/Makefile: Likewise.
18491 * sysdeps/riscv/preconfigure: Likewise.
18492 * sysdeps/riscv/rv64/Implies-after: Likewise.
18493 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18494 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18495 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18496 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18497 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18498 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18499 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18500 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18501 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18502 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18503 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18504 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18505 (Config): Likewise.
18506
18507 2018-01-29 Florian Weimer <fweimer@redhat.com>
18508
18509 [BZ #22701]
18510 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18511 libnsl_hidden_proto.
18512 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18513 libnsl_hidden_proto.
18514 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18515 * nis/Makefile (libnsl-routines): Add nss-default only for
18516 build-obsolete-nsl.
18517 * nis/nis_defaults.c (__nis_default_ttl): Add
18518 libnsl_hidden_nolink_def.
18519 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18520 declaration.
18521 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18522 * nis/ypclnt.c (yp_maplist): Likewise.
18523
18524 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
18525
18526 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18527 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18528
18529 2018-01-29 Joseph Myers <joseph@codesourcery.com>
18530
18531 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
18532 clean -dxfq for git updates when replacing sources.
18533
18534 * scripts/build-many-glibcs.py (Config.build_gcc): Use
18535 --disable-libcilkrts unconditionally, not just for the final GCC
18536 build for Hurd.
18537
18538 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18539 version to 4.15.
18540
18541 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18542
18543 [BZ #10871]
18544 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
18545 case).
18546
18547 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18548
18549 [BZ #10871]
18550 * localedata/locales/be_BY (mon): Rename to...
18551 (alt_mon): This, then synchronize with CLDR (nominative case).
18552 (abmon): Rename to...
18553 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18554 (mon): Import from CLDR (genitive case).
18555 (abmon): Likewise.
18556 * localedata/locales/be_BY@latin (mon): Rename to...
18557 (alt_mon): This.
18558 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
18559
18560 * localedata/locales/be_BY@latin (lang_name): Reworded to
18561 "biełaruskaja mova".
18562
18563 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18564
18565 [BZ #10871]
18566 * localedata/locales/el_CY (mon): Renamed to...
18567 (alt_mon): This.
18568 (mon): Import from CLDR (genitive case).
18569 * localedata/locales/el_GR: Likewise.
18570
18571 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18572
18573 [BZ #10871]
18574 * localedata/locales/ru_RU (mon): Rename to...
18575 (alt_mon): This.
18576 (abmon): Rename to...
18577 (ab_alt_mon): This.
18578 (mon): Import from CLDR (genitive case).
18579 (abmon): Copy from the old content except the 5th month which is
18580 now in the genitive case, even when abbreviated.
18581 * localedata/locales/ru_UA: Likewise.
18582 * time/tst-strptime.c (day_tests): Add an actual example of
18583 a difference between %b and %Ob in Russian.
18584
18585 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18586
18587 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
18588 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
18589 a `c' variable.
18590 * resolv/res-close.c: Include <stdlib.h>.
18591 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
18592 <sys/wait.h>, <time.h>, <sys/uio.h>.
18593 (NOT_CANCEL_H): Add inclusion guard.
18594 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
18595 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
18596 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
18597 return 0.
18598 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
18599 vm_address_t * to ElfW(Addr) * for dl_main parameter.
18600 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
18601 instead of void *.
18602 * sysdeps/pthread/timer_create.c (timer_create): Do not use
18603 timer_ptr2id to cast struct timer_node * to void *.
18604 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
18605 --disable-libcilkrts to gcc configure.
18606 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
18607 and make them the default for now.
18608 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
18609 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
18610 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
18611 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
18612 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
18613 MACH_IPC_COMPAT.
18614 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
18615 __task_terminate would ever return successfully.
18616 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
18617 to global scope.
18618 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
18619 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
18620 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
18621 critical section to make code simpler and avoid warning.
18622 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
18623 critical section to make code simpler and avoid warning.
18624 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
18625 const char * instead of char *.
18626 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
18627 __hurd_file_name_split, hurd_file_name_split,
18628 __hurd_directory_name_split, hurd_directory_name_split,
18629 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
18630 hurd_file_name_path_lookup): Make lookup function parameter take a
18631 const char *name instead of char *name.
18632 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
18633 __hurd_directory_name_split): Likewise.
18634 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
18635 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
18636 * sysdeps/mach/hurd/check_native.c: New file.
18637 * sysdeps/mach/hurd/check_pf.c: New file.
18638 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
18639 (__freeifaddrs): Define macro to freeifaddrs.
18640 * sysdeps/mach/hurd/libhurduser.abilist: New file.
18641 * sysdeps/mach/libmachuser.abilist: New file.
18642 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
18643 (do_test_bz20181): Rename accordingly.
18644 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
18645 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
18646 <sys/mount.h>.
18647 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
18648 version only if __USE_EXTERN_INLINES is defined.
18649 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
18650 __hurd_sockfail): Likewise.
18651 (_hurd_fd_get): Always declare functions, and provide inline versions
18652 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
18653 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
18654 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
18655 _hurd_port_set): Always declare functions, and provide inline versions
18656 only if __USE_EXTERN_INLINES and _LIBC are defined and
18657 IS_IN(libc).
18658 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
18659 _hurd_critical_section_unlock): Likewise.
18660 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
18661 * __hurd_threadvar_location): Likewise.
18662 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
18663 _hurd_userlink_clear): Likewise.
18664 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
18665 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
18666 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
18667 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
18668 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
18669 __spin_lock_locked): Likewise.
18670 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
18671 __spin_lock_locked): Likewise.
18672 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
18673 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
18674 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
18675 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
18676 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
18677 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
18678 _POSIX_NO_TRUNC): Define to 0.
18679 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
18680 check size against PTHREAD_STACK_MIN.
18681 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
18682 IS_IN(libpthread)]: Include <sigsetops.h>.
18683 * mach/Makefile (user-interfaces): Add mach/gnumach.
18684 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
18685 * sysdeps/mach/configure (mach_interface_list): Regenerate.
18686 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
18687 instead of invalid -1.
18688 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
18689 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
18690 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
18691 <net/ppp_defs.h>.
18692
18693 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
18694
18695 * hurd/fcntl-internal.h: New file.
18696
18697 2018-01-27 James Clarke <jrtc27@jrtc27.com>
18698
18699 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18700
18701 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18702
18703 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
18704
18705 [BZ #22701]
18706 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
18707 Build only shared objects.
18708
18709 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18710
18711 * README: Update for hppa.
18712
18713 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18714
18715 * sysdeps/sparc/fpu/libm-test-ulps: Update
18716 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
18717
18718 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18719
18720 Revert:
18721
18722 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18723
18724 [BZ #22563]
18725 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18726 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18727 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18728 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18729 to feature_1.
18730
18731 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18732
18733 [BZ #22563]
18734 * bits/types/__cancel_jmp_buf_tag.h: New file.
18735 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18736 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18737 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18738 * nptl/Makefile (headers): Add
18739 bits/types/__cancel_jmp_buf_tag.h.
18740 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18741 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18742 * sysdeps/nptl/pthread.h: Include
18743 <bits/types/__cancel_jmp_buf_tag.h>.
18744 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18745 __cancel_jmp_buf.
18746 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18747
18748 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
18749
18750 [BZ #10871]
18751 * localedata/locales/uk_UA (mon): Renamed to...
18752 (alt_mon): This.
18753 (alt_digits): "0" removed and then renamed to...
18754 (mon): This.
18755 (date_fmt): Definition changed not to use the alternative
18756 digits hack.
18757
18758 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
18759
18760 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
18761 FLAG_RISCV_FLOAT_ABI_DOUBLE.
18762 * elf/elf.h (EF_RISCV_RVC): New define.
18763 (EF_RISCV_FLOAT_ABI): Likewise.
18764 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
18765 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
18766 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18767 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
18768 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
18769 define.
18770 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18771
18772 2018-01-25 Andreas Schwab <schwab@suse.de>
18773
18774 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
18775 single quotes.
18776 * sysdeps/gnu/configure: Regenerate.
18777 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
18778 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18779 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
18780 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
18781 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
18782 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
18783 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
18784 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
18785
18786 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
18787
18788 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
18789 URL, and run autoconf, make it the default for now.
18790
18791 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18792
18793 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18794 soft-float ColdFire configuration.
18795
18796 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
18797 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
18798 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
18799
18800 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
18801 MicroBlaze file.
18802
18803 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
18804 ....
18805 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
18806 ... here.
18807 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
18808 New file.
18809
18810 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
18811 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
18812 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
18813 file.
18814
18815 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18816
18817 [BZ #22742]
18818 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
18819 Rename to __reserved and add comment.
18820 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
18821 Rename to __reserved.
18822
18823 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18824
18825 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18826 i686-gnu configurations.
18827 (Context.run_builds): Include mig, gnumach and hurd in components
18828 considered.
18829 (Context.checkout): Add mig, gnumach and hurd to components.
18830 (Context.checkout_tar): Add URL mappings for mig, gnumach and
18831 hurd.
18832 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
18833 (Config.build): Install gnumach headers, build mig and install
18834 hurd headers for 'gnu' OS.
18835 (Config.install_gnumach_headers): New function.
18836 (Config.install_hurd_headers): Likewise.
18837 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
18838 when building for 'gnu' OS.
18839
18840 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
18841
18842 * manual/tunables.texi (Hardware Capability Tunables): Fix
18843 spelling.
18844
18845 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
18846
18847 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
18848 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
18849 (ALTMON_11, ALTMON_12): Improve documentation.
18850 * manual/time.texi (strftime): Likewise.
18851
18852 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18853
18854 [BZ #10871]
18855 * localedata/locales/pl_PL: Alternative month names added,
18856 primary month names are genitive now.
18857 * time/tst-strptime.c (day_tests): Actually use a genitive case
18858 of a month name in Polish language.
18859
18860 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18861
18862 [BZ #10871]
18863 * manual/locale.texi: Document ALTMON_1..12 constants for
18864 nl_langinfo. Specify when to use ALTMON instead of MON.
18865 * manual/time.texi (strftime, strptime): Document GNU extension
18866 permitting O modifier with %B and %b. Specify when to use
18867 %OB instead of %B.
18868
18869 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18870
18871 [BZ #10871]
18872 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
18873 names, define them as the same as abbreviated month names explicitly.
18874 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
18875 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
18876 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
18877 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
18878 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
18879 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
18880 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
18881 _NL_WABALTMON_12): New enum constants.
18882 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
18883 wab_alt_mon, and ab_alt_mon_defined members.
18884 (time_output): Output ab_alt_mon and wab_alt_mon members.
18885 (time_read): Read them, initialize them as copies of abmon and wabmon
18886 respectively if they are missing, initialize ab_alt_mon_defined.
18887 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
18888 * locale/programs/locfile-kw.h: Regenerate.
18889 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
18890 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
18891 and ru_RU.UTF-8.
18892 * time/strftime_l.c (a_altmonth, aam_len): New macros.
18893 [!COMPILE_WIDE] (ABALTMON_1): New macro.
18894 (__strftime_internal): Handle %Ob and %Oh formats.
18895 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
18896 (__strptime_internal): Handle %Ob and %Oh formats.
18897 * time/tst-strptime.c (day_tests): Add more tests to parse different
18898 forms of month names including the new %Ob format specifier.
18899
18900 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18901
18902 [BZ #10871]
18903 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
18904 define them as the same as primary full month names explicitly.
18905 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
18906 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
18907 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
18908 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
18909 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
18910 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
18911 _NL_WALTMON_12): New enum constants.
18912 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
18913 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
18914 macros.
18915 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
18916 walt_mon, and alt_mon_defined members.
18917 (time_output): Output alt_mon and walt_mon members.
18918 (time_read): Read them, initialize them as copies of mon and wmon
18919 respectively if they are missing, initialize alt_mon_defined.
18920 * locale/programs/locfile-kw.gperf (alt_mon): Define.
18921 * locale/programs/locfile-kw.h: Regenerate.
18922 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
18923 * localedata/tst-langinfo.c (map): Add tests for the new constants
18924 ALTMON_1 .. ALTMON_12.
18925 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
18926 and pl_PL.UTF-8.
18927 * time/strftime_l.c (f_altmonth): New macro.
18928 (__strftime_internal): Handle %OB format.
18929 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
18930 (__strptime_internal): Handle %OB format.
18931 * time/tst-strptime.c (day_tests): Add tests to parse different forms
18932 of month names including the new %OB format specifier.
18933
18934 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18935
18936 [BZ #22685]
18937 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
18938 from ABORT_TRANSACTION.
18939 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
18940 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
18941 ABORT_TRANSACTION_IMPL): Likewise.
18942 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
18943 Linux code, but remove the code that aborts transactions.
18944
18945 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18946
18947 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
18948
18949 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
18950
18951 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
18952 in date: "2004-14-09" should be "2004-09-14".
18953 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
18954 "2003-15-09" should be "2003-09-15".
18955
18956 2018-01-18 Arjun Shankar <arjun@redhat.com>
18957
18958 [BZ #22343]
18959 [BZ #22774]
18960 CVE-2018-6485
18961 CVE-2018-6551
18962 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
18963 after padding.
18964 (_int_memalign): check for integer overflow before calling
18965 _int_malloc.
18966 * malloc/tst-malloc-too-large.c: New test.
18967 * malloc/Makefile: Add tst-malloc-too-large.
18968
18969 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
18970
18971 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
18972 in date: "2017-24-07" should be "2017-07-24".
18973 * localedata/locales/mai_IN: Likewise.
18974 * localedata/locales/mai_NP: Likewise.
18975
18976 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
18977
18978 * po/ru.po: Update translations.
18979
18980 2018-01-17 Joseph Myers <joseph@codesourcery.com>
18981
18982 [BZ #22719]
18983 * sysdeps/hppa/backtrace.c: New file.
18984
18985 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
18986
18987 [BZ #22715]
18988 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
18989 align La_x86_64_retval to VEC_SIZE.
18990
18991 2018-01-16 Joseph Myers <joseph@codesourcery.com>
18992
18993 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
18994 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
18995
18996 2018-01-16 Florian Weimer <fweimer@redhat.com>
18997
18998 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
18999 Move tst-thread-exit-clobber ...
19000 [$(CXX)] (tests-unsupported): ... to here.
19001
19002 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19003
19004 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19005 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19006 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19007 (_dl_aarch64_cap_flags): Update.
19008 (_DL_HWCAP_COUNT): Update.
19009
19010 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19011
19012 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19013 (_DL_HWCAP_LAST): Remove.
19014 (_DL_HWCAP_COUNT): Move to ...
19015 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19016 (_DL_HWCAP_COUNT): ... here.
19017
19018 2018-01-16 Florian Weimer <fweimer@redhat.com>
19019
19020 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19021 mode with GNU extensions.
19022
19023 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19024
19025 * elf/elf.h (NT_ARM_SVE): Define.
19026
19027 2018-01-15 Florian Weimer <fweimer@redhat.com>
19028
19029 [BZ #22636]
19030 * nptl/tst-minstack-throw.cc: New file.
19031 * nptl/Makefile (tests): Add tst-minstack-throw.
19032 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19033 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19034
19035 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19036
19037 * scripts/build-many-glibcs.py (Context.checkout): Default
19038 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19039 version to 1.1.0.
19040
19041 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19042
19043 [BZ #22707]
19044 * elf/elf.h (DF_1_STUB): Define.
19045 (DF_1_PIE): Define.
19046
19047 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19048
19049 [BZ #22697]
19050 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19051 Do not add 0.5 to integer or out-of-range arguments.
19052
19053 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19054
19055 * po/bg.po: Update translations.
19056 * po/cs.po: Likewise.
19057 * po/de.po: Likewise.
19058 * po/ko.po: Likewise.
19059 * po/pl.po: Likewise.
19060 * po/sv.po: Likewise.
19061 * po/uk.po: Likewise.
19062 * po/vi.po: Likewise.
19063
19064 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19065
19066 * aarch64/start.S (_start): Use __wrap_main.
19067 (__wrap_main): New local symbol.
19068
19069 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19070
19071 [BZ #22679]
19072 CVE-2018-1000001
19073 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19074 generic_getcwd if the path returned by getcwd syscall is not absolute.
19075 * io/tst-getcwd-abspath.c: New test.
19076 * io/Makefile (tests): Add tst-getcwd-abspath.
19077
19078 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19079
19080 * malloc/malloc.c (malloc_consolidate): Add size check.
19081
19082 2018-01-12 Florian Weimer <fweimer@redhat.com>
19083
19084 * support/write_message.c (write_message): Preserve errno.
19085 * support/check.c (print_failure): Likewise.
19086 * support/support_test_verify_impl.c (support_test_verify_impl):
19087 Likewise.
19088 * support/support_test_compare_failure.c
19089 (support_test_compare_failure): Likewise.
19090
19091 2018-01-12 Florian Weimer <fweimer@redhat.com>
19092
19093 [BZ #22701]
19094 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19095 Prevent installation of libnsl.so.
19096 (libnsl-inhibit-o): Do not build (or install) static libraries.
19097
19098 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19099
19100 [BZ #22657]
19101 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19102 before the day number which may produce a double space.
19103 (date_fmt): Likewise.
19104
19105 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19106
19107 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19108 instead of fegetenv.
19109
19110 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19111
19112 [BZ #22702]
19113 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19114 comment to say exceptions are discarded.
19115 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19116 __fegetenv.
19117 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19118 be enabled.
19119
19120 2018-01-11 Florian Weimer <fweimer@redhat.com>
19121
19122 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19123 and error message.
19124
19125 2018-01-11 Florian Weimer <fweimer@redhat.com>
19126
19127 [BZ #22636]
19128 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19129 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19130
19131 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19132
19133 [BZ #22693]
19134 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19135 negative arguments in test for NaN or infinity argument.
19136
19137 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19138
19139 * po/libc.pot: Regenerate.
19140
19141 2018-01-10 Florian Weimer <fweimer@redhat.com>
19142
19143 [BZ #22636]
19144 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19145 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19146
19147 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19148
19149 * hurd/hurd/fd.h: Include <fcntl.h>
19150 (__hurd_at_flags): New function.
19151 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19152 with call to __hurd_at_flags.
19153 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19154 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19155 __faccessat
19156 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19157 (__access_noerrno): Use __faccessat_common instead of access_common.
19158 (__access): Likewise.
19159 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19160 with a call to __faccessat.
19161 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19162 (__faccessat_common): ... this. Move implementation of __access into it when
19163 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19164 reauthenticate_cwdir_at helper to implement AT mechanism.
19165 (__faccessat_noerrno): New function, just calls __faccessat_common.
19166 (__faccessat): New function, just calls __faccessat_common.
19167 (faccessat): Define weak alias.
19168
19169 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19170
19171 [BZ #22691]
19172 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19173 (CFLAGS-s_fmaxmagl.c): New variable.
19174 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19175
19176 [BZ #22690]
19177 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19178 long int for arguments of possibly overflowing addition or
19179 subtraction.
19180 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19181
19182 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19183
19184 [BZ #22688]
19185 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19186 (CFLAGS-e_remainderl.c): New variable.
19187
19188 [BZ #22687]
19189 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19190 variable.
19191 (CFLAGS-s_cacoshl.c): Likewise.
19192 (CFLAGS-s_casinhl.c): Likewise.
19193 (CFLAGS-s_catanl.c): Likewise.
19194 (CFLAGS-s_catanhl.c): Likewise.
19195 (CFLAGS-s_cexpl.c): Likewise.
19196 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19197 (CFLAGS-s_csinhl.c): Likewise.
19198 (CFLAGS-s_clogl.c): Likewise.
19199 (CFLAGS-s_clog10l.c): Likewise.
19200 (CFLAGS-s_csinl.c): Likewise.
19201 (CFLAGS-s_csqrtl.c): Likewise.
19202
19203 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19204 2017-01-09 Svante Signell <svante.signell@gmail.com>
19205
19206 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19207 (_hurd_exec_paths): New function.
19208 * hurd/hurd.h (_hurd_exec): Deprecate function.
19209 (_hurd_exec_paths): Declare function.
19210 * hurd/Versions: Export _hurd_exec_paths.
19211 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19212 (__execve): Use __getcwd to build absolute path, and use
19213 _hurd_exec_paths instead of _hurd_exec.
19214 * sysdeps/mach/hurd/spawni.c: Likewise.
19215 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19216 _hurd_exec.
19217
19218 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19219
19220 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19221 test instead of failing in case of ENOENT returned by posix_openpt.
19222
19223 2018-01-08 Florian Weimer <fweimer@redhat.com>
19224
19225 resolv: Support binary labels in test framework.
19226 * support/resolv_test.c (struct to_be_freed): Remove.
19227 (struct compressed_name): New.
19228 (allocate_compressed_name, ascii_tolower)
19229 (compare_compressed_name): New functions.
19230 (struct resolv_response_builder): Update type of
19231 compression_offsets for use with tsearch. Rempve to_be_freed.
19232 (response_push_pointer_to_free): Remove function.
19233 (resolv_response_add_name): Rewrite using struct compressed_name
19234 and tsearch instead of hsearch_r.
19235 (response_builder_allocate): Remove initialization of
19236 compression_offsets.
19237 (response_builder_free): Update for removal of to_be_freed. Use
19238 tdestroy instead of hdestroy_r.
19239 * resolv/Makefile (tests): Add tst-resolv-binary.
19240 (tst-resolv-binary): Link with -lresolv -lpthread.
19241
19242 2018-01-08 Florian Weimer <fweimer@redhat.com>
19243
19244 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19245 time. Pass positive flag instead of negative flag to
19246 support_test_compare_failure.
19247 (support_test_compare_failure): Change negative parameter to
19248 positive.
19249 * support/support_test_compare_failure.c (report)
19250 (support_test_compare_failure): Likewise.
19251 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19252 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19253
19254 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19255
19256 [BZ #22637]
19257 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19258 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19259 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19260 stacksize.
19261 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19262
19263 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19264
19265 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19266 Add s_sincosf-sse2 and s_sincosf-fma.
19267 (CFLAGS-s_sincosf-fma.c): New.
19268 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19269 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19270 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19271 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19272 __sincosf is defined.
19273
19274 2018-01-08 Florian Weimer <fweimer@redhat.com>
19275
19276 * nptl/tst-thread-exit-clobber.cc: New file.
19277 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19278 C++11 mode.
19279 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19280 (tests): Add tst-thread-exit-clobber.
19281 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19282
19283 2018-01-08 Florian Weimer <fweimer@redhat.com>
19284
19285 * support/check.h (support_static_assert): Define.
19286 (TEST_COMPARE): Use it.
19287
19288 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19289
19290 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19291 [!__RLIM_T_MATCHES_RLIM64_T]
19292 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19293 __getrlimit64. Add libc_hidden_weak.
19294
19295 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19296
19297 * elf/elf.h (R_RISCV_NONE): New define.
19298 (R_RISCV_32): Likewise.
19299 (R_RISCV_64): Likewise.
19300 (R_RISCV_RELATIVE): Likewise.
19301 (R_RISCV_COPY): Likewise.
19302 (R_RISCV_JUMP_SLOT): Likewise.
19303 (R_RISCV_TLS_DTPMOD32): Likewise.
19304 (R_RISCV_TLS_DTPMOD64): Likewise.
19305 (R_RISCV_TLS_DTPREL32): Likewise.
19306 (R_RISCV_TLS_DTPREL64): Likewise.
19307 (R_RISCV_TLS_TPREL32): Likewise.
19308 (R_RISCV_TLS_TPREL64): Likewise.
19309 * Makerules (make-link-multidir): Make directories before linking into
19310 them.
19311 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19312 define.
19313 (VDSO_HASH_LINUX_4_15): Likewise.
19314 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19315 in subdirectories of lib.
19316 * nptl/Makefile (/librt.so): Always depend on
19317 "$(shared-thread-library)".
19318
19319 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19320
19321 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19322 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19323 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19324 (___tls_get_addr).
19325 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19326 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19327 "-O2 -march=i686".
19328 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19329 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19330 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19331 * sysdeps/gnu/glob-lstat-compat.c: New file.
19332 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19333 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19334
19335 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19336
19337 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19338 Reserve 16 chars to reloc_addr before calling _itoa_word.
19339
19340 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19341
19342 [BZ #22678]
19343 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19344 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19345
19346 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19347 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19348
19349 * resource/tst-getrlimit.c: Add copyright header.
19350
19351 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19352 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19353
19354 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19355 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19356 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19357 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19358 instead.
19359 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19360 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19361 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19362 RLIM64_INFINITY): Fix values to match the kernel ones.
19363 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19364 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19365 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19366 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19367 getrlimit64@@GLIBC_2_27.
19368 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19369 and setrlimit64.
19370 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19371 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19372 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19373 setrlimit, getrlimit64 and setrlimit64.
19374
19375 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19376
19377 [BZ #22648]
19378 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19379 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19380
19381 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19382
19383 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19384 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19385 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19386
19387 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19388
19389 [BZ #15479]
19390 [BZ #22666]
19391 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19392 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19393
19394 [BZ #15479]
19395 [BZ #22665]
19396 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19397 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19398 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19399 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19400
19401 2018-01-04 Florian Weimer <fweimer@redhat.com>
19402
19403 [BZ #22667]
19404 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19405 Align the stack before calling exit.
19406 * stdlib/tst-makecontext-align.c: New file.
19407 * stdlib/Makefile (tests): Add tst-makecontext-align.
19408
19409 2018-01-04 Florian Weimer <fweimer@redhat.com>
19410
19411 Add support for calling dlvsym from libc.so.
19412 * include/dlfcn.h (__libc_dlvsym): Declare.
19413 * elf/Makefile (tests-static-internal): Add
19414 tst-libc_dlvsym-static.
19415 (tests-internal): Add tst-libc_dlvsym.
19416 (modules-names): Add tst-libc_dlvsym-dso.
19417 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19418 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19419 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19420 object tst-libc_dlvsym-dso.so needs to be built before running
19421 these tests.
19422 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19423 * elf/Versions: Export __libc_dlvsym.
19424 * elf/dl-libc.c (struct do_dlvsym_args): New.
19425 (do_dlvsym, __libc_dlvsym): New functions.
19426 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19427 (_dl_open_hook2): New variable.
19428 (__libc_register_dl_open_hook): Set it.
19429 * elf/tst-libc_dlvsym-dso.c: New file.
19430 * elf/tst-libc_dlvsym-static.c: Likewise.
19431 * elf/tst-libc_dlvsym.c: Likewise.
19432 * elf/tst-libc_dlvsym.h: Likewise.
19433
19434 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19435
19436 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19437 include <sys/mount.h>.
19438
19439 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19440
19441 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19442 Add __NO_MATH_ERRNO__ check.
19443
19444 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19445
19446 * sysdeps/mips/mips32/libm-test-ulps: Update.
19447 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19448
19449 2018-01-02 Florian Weimer <fweimer@redhat.com>
19450
19451 * misc/tst-pselect.c: Add copyright header.
19452
19453 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19454
19455 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19456 comment.
19457 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19458 comment.
19459 (settrlimit): Rename into setrlimit.
19460 (__sttrlimit): Rename into __setrlimit.
19461
19462 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19463 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19464 never defined in that case.
19465
19466 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19467
19468 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19469
19470 * sysdeps/arm/libm-test-ulps: Update.
19471
19472 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19473 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19474
19475 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19476
19477 * NEWS: Add cosf and sincosf to list of optimized functions.
19478
19479 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19480
19481 [BZ #22660]
19482 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19483 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19484 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19485 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19486
19487 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19488
19489 [BZ #22433]
19490 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19491
19492 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19493 making a copy of it.
19494
19495 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19496
19497 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19498 trailing whitespace removed.
19499 * scripts/config.guess: Update to version 2018-01-01.
19500 * scripts/config.sub: Update to version 2018-01-01.
19501 * scripts/move-if-change: Update from gnulib.
19502
19503 * NEWS: Update copyright dates.
19504 * catgets/gencat.c (print_version): Likewise.
19505 * csu/version.c (banner): Likewise.
19506 * debug/catchsegv.sh: Likewise.
19507 * debug/pcprofiledump.c (print_version): Likewise.
19508 * debug/xtrace.sh (do_version): Likewise.
19509 * elf/ldconfig.c (print_version): Likewise.
19510 * elf/ldd.bash.in: Likewise.
19511 * elf/pldd.c (print_version): Likewise.
19512 * elf/sotruss.sh: Likewise.
19513 * elf/sprof.c (print_version): Likewise.
19514 * iconv/iconv_prog.c (print_version): Likewise.
19515 * iconv/iconvconfig.c (print_version): Likewise.
19516 * locale/programs/locale.c (print_version): Likewise.
19517 * locale/programs/localedef.c (print_version): Likewise.
19518 * login/programs/pt_chown.c (print_version): Likewise.
19519 * malloc/memusage.sh (do_version): Likewise.
19520 * malloc/memusagestat.c (print_version): Likewise.
19521 * malloc/mtrace.pl: Likewise.
19522 * manual/libc.texinfo: Likewise.
19523 * nptl/version.c (banner): Likewise.
19524 * nscd/nscd.c (print_version): Likewise.
19525 * nss/getent.c (print_version): Likewise.
19526 * nss/makedb.c (print_version): Likewise.
19527 * posix/getconf.c (main): Likewise.
19528 * scripts/test-installation.pl: Likewise.
19529 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19530
19531 * All files with FSF copyright notices: Update copyright dates
19532 using scripts/update-copyrights.
19533 * locale/programs/charmap-kw.h: Regenerated.
19534 * locale/programs/locfile-kw.h: Likewise.
19535
19536 2017-12-31 Zack Weinberg <zackw@panix.com>
19537
19538 * libio/bits/libio-ldbl.h: Correct check for improper
19539 inclusion. Add own multiple include guard.
19540
19541 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
19542 Dmitry V. Levin <ldv@altlinux.org>
19543
19544 [BZ #22625]
19545 CVE-2017-16997
19546 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
19547 string token expansion. Check for NULL pointer or empty string possibly
19548 returned by expand_dynamic_string_token.
19549 (decompose_rpath): Check for empty path after dynamic string
19550 token expansion.
19551
19552 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
19553
19554 [BZ #22433]
19555 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
19556
19557 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
19558 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
19559 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
19560 and PTRACE_SYSCALL.
19561 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
19562 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19563 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19564 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19565 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19566 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19567
19568 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
19569 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19570 __ptrace_peeksiginfo_flags, ptrace): Move to ...
19571 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
19572 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19573 bits/ptrace-shared.h.
19574 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
19575 <bits/ptrace-shared.h>.
19576 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19577 __ptrace_peeksiginfo_flags, ptrace): Remove.
19578 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19579 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19580 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19581 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19582 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19583
19584 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19585
19586 [BZ #17804]
19587 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
19588 end of the loop. Improve comments.
19589
19590 2017-12-29 Zack Weinberg <zackw@panix.com>
19591
19592 [BZ #22615]
19593 * manual/errno.texi (Checking for Errors): Explicitly say that errno
19594 might be set on success.
19595
19596 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19597
19598 [BZ #22611]
19599 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
19600 is unchanged on success.
19601
19602 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
19603
19604 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
19605 updated.
19606 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
19607 expand_dynamic_string_token): Likewise.
19608 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
19609 is_path argument.
19610
19611 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
19612 contains ':'.
19613
19614 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
19615 is set and name contains ':', and all code depending on these checks.
19616
19617 2017-12-24 Zack Weinberg <zackw@panix.com>
19618
19619 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
19620 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
19621 respectively.
19622 * libio/libio.h: Rename the original version of this file to
19623 libio/bits/libio.h. Error out if not included by stdio.h or the
19624 stub libio.h.
19625 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
19626 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
19627 if not included by bits/libio.h or the stub _G_config.h.
19628 * sysdeps/unix/sysv/linux/_G_config.h: Move to
19629 sysdeps/unix/sysv/linux/bits. Error out if not included by
19630 bits/libio.h or the stub _G_config.h.
19631 * libio/stdio.h: Include bits/libio.h, not libio.h.
19632 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
19633 well as libio.h and _G_config.h.
19634
19635 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
19636 * libio/strfile.h, stdio-common/vfscanf.c
19637 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
19638 Include stdio.h, not _G_config.h nor libio.h.
19639 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
19640 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
19641
19642 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
19643
19644 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
19645
19646 [BZ #22347]
19647 * stdlib/getrandom.c (getrandom): Fix comment.
19648 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
19649
19650 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
19651
19652 [BZ #21161]
19653 * manual/arith.texi (strtoul): Fix a typo.
19654
19655 [BZ #22596]
19656 * manual/arith.texi (finite): Fix the description of the return
19657 value.
19658
19659 2017-12-22 Eric Blake <ebb9@byu.net>
19660
19661 Avoid gcc warnings on cygwin
19662 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19663 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19664 Avoid unused variable.
19665
19666 2017-12-22 Florian Weimer <fweimer@redhat.com>
19667
19668 * io/Makefile (routines): Add copy_file_range.
19669 (tests): Add tst-copy_file_range.
19670 (tests-static, tests-internal): Add tst-copy_file_range-compat.
19671 * io/Versions (GLIBC_2.27): Export copy_file_range.
19672 * io/copy_file_range-compat.c: New file.
19673 * io/copy_file_range.c: Likewise.
19674 * io/tst-copy_file_range-compat.c: Likewise.
19675 * io/tst-copy_file_range.c: Likewise.
19676 * manual/llio.texi (Copying File Data): New section.
19677 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
19678 * support/Makefile (libsupport-routines): Add support-xfstat,
19679 xftruncate, xlseek.
19680 * support/support-xfstat.c: New file.
19681 * support/xftruncate.c: Likewise.
19682 * support/xlseek.c: Likewise.
19683 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
19684 * sysdeps/unix/sysv/linux/**.abilist: Update.
19685 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
19686
19687 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
19688
19689 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19690 disable-multi-arch variant to aarch64-linux-gnu.
19691
19692 2017-12-20 Joseph Myers <joseph@codesourcery.com>
19693
19694 * manual/texinfo.tex: Update to version 2017-12-18.20 with
19695 trailing whitespace removed.
19696 * scripts/config.guess: Update to version 2017-12-17.
19697 * scripts/config.sub: Update to version 2017-11-23.
19698 * scripts/install-sh: Update to version 2017-09-23.17.
19699 * scripts/move-if-change: Update to version 2017-09-13 06:45.
19700
19701 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19702
19703 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
19704 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19705 * sysdeps/tile/_mcount.S (__mcount): Likewise.
19706 * sysdeps/tile/crti.S (_init, _fini): Likewise.
19707 * sysdeps/tile/crtn.S: Likewise.
19708 * sysdeps/tile/dl-start.S (_start): Likewise.
19709 * sysdeps/tile/dl-trampoline.S: Likewise.
19710 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
19711 * sysdeps/tile/start.S (_start): Likewise.
19712 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
19713 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
19714 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
19715 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
19716 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
19717 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
19718 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
19719
19720 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
19721 comment.
19722 * sysdeps/tile/preconfigure: Remove tilegx folder.
19723 * sysdeps/tile/tilegx/Implies: Move definitions to ...
19724 * sysdeps/tile/Implies: ... here.
19725 * sysdeps/tile/tilegx/Makefile: Move rules to ...
19726 * sysdeps/tile/Makefile: ... here.
19727 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
19728 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
19729 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
19730 * sysdeps/tile/bits/wordsize.h: ... here.
19731 * sysdeps/tile/tilegx/*: Move to ...
19732 * sysdeps/tile/*: ... here.
19733 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
19734 * sysdeps/tile/tilegx32/Implies: ... here.
19735 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
19736 * sysdeps/tile/tilegx64/Implies: ... here.
19737 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
19738 to ...
19739 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
19740 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
19741 * sysdeps/unix/sysv/linux/tile/*: ... here.
19742 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
19743 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
19744 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
19745 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
19746
19747 * README: Remove tilepro-*-linux-gnu from supported architecture.
19748 * scripts/build-many-glibcs.py: Likewise.
19749 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19750 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
19751 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
19752 elf_machine_matches_host, elf_machine_dynamic,
19753 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
19754 howto, elf_machine_rela): Likewise.
19755 * sysdeps/tile/dl-start.S (_start): Likewise.
19756 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
19757 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
19758 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
19759 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
19760 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
19761 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19762 Likewise.
19763 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
19764 * sysdeps/tile/preconfigure: Likewise.
19765 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
19766 POINTER_CHK_GUARD): Likewise.
19767 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
19768 * sysdeps/tile/start.S (_start): Likewise.
19769 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
19770 Likewise.
19771 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
19772 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
19773 CMOVNEZ): Remove.
19774 * sysdeps/unix/sysv/linux/tile/bits/environments.h
19775 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
19776 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
19777 Likewise.
19778 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
19779 * sysdeps/tile/tilepro/Implies: Remove file.
19780 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
19781 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
19782 * sysdeps/tile/tilepro/memchr.c: Likewise.
19783 * sysdeps/tile/tilepro/memcpy.S: Likewise.
19784 * sysdeps/tile/tilepro/memset.c: Likewise.
19785 * sysdeps/tile/tilepro/memusage.h: Likewise.
19786 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
19787 * sysdeps/tile/tilepro/strchr.c: Likewise.
19788 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
19789 * sysdeps/tile/tilepro/strlen.c: Likewise.
19790 * sysdeps/tile/tilepro/strrchr.c: Likewise.
19791 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
19792 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
19793 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19794 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
19795 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
19796 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
19797 Likewise.
19798 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
19799 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19800 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
19801 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
19802 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19803 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
19804 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
19805 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
19806 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
19807 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
19808 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
19809 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
19810 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
19811 tilepro mention in comment.
19812
19813 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
19814 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
19815 * nptl/pthread_join_common.c: New file: common function used on
19816 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
19817 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
19818 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
19819 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
19820 (cleanup): Move definition to pthread_join_common.c.
19821 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
19822 Remove superflous checks.
19823 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
19824 Likewise.
19825
19826 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
19827
19828 * sysdeps/aarch64/libm-test-ulps: Update.
19829
19830 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19831
19832 * sysdeps/aarch64/memset.S (MEMSET): Define.
19833
19834 2017-12-20 Florian Weimer <fweimer@redhat.com>
19835
19836 [BZ #22635]
19837 nptl: Provide full implementation of pthread_self in libc.so.
19838 * nptl/Makefile (routines): Add pthread_self.
19839 (libpthread-routines): Replace pthread_self with
19840 compat-pthread_self.
19841 * nptl/forward.c (pthread_self): Remove.
19842 * nptl/nptl-init.c (pthread_functions): Do not initialize
19843 ptr_pthread_self.
19844 * nptl/pthread_self.c (pthread_self): Remove weak alias.
19845 * nptl/compat-pthread_self.c: New file.
19846 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
19847 Remove ptr_pthread_self.
19848
19849 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
19850
19851 * posix/regcomp.c: Fix spelling in comments.
19852 * posix/regex.h: Likewise.
19853 * posix/regex_internal.c: Likewise.
19854 * posix/regexec.c: Likewise.
19855
19856 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
19857
19858 [BZ #22377]
19859 * math/Makefile [C++] (tests): Add test for iseqsig.
19860 * math/math.h [C++] (iseqsig): New implementation, which does
19861 not rely on __MATH_TG/__builtin_types_compatible_p.
19862 * math/test-math-iseqsig.cc: New file.
19863 * sysdeps/powerpc/powerpc64le/Makefile
19864 (CFLAGS-test-math-iseqsig.cc): New variable.
19865
19866 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
19867
19868 * elf/dl-load.c (is_trusted_path): Remove.
19869 (fillin_rpath): Remove check_trusted argument and its use,
19870 all callers changed.
19871
19872 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19873
19874 [BZ #22630]
19875 * Makeconfig (link-pie-before-libc): Replace -pie with
19876 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
19877 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
19878 (tst-dlopen-aout-no-pie): New.
19879 (LDFLAGS-tst-prelink): Removed.
19880 (tst-prelink-no-pie): New.
19881 (LDFLAGS-tst-main1): Removed.
19882 (tst-main1-no-pie): New.
19883 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
19884 (tst-gmon-no-pie): New.
19885
19886 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19887
19888 * manual/install.texi: Document that --enable-static-pie
19889 implies PIE.
19890 * INSTALL: Regenerated.
19891
19892 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
19893
19894 [BZ #21309]
19895 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
19896 unsigned.
19897
19898 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19899
19900 Revert:
19901
19902 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19903
19904 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19905
19906 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19907
19908 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
19909 <errno.h>. Include "eexp.tbl".
19910 (half): New constant.
19911 (one): Likewise.
19912 (__ieee754_exp): Rewrite.
19913 (__slowexp): Remove prototype.
19914 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
19915 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
19916 * sysdeps/i386/fpu/slowexp.c: Likewise.
19917 * sysdeps/ia64/fpu/slowexp.c: Likewise.
19918 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
19919 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
19920 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
19921 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
19922 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
19923 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
19924 comment.
19925 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
19926 (CPPFLAGS-slowexp.c): Remove variable.
19927 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19928 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
19929 (CFLAGS-slowexp-fma.c): Remove variable.
19930 (CFLAGS-slowexp-fma4.c): Likewise.
19931 (CFLAGS-slowexp-avx.c): Likewise.
19932 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
19933 define as macro.
19934 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
19935 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
19936 * math/Makefile (type-double-routines): Remove slowexp.
19937 * manual/probes.texi (slowexp_p6): Remove.
19938 (slowexp_p32): Likewise.
19939
19940 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19941
19942 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19943 arithmetic.
19944
19945 * lib/glob.c (glob): Do not pass NULL to mempcpy.
19946
19947 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19948
19949 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19950
19951 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19952
19953 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
19954 <errno.h>. Include "eexp.tbl".
19955 (half): New constant.
19956 (one): Likewise.
19957 (__ieee754_exp): Rewrite.
19958 (__slowexp): Remove prototype.
19959 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
19960 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
19961 * sysdeps/i386/fpu/slowexp.c: Likewise.
19962 * sysdeps/ia64/fpu/slowexp.c: Likewise.
19963 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
19964 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
19965 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
19966 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
19967 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
19968 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
19969 comment.
19970 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
19971 (CPPFLAGS-slowexp.c): Remove variable.
19972 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19973 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
19974 (CFLAGS-slowexp-fma.c): Remove variable.
19975 (CFLAGS-slowexp-fma4.c): Likewise.
19976 (CFLAGS-slowexp-avx.c): Likewise.
19977 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
19978 define as macro.
19979 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
19980 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
19981 * math/Makefile (type-double-routines): Remove slowexp.
19982 * manual/probes.texi (slowexp_p6): Remove.
19983 (slowexp_p32): Likewise.
19984
19985 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19986 James Clarke <jrtc27@jrtc27.com>
19987
19988 [BZ #22603]
19989 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
19990 addition.
19991
19992 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19993
19994 [BZ #22605]
19995 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
19996 code.
19997
19998 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19999
20000 [BZ #22563]
20001 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20002 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20003 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20004 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20005 to feature_1.
20006
20007 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20008
20009 [BZ #22563]
20010 * bits/types/__cancel_jmp_buf_tag.h: New file.
20011 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20012 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20013 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20014 * nptl/Makefile (headers): Add
20015 bits/types/__cancel_jmp_buf_tag.h.
20016 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20017 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20018 * sysdeps/nptl/pthread.h: Include
20019 <bits/types/__cancel_jmp_buf_tag.h>.
20020 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20021 __cancel_jmp_buf.
20022 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20023
20024 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20025
20026 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20027 --enable-static-pie variants to x86_64, x32 and i686.
20028
20029 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20030
20031 [BZ #22631]
20032 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20033 argument for attrubutes. All callers changed.
20034 (__inline_mathop1): Likewise. All callers changed.
20035 (__inline_mathop): Likewise. All callers changed.
20036 [__USE_MISC] (scalbn): Use __inline_forward instead of
20037 __inline_forward_c.
20038 [__USE_ISOC99] (scalbln): Likewise.
20039 [__USE_ISOC99] (nearbyint): Likewise.
20040 [__USE_ISOC99] (lrint): Likewise.
20041 [__USE_MISC] (scalbnf): Likewise.
20042 [__USE_ISOC99] (scalblnf): Likewise.
20043 [__USE_ISOC99] (nearbyintf): Likewise.
20044 [__USE_ISOC99] (lrintf): Likewise.
20045 [__USE_MISC] (scalbnl): Likewise.
20046 [__USE_ISOC99] (scalblnl): Likewise.
20047 [__USE_ISOC99] (nearbyintl): Likewise.
20048 [__USE_ISOC99] (lrintl): Likewise.
20049 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20050 __inline_mathop and __m81_defun changed.
20051
20052 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20053 CPU or FPU for ARM hard-float configurations.
20054
20055 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20056
20057 * nptl/tst-attr3.c: Include <libc-diag.h>.
20058 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20059
20060 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20061
20062 * string/tester.c (test_strncat): Also disable -Warray-bounds
20063 warnings for two tests.
20064
20065 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20066
20067 [BZ #22614]
20068 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20069 $(cc-pie-default) == yes.
20070 * config.make.in (cc-pie-default): New.
20071 * configure.ac (libc_cv_pie_default): Renamed to ...
20072 (libc_cv_cc_pie_default): This.
20073 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20074 * configure: Regenerated.
20075
20076 2017-12-18 Florian Weimer <fweimer@redhat.com>
20077
20078 [BZ #20204]
20079 ld.so: Harden dl-libc/libdl hooks.
20080 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20081 (rtld_active): New function.
20082 * dlfcn/dladdr.c (__dladdr): Call it.
20083 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20084 * dlfcn/dlclose.c (__dlcose): Likewise.
20085 * dlfcn/dlerror.c (__dlerror): Likewise.
20086 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20087 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20088 * dlfcn/dlopen.c (__dlopen): Likewise.
20089 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20090 * dlfcn/dlsym.c (__dlsym): Likewise.
20091 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20092 * libio/vtables.c (_IO_vtable_check): Likewise.
20093 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20094 (__libc_dlclose): Likewise.
20095 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20096 assignment.
20097
20098 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20099
20100 [BZ #22446]
20101 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20102 buffers for readlink input and output.
20103
20104 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20105
20106 [BZ #22624]
20107 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20108 inhibit_stack_protector.
20109
20110 [BZ #22624]
20111 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20112 inhibit_stack_protector.
20113
20114 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20115
20116 [BZ #22627]
20117 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20118 code and invocation.
20119
20120 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20121
20122 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20123
20124 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20125
20126 [BZ #22505]
20127 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20128
20129 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20130
20131 * sysdeps/s390/fpu/libm-test-ulps: Update.
20132
20133 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20134
20135 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20136
20137 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20138
20139 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20140 constants to s_sincosf.h file.
20141 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20142 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20143 implementation.
20144 * sysdeps/ieee754/flt-32/s_sincosf.h:
20145 New file.
20146
20147 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20148
20149 [BZ #14681]
20150 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20151 before mtrace.
20152
20153 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20154
20155 [BZ #19574]
20156 * INSTALL: Regenerated.
20157 * Makeconfig (real-static-start-installed-name): New.
20158 (pic-default): Updated for --enable-static-pie.
20159 (pie-default): New for --enable-static-pie.
20160 (default-pie-ldflag): Likewise.
20161 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20162 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20163 Replace $(static-start-installed-name) with
20164 $(real-static-start-installed-name).
20165 (+prectorT): Updated for --enable-static-pie.
20166 (+postctorT): Likewise.
20167 (CFLAGS-.o): Add $(pie-default).
20168 (CFLAGS-.op): Likewise.
20169 * NEWS: Mention --enable-static-pie.
20170 * config.h.in (ENABLE_STATIC_PIE): New.
20171 * configure.ac (--enable-static-pie): New configure option.
20172 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20173 (have-static-pie): Likewise.
20174 Enable static PIE if linker supports --no-dynamic-linker.
20175 (ENABLE_STATIC_PIE): New AC_DEFINE.
20176 (enable-static-pie): New LIBC_CONFIG_VAR.
20177 * configure: Regenerated.
20178 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20179 gr$(start-installed-name) for --enable-static-pie.
20180 (extra-objs): Likewise.
20181 (install-lib): Likewise.
20182 (extra-objs): Add static-reloc.o and static-reloc.os
20183 ($(objpfx)$(start-installed-name)): Also depend on
20184 $(objpfx)static-reloc.o.
20185 ($(objpfx)r$(start-installed-name)): New.
20186 ($(objpfx)g$(start-installed-name)): Also depend on
20187 $(objpfx)static-reloc.os.
20188 ($(objpfx)gr$(start-installed-name)): New.
20189 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20190 in libc.a.
20191 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20192 initimage.
20193 * csu/static-reloc.c: New file.
20194 * elf/Makefile (routines): Add dl-reloc-static-pie.
20195 (elide-routines.os): Likewise.
20196 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20197 (tst-tls1-static-non-pie-no-pie): New.
20198 * elf/dl-reloc-static-pie.c: New file.
20199 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20200 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20201 STATIC_PIE_BOOTSTRAP.
20202 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20203 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20204 (tests-static): Likewise.
20205 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20206 (tst-gmon-static-no-pie): New.
20207 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20208 (CRT-tst-gmon-static-pie): Likewise.
20209 (tst-gmon-static-pie-ENV): Likewise.
20210 (tests-special): Likewise.
20211 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20212 (clean-tst-gmon-static-pie-data): Likewise.
20213 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20214 * gmon/tst-gmon-static-pie.c: New file.
20215 * manual/install.texi: Document --enable-static-pie.
20216 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20217 (_dl_get_dl_main_map): Likewise.
20218 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20219 * sysdeps/x86_64/configure.ac: Likewise.
20220 * sysdeps/i386/configure: Regenerated.
20221 * sysdeps/x86_64/configure: Likewise.
20222 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20223 (ASFLAGS-.op): Likewise.
20224
20225 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20226
20227 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20228 * posix/tst-mmap-offset.c (fname): Use /tmp.
20229 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20230
20231 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20232
20233 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20234
20235 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20236
20237 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20238 errno.
20239
20240 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20241
20242 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20243 --with-float=hard for arm-linux-gnueabihf configurations.
20244
20245 [BZ #14121]
20246 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20247 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20248 ($(mo-installed)): Use $(objpfx)%.mo.
20249 (realclean): Remove rule.
20250
20251 * po/Makefile (linguas): Remove rule and dependencies.
20252 (linguas.mo): Likewise.
20253 (.PHONY): Do not depend on linguas and linguas.mo.
20254 (podir): Remove variable.
20255 (pofiles): Likewise.
20256 [$(pofiles)] (%.po): Remove rule.
20257
20258 * sysdeps/sparc/sparc32/Makefile
20259 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20260 start-of-line whitespace in argument of echo.
20261 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20262 with whitespace. Generate __wrap_.udiv alias.
20263 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20264 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20265 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20266 * sysdeps/sparc/sparc32/urem.S: Likewise.
20267
20268 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20269
20270 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20271 for aligned inputs.
20272
20273 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20274
20275 * benchtests/bench-strcmp.c: Print output in JSON format.
20276
20277 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20278
20279 2017-12-14 Florian Weimer <fweimer@redhat.com>
20280
20281 [BZ #22607]
20282 CVE-2017-1000409
20283 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20284 the expanded path string.
20285
20286 2017-12-14 Florian Weimer <fweimer@redhat.com>
20287
20288 [BZ #22606]
20289 CVE-2017-1000408
20290 * elf/dl-load.c (system_dirs): Update comment.
20291 (nsystem_dirs_len): Use array_length.
20292 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20293
20294 2017-12-14 Florian Weimer <fweimer@redhat.com>
20295
20296 Simplify compiling most of support/ outside of glibc.
20297 * support/check_addrinfo.c: Include <string.h>.
20298 * support/check_dns_packet.c: Likewise.
20299 * support/check_hostent.c: Likewise.
20300 * support/support_can_chroot.c: Include <support/xunistd.h>.
20301 * support/support_format_addrinfo.c: Include <stdlib.h>
20302 * support/support_format_dns_packet.c: Include <stdbool.h>.
20303 * support/support_format_hostent.c: Include <stdlib.h>.
20304 * support/support_format_netent.c: Likewise.
20305 * support/support_write_string.c: Include <support/xunistd.h>.
20306 * support/xdlfcn.c: Include <stddef.h>.
20307
20308 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20309
20310 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20311
20312 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20313 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20314
20315 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20316 (sysdeps_routines): Add memset-niagara7.
20317 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20318 Likewise.
20319 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20320 file.
20321 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20322 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20323 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20324 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20325 Add niagara7 option.
20326 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20327 memset.
20328
20329 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20330 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20331 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20332 Likewise.
20333 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20334 New file.
20335 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20336 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20337 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20338 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20339 and __memmove_niagara7.
20340 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20341 Add niagara7 option.
20342 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20343 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20344 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20345 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20346 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20347
20348 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20349
20350 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20351 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20352 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20353 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20354
20355 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20356 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20357 _dl_sparc_cap_flags array.
20358 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20359
20360 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20361
20362 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20363 time whenever possible.
20364
20365 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20366
20367 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20368 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20369
20370 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20371
20372 * soft-fp/fmadf4.c: Move to ....
20373 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20374 * soft-fp/fmasf4.c: Move to ....
20375 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20376 * soft-fp/fmatf4.c: Move to ....
20377 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20378 * sysdeps/ieee754/soft-fp/Makefile: New file.
20379 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20380 * sysdeps/arm/preconfigure: Regenerated.
20381 * sysdeps/arm/nofpu/Implies: New file.
20382 * sysdeps/arm/s_fma.c: Remove file.
20383 * sysdeps/arm/s_fmaf.c: Likewise.
20384 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20385 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20386 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20387 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20388 * sysdeps/microblaze/s_fma.c: Remove file.
20389 * sysdeps/microblaze/s_fmaf.c: Likewise.
20390 * sysdeps/mips/mips32/nofpu/Implies: New file.
20391 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20392 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20393 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20394 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20395 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20396 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20397 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20398 implementation.
20399 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20400 * sysdeps/nios2/s_fma.c: Remove file.
20401 * sysdeps/nios2/s_fmaf.c: Likewise.
20402 * sysdeps/sh/nofpu/Implies: New file.
20403 * sysdeps/sh/s_fma.c: Remove file.
20404 * sysdeps/sh/s_fmaf.c: Likewise.
20405 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20406 * sysdeps/tile/s_fma.c: Remove file.
20407 * sysdeps/tile/s_fmaf.c: Likewise.
20408
20409 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20410
20411 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20412 Add s_cosf-sse2 and s_cosf-fma.
20413 (CFLAGS-s_cosf-fma.c): New.
20414 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20415 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20416 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20417
20418 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20419
20420 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20421
20422 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20423
20424 * libio/Makefile (tests): Add tst-bz22415.
20425 (tst-bz22415-ENV): New rule.
20426 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20427 (tests-special): Add tst-bz22415-mem.out.
20428 ($(objpfx)tst-bz22415-mem.out): New rule.
20429 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20430 in case of a successful seek operation.
20431 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20432 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20433 buffer is required.
20434 * libio/tst-bz22415.c: New test.
20435
20436 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20437
20438 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20439
20440 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20441 __IPC_64 to 0 to avoid IPC_64 being set.
20442
20443 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20444
20445 [BZ #22593]
20446 * math/bits/mathcalls.h (nextafter): Remove const.
20447 (nexttoward): Likewise.
20448
20449 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20450
20451 * configure.ac (--with-fp): Remove configure option.
20452 (with_fp_cond): New variable.
20453 (libc_cv_with_fp): New configure test. Use this variable instead
20454 of with_fp.
20455 * configure: Regenerated.
20456 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20457 * manual/install.texi (Configuring and compiling): Remove
20458 --without-fp.
20459 * INSTALL: Regenerated.
20460 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20461 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20462 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20463 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20464 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20465 use --without-fp to configure glibc.
20466
20467 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20468
20469 * manual/locale.texi (nl_langinfo): Fix a typo.
20470
20471 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20472
20473 [BZ #22588]
20474 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20475
20476 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20477
20478 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20479 (CFLAGS-argp-parse.c): Likewise.
20480 (CFLAGS-argp-fmtstream.c): Likewise.
20481 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20482 (CPPFLAGS-sha512-crypt.c): Likewise.
20483 (CPPFLAGS-md5-crypt.c): Likewise.
20484 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20485 (CFLAGS-stack_chk_fail_local.c): Likewise.
20486 (CFLAGS-backtrace.c): Likewise.
20487 (CFLAGS-sprintf_chk.c): Likewise.
20488 (CFLAGS-snprintf_chk.c): Likewise.
20489 (CFLAGS-vsprintf_chk.c): Likewise.
20490 (CFLAGS-vsnprintf_chk.c): Likewise.
20491 (CFLAGS-asprintf_chk.c): Likewise.
20492 (CFLAGS-vasprintf_chk.c): Likewise.
20493 (CFLAGS-obprintf_chk.c): Likewise.
20494 (CFLAGS-dprintf_chk.c): Likewise.
20495 (CFLAGS-vdprintf_chk.c): Likewise.
20496 (CFLAGS-printf_chk.c): Likewise.
20497 (CFLAGS-fprintf_chk.c): Likewise.
20498 (CFLAGS-vprintf_chk.c): Likewise.
20499 (CFLAGS-vfprintf_chk.c): Likewise.
20500 (CFLAGS-gets_chk.c): Likewise.
20501 (CFLAGS-fgets_chk.c): Likewise.
20502 (CFLAGS-fgets_u_chk.c): Likewise.
20503 (CFLAGS-fread_chk.c): Likewise.
20504 (CFLAGS-fread_u_chk.c): Likewise.
20505 (CFLAGS-swprintf_chk.c): Likewise.
20506 (CFLAGS-vswprintf_chk.c): Likewise.
20507 (CFLAGS-wprintf_chk.c): Likewise.
20508 (CFLAGS-fwprintf_chk.c): Likewise.
20509 (CFLAGS-vwprintf_chk.c): Likewise.
20510 (CFLAGS-vfwprintf_chk.c): Likewise.
20511 (CFLAGS-fgetws_chk.c): Likewise.
20512 (CFLAGS-fgetws_u_chk.c): Likewise.
20513 (CFLAGS-read_chk.c): Likewise.
20514 (CFLAGS-pread_chk.c): Likewise.
20515 (CFLAGS-pread64_chk.c): Likewise.
20516 (CFLAGS-recv_chk.c): Likewise.
20517 (CFLAGS-recvfrom_chk.c): Likewise.
20518 (CFLAGS-tst-longjmp_chk.c): Likewise.
20519 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20520 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20521 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20522 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20523 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20524 (CFLAGS-tst-chk1.c): Likewise.
20525 (CFLAGS-tst-chk2.c): Likewise.
20526 (CFLAGS-tst-chk3.c): Likewise.
20527 (CFLAGS-tst-chk4.cc): Likewise.
20528 (CFLAGS-tst-chk5.cc): Likewise.
20529 (CFLAGS-tst-chk6.cc): Likewise.
20530 (CFLAGS-tst-lfschk1.c): Likewise.
20531 (CFLAGS-tst-lfschk2.c): Likewise.
20532 (CFLAGS-tst-lfschk3.c): Likewise.
20533 (CFLAGS-tst-lfschk4.cc): Likewise.
20534 (CFLAGS-tst-lfschk5.cc): Likewise.
20535 (CFLAGS-tst-lfschk6.cc): Likewise.
20536 (CFLAGS-tst-ssp-1.c): Likewise.
20537 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
20538 (CFLAGS-scandir64.c): Likewise.
20539 (CFLAGS-scandir-tail.c): Likewise.
20540 (CFLAGS-scandir64-tail.c): Likewise.
20541 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
20542 (CFLAGS-dl-tunables.c): Likewise.
20543 (CFLAGS-dl-runtime.c): Likewise.
20544 (CFLAGS-dl-lookup.c): Likewise.
20545 (CFLAGS-dl-iterate-phdr.c): Likewise.
20546 (CFLAGS-vismain.c): Likewise.
20547 (CFLAGS-tst-linkall-static.c): Likewise.
20548 (CFLAGS-tst-linkall-static.c): Likewise.
20549 (CPPFLAGS-dl-load.c): Likewise.
20550 (CFLAGS-ldconfig.c): Likewise.
20551 (CFLAGS-dl-cache.c): Likewise.
20552 (CFLAGS-cache.c): Likewise.
20553 (CFLAGS-rtld.c): Likewise.
20554 (CFLAGS-multiload.c): Likewise.
20555 (CFLAGS-filtmod1.c): Likewise.
20556 (CFLAGS-tst-align.c): Likewise.
20557 (CFLAGS-tst-align2.c): Likewise.
20558 (CFLAGS-tst-alignmod.c): Likewise.
20559 (CFLAGS-tst-alignmod2.c): Likewise.
20560 (CPPFLAGS-tst-execstack.c): Likewise.
20561 (CFLAGS-tst-ptrguard1-static.c): Likewise.
20562 (CFLAGS-tst-latepthreadmod.c): Likewise.
20563 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
20564 (CFLAGS-getgrnam_r.c): Likewise.
20565 (CFLAGS-getgrent_r.c): Likewise.
20566 (CFLAGS-getgrent.c): Likewise.
20567 (CFLAGS-fgetgrent.c): Likewise.
20568 (CFLAGS-fgetgrent_r.c): Likewise.
20569 (CFLAGS-putgrent.c): Likewise.
20570 (CFLAGS-initgroups.c): Likewise.
20571 (CFLAGS-getgrgid.c): Likewise.
20572 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
20573 (CFLAGS-getsgent.c): Likewise.
20574 (CFLAGS-fgetsgent.c): Likewise.
20575 (CFLAGS-fgetsgent_r.c): Likewise.
20576 (CFLAGS-putsgent.c): Likewise.
20577 (CFLAGS-getsgnam.c): Likewise.
20578 (CFLAGS-getsgnam_r.c): Likewise.
20579 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
20580 (CFLAGS-iconv_charmap.c): Likewise.
20581 (CFLAGS-dummy-repertoire.c): Likewise.
20582 (CFLAGS-charmap.c): Likewise.
20583 (CFLAGS-linereader.c): Likewise.
20584 (CFLAGS-simple-hash.c): Likewise.
20585 (CFLAGS-gconv_conf.c): Likewise.
20586 (CFLAGS-iconvconfig.c): Likewise.
20587 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20588 (CFLAGS-gethstbyad.c): Likewise.
20589 (CFLAGS-gethstbynm_r.c): Likewise.
20590 (CFLAGS-gethstbynm.c): Likewise.
20591 (CFLAGS-gethstbynm2_r.c): Likewise.
20592 (CFLAGS-gethstbynm2.c): Likewise.
20593 (CFLAGS-gethstent_r.c): Likewise.
20594 (CFLAGS-gethstent.c): Likewise.
20595 (CFLAGS-rcmd.c): Likewise.
20596 (CFLAGS-getnetbynm_r.c): Likewise.
20597 (CFLAGS-getnetbynm.c): Likewise.
20598 (CFLAGS-getnetbyad_r.c): Likewise.
20599 (CFLAGS-getnetbyad.c): Likewise.
20600 (CFLAGS-getnetent_r.c): Likewise.
20601 (CFLAGS-getnetent.c): Likewise.
20602 (CFLAGS-getaliasent_r.c): Likewise.
20603 (CFLAGS-getaliasent.c): Likewise.
20604 (CFLAGS-getrpcent_r.c): Likewise.
20605 (CFLAGS-getrpcent.c): Likewise.
20606 (CFLAGS-getservent_r.c): Likewise.
20607 (CFLAGS-getservent.c): Likewise.
20608 (CFLAGS-getprtent_r.c): Likewise.
20609 (CFLAGS-getprtent.c): Likewise.
20610 (CFLAGS-either_ntoh.c): Likewise.
20611 (CFLAGS-either_hton.c): Likewise.
20612 (CFLAGS-getnetgrent.c): Likewise.
20613 (CFLAGS-getnetgrent_r.c): Likewise.
20614 (CFLAGS-tst-checks-posix.c): Likewise.
20615 (CFLAGS-tst-sockaddr.c): Likewise.
20616 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
20617 (CFLAGS-tst-translit.c): Likewise.
20618 (CFLAGS-tst-gettext2.c): Likewise.
20619 (CFLAGS-tst-codeset.c): Likewise.
20620 (CFLAGS-tst-gettext3.c): Likewise.
20621 (CFLAGS-tst-gettext4.c): Likewise.
20622 (CFLAGS-tst-gettext5.c): Likewise.
20623 (CFLAGS-tst-gettext6.c): Likewise.
20624 * io/Makefile (CFLAGS-open.c): Likewise.
20625 (CFLAGS-open64.c): Likewise.
20626 (CFLAGS-creat.c): Likewise.
20627 (CFLAGS-creat64.c): Likewise.
20628 (CFLAGS-fcntl.c): Likewise.
20629 (CFLAGS-poll.c): Likewise.
20630 (CFLAGS-ppoll.c): Likewise.
20631 (CFLAGS-lockf.c): Likewise.
20632 (CFLAGS-statfs.c): Likewise.
20633 (CFLAGS-fstatfs.c): Likewise.
20634 (CFLAGS-statvfs.c): Likewise.
20635 (CFLAGS-fstatvfs.c): Likewise.
20636 (CFLAGS-fts.c): Likewise.
20637 (CFLAGS-fts64.c): Likewise.
20638 (CFLAGS-ftw.c): Likewise.
20639 (CFLAGS-ftw64.c): Likewise.
20640 (CFLAGS-lockf.c): Likewise.
20641 (CFLAGS-posix_fallocate.c): Likewise.
20642 (CFLAGS-posix_fallocate64.c): Likewise.
20643 (CFLAGS-fallocate.c): Likewise.
20644 (CFLAGS-fallocate64.c): Likewise.
20645 (CFLAGS-read.c): Likewise.
20646 (CFLAGS-write.c): Likewise.
20647 (CFLAGS-test-stat.c): Likewise.
20648 (CFLAGS-test-lfs.c): Likewise.
20649 * libio/Makefile (CFLAGS-fileops.c): Likewise.
20650 (CFLAGS-fputc.c): Likewise.
20651 (CFLAGS-fputwc.c): Likewise.
20652 (CFLAGS-freopen64.c): Likewise.
20653 (CFLAGS-freopen.c): Likewise.
20654 (CFLAGS-fseek.c): Likewise.
20655 (CFLAGS-fseeko64.c): Likewise.
20656 (CFLAGS-fseeko.c): Likewise.
20657 (CFLAGS-ftello64.c): Likewise.
20658 (CFLAGS-ftello.c): Likewise.
20659 (CFLAGS-fwide.c): Likewise.
20660 (CFLAGS-genops.c): Likewise.
20661 (CFLAGS-getc.c): Likewise.
20662 (CFLAGS-getchar.c): Likewise.
20663 (CFLAGS-getwc.c): Likewise.
20664 (CFLAGS-getwchar.c): Likewise.
20665 (CFLAGS-iofclose.c): Likewise.
20666 (CFLAGS-iofflush.c): Likewise.
20667 (CFLAGS-iofgetpos64.c): Likewise.
20668 (CFLAGS-iofgetpos.c): Likewise.
20669 (CFLAGS-iofgets.c): Likewise.
20670 (CFLAGS-iofgetws.c): Likewise.
20671 (CFLAGS-iofputs.c): Likewise.
20672 (CFLAGS-iofputws.c): Likewise.
20673 (CFLAGS-iofread.c): Likewise.
20674 (CFLAGS-iofsetpos64.c): Likewise.
20675 (CFLAGS-iofsetpos.c): Likewise.
20676 (CFLAGS-ioftell.c): Likewise.
20677 (CFLAGS-iofwrite.c): Likewise.
20678 (CFLAGS-iogetdelim.c): Likewise.
20679 (CFLAGS-iogetline.c): Likewise.
20680 (CFLAGS-iogets.c): Likewise.
20681 (CFLAGS-iogetwline.c): Likewise.
20682 (CFLAGS-ioputs.c): Likewise.
20683 (CFLAGS-ioseekoff.c): Likewise.
20684 (CFLAGS-ioseekpos.c): Likewise.
20685 (CFLAGS-iosetbuffer.c): Likewise.
20686 (CFLAGS-iosetvbuf.c): Likewise.
20687 (CFLAGS-ioungetc.c): Likewise.
20688 (CFLAGS-ioungetwc.c): Likewise.
20689 (CFLAGS-oldfileops.c): Likewise.
20690 (CFLAGS-oldiofclose.c): Likewise.
20691 (CFLAGS-oldiofgetpos64.c): Likewise.
20692 (CFLAGS-oldiofgetpos.c): Likewise.
20693 (CFLAGS-oldiofsetpos64.c): Likewise.
20694 (CFLAGS-oldiofsetpos.c): Likewise.
20695 (CFLAGS-peekc.c): Likewise.
20696 (CFLAGS-putc.c): Likewise.
20697 (CFLAGS-putchar.c): Likewise.
20698 (CFLAGS-putwc.c): Likewise.
20699 (CFLAGS-putwchar.c): Likewise.
20700 (CFLAGS-rewind.c): Likewise.
20701 (CFLAGS-wfileops.c): Likewise.
20702 (CFLAGS-wgenops.c): Likewise.
20703 (CFLAGS-oldiofopen.c): Likewise.
20704 (CFLAGS-iofopen.c): Likewise.
20705 (CFLAGS-iofopen64.c): Likewise.
20706 (CFLAGS-oldtmpfile.c): Likewise.
20707 (CFLAGS-tst_putwc.c): Likewise.
20708 * locale/Makefile (CFLAGS-md5.c): Likewise.
20709 (CFLAGS-charmap.c): Likewise.
20710 (CFLAGS-locfile.c): Likewise.
20711 (CFLAGS-charmap-dir.c): Likewise.
20712 * login/Makefile (CFLAGS-grantpt.c): Likewise.
20713 (CFLAGS-getpt.c): Likewise.
20714 (CFLAGS-pt_chown.c): Likewise.
20715 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
20716 (CFLAGS-obstack.c): Likewise.
20717 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
20718 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
20719 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
20720 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
20721 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
20722 (CFLAGS-test-tgmath.c): Likewise.
20723 (CFLAGS-test-tgmath2.c): Likewise.
20724 (CFLAGS-test-tgmath-ret.c): Likewise.
20725 (CFLAGS-test-powl.c): Likewise.
20726 (CFLAGS-test-snan.c): Likewise.
20727 (CFLAGS-test-signgam-finite.c): Likewise.
20728 (CFLAGS-test-signgam-finite-c99.c): Likewise.
20729 (CFLAGS-test-signgam-finite-c11.c): Likewise.
20730 (CFLAGS-test-signgam-uchar.c): Likewise.
20731 (CFLAGS-test-signgam-uchar-init.c): Likewise.
20732 (CFLAGS-test-signgam-uchar-static.c): Likewise.
20733 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20734 (CFLAGS-test-signgam-uint.c): Likewise.
20735 (CFLAGS-test-signgam-uint-init.c): Likewise.
20736 (CFLAGS-test-signgam-uint-static.c): Likewise.
20737 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20738 (CFLAGS-test-signgam-ullong.c): Likewise.
20739 (CFLAGS-test-signgam-ullong-init.c): Likewise.
20740 (CFLAGS-test-signgam-ullong-static.c): Likewise.
20741 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20742 (CFLAGS-test-math-cxx11.cc): Likewise.
20743 (CFLAGS-test-math-isinff.cc): Likewise.
20744 (CFLAGS-test-math-iszero.cc): Likewise.
20745 (CFLAGS-test-math-issignaling.cc): Likewise.
20746 (CFLAGS-test-math-iscanonical.cc): Likewise.
20747 (CFLAGS-test-iszero-excess-precision.c): Likewise.
20748 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
20749 (CFLAGS-test-flt-eval-method.c): Likewise.
20750 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
20751 (CFLAGS-test-finite-macros.c): Likewise.
20752 * misc/Makefile (CFLAGS-select.c): Likewise.
20753 (CFLAGS-tsearch.c): Likewise.
20754 (CFLAGS-lsearch.c): Likewise.
20755 (CFLAGS-pselect.c): Likewise.
20756 (CFLAGS-readv.c): Likewise.
20757 (CFLAGS-writev.c): Likewise.
20758 (CFLAGS-preadv.c): Likewise.
20759 (CFLAGS-preadv64.c): Likewise.
20760 (CFLAGS-pwritev.c): Likewise.
20761 (CFLAGS-pwritev64.c): Likewise.
20762 (CFLAGS-preadv2.c): Likewise.
20763 (CFLAGS-preadv64v2.c): Likewise.
20764 (CFLAGS-pwritev2.c): Likewise.
20765 (CFLAGS-pwritev64v2.c): Likewise.
20766 (CFLAGS-usleep.c): Likewise.
20767 (CFLAGS-syslog.c): Likewise.
20768 (CFLAGS-error.c): Likewise.
20769 (CFLAGS-getpass.c): Likewise.
20770 (CFLAGS-mkstemp.c): Likewise.
20771 (CFLAGS-mkstemp64.c): Likewise.
20772 (CFLAGS-getsysstats.c): Likewise.
20773 (CFLAGS-getusershell.c): Likewise.
20774 (CFLAGS-err.c): Likewise.
20775 (CFLAGS-tst-tsearch.c): Likewise.
20776 (CFLAGS-msync.c): Likewise.
20777 (CFLAGS-fdatasync.c): Likewise.
20778 (CFLAGS-fsync.c): Likewise.
20779 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
20780 (CFLAGS-unwind.c): Likewise.
20781 (CFLAGS-unwind-forcedunwind.c): Likewise.
20782 (CFLAGS-pthread_cancel.c): Likewise.
20783 (CFLAGS-pthread_setcancelstate.c): Likewise.
20784 (CFLAGS-pthread_setcanceltype.c): Likewise.
20785 (CFLAGS-cancellation.c): Likewise.
20786 (CFLAGS-libc-cancellation.c): Likewise.
20787 (CFLAGS-pthread_exit.c): Likewise.
20788 (CFLAGS-forward.c): Likewise.
20789 (CFLAGS-pthread_testcancel.c): Likewise.
20790 (CFLAGS-pthread_join.c): Likewise.
20791 (CFLAGS-pthread_timedjoin.c): Likewise.
20792 (CFLAGS-pthread_once.c): Likewise.
20793 (CFLAGS-pthread_cond_wait.c): Likewise.
20794 (CFLAGS-sem_wait.c): Likewise.
20795 (CFLAGS-sem_timedwait.c): Likewise.
20796 (CFLAGS-fcntl.c): Likewise.
20797 (CFLAGS-lockf.c): Likewise.
20798 (CFLAGS-pread.c): Likewise.
20799 (CFLAGS-pread64.c): Likewise.
20800 (CFLAGS-pwrite.c): Likewise.
20801 (CFLAGS-pwrite64.c): Likewise.
20802 (CFLAGS-wait.c): Likewise.
20803 (CFLAGS-waitpid.c): Likewise.
20804 (CFLAGS-sigwait.c): Likewise.
20805 (CFLAGS-msgrcv.c): Likewise.
20806 (CFLAGS-msgsnd.c): Likewise.
20807 (CFLAGS-tcdrain.c): Likewise.
20808 (CFLAGS-open.c): Likewise.
20809 (CFLAGS-open64.c): Likewise.
20810 (CFLAGS-pause.c): Likewise.
20811 (CFLAGS-recv.c): Likewise.
20812 (CFLAGS-send.c): Likewise.
20813 (CFLAGS-accept.c): Likewise.
20814 (CFLAGS-sendto.c): Likewise.
20815 (CFLAGS-connect.c): Likewise.
20816 (CFLAGS-recvfrom.c): Likewise.
20817 (CFLAGS-recvmsg.c): Likewise.
20818 (CFLAGS-sendmsg.c): Likewise.
20819 (CFLAGS-close.c): Likewise.
20820 (CFLAGS-read.c): Likewise.
20821 (CFLAGS-write.c): Likewise.
20822 (CFLAGS-nanosleep.c): Likewise.
20823 (CFLAGS-sigsuspend.c): Likewise.
20824 (CFLAGS-msync.c): Likewise.
20825 (CFLAGS-fdatasync.c): Likewise.
20826 (CFLAGS-fsync.c): Likewise.
20827 (CFLAGS-pt-system.c): Likewise.
20828 (CFLAGS-tst-cleanup2.c): Likewise.
20829 (CFLAGS-tst-cleanupx2.c): Likewise.
20830 (CFLAGS-flockfile.c): Likewise.
20831 (CFLAGS-ftrylockfile.c): Likewise.
20832 (CFLAGS-funlockfile.c): Likewise.
20833 (CFLAGS-tst-initializers1.c): Likewise.
20834 (CFLAGS-tst-initializers1-c89.c): Likewise.
20835 (CFLAGS-tst-initializers1-c99.c): Likewise.
20836 (CFLAGS-tst-initializers1-c11.c): Likewise.
20837 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
20838 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
20839 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
20840 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
20841 (CFLAGS-nscd_getgr_r.c): Likewise.
20842 (CFLAGS-nscd_gethst_r.c): Likewise.
20843 (CFLAGS-nscd_getai.c): Likewise.
20844 (CFLAGS-nscd_initgroups.c): Likewise.
20845 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
20846 (CFLAGS-pause.c): Likewise.
20847 (CFLAGS-pread.c): Likewise.
20848 (CFLAGS-pread64.c): Likewise.
20849 (CFLAGS-pwrite.c): Likewise.
20850 (CFLAGS-pwrite64.c): Likewise.
20851 (CFLAGS-sleep.c): Likewise.
20852 (CFLAGS-wait.c): Likewise.
20853 (CFLAGS-waitid.c): Likewise.
20854 (CFLAGS-waitpid.c): Likewise.
20855 (CFLAGS-getopt.c): Likewise.
20856 (CFLAGS-wordexp.c): Likewise.
20857 (CFLAGS-sysconf.c): Likewise.
20858 (CFLAGS-pathconf.c): Likewise.
20859 (CFLAGS-fpathconf.c): Likewise.
20860 (CFLAGS-spawn.c): Likewise.
20861 (CFLAGS-spawnp.c): Likewise.
20862 (CFLAGS-spawni.c): Likewise.
20863 (CFLAGS-glob.c): Likewise.
20864 (CFLAGS-glob64.c): Likewise.
20865 (CFLAGS-getconf.c): Likewise.
20866 (CFLAGS-nanosleep.c): Likewise.
20867 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
20868 (CFLAGS-getpwent.c): Likewise.
20869 (CFLAGS-getpw.c): Likewise.
20870 (CFLAGS-fgetpwent_r.c): Likewise.
20871 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
20872 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
20873 (CFLAGS-mq_timedreceive.c): Likewise.
20874 (CFLAGS-mq_timedsend.c): Likewise.
20875 (CFLAGS-clock_nanosleep.c): Likewise.
20876 (CFLAGS-librt-cancellation.c): Likewise.
20877 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
20878 (CFLAGS-getspent.c): Likewise.
20879 (CFLAGS-fgetspent.c): Likewise.
20880 (CFLAGS-fgetspent_r.c): Likewise.
20881 (CFLAGS-putspent.c): Likewise.
20882 (CFLAGS-getspnam.c): Likewise.
20883 (CFLAGS-getspnam_r.c): Likewise.
20884 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
20885 (CFLAGS-sigsuspend.c): Likewise.
20886 (CFLAGS-sigtimedwait.c): Likewise.
20887 (CFLAGS-sigwait.c): Likewise.
20888 (CFLAGS-sigwaitinfo.c): Likewise.
20889 (CFLAGS-sigreturn.c): Likewise.
20890 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
20891 (CFLAGS-vfwprintf.c): Likewise.
20892 (CFLAGS-tmpfile.c): Likewise.
20893 (CFLAGS-tmpfile64.c): Likewise.
20894 (CFLAGS-tempname.c): Likewise.
20895 (CFLAGS-psignal.c): Likewise.
20896 (CFLAGS-vprintf.c): Likewise.
20897 (CFLAGS-cuserid.c): Likewise.
20898 (CFLAGS-errlist.c): Likewise.
20899 (CFLAGS-siglist.c): Likewise.
20900 (CFLAGS-scanf15.c): Likewise.
20901 (CFLAGS-scanf17.c): Likewise.
20902 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
20903 (CFLAGS-msort.c): Likewise.
20904 (CFLAGS-qsort.c): Likewise.
20905 (CFLAGS-system.c): Likewise.
20906 (CFLAGS-fmtmsg.c): Likewise.
20907 (CFLAGS-strfmon.c): Likewise.
20908 (CFLAGS-strfmon_l.c): Likewise.
20909 (CFLAGS-strfromd.c): Likewise.
20910 (CFLAGS-strfromf.c): Likewise.
20911 (CFLAGS-strfroml.c): Likewise.
20912 (CFLAGS-tst-bsearch.c): Likewise.
20913 (CFLAGS-tst-qsort.c): Likewise.
20914 (CFLAGS-tst-makecontext2.c): Likewise.
20915 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
20916 (CFLAGS-xnlm_prot.c): Likewise.
20917 (CFLAGS-xrstat.c): Likewise.
20918 (CFLAGS-xyppasswd.c): Likewise.
20919 (CFLAGS-xklm_prot.c): Likewise.
20920 (CFLAGS-xrex.c): Likewise.
20921 (CFLAGS-xsm_inter.c): Likewise.
20922 (CFLAGS-xmount.c): Likewise.
20923 (CFLAGS-xrusers.c): Likewise.
20924 (CFLAGS-xspray.c): Likewise.
20925 (CFLAGS-xnfs_prot.c): Likewise.
20926 (CFLAGS-xrquota.c): Likewise.
20927 (CFLAGS-xkey_prot.c): Likewise.
20928 (CFLAGS-auth_unix.c): Likewise.
20929 (CFLAGS-key_call.c): Likewise.
20930 (CFLAGS-pmap_rmt.c): Likewise.
20931 (CFLAGS-clnt_perr.c): Likewise.
20932 (CFLAGS-openchild.c): Likewise.
20933 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
20934 (CFLAGS-msgsnd.c): Likewise.
20935 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
20936 * time/Makefile (CFLAGS-tzfile.c): Likewise.
20937 (CFLAGS-tzset.c): Likewise.
20938 (CFLAGS-getdate.c): Likewise.
20939 (CFLAGS-test_time.c): Likewise.
20940 (CPPFLAGS-tst-tzname.c): Likewise.
20941 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
20942 (CFLAGS-zic.c): Likewise.
20943 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
20944 (CFLAGS-wcswidth.c): Likewise.
20945 (CFLAGS-wcstol.c): Likewise.
20946 (CFLAGS-wcstoul.c): Likewise.
20947 (CFLAGS-wcstoll.c): Likewise.
20948 (CFLAGS-wcstoull.c): Likewise.
20949 (CFLAGS-wcstod.c): Likewise.
20950 (CFLAGS-wcstold.c): Likewise.
20951 (CFLAGS-wcstof128.c): Likewise.
20952 (CFLAGS-wcstof.c): Likewise.
20953 (CFLAGS-wcstol_l.c): Likewise.
20954 (CFLAGS-wcstoul_l.c): Likewise.
20955 (CFLAGS-wcstoll_l.c): Likewise.
20956 (CFLAGS-wcstoull_l.c): Likewise.
20957 (CFLAGS-wcstod_l.c): Likewise.
20958 (CFLAGS-wcstold_l.c): Likewise.
20959 (CFLAGS-wcstof128_l.c): Likewise.
20960 (CFLAGS-wcstof_l.c): Likewise.
20961 (CPPFLAGS-tst-wchar-h.c): Likewise.
20962 (CPPFLAGS-wcstold_l.c): Likewise.
20963
20964 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
20965
20966 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
20967
20968 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
20969 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20970
20971 * manual/tunables.texi (Hardware Capability Tunables): Document
20972 glibc.tune.cached_memopt.
20973 * sysdeps/powerpc/cpu-features.c: New file.
20974 * sysdeps/powerpc/cpu-features.h: New file.
20975 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
20976 _dl_powerpc_cpu_features.
20977 * sysdeps/powerpc/dl-tunables.list: New file.
20978 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
20979 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
20980 (INIT_ARCH): Initialize use_aligned_memopt.
20981 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
20982 IS_IN(rtld))]: Restrict dl_platform_init availability and
20983 initialize CPU features used by tunables.
20984 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
20985 Add memcpy-power8-cached.
20986 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
20987 __memcpy_power8_cached.
20988 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
20989 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
20990 New file.
20991
20992 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20993
20994 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
20995 (CFLAGS-noinl-tester.c): Likewise.
20996 (CFLAGS-tst-strlen.c): Likewise.
20997 (CFLAGS-stratcliff.c): Likewise.
20998 (CFLAGS-test-ffs.c): Likewise.
20999 (CFLAGS-tst-inlcall.c): Likewise.
21000 (CFLAGS-tst-xbzero-opt.c): Likewise.
21001 (CFLAGS-memcpy.c): Likewise.
21002 (CFLAGS-wordcopy.c): Likewise.
21003
21004 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21005
21006 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21007 Store r15 on stack and add cfi rule.
21008 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21009 Likewise.
21010
21011 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21012
21013 [BZ #22577]
21014 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21015 call.
21016
21017 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21018
21019 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21020 Add s_sinf-sse2 and s_sinf-fma.
21021 (CFLAGS-s_sinf-fma.c): New.
21022 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21023 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21024 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21025
21026 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21027
21028 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21029
21030 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21031
21032 [BZ #22568]
21033 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21034 part of result to imaginary part of argument if it is zero and the
21035 real part of the argument is not finite.
21036 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21037 of result to real part of argument if it is zero and the imaginary
21038 part of the argument is not finite.
21039
21040 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21041
21042 [BZ #22524]
21043 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21044 and to the list of locales to be built for testing.
21045 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21046 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21047 and build the collation rules upon that.
21048
21049 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21050
21051 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21052 * manual/math.texi (Mathematics): Document support for _Float32.
21053 * math/Makefile (test-types): Add float32.
21054 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21055 * stdlib/Versions (GLIBC_2.27): Likewise.
21056 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21057 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21058 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21059 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21060 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21061 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21062 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21063 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21064 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21065 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21066 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21067 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21068 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21069 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21070 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21071 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21072 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21073 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21074 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21075 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21076 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21077 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21078 Likewise.
21079 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21080 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21081 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21082 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21083 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21084 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21085 Likewise.
21086 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21087 Likewise.
21088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21089 Likewise.
21090 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21091 Likewise.
21092
21093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21094 Likewise.
21095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21096 Likewise.
21097 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21098 Likewise.
21099 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21100 Likewise.
21101 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21102 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21103 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21104 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21105 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21106 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21107 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21108 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21109 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21110 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21111 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21112 Likewise.
21113 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21114 Likewise.
21115 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21116 Likewise.
21117 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21118 Likewise.
21119 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21120 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21121 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21122 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21123 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21124 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21125 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21126 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21127
21128 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21129
21130 * stdlib/strtof.c: Include <bits/floatn.h>
21131 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21132 and later undefine as macro. Define as weak alias if
21133 [!USE_WIDE_CHAR].
21134 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21135 and later undefine as macro. Define as weak alias if
21136 [USE_WIDE_CHAR].
21137 * stdlib/strtof_l.c: Include <bits/floatn.h>
21138 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21139 and later undefine as macro. Define as weak alias if
21140 [!USE_WIDE_CHAR].
21141 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21142 and later undefine as macro. Define as weak alias if
21143 [USE_WIDE_CHAR].
21144
21145 * stdlib/strfromf.c: Include <bits/floatn.h>.
21146 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21147 and later undefine as macro and define as weak alias.
21148
21149 * math/test-float32.h: New file.
21150
21151 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21152 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21153 (libm_alias_float_other_r): Create f32 alias.
21154 (libm_alias_float_r): Use semicolon before call to
21155 libm_alias_float_other_r.
21156
21157 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21158 second argument to libm_alias_float_other.
21159 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21160 second argument to libm_alias_float_other.
21161 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21162 argument to libm_alias_float_other.
21163
21164 [BZ #22561]
21165 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21166 real part of result for argument 0 + i * NaN.
21167 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21168 results for tests of 0 + i * NaN.
21169
21170 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21171
21172 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21173
21174 2017-12-06 David S. Miller <davem@davemloft.net>
21175
21176 * sysdeps/sparc/fpu/libm-test-ulps: Update
21177 exp_{downward,towardzero,upward} ulps.
21178
21179 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21180
21181 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21182 variables static.
21183
21184 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21185 (Y0_2D): Likewise.
21186 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21187 (Y0_2D): Likewise.
21188 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21189 (Y0_2D): Likewise.
21190 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21191 (Y0_2D): Likewise.
21192
21193 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21194
21195 [BZ #22515]
21196 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21197 and to the list of locales to be built for testing.
21198 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21199 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21200 and build the collation rules upon that.
21201
21202 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21203
21204 * NEWS: Add sinf to list of optimized functions.
21205
21206 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21207
21208 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21209 (__HAVE_FLOAT32X): Likewise.
21210 * manual/math.texi (Mathematics): Document support for _Float64
21211 and _Float32x.
21212 * math/Makefile (test-types): Add float64 and float32x.
21213 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21214 functions.
21215 * stdlib/Versions (GLIBC_2.27): Likewise.
21216 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21217 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21218 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21219 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21220 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21221 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21222 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21223 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21224 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21225 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21226 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21227 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21228 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21229 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21230 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21231 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21232 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21233 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21234 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21235 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21236 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21237 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21238 Likewise.
21239 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21240 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21241 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21242 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21243 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21245 Likewise.
21246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21247 Likewise.
21248 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21249 Likewise.
21250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21251 Likewise.
21252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21253 Likewise.
21254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21255 Likewise.
21256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21257 Likewise.
21258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21259 Likewise.
21260 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21261 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21262 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21263 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21264 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21265 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21266 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21267 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21268 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21269 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21270 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21271 Likewise.
21272 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21273 Likewise.
21274 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21275 Likewise.
21276 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21277 Likewise.
21278 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21279 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21280 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21281 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21282 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21283 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21284 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21285 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21286
21287 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21288
21289 * bits/floatn-common.h: Include <bits/long-double.h>.
21290 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21291 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21292 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21293 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21294 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21295 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21296 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21297 (__builtin_huge_valf64): Use __builtin_huge_vall.
21298 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21299 (__builtin_inff64): Use __builtin_infl.
21300 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21301 (__builtin_nanf64): Use __builtin_nanl.
21302 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21303 (__builtin_nansf64): Use __builtin_nansl.
21304
21305 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21306 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21307 Carlos O'Donnell <carlos@redhat.com>
21308
21309 * elf/dl-tunables.list: Add elision parameters.
21310 * manual/tunables.texi: Add entries about elision tunable.
21311 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21312 Add callback functions to dynamically enable/disable elision.
21313 Add multiple callbacks functions to set elision parameters.
21314 Deleted __libc_enable_secure check.
21315 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21316 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21317 * configure: Regenerated.
21318 * configure.ac: Option enable_lock_elision was deleted.
21319 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21320 * config.make.in: Remove references to enable_lock_elision.
21321 * manual/install.texi: Elision configure option was removed.
21322 * INSTALL: Regenerated to remove enable_lock_elision.
21323 * nptl/Makefile:
21324 Disable elision so it can verify error case for destroying a mutex.
21325 * sysdeps/powerpc/nptl/elide.h:
21326 Cleanup ENABLE_LOCK_ELISION check.
21327 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21328 * sysdeps/s390/configure: Regenerated.
21329 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21330 * nptl/tst-mutex8.c:
21331 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21332 * sysdeps/powerpc/powerpc32/sysdep.h:
21333 Deleted all ENABLE_LOCK_ELISION checks.
21334 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21335 * sysdeps/powerpc/sysdep.h: Likewise.
21336 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21337 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21338 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21339 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21340 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21341 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21342 enable-lock-elision.
21343
21344 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21345
21346 * stdlib/strtod.c: Include <bits/floatn.h>.
21347 (BUILD_DOUBLE): New macro.
21348 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21349 (strtof64): Define and later undefine as macro. Define as weak
21350 alias if [!USE_WIDE_CHAR].
21351 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21352 (wcstof64): Define and later undefine as macro. Define as weak
21353 alias if [USE_WIDE_CHAR].
21354 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21355 (strtof32x): Define and later undefine as macro. Define as weak
21356 alias if [!USE_WIDE_CHAR].
21357 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21358 (wcstof32x): Define and later undefine as macro. Define as weak
21359 alias if [USE_WIDE_CHAR].
21360 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21361 (BUILD_DOUBLE): New macro.
21362 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21363 (strtof64_l): Define and later undefine as macro. Define as weak
21364 alias if [!USE_WIDE_CHAR].
21365 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21366 (wcstof64_l): Define and later undefine as macro. Define as weak
21367 alias if [USE_WIDE_CHAR].
21368 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21369 (strtof32x_l): Define and later undefine as macro. Define as weak
21370 alias if [!USE_WIDE_CHAR].
21371 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21372 (wcstof32x_l): Define and later undefine as macro. Define as weak
21373 alias if [USE_WIDE_CHAR].
21374
21375 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21376
21377 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21378 (reduced): Use ones as double instead of integer.
21379
21380 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21381
21382 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21383
21384 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21385
21386 * stdlib/strfromd.c: Include <bits/floatn.h>.
21387 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21388 and later undefine as macro and define as weak alias.
21389 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21390 Likewise.
21391
21392 * math/test-float32x.h: New file.
21393 * math/test-float64.h: Likewise.
21394
21395 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21396 (libm_alias_double_other_r_f64): New macro.
21397 (libm_alias_double_other_r_f32x): Likewise.
21398 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21399 libm_alias_double_other_r_f32x.
21400 (libm_alias_double_r): Use semicolon before call to
21401 libm_alias_double_other_r.
21402 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21403 <bits/floatn.h>.
21404 (libm_alias_double_other_r_f64): New macro.
21405 (libm_alias_double_other_r_f32x): Likewise.
21406 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21407 libm_alias_double_other_r_f32x.
21408
21409 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21410
21411 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21412 int.
21413 (SINF_FUNC): Likewise. Replace floor with simple casts.
21414
21415 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21416
21417 [BZ #22517]
21418 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21419 and to the list of locales to be built for testing.
21420 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21421 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21422 and build the collation rules upon that.
21423
21424 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21425
21426 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21427 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21428 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21429 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21430 instead of __insn__xxx.
21431 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21432 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21433 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21434 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21435 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21436 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21437
21438 2017-12-05 Florian Weimer <fweimer@redhat.com>
21439
21440 Linux: Implement interfaces for memory protection keys
21441 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21442 xsignal, xsysconf.
21443 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21444 * support/xunistd.h (xsysconf): Declare.
21445 * support/xraise.c: New file.
21446 * support/xsigaction.c: Likewise.
21447 * support/xsignal.c: Likewise.
21448 * support/xsysconf.c: Likewise.
21449 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21450 pkey_set, pkey_get, pkey_mprotect.
21451 [misc] (tests): Add tst-pkey.
21452 (tst-pkey): Link with -lpthread.
21453 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21454 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21455 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21456 (PKEY_DISABLE_WRITE): Define.
21457 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21458 Declare.
21459 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21460 (SEGV_PKUERR): Add.
21461 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21462 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21463 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21464 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21465 Add.
21466 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21467 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21468 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21469 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21470 * sysdeps/unix/sysv/linux/**.abilist: Update.
21471
21472 2017-12-05 Florian Weimer <fweimer@redhat.com>
21473
21474 * support/tst-test_compare.c (subprocess): Use long long instead
21475 of long argument for consistent type width across 32-bit and
21476 64-bit architectures.
21477 (do_test): Adjust expected output.
21478
21479 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21480
21481 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21482 (cosf): Define using libm_alias_float.
21483 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21484 (fabsf): Define using libm_alias_float.
21485 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21486 (fmaf): Define using libm_alias_float.
21487 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21488 (rintf): Define using libm_alias_float.
21489 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21490 (sinf): Define using libm_alias_float.
21491 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21492 <libm-alias-float.h>.
21493 (modff): Define using libm_alias_float.
21494 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21495 <libm-alias-float.h>.
21496 (logbf): Define using libm_alias_float.
21497 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21498 <libm-alias-float.h>.
21499 (ceilf): Define using libm_alias_float.
21500 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21501 <libm-alias-float.h>.
21502 (copysignf): Define using libm_alias_float.
21503 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21504 <libm-alias-float.h>.
21505 (floorf): Define using libm_alias_float.
21506 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21507 <libm-alias-float.h>.
21508 (llrintf): Define using libm_alias_float.
21509 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21510 <libm-alias-float.h>.
21511 (llroundf): Define using libm_alias_float.
21512 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21513 <libm-alias-float.h>.
21514 (lrintf): Define using libm_alias_float.
21515 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21516 <libm-alias-float.h>.
21517 (lroundf): Define using libm_alias_float.
21518 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21519 <libm-alias-float.h>.
21520 (nearbyintf): Define using libm_alias_float.
21521 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21522 <libm-alias-float.h>.
21523 (rintf): Define using libm_alias_float.
21524 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21525 <libm-alias-float.h>.
21526 (roundf): Define using libm_alias_float.
21527 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21528 <libm-alias-float.h>.
21529 (truncf): Define using libm_alias_float.
21530 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
21531 Include <libm-alias-float.h>.
21532 (ceilf): Define using libm_alias_float.
21533 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
21534 Include <libm-alias-float.h>.
21535 (copysignf): Define using libm_alias_float.
21536 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
21537 Include <libm-alias-float.h>.
21538 (floorf): Define using libm_alias_float.
21539 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
21540 Include <libm-alias-float.h>.
21541 (llrintf): Define using libm_alias_float.
21542 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
21543 Include <libm-alias-float.h>.
21544 (llroundf): Define using libm_alias_float.
21545 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
21546 Include <libm-alias-float.h>.
21547 (logbf): Define using libm_alias_float.
21548 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
21549 Include <libm-alias-float.h>.
21550 (lrintf): Define using libm_alias_float.
21551 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
21552 Include <libm-alias-float.h>.
21553 (lroundf): Define using libm_alias_float.
21554 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
21555 Include <libm-alias-float.h>.
21556 (modff): Define using libm_alias_float.
21557 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
21558 Include <libm-alias-float.h>.
21559 (roundf): Define using libm_alias_float.
21560 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
21561 Include <libm-alias-float.h>.
21562 (truncf): Define using libm_alias_float.
21563 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
21564 <libm-alias-float.h>.
21565 (llrintf): Define using libm_alias_float.
21566 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21567 <libm-alias-float.h>.
21568 (llroundf): Define using libm_alias_float.
21569 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
21570 <libm-alias-float.h>.
21571 (ceilf): Define using libm_alias_float.
21572 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
21573 <libm-alias-float.h>.
21574 (floorf): Define using libm_alias_float.
21575 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21576 <libm-alias-float.h>.
21577 (llroundf): Define using libm_alias_float.
21578 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21579 <libm-alias-float.h>.
21580 (lroundf): Define using libm_alias_float.
21581 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
21582 <libm-alias-float.h>.
21583 (roundf): Define using libm_alias_float.
21584 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
21585 <libm-alias-float.h>.
21586 (truncf): Define using libm_alias_float.
21587 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21588 <libm-alias-float.h>.
21589 (copysignf): Define using libm_alias_float.
21590 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
21591 <libm-alias-float.h>.
21592 (llrintf): Define using libm_alias_float.
21593 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21594 <libm-alias-float.h>.
21595 (llroundf): Define using libm_alias_float.
21596 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21597 <libm-alias-float.h>.
21598 (lrintf): Define using libm_alias_float.
21599 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21600 <libm-alias-float.h>.
21601 (lroundf): Define using libm_alias_float.
21602 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
21603 <libm-alias-float.h>.
21604 (ceilf): Define using libm_alias_float.
21605 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
21606 <libm-alias-float.h>.
21607 (copysignf): Define using libm_alias_float.
21608 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
21609 <libm-alias-float.h>.
21610 (cosf): Define using libm_alias_float.
21611 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
21612 <libm-alias-float.h>.
21613 (floorf): Define using libm_alias_float.
21614 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
21615 <libm-alias-float.h>.
21616 (llrintf): Define using libm_alias_float.
21617 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
21618 <libm-alias-float.h>.
21619 (llroundf): Define using libm_alias_float.
21620 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
21621 <libm-alias-float.h>.
21622 (logbf): Define using libm_alias_float.
21623 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
21624 <libm-alias-float.h>.
21625 (modff): Define using libm_alias_float.
21626 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
21627 <libm-alias-float.h>.
21628 (roundf): Define using libm_alias_float.
21629 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
21630 <libm-alias-float.h>.
21631 (sinf): Define using libm_alias_float.
21632 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
21633 <libm-alias-float.h>.
21634 (truncf): Define using libm_alias_float.
21635 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
21636 <libm-alias-float.h>.
21637 (ceilf): Define using libm_alias_float.
21638 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21639 <libm-alias-float.h>.
21640 (copysignf): Define using libm_alias_float.
21641 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
21642 <libm-alias-float.h>.
21643 (floorf): Define using libm_alias_float.
21644 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21645 <libm-alias-float.h>.
21646 (llrintf): Define using libm_alias_float.
21647 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
21648 <libm-alias-float.h>.
21649 (llroundf): Define using libm_alias_float.
21650 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
21651 <libm-alias-float.h>.
21652 (nearbyintf): Define using libm_alias_float.
21653 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
21654 <libm-alias-float.h>.
21655 (rintf): Define using libm_alias_float.
21656 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
21657 <libm-alias-float.h>.
21658 (roundf): Define using libm_alias_float.
21659 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
21660 <libm-alias-float.h>.
21661 (truncf): Define using libm_alias_float.
21662 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
21663 <libm-alias-float.h>.
21664 (ceilf): Define using libm_alias_float.
21665 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
21666 <libm-alias-float.h>.
21667 (floorf): Define using libm_alias_float.
21668 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21669 <libm-alias-float.h>.
21670 (llroundf): Define using libm_alias_float.
21671 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
21672 <libm-alias-float.h>.
21673 (roundf): Define using libm_alias_float.
21674 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
21675 <libm-alias-float.h>.
21676 (truncf): Define using libm_alias_float.
21677 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21678 <libm-alias-float.h>.
21679 (copysignf): Define using libm_alias_float.
21680 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21681 <libm-alias-float.h>.
21682 (llrintf): Define using libm_alias_float.
21683 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21684 <libm-alias-float.h>.
21685 (llroundf): Define using libm_alias_float.
21686 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
21687 <libm-alias-float.h>.
21688 (cosf): Define using libm_alias_float.
21689 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21690 <libm-alias-float.h>.
21691 (llrintf): Define using libm_alias_float.
21692 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21693 <libm-alias-float.h>.
21694 (llroundf): Define using libm_alias_float.
21695 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
21696 <libm-alias-float.h>.
21697 (sinf): Define using libm_alias_float.
21698
21699 2017-12-04 Florian Weimer <fweimer@redhat.com>
21700
21701 * support/check.h (TEST_COMPARE): Define.
21702 (support_test_compare_failure): Declare.
21703 * support/Makefile (libsupport-routines): Add
21704 support_test_compare_failure.
21705 (tests): Add tst-test_compare.
21706 * support /support_test_compare_failure.c: New file.
21707 * support/tst-test_compare.c: Likewise.
21708
21709 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21710
21711 [BZ #22527]
21712 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
21713 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
21714 available, this rewrite of the collation rules does reproduce
21715 the test file in the same order.
21716
21717 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21718
21719 [BZ #10580]
21720 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
21721 digraphs in the month and day names. Using single code points for
21722 digraphs is deprecated. While there are dedicated Unicode
21723 codepoints, for the digraphs, these are included for backwards
21724 compatibility and modern texts use a sequence of Basic Latin
21725 characters. See: https://www.unicode.org/faq/ligature_digraph.html
21726 This makes the month and day names agree exactly with CLDR now,
21727 CLDR does not use the single code points for the digraphs either.
21728
21729 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
21730
21731 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
21732
21733 2017-12-04 Joseph Myers <joseph@codesourcery.com>
21734
21735 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
21736 of floor.
21737
21738 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
21739
21740 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
21741 Define only for libc.so.
21742
21743 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
21744
21745 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21746 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
21747 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
21748 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
21749 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21750
21751 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21752
21753 [BZ #5997]
21754 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
21755
21756 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
21757
21758 [BZ libc/19170]
21759 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
21760 PREINIT_FUNCTION_WEAK is nonzero.
21761 (gmon_initializer): New function. Put procedure label for it in
21762 .init_array section.
21763 (_init): Don't call PREINIT_FUNCTION.
21764 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
21765 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
21766 value when map argument is null.
21767
21768 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
21769 depi instruction from PIC pc-relative sequence.
21770 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
21771 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
21772 (elf_machine_load_address): Likewise.
21773 (elf_machine_runtime_setup): Likewise.
21774
21775 2017-12-02 Joseph Myers <joseph@codesourcery.com>
21776
21777 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
21778 <libm-alias-double.h>.
21779 (logb): Define using libm_alias_double.
21780 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21781 <libm-alias-double.h>.
21782 (copysign): Define using libm_alias_double.
21783 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
21784 <libm-alias-double.h>.
21785 (llrint): Define using libm_alias_double.
21786 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
21787 <libm-alias-double.h>.
21788 (llround): Define using libm_alias_double.
21789 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21790 <libm-alias-double.h>.
21791 (lrint): Define using libm_alias_double.
21792 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21793 <libm-alias-double.h>.
21794 (lround): Define using libm_alias_double.
21795 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
21796 Include <libm-alias-double.h>.
21797 (copysign): Define using libm_alias_double.
21798 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
21799 Include <libm-alias-double.h>.
21800 (llrint): Define using libm_alias_double.
21801 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
21802 Include <libm-alias-double.h>.
21803 (llround): Define using libm_alias_double.
21804 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
21805 <libm-alias-double.h>.
21806 (logb): Define using libm_alias_double.
21807 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
21808 Include <libm-alias-double.h>.
21809 (lrint): Define using libm_alias_double.
21810 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
21811 Include <libm-alias-double.h>.
21812 (lround): Define using libm_alias_double.
21813 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
21814 <libm-alias-double.h>.
21815 (llrint): Define using libm_alias_double.
21816 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21817 <libm-alias-double.h>.
21818 (llround): Define using libm_alias_double.
21819 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21820 <libm-alias-double.h>.
21821 (llround): Define using libm_alias_double.
21822 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21823 <libm-alias-double.h>.
21824 (lround): Define using libm_alias_double.
21825 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21826 <libm-alias-double.h>.
21827 (copysign): Define using libm_alias_double.
21828 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
21829 <libm-alias-double.h>.
21830 (llrint): Define using libm_alias_double.
21831 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21832 <libm-alias-double.h>.
21833 (llround): Define using libm_alias_double.
21834 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21835 <libm-alias-double.h>.
21836 (lrint): Define using libm_alias_double.
21837 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21838 <libm-alias-double.h>.
21839 (lround): Define using libm_alias_double.
21840 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
21841 <libm-alias-double.h>.
21842 (copysign): Define using libm_alias_double.
21843 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
21844 <libm-alias-double.h>.
21845 (llrint): Define using libm_alias_double.
21846 (lrint): Likewise.
21847 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
21848 <libm-alias-double.h>.
21849 (llround): Define using libm_alias_double.
21850 (lround): Likewise.
21851 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
21852 <libm-alias-double.h>.
21853 (logb): Define using libm_alias_double.
21854 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21855 <libm-alias-double.h>.
21856 (copysign): Define using libm_alias_double.
21857 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21858 <libm-alias-double.h>.
21859 (llrint): Define using libm_alias_double.
21860 (lrint): Likewise.
21861 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
21862 <libm-alias-double.h>.
21863 (llround): Define using libm_alias_double.
21864 (lround): Likewise.
21865 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21866 <libm-alias-double.h>.
21867 (llround): Define using libm_alias_double.
21868 (lround): Likewise.
21869 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21870 <libm-alias-double.h>.
21871 (copysign): Define using libm_alias_double.
21872 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21873 <libm-alias-double.h>.
21874 (llrint): Define using libm_alias_double.
21875 (lrint): Likewise.
21876 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21877 <libm-alias-double.h>.
21878 (llround): Define using libm_alias_double.
21879 (lround): Likewise.
21880 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21881 <libm-alias-double.h>.
21882 (llrint): Define using libm_alias_double.
21883 (lrint): Likewise.
21884 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21885 <libm-alias-double.h>.
21886 (llround): Define using libm_alias_double.
21887 (lround): Likewise.
21888
21889 2017-12-01 Joseph Myers <joseph@codesourcery.com>
21890
21891 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
21892 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
21893 compat symbol based on llround.
21894
21895 * sysdeps/powerpc/power7/fpu/s_logb.c
21896 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
21897 symbol based on __logb, not on logb.
21898 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
21899 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
21900 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
21901 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
21902
21903 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
21904 (rint): Define using libm_alias_double.
21905 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
21906 <libm-alias-double.h>.
21907 (modf): Define using libm_alias_double.
21908 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
21909 <libm-alias-double.h>.
21910 (ceil): Define using libm_alias_double.
21911 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
21912 <libm-alias-double.h>.
21913 (floor): Define using libm_alias_double.
21914 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
21915 <libm-alias-double.h>.
21916 (nearbyint): Define using libm_alias_double.
21917 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
21918 <libm-alias-double.h>.
21919 (rint): Define using libm_alias_double.
21920 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
21921 <libm-alias-double.h>.
21922 (round): Define using libm_alias_double.
21923 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
21924 <libm-alias-double.h>.
21925 (trunc): Define using libm_alias_double.
21926 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
21927 <libm-alias-double.h>.
21928 (ceil): Define using libm_alias_double.
21929 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
21930 Include <libm-alias-double.h>.
21931 (floor): Define using libm_alias_double.
21932 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
21933 <libm-alias-double.h>.
21934 (modf): Define using libm_alias_double.
21935 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
21936 Include <libm-alias-double.h>.
21937 (round): Define using libm_alias_double.
21938 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
21939 Include <libm-alias-double.h>.
21940 (trunc): Define using libm_alias_double.
21941 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
21942 <libm-alias-double.h>.
21943 (ceil): Define using libm_alias_double.
21944 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
21945 <libm-alias-double.h>.
21946 (floor): Define using libm_alias_double.
21947 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
21948 <libm-alias-double.h>.
21949 (round): Define using libm_alias_double.
21950 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
21951 <libm-alias-double.h>.
21952 (trunc): Define using libm_alias_double.
21953 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
21954 <libm-alias-double.h>.
21955 (ceil): Define using libm_alias_double.
21956 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
21957 <libm-alias-double.h>.
21958 (floor): Define using libm_alias_double.
21959 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
21960 <libm-alias-double.h>.
21961 (modf): Define using libm_alias_double.
21962 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
21963 <libm-alias-double.h>.
21964 (round): Define using libm_alias_double.
21965 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
21966 <libm-alias-double.h>.
21967 (trunc): Define using libm_alias_double.
21968 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
21969 <libm-alias-double.h>.
21970 (ceil): Define using libm_alias_double.
21971 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
21972 <libm-alias-double.h>.
21973 (floor): Define using libm_alias_double.
21974 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
21975 <libm-alias-double.h>.
21976 (nearbyint): Define using libm_alias_double.
21977 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
21978 <libm-alias-double.h>.
21979 (rint): Define using libm_alias_double.
21980 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
21981 <libm-alias-double.h>.
21982 (round): Define using libm_alias_double.
21983 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
21984 <libm-alias-double.h>.
21985 (trunc): Define using libm_alias_double.
21986 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
21987 <libm-alias-double.h>.
21988 (ceil): Define using libm_alias_double.
21989 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
21990 <libm-alias-double.h>.
21991 (floor): Define using libm_alias_double.
21992 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
21993 <libm-alias-double.h>.
21994 (round): Define using libm_alias_double.
21995 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
21996 <libm-alias-double.h>.
21997 (trunc): Define using libm_alias_double.
21998
21999 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22000 (fabs): Define using libm_alias_double.
22001 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22002 (fma): Define using libm_alias_double.
22003 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22004 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22005 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22006 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22007
22008 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22009
22010 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22011
22012 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22013 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22014 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22015
22016 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22017 due redirect macro.
22018
22019 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22020
22021 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22022
22023 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22024
22025 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22026 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22027 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22028 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22029
22030 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22031 (libm-sysdep_routines): Add s_nearbyintf-generic and
22032 s_nearbyint-generic.
22033 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22034 New file.
22035 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22036 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22037 Likewise.
22038 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22039 Likewise.
22040 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22041 file.
22042 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22043 Likewise.
22044
22045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22046 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22047 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22048 file.
22049 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22050 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22051 Likewise.
22052 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22053 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22054 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22055
22056 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22057 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22058 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22059 file.
22060 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22061 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22062 Likewise.
22063 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22064 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22065 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22066
22067 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22068 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22069 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22070 file.
22071 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22072 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22073 Likewise.
22074 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22075 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22076 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22077
22078 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22079 (sysdep_calls): New rule.
22080 (sysdep_routines): Use sysdep_calls as base.
22081 (libm-sysdep_routines): Add generic rule for symbols shared with
22082 libc. Add s_copysign-generic and s_copysign-generic objects.
22083 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22084 New file.
22085 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22086 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22087 Likewise.
22088 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22089 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22090 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22091
22092 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22093
22094 [BZ #22519]
22095 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22096 the list of locales to be built for testing.
22097 * localedata/is_IS.UTF-8.in: New file.
22098 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22099 on iso14651_t1.
22100
22101 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22102
22103 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22104 <libm-alias-float.h>.
22105 (fabsf): Define using libm_alias_float.
22106
22107 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22108
22109 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22110
22111 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22112
22113 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22114 <libm-alias-float.h>.
22115 (fabsf): Define using libm_alias_float.
22116 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22117 <libm-alias-float.h>.
22118 (lrintf): Define using libm_alias_float.
22119 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22120 <libm-alias-float.h>.
22121 (rintf): Define using libm_alias_float.
22122
22123 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22124 <libm-alias-double.h>.
22125 (fabs): Define using libm_alias_double.
22126 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22127 <libm-alias-double.h>.
22128 (lrint): Define using libm_alias_double.
22129 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22130 <libm-alias-double.h>.
22131 (rint): Define using libm_alias_double.
22132
22133 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22134 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22135 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22136 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22137 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22138 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22139 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22140 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22141 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22142 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22143 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22144 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22145 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22146 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22147 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22148 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22149 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22150 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22151 s_atan_template.c.
22152 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22153 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22154 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22155 s_ceil_template.c.
22156 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22157 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22158 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22159 s_cos_template.c.
22160 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22161 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22162 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22163 s_expm1_template.c.
22164 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22165 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22166 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22167 s_fabs_template.c.
22168 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22169 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22170 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22171 s_floor_template.c.
22172 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22173 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22174 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22175 s_frexp_template.c.
22176 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22177 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22178 s_lrint_template.c.
22179 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22180 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22181 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22182 s_modf_template.c.
22183 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22184 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22185 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22186 s_nearbyint_template.c.
22187 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22188 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22189 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22190 s_remquo_template.c.
22191 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22192 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22193 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22194 s_rint_template.c.
22195 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22196 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22197 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22198 s_sin_template.c.
22199 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22200 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22201 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22202 s_sincos_template.c.
22203 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22204 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22205 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22206 s_tan_template.c.
22207 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22208 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22209 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22210 s_tanh_template.c.
22211 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22212 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22213 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22214 s_trunc_template.c.
22215 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22216 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22217 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22218 s_atan.c instead of including s_atan.c.
22219 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22220 s_atanf.c instead of including s_atanf.c.
22221 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22222 s_atanl.c instead of including s_atanl.c.
22223 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22224 instead of s_atan.c.
22225 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22226 instead of s_atanf.c.
22227 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22228 instead of s_atanl.c.
22229
22230 * scripts/update-copyrights: Do not handle intl/plural.c
22231 specially.
22232
22233 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22234
22235 [BZ #22432]
22236 * configure.ac (BISON): Require to be present.
22237 * configure: Regenerated.
22238 * intl/Makefile (generated): Add plural.c.
22239 [$(BISON) != no]: Make code unconditional.
22240 (plural.c): Change rule to $(objpfx)plural.c.
22241 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22242 * intl/plural.c: Remove.
22243 * manual/install.texi (Tools for Compilation): Document bison as
22244 required.
22245 * INSTALL: Regenerated.
22246
22247 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22248
22249 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22250 <libm-alias-double.h>.
22251 (llrint): Define using libm_alias_double.
22252 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22253 <libm-alias-float.h>.
22254 (llrintf): Define using libm_alias_float.
22255 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22256 <libm-alias-ldouble.h>.
22257 (llrintl): Define using libm_alias_ldouble.
22258
22259 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22260 declare_mgen_alias instead of weak_alias.
22261 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22262 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22263 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22264
22265 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22266
22267 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22268 Add add_n-generic.
22269 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22270 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22271 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22272
22273 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22274 Add submul_1-generic.
22275 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22276 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22277 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22278
22279 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22280 Add addmul_1-generic.
22281 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22282 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22283 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22284
22285 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22286 Add sub_n-generic.
22287 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22288 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22289 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22290
22291 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22292 Add mul_1-generic.
22293 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22294 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22295 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22296
22297 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22298
22299 According to CLDR, collation rules for Serbian and Bosnian
22300 should be the same as for Croatian.
22301
22302 [BZ #22534]
22303 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22304 and to the list of locales to be built for testing.
22305 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22306 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22307 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22308 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22309
22310 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22311
22312 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22313 to make test case pass.
22314 * localedata/hr_HR.UTF-8.in: Add more test strings.
22315
22316 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22317
22318 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22319
22320 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22321
22322 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22323 the list of locales to built for testing.
22324 * localedata/hr_HR.UTF-8.in: New file.
22325
22326 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22327
22328 [BZ #10580]
22329 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22330 iso14651_t1.
22331 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22332 CLDR (except use ligatures for the digraphs, CLDR does not use
22333 the ligatures), add first_workday, some fixes in the date and time
22334 formats.
22335 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22336 for Đ and đ.
22337 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22338 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22339 Add int_p_cs_precedes and int_n_cs_precedes.
22340 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22341 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22342 LC_MONETARY now).
22343 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22344 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22345 name_miss.
22346 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22347 and lang_lib. Change postal_fmt.
22348
22349 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22350
22351 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22352 <setjmp.h>.
22353 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22354 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22355 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22356 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22357 * sysdeps/generic/setjmpP.h: New file.
22358 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22359 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22360 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22361 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22362 Add jmp_buf-ssp.sym.
22363 (tests): Add tst-saved_mask-1.
22364
22365 2017-11-30 Arjun Shankar <arjun@redhat.com>
22366
22367 [BZ #22375]
22368 CVE-2017-17426
22369 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22370 instead of request2size.
22371
22372 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22373
22374 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22375 (__lllrint): Remove alias.
22376 (lllrint): Likewise.
22377 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22378 (__lllrintf): Likewise.
22379 (lllrintf): Likewise.
22380
22381 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22382 <libm-alias-float.h>.
22383 (copysignf): Define using libm_alias_float.
22384 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22385 <libm-alias-float.h>.
22386 (fabsf): Define using libm_alias_float.
22387 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22388 Include <libm-alias-float.h>.
22389 (copysignf): Define using libm_alias_float.
22390 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22391 <libm-alias-float.h>.
22392 (fabsf): Define using libm_alias_float.
22393 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22394 <libm-alias-float.h>.
22395 (fdimf): Define using libm_alias_float.
22396 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22397 <libm-alias-float.h>.
22398 (fmaf): Define using libm_alias_float.
22399 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22400 <libm-alias-float.h>.
22401 (llrintf): Define using libm_alias_float.
22402 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22403 Include <libm-alias-float.h>.
22404 (nearbyintf): Define using libm_alias_float.
22405 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22406 <libm-alias-float.h>.
22407 (rintf): Define using libm_alias_float.
22408 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22409 <libm-alias-float.h>.
22410 (llrintf): Define using libm_alias_float.
22411 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22412 <libm-alias-float.h>.
22413 (lrintf): Define using libm_alias_float.
22414 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22415 <libm-alias-float.h>.
22416 (nearbyintf): Define using libm_alias_float.
22417 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22418 <libm-alias-float.h>.
22419 (rintf): Define using libm_alias_float.
22420 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22421 <libm-alias-float.h>.
22422 (ceilf): Define using libm_alias_float.
22423 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22424 <libm-alias-float.h>.
22425 (floorf): Define using libm_alias_float.
22426 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22427 <libm-alias-float.h>.
22428 (fmaf): Define using libm_alias_float.
22429 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22430 <libm-alias-float.h>.
22431 (lrintf): Define using libm_alias_float.
22432 (llrintf): Likewise.
22433 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22434 <libm-alias-float.h>.
22435 (nearbyintf): Define using libm_alias_float.
22436 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22437 <libm-alias-float.h>.
22438 (rintf): Define using libm_alias_float.
22439 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22440 <libm-alias-float.h>.
22441 (truncf): Define using libm_alias_float.
22442 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22443 <libm-alias-float.h>.
22444 (copysignf): Define using libm_alias_float.
22445 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22446 <libm-alias-float.h>.
22447 (fabsf): Define using libm_alias_float.
22448 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22449 <libm-alias-float.h>.
22450 (lrintf): Define using libm_alias_float.
22451 (llrintf): Likewise.
22452 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22453 <libm-alias-float.h>.
22454 (nearbyintf): Define using libm_alias_float.
22455 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22456 <libm-alias-float.h>.
22457 (rintf): Define using libm_alias_float.
22458
22459 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22460
22461 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22462 <libm-alias-double.h>.
22463 (copysign): Define using libm_alias_double.
22464 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22465 <libm-alias-double.h>.
22466 (fabs): Define using libm_alias_double.
22467 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22468 Include <libm-alias-double.h>.
22469 (copysign): Define using libm_alias_double.
22470 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22471 <libm-alias-double.h>.
22472 (fabs): Define using libm_alias_double.
22473 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22474 <libm-alias-double.h>.
22475 (fdim): Define using libm_alias_double.
22476 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22477 <libm-alias-double.h>.
22478 (fma): Define using libm_alias_double.
22479 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22480 <libm-alias-double.h>.
22481 (llrint): Define using libm_alias_double.
22482 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22483 Include <libm-alias-double.h>.
22484 (nearbyint): Define using libm_alias_double.
22485 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22486 <libm-alias-double.h>.
22487 (rint): Define using libm_alias_double.
22488 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22489 <libm-alias-double.h>.
22490 (fabs): Define using libm_alias_double.
22491 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22492 <libm-alias-double.h>.
22493 (llrint): Define using libm_alias_double.
22494 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22495 <libm-alias-double.h>.
22496 (nearbyint): Define using libm_alias_double.
22497 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22498 <libm-alias-double.h>.
22499 (rint): Define using libm_alias_double.
22500 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22501 <libm-alias-double.h>.
22502 (ceil): Define using libm_alias_double.
22503 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22504 <libm-alias-double.h>.
22505 (floor): Define using libm_alias_double.
22506 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22507 <libm-alias-double.h>.
22508 (fma): Define using libm_alias_double.
22509 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22510 <libm-alias-double.h>.
22511 (lrint): Define using libm_alias_double.
22512 (llrint): Likewise.
22513 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22514 <libm-alias-double.h>.
22515 (nearbyint): Define using libm_alias_double.
22516 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22517 <libm-alias-double.h>.
22518 (rint): Define using libm_alias_double.
22519 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22520 <libm-alias-double.h>.
22521 (trunc): Define using libm_alias_double.
22522 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22523 <libm-alias-double.h>.
22524 (copysign): Define using libm_alias_double.
22525 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22526 <libm-alias-double.h>.
22527 (fabs): Define using libm_alias_double.
22528 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
22529 <libm-alias-double.h>.
22530 (lrint): Define using libm_alias_double.
22531 (llrint): Likewise.
22532 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
22533 <libm-alias-double.h>.
22534 (nearbyint): Define using libm_alias_double.
22535 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
22536 <libm-alias-double.h>.
22537 (rint): Define using libm_alias_double.
22538
22539 [BZ #22229]
22540 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22541 <math_ldbl_opt.h>.
22542 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22543
22544 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22545 SPARC --disable-multi-arch glibc variants.
22546
22547 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
22548 <libm-alias-float.h>.
22549 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22550 if [SHARED].
22551 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
22552 <libm-alias-float.h>.
22553 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22554 if [SHARED].
22555 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
22556 <libm-alias-float.h>.
22557 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22558 if [SHARED].
22559 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
22560 <libm-alias-float.h>.
22561 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22562 if [SHARED].
22563 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
22564 <libm-alias-float.h>.
22565 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22566 if [SHARED].
22567 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
22568 <libm-alias-float.h>.
22569 (ceilf): Define using libm_alias_float.
22570 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
22571 <libm-alias-float.h>.
22572 (floorf): Define using libm_alias_float.
22573 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
22574 <libm-alias-float.h>.
22575 (fmaf): Define using libm_alias_float.
22576 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
22577 <libm-alias-float.h>.
22578 (nearbyintf): Define using libm_alias_float.
22579 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
22580 <libm-alias-float.h>.
22581 (rintf): Define using libm_alias_float.
22582 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
22583 <libm-alias-float.h>.
22584 (truncf): Define using libm_alias_float.
22585 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22586 (copysignf): Define using libm_alias_float.
22587 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
22588 (cosf): Define using libm_alias_float.
22589 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22590 (fabsf): Define using libm_alias_float.
22591 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22592 (fmaxf): Define using libm_alias_float.
22593 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
22594 (fminf): Define using libm_alias_float.
22595 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22596 (llrintf): Define using libm_alias_float.
22597 [!__ILP32__] (lrintf): Likewise.
22598 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
22599 (sincosf): Define using libm_alias_float.
22600 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
22601 (sinf): Define using libm_alias_float.
22602 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22603 (lrintf): Define using libm_alias_float.
22604
22605 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
22606 <libm-alias-double.h>.
22607 (atan): Define using libm_alias_double.
22608 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
22609 <libm-alias-double.h>.
22610 (ceil): Define using libm_alias_double.
22611 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
22612 <libm-alias-double.h>.
22613 (floor): Define using libm_alias_double.
22614 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
22615 <libm-alias-double.h>.
22616 (fma): Define using libm_alias_double.
22617 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
22618 <libm-alias-double.h>.
22619 (nearbyint): Define using libm_alias_double.
22620 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
22621 <libm-alias-double.h>.
22622 (rint): Define using libm_alias_double.
22623 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
22624 <libm-alias-double.h>.
22625 (sin): Define using libm_alias_double.
22626 (cos): Likewise.
22627 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
22628 <libm-alias-double.h>.
22629 (tan): Define using libm_alias_double.
22630 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
22631 <libm-alias-double.h>.
22632 (trunc): Define using libm_alias_double.
22633 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
22634 (copysign): Define using libm_alias_double.
22635 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
22636 (fabs): Define using libm_alias_double.
22637 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
22638 (fmax): Define using libm_alias_double.
22639 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
22640 (fmin): Define using libm_alias_double.
22641 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
22642 (llrint): Define using libm_alias_double.
22643 [!__ILP32__] (lrint): Likewise.
22644 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
22645 (lrint): Define using libm_alias_double.
22646
22647 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22648
22649 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22650 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
22651 objects.
22652 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
22653 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
22654 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
22655 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
22656 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
22657 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22658
22659 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22660 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
22661 objects.
22662 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
22663 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
22664 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
22665 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
22666 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
22667 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22668
22669 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22670 (libm-sysdep_routines): Add s_nearbyint-generic and
22671 s_nearbyintf-generic objects.
22672 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
22673 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
22674 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
22675 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
22676 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
22677 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
22678
22679 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22680 Add s_finitef-generic and s_finite-generic objects.
22681 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
22682 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
22683 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
22684 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
22685 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
22686 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
22687
22688 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22689 Add s_isinff-generic and s_isinf-generic objects.
22690 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
22691 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
22692 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
22693 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
22694 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
22695 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22696
22697 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22698 Add s_isnanf-generic and s_isnan-generic objects.
22699 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
22700 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
22701 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
22702 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
22703 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
22704 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22705
22706 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
22707 macro.
22708 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
22709 rule.
22710 (sysdep_routines): Use sysdep_calls as base.
22711 (libm-sysdep_routines): Add generic rule for symbols shared with
22712 libc. Add s_signbit-generic and s_signbitf-generic objects.
22713 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
22714 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
22715 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
22716 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
22717 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
22718 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
22719
22720 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22721
22722 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
22723 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
22724 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
22725 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
22726 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
22727 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
22728 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
22729 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
22730 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
22731 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
22732 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
22733 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
22734 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
22735 libm_alias_float_r.
22736 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
22737 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
22738 (logf): Likewise.
22739 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
22740 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
22741 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
22742 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
22743 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
22744 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
22745 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
22746 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
22747 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
22748 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
22749 libm_alias_float.
22750 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
22751 (cosf): Likewise.
22752 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
22753 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
22754 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
22755 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
22756 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
22757 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
22758 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
22759 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
22760 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
22761 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
22762 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
22763 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
22764 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
22765 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
22766 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
22767 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
22768 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
22769 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
22770 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
22771 libm_alias_float.
22772 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
22773 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
22774 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
22775 * sysdeps/ia64/fpu/w_lgammaf_main.c
22776 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
22777 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
22778
22779 2017-11-28 Mike FABIAN <mfabian@redhat.com>
22780 Alexandre Oliva <aoliva@redhat.com>
22781
22782 [BZ #17750]
22783 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
22784 * localedata/fr_CA.UTF-8.in: New file with test data for backward
22785 accents sorting.
22786 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
22787 sorting.
22788 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
22789 * localedata/locales/de_DE (LC_COLLATE): Likewise.
22790 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
22791 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
22792 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
22793 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
22794 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
22795 instead of “ifdef DIACRIT_BACKWARD”.
22796
22797 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22798
22799 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
22800 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
22801 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
22802 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
22803 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
22804 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
22805 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
22806 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
22807 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
22808 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
22809 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
22810 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
22811 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
22812 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
22813 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
22814 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22815 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
22816 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
22817 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22818 ($(have-as-vis3) == yes): Remove conditional.
22819 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
22820 Likewise.
22821 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
22822 file.
22823 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
22824 file.
22825 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
22826 file.
22827 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
22828 file.
22829 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
22830 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
22831 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
22832 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
22833 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
22834 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
22835 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
22836 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
22837
22838 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22839
22840 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
22841 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
22842 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
22843 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
22844 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
22845 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
22846 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
22847 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
22848 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
22849 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
22850 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
22851 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
22852 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
22853 libm_alias_double_r.
22854 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
22855 (log): Likewise.
22856 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
22857 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
22858 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
22859 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
22860 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
22861 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
22862 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
22863 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
22864 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
22865 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
22866 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
22867 libm_alias_double.
22868 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
22869 (cos): Likewise.
22870 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
22871 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
22872 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
22873 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
22874 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
22875 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
22876 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
22877 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
22878 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
22879 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
22880 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
22881 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
22882 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
22883 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
22884 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
22885 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
22886 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
22887 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
22888 libm_alias_double.
22889 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
22890 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
22891 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
22892 * sysdeps/ia64/fpu/w_lgamma_main.c
22893 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
22894 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
22895
22896 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
22897
22898 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
22899 address of $global$ into %dp register earlier. Use pc-relative
22900 instruction sequence for PIC case.
22901
22902 2017-11-28 Joseph Myers <joseph@codesourcery.com>
22903
22904 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
22905 (asinhf): Define using libm_alias_float.
22906 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
22907 (atanf): Define using libm_alias_float.
22908 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
22909 (cbrtf): Define using libm_alias_float.
22910 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
22911 (ceilf): Define using libm_alias_float.
22912 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22913 (copysignf): Define using libm_alias_float.
22914 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
22915 (expm1f): Define using libm_alias_float.
22916 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
22917 (fabsf): Define using libm_alias_float.
22918 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
22919 (floorf): Define using libm_alias_float.
22920 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22921 (fmaxf): Define using libm_alias_float.
22922 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
22923 (fminf): Define using libm_alias_float.
22924 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
22925 (frexpf): Define using libm_alias_float.
22926 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22927 (llrintf): Define using libm_alias_float.
22928 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
22929 (logbf): Define using libm_alias_float.
22930 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22931 (lrintf): Define using libm_alias_float.
22932 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
22933 (nearbyintf): Define using libm_alias_float.
22934 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
22935 (remquof): Define using libm_alias_float.
22936 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
22937 (rintf): Define using libm_alias_float.
22938 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
22939 (truncf): Define using libm_alias_float.
22940 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
22941 <libm-alias-float.h>.
22942 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22943 if [SHARED].
22944 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
22945 <libm-alias-float.h>.
22946 (expf): Define using libm_alias_float, or libm_alias_float_other
22947 if [SHARED].
22948 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
22949 <libm-alias-float.h>.
22950 (log2f): Define using libm_alias_float, or libm_alias_float_other
22951 if [SHARED].
22952 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
22953 <libm-alias-float.h>.
22954 (logf): Define using libm_alias_float, or libm_alias_float_other
22955 if [SHARED].
22956 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
22957 <libm-alias-float.h>.
22958 (powf): Define using libm_alias_float, or libm_alias_float_other
22959 if [SHARED].
22960 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
22961 <libm-alias-float.h>.
22962 (cosf): Define using libm_alias_float.
22963 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
22964 <libm-alias-float.h>.
22965 (sincosf): Define using libm_alias_float.
22966 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
22967 <libm-alias-float.h>.
22968 (sinf): Define using libm_alias_float.
22969 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22970 (fmaxf): Define using libm_alias_float.
22971 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
22972 (fminf): Define using libm_alias_float.
22973 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
22974 <libm-alias-float.h>.
22975 (fmaf): Define using libm_alias_float.
22976
22977 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
22978 (asinh): Define using libm_alias_double.
22979 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
22980 (atan): Define using libm_alias_double.
22981 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
22982 (cbrt): Define using libm_alias_double.
22983 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
22984 (ceil): Define using libm_alias_double.
22985 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
22986 (copysign): Define using libm_alias_double.
22987 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
22988 (expm1): Define using libm_alias_double.
22989 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
22990 (fabs): Define using libm_alias_double.
22991 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
22992 (fdim): Define using libm_alias_double.
22993 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
22994 (floor): Define using libm_alias_double.
22995 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
22996 (fmax): Define using libm_alias_double.
22997 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
22998 (fmin): Define using libm_alias_double.
22999 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23000 (frexp): Define using libm_alias_double.
23001 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23002 (llrint): Define using libm_alias_double.
23003 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23004 (logb): Define using libm_alias_double.
23005 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23006 (lrint): Define using libm_alias_double.
23007 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23008 (nearbyint): Define using libm_alias_double.
23009 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23010 (remquo): Define using libm_alias_double.
23011 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23012 (rint): Define using libm_alias_double.
23013 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23014 (trunc): Define using libm_alias_double.
23015 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23016 (fmax): Define using libm_alias_double.
23017 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23018 (fmin): Define using libm_alias_double.
23019 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23020 (fma): Define using libm_alias_double.
23021
23022 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23023
23024 [BZ #22370]
23025 * elf/dl-hwcaps.c (ROUND): Removed.
23026 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23027 and ELF_NOTE_NEXT_OFFSET.
23028 * elf/dl-load.c (ROUND): Removed.
23029 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23030 * elf/readelflib.c (ROUND): Removed.
23031 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23032 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23033 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23034 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23035
23036 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23037
23038 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23039 [!__fmaf] (fmaf): Define using libm_alias_float.
23040
23041 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23042 [!__fma] (fma): Define using libm_alias_double.
23043 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23044
23045 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23046
23047 [BZ #22336]
23048 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23049 and implement the collation rules for cs from CLDR on top of that.
23050 * Makefile: Add cs_CZ.UTF-8 to test-input.
23051 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23052
23053 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23054
23055 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23056
23057 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23058 Icarus Sparry <icarus.w.sparry@intel.com>
23059
23060 * benchtests/Makefile:Add BENCHSET to allow subsets of
23061 benchmarks to be run.
23062 * benchtests/README: Add documentation for: Running subsets of
23063 benchmarks.
23064
23065 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23066
23067 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23068 range of tests names.
23069
23070 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23071 result from property and remove "max", min" and "mean" from
23072 required properties based on benchtests/bench-skeleton.c.
23073
23074 2017-11-28 Florian Weimer <fweimer@redhat.com>
23075
23076 [BZ #20826]
23077 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23078 due to Internet requirement.
23079 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23080 tst-getaddrinfo5.
23081 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23082
23083 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23084
23085 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23086 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23087 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23088 (sysdep_routines): Add memset-ultra1.
23089 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23090 file.
23091 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23092 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23093 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23094 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23095 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23096 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23097 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23098 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23099
23100 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23101 file.
23102 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23103 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23104 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23105 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23106 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23107 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23108 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23109 macro.
23110 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23111 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23112 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23113 (sysdep_routines): Add memcpy-ultra1.
23114 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23115 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23116
23117 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23118
23119 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23120 (cfloat_versions): Take function argument without trailing 'f'.
23121 Call libm_alias_float_other.
23122 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23123 * sysdeps/alpha/fpu/cargf.c: Likewise.
23124 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23125 * sysdeps/alpha/fpu/conjf.c: Likewise.
23126 * sysdeps/alpha/fpu/crealf.c: Likewise.
23127 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23128 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23129 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23130 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23131 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23132 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23133 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23134 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23135 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23136 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23137 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23138 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23139 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23140 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23141 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23142 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23143 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23144 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23145 (clog10f): Use libm_alias_float_other.
23146 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23147 (ceilf): Define using libm_alias_float.
23148 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23149 (copysignf): Define using libm_alias_float.
23150 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23151 (fabsf): Define using libm_alias_float.
23152 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23153 (floorf): Define using libm_alias_float.
23154 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23155 (fmaxf): Define using libm_alias_float.
23156 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23157 (fminf): Define using libm_alias_float.
23158 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23159 (lrintf): Define using libm_alias_float.
23160 (llrintf): Likewise.
23161 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23162 (lroundf): Define using libm_alias_float.
23163 (llroundf): Likewise.
23164 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23165 (rintf): Define using libm_alias_float.
23166 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23167 (truncf): Define using libm_alias_float.
23168
23169 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23170 (ceilf): Define using libm_alias_float.
23171 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23172 (floorf): Define using libm_alias_float.
23173 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23174 (fmaf): Define using libm_alias_float.
23175 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23176 (fmaxf): Define using libm_alias_float.
23177 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23178 (fminf): Define using libm_alias_float.
23179 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23180 (llrintf): Define using libm_alias_float.
23181 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23182 (llroundf): Define using libm_alias_float.
23183 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23184 (lrintf): Define using libm_alias_float.
23185 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23186 (lroundf): Define using libm_alias_float.
23187 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23188 <libm-alias-float.h>.
23189 (nearbyintf): Define using libm_alias_float.
23190 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23191 (rintf): Define using libm_alias_float.
23192 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23193 (roundf): Define using libm_alias_float.
23194 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23195 (truncf): Define using libm_alias_float.
23196
23197 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23198 (ceil): Define using libm_alias_double.
23199 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23200 (copysign): Define using libm_alias_double.
23201 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23202 (fabs): Define using libm_alias_double.
23203 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23204 (floor): Define using libm_alias_double.
23205 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23206 (fmax): Define using libm_alias_double.
23207 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23208 (fmin): Define using libm_alias_double.
23209 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23210 (lrint): Define using libm_alias_double.
23211 (llrint): Likewise.
23212 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23213 (lround): Define using libm_alias_double.
23214 (llround): Likewise.
23215 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23216 (rint): Define using libm_alias_double.
23217 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23218 (trunc): Define using libm_alias_double.
23219
23220 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23221 (libm_alias_double_r): Add semicolon after weak_alias call.
23222
23223 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23224
23225 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23226 (ceil): Define using libm_alias_double.
23227 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23228 (floor): Define using libm_alias_double.
23229 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23230 (fma): Define using libm_alias_double.
23231 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23232 (fmax): Define using libm_alias_double.
23233 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23234 (fmin): Define using libm_alias_double.
23235 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23236 (llrint): Define using libm_alias_double.
23237 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23238 (llround): Define using libm_alias_double.
23239 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23240 (lrint): Define using libm_alias_double.
23241 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23242 (lround): Define using libm_alias_double.
23243 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23244 (nearbyint): Define using libm_alias_double.
23245 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23246 (rint): Define using libm_alias_double.
23247 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23248 (round): Define using libm_alias_double.
23249 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23250 (trunc): Define using libm_alias_double.
23251
23252 2017-11-27 Florian Weimer <fweimer@redhat.com>
23253
23254 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23255 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23256 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23257 (tests): Add tst-mlock2.
23258 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23259 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23260 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23261 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23262 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23263 for mlock. Document mlock2.
23264
23265 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23266
23267 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23268 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23269 Likewise.
23270 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23271 Likewise.
23272 * sysdeps/x86/Makeconfig: New file.
23273 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23274 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23275 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23276 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23277 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23278 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23279 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23280 Likewise.
23281 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23282 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23283 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23284 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23285 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23286 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23287 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23288 * manual/math.texi (Mathematics): Document support for _Float64x.
23289 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23290 * stdlib/Versions (GLIBC_2.27): Likewise.
23291 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23292 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23293 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23294 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23295 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23296 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23297 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23298 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23299 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23300 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23301 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23302 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23304 Likewise.
23305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23306 Likewise.
23307 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23308 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23309 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23310 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23311 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23312 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23313 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23314 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23315 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23316 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23317 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23318 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23319 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23320 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23321
23322 2017-11-27 Andreas Schwab <schwab@suse.de>
23323
23324 * elf/Makefile (dl-routines): Add dl-sort-maps.
23325 * elf/dl-sort-maps.c: New file.
23326 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23327 (_dl_sort_maps): Declare.
23328 * elf/dl-fini.c (_dl_sort_fini): Remove.
23329 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23330 * elf/dl-close.c (_dl_close_worker): Likewise.
23331 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23332 open-coding it.
23333 * elf/dl-open.c (dl_open_worker): Likewise.
23334
23335 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23336
23337 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23338 using libm_alias_float128.
23339 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23340 Likewise.
23341 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23342 Likewise.
23343 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23344 (setpayloadsigf128): Likewise.
23345 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23346 Likewise.
23347 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23348 Likewise.
23349
23350 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23351 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23352 -mfloat128 to CFLAGS.
23353 ($(foreach
23354 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23355 Likewise.
23356 (CFLAGS-libm-test-support-float64x.c): New variable.
23357 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23358 $(f128-loader-link) to gnulib-tests.
23359
23360 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23361 (libm_alias_float128_other_r): If
23362 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23363 alias.
23364 (libm_alias_float128_r): Add semicolon after weak_alias call.
23365 * sysdeps/generic/libm-alias-ldouble.h
23366 (libm_alias_ldouble_other_r_f128): New macro.
23367 (libm_alias_ldouble_other_r_f64x): Likewise.
23368 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23369 and libm_alias_ldouble_other_r_f64x.
23370 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23371 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23372 (libm_alias_ldouble_other_r_f128): New macro.
23373 (libm_alias_ldouble_other_r_f64x): Likewise.
23374 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23375 and libm_alias_ldouble_other_r_f64x.
23376
23377 * stdlib/strfroml.c: Always include <stdlib.h>.
23378 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23379 undefine as macro and define as weak alias.
23380 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23381 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23382 <stdlib.h>.
23383 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23384 Define and later undefine as macro and define as weak alias.
23385
23386 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23387 Define and later undefine as macro. Define as weak alias if
23388 [!USE_WIDE_CHAR].
23389 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23390 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23391 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23392 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23393 Define and later undefine as macro. Define as weak alias if
23394 [!USE_WIDE_CHAR].
23395 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23396 Define and later undefine as macro. Define as weak alias if
23397 [USE_WIDE_CHAR].
23398 * sysdeps/ieee754/float128/strtof128_l.c
23399 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23400 Define and later undefine as macro. Define as weak alias if
23401 [!USE_WIDE_CHAR].
23402 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23403 Define and later undefine as macro. Define as weak alias if
23404 [USE_WIDE_CHAR].
23405 * sysdeps/ieee754/ldbl-128/strtold_l.c
23406 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23407 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23408 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23409 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23410 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23411 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23412 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23413 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23414 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23415 * sysdeps/ieee754/ldbl-96/strtold_l.c
23416 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23417 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23418 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23419 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23420
23421 * math/test-float64x.h: New file.
23422 * math/Makefile (type-float64x-yes): New variable.
23423 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23424
23425 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23426 function-like macro.
23427 (min_of_type_): Likewise.
23428 (min_of_type_l): Likewise.
23429 (min_of_type_f128): Likewise.
23430 (min_of_type): Pass () as last argument of __MATH_TG.
23431
23432 * stdlib/tst-strtod-round-skeleton.c
23433 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23434 headers.
23435
23436 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23437 for combinations of long double with _Float64 and _Float64x.
23438
23439 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23440 (__DECL_SIMD_cosf32): Likewise.
23441 (__DECL_SIMD_cosf64): Likewise.
23442 (__DECL_SIMD_cosf32x): Likewise.
23443 (__DECL_SIMD_cosf64x): Likewise.
23444 (__DECL_SIMD_cosf128x): Likewise.
23445 (__DECL_SIMD_sinf16): Likewise.
23446 (__DECL_SIMD_sinf32): Likewise.
23447 (__DECL_SIMD_sinf64): Likewise.
23448 (__DECL_SIMD_sinf32x): Likewise.
23449 (__DECL_SIMD_sinf64x): Likewise.
23450 (__DECL_SIMD_sinf128x): Likewise.
23451 (__DECL_SIMD_sincosf16): Likewise.
23452 (__DECL_SIMD_sincosf32): Likewise.
23453 (__DECL_SIMD_sincosf64): Likewise.
23454 (__DECL_SIMD_sincosf32x): Likewise.
23455 (__DECL_SIMD_sincosf64x): Likewise.
23456 (__DECL_SIMD_sincosf128x): Likewise.
23457 (__DECL_SIMD_logf16): Likewise.
23458 (__DECL_SIMD_logf32): Likewise.
23459 (__DECL_SIMD_logf64): Likewise.
23460 (__DECL_SIMD_logf32x): Likewise.
23461 (__DECL_SIMD_logf64x): Likewise.
23462 (__DECL_SIMD_logf128x): Likewise.
23463 (__DECL_SIMD_expf16): Likewise.
23464 (__DECL_SIMD_expf32): Likewise.
23465 (__DECL_SIMD_expf64): Likewise.
23466 (__DECL_SIMD_expf32x): Likewise.
23467 (__DECL_SIMD_expf64x): Likewise.
23468 (__DECL_SIMD_expf128x): Likewise.
23469 (__DECL_SIMD_powf16): Likewise.
23470 (__DECL_SIMD_powf32): Likewise.
23471 (__DECL_SIMD_powf64): Likewise.
23472 (__DECL_SIMD_powf32x): Likewise.
23473 (__DECL_SIMD_powf64x): Likewise.
23474 (__DECL_SIMD_powf128x): Likewise.
23475
23476 * stdlib/Versions (libc): Move entries for wcstof128 and
23477 wcstof128_l to ....
23478 * wcsmbs/Versions (libc): ... here.
23479 Include <float128-abi.h>.
23480
23481 2017-11-24 Florian Weimer <fweimer@redhat.com>
23482
23483 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23484 bits/mman-shared.h.
23485 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23486 <bits/mman-shared.h>.
23487 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23488 to ...
23489 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23490 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23491 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23492 <bits/mman-shared.h>.
23493
23494 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23495
23496 [BZ #22457]
23497 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23498 posix_memalign/free.
23499 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23500
23501 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23502
23503 [BZ #22469]
23504 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23505 and implement the collation rules for pl from CLDR on top of that.
23506 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23507 of locales to be built for testing.
23508 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23509
23510 2017-11-23 Joseph Myers <joseph@codesourcery.com>
23511
23512 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23513 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23514 libm_alias_ldouble_other.
23515 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23516 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23517 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23518 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23519 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23520 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23521 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23522 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23523 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23524 libm_alias_ldouble_r.
23525 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23526 libm_alias_ldouble_other.
23527 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23528 (log10l): Likewise.
23529 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
23530 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
23531 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
23532 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
23533 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
23534 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
23535 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
23536 (atan2l): Likewise.
23537 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
23538 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
23539 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
23540 libm_alias_ldouble.
23541 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
23542 (cosl): Likewise.
23543 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
23544 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
23545 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
23546 (expl): Likewise.
23547 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
23548 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
23549 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
23550 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
23551 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
23552 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
23553 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
23554 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
23555 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
23556 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
23557 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
23558 libm_alias_ldouble.
23559 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
23560 libm_alias_ldouble_other.
23561 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
23562 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
23563 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
23564 libm_alias_ldouble.
23565 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
23566 libm_alias_ldouble_other.
23567 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
23568 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
23569 * sysdeps/ia64/fpu/w_lgammal_main.c
23570 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
23571 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
23572
23573 2017-11-23 Florian Weimer <fweimer@redhat.com>
23574
23575 * malloc/malloc.c (tcache_thread_shutdown): Rename from
23576 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
23577 alike. Remove freeres marker.
23578 * malloc/arena.c (arena_thread_freeres): Call
23579 tcache_thread_shutdown.
23580
23581 2017-11-23 Florian Weimer <fweimer@redhat.com>
23582
23583 [BZ #22459]
23584 Export nscd hash function as __nss_hash.
23585 * include/nss.h (__nss_hash): Declare.
23586 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
23587 symbol.
23588 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
23589 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
23590 of __nscd_hash.
23591 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
23592 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
23593 * nss/Makefiles (routines): Add nss_hash.
23594 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
23595 * nss/nss_hash.c: Rename from nis/nis_hash.c.
23596 (__nss_hash): Rename from __nis_hash. Define hidden alias.
23597 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
23598
23599 2017-11-23 Florian Weimer <fweimer@redhat.com>
23600
23601 [BZ #22478]
23602 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
23603 Return error code, not -1.
23604 * signal/tst-sigwait-eintr.c: New file.
23605 * signal/Makefile (tests): Add tst-sigwait-eintr.
23606
23607 2017-11-23 Florian Weimer <fweimer@redhat.com>
23608
23609 Linux: Add memfd_create system call wrapper
23610 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
23611 tst-memfd_create.
23612 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
23613 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
23614 [__USE_GNU] (memfd_create): Declare.
23615 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
23616 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
23617 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
23618 * sysdeps/unix/sysv/linux/**.abilist: Update.
23619 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
23620
23621 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23622
23623 * localedata/gen-locale.sh: Fix typo in variable name.
23624
23625 * resolv/res_debug.c (p_secstodate): Condition definition on
23626 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
23627 directly as __p_secstodate, and as a compat symbol. Do not use
23628 libresolv_hidden_def.
23629 * resolv/resolv.h (p_secstodate): Remove macro and function
23630 declaration.
23631 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
23632 using p_secstodate.
23633 * include/resolv.h (__p_secstodate): Do not use
23634 libresolv_hidden_proto.
23635 * resolv/Makefile (tests): Move tst-p_secstodate to ....
23636 (tests-internal): ... here.
23637 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
23638 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
23639 and declare and use __p_secstodate and use compat_symbol_reference
23640 in that case.
23641 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
23642 implementation returning 77.
23643
23644 [BZ #22463]
23645 * resolv/res_debug.c: Include <libc-diag.h>.
23646 (p_secstodate): Assert time_t at least as wide as u_long. On
23647 overflow, use integer seconds since the epoch as output, or use
23648 "<overflow>" as output and set errno to EOVERFLOW if integer
23649 seconds since the epoch would be 14 or more characters.
23650 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
23651 for sprintf call.
23652 * resolv/tst-p_secstodate.c: New file.
23653 * resolv/Makefile (tests): Add tst-p_secstodate.
23654 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
23655
23656 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
23657 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
23658 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
23659
23660 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
23661
23662 * posix/regcomp.c (init_word_char): Add comments.
23663
23664 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23665
23666 [BZ #22447]
23667 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
23668 strlen to compute length of ut_user and set trailing NUL byte of
23669 result explicitly.
23670
23671 2017-11-21 Mike FABIAN <mfabian@redhat.com>
23672
23673 [BZ #15537]
23674 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
23675 using “copy "iso14651_t1"” and then implementing the
23676 collation rules for lv from CLDR on top of that.
23677 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
23678 of locales to be built for testing.
23679 * lv_LV.UTF-8.in: New file with test data to test the Latvian
23680 sorting.
23681
23682 2017-11-21 Joseph Myers <joseph@codesourcery.com>
23683
23684 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23685 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
23686 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
23687 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
23688 [__USE_MISC] (MADV_HWPOISON): New macro.
23689 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
23690
23691 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23692
23693 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
23694 -Wmissing-braces on GCC 4.9.
23695
23696 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23697
23698 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
23699 * sysdeps/s390/s390-32/start.S (_start): Likewise
23700 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
23701 (thread_start): Likewise.
23702 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
23703 (thread_start): Likewise.
23704 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
23705 (__makecontext_ret): Likewise.
23706 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
23707 (__makecontext_ret): Likewise.
23708
23709 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23710
23711 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
23712 __wcschrnul): Remove attribute_hidden.
23713
23714 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
23715
23716 regex: don't assume uint64_t or uint32_t
23717 This avoids -Werror=overflow errors for 32-bit systems in
23718 the 64-bit case. Problem reported by Joseph Myers in:
23719 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
23720 Also, when this code is used in Gnulib it ports to platforms
23721 that lack uint64_t and uint32_t. The C standard doesn't guarantee
23722 them, and on some 32-bit compilers there is no uint64_t.
23723 Problem reported by Gianluigi Tiesi in:
23724 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
23725 * posix/regcomp.c (init_word_char): Don't assume that the types
23726 uint64_t and uint32_t exist. Adapted from Gnulib patch
23727 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
23728 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
23729
23730 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
23731
23732 * sysdeps/aarch64/memset-reg.h: New file.
23733 * sysdeps/aarch64/memset.S: Use it.
23734 (__memset): Rename to MEMSET macro.
23735 [ZVA_MACRO]: Use zva_macro.
23736 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
23737 Add memset_generic and memset_falkor.
23738 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
23739 (__libc_ifunc_impl_list): Add memset ifuncs.
23740 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
23741 local variable zva_size.
23742 * sysdeps/aarch64/multiarch/memset.c: New file.
23743 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
23744 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
23745 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
23746 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
23747 (DCZID_DZP_MASK): New macro.
23748 (DCZID_BS_MASK): Likewise.
23749 (init_cpu_features): Read and set zva_size.
23750 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
23751 (struct cpu_features): New member zva_size.
23752
23753 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
23754 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
23755 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
23756
23757 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
23758 backwards. Fix timing computation.
23759 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
23760 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
23761 on memset by N at a time. Fix timing computation.
23762
23763 2017-11-20 Florian Weimer <fweimer@redhat.com>
23764
23765 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
23766 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
23767
23768 2017-11-19 Florian Weimer <fweimer@redhat.com>
23769
23770 manual: Document mprotect
23771 * manual/memory.texi (Memory Protection): New section.
23772 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
23773 documentation of PROT_* flags and reference the Memory Protection
23774 section instead.
23775
23776 2017-11-19 Florian Weimer <fweimer@redhat.com>
23777
23778 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
23779 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
23780 (Scatter-Gather): ... to here. Remove misleading comment.
23781
23782 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
23783
23784 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
23785 style.
23786
23787 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
23788 when /proc/<pid>/setgroups does not exist.
23789
23790 2017-11-18 Florian Weimer <fweimer@redhat.com>
23791
23792 * sysdeps/unix/sysv/linux/tst-ttyname.c
23793 (become_root_in_mount_ns): Remove.
23794 (do_in_chroot_1): Call support_enter_mount_namespace.
23795 (do_in_chroot_2): Likewise.
23796 (do_test): Call support_become_root early.
23797
23798 2017-11-18 Florian Weimer <fweimer@redhat.com>
23799
23800 * support/namespace.h (support_enter_mount_namespace): Declare.
23801 * support/support_enter_mount_namespace.c: New file.
23802 * support/Makefile (libsupport-routines): Add
23803 support_enter_mount_namespace.
23804
23805 2017-11-18 Florian Weimer <fweimer@redhat.com>
23806
23807 * support/temp_file.c (support_create_temp_directory): Use
23808 test_dir and do not rely on the presence of the XXXXXX suffix.
23809 * support/temp_file.h (support_create_temp_directory): Update
23810 comment.
23811 * support/tst-xreadlink.c (do_test): Adjust.
23812 * support/support_chroot.c (support_chroot_create): Likewise.
23813
23814 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23815
23816 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
23817 macro.
23818 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
23819 htm-no-suspend.
23820
23821 2017-11-17 Joseph Myers <joseph@codesourcery.com>
23822
23823 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23824 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23825 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23826 (ceill): Define using libm_alias_ldouble.
23827 * sysdeps/x86_64/fpu/s_copysignl.S: Include
23828 <libm-alias-ldouble.h>.
23829 (copysignl): Define using libm_alias_ldouble.
23830 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
23831 (fabsl): Define using libm_alias_ldouble.
23832 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
23833 (floorl): Define using libm_alias_ldouble.
23834 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23835 (fmaxl): Define using libm_alias_ldouble.
23836 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23837 (fminl): Define using libm_alias_ldouble.
23838 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
23839 (llrintl): Define using libm_alias_ldouble.
23840 (lrintl): Likewise.
23841 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
23842 <libm-alias-ldouble.h>.
23843 (nearbyintl): Define using libm_alias_ldouble.
23844 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
23845 (truncl): Define using libm_alias_ldouble.
23846 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
23847 <libm-alias-ldouble.h>.
23848 (lrintl): Define using libm_alias_ldouble.
23849
23850 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23851 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23852 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
23853 (asinhl): Define using libm_alias_ldouble.
23854 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
23855 (atanl): Define using libm_alias_ldouble.
23856 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
23857 (cbrtl): Define using libm_alias_ldouble.
23858 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23859 (ceill): Define using libm_alias_ldouble.
23860 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
23861 (copysignl): Define using libm_alias_ldouble.
23862 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
23863 (fabsl): Define using libm_alias_ldouble.
23864 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
23865 (floorl): Define using libm_alias_ldouble.
23866 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23867 (fmaxl): Define using libm_alias_ldouble.
23868 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23869 (fminl): Define using libm_alias_ldouble.
23870 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
23871 (frexpl): Define using libm_alias_ldouble.
23872 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
23873 (llrintl): Define using libm_alias_ldouble.
23874 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
23875 (logbl): Define using libm_alias_ldouble.
23876 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
23877 (lrintl): Define using libm_alias_ldouble.
23878 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
23879 (nearbyintl): Define using libm_alias_ldouble.
23880 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
23881 (nextafterl): Define using libm_alias_ldouble.
23882 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
23883 (remquol): Define using libm_alias_ldouble.
23884 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
23885 (rintl): Define using libm_alias_ldouble.
23886 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
23887 (truncl): Define using libm_alias_ldouble.
23888 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23889 (fmaxl): Define using libm_alias_ldouble.
23890 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23891 (fminl): Define using libm_alias_ldouble.
23892
23893 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
23894 to C syntax instead of availability and properties of types.
23895 * bits/floatn.h [!__ASSEMBLER]: Likewise.
23896 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
23897 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
23898 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
23899 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
23900 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
23901
23902 2017-11-17 Florian Weimer <fweimer@redhat.com>
23903
23904 support_become_root: Enable file creation in namespaces.
23905 * support/support_become_root.c (setup_mapping): New function.
23906 (support_become_root): Call it.
23907
23908 2017-11-17 Joseph Myers <joseph@codesourcery.com>
23909
23910 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
23911 macro.
23912
23913 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23914
23915 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
23916 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
23917
23918 2017-11-16 Joseph Myers <joseph@codesourcery.com>
23919
23920 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
23921
23922 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
23923 version to 4.14.
23924
23925 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
23926
23927 * INSTALL: Fix botched up regeneration.
23928
23929 * NEWS: Update sourceare link to https.
23930 * configure.ac: Likewise.
23931 * crypt/md5test-giant.c: Likewise.
23932 * dlfcn/bug-atexit1.c: Likewise.
23933 * dlfcn/bug-atexit2.c: Likewise.
23934 * localedata/README: Likewise.
23935 * malloc/tst-mallocfork.c: Likewise.
23936 * manual/install.texi: Likewise.
23937 * nptl/tst-pthread-getattr.c: Likewise.
23938 * stdio-common/tst-fgets.c: Likewise.
23939 * stdio-common/tst-fwrite.c: Likewise.
23940 * sunrpc/Makefile: Likewise.
23941 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
23942 * wcsmbs/tst-mbrtowc2.c: Likewise.
23943 * configure: Regenerate.
23944 * INSTALL: Regenerate.
23945
23946 2017-11-15 Martin Sebor <msebor@redhat.com>
23947
23948 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
23949 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
23950 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
23951
23952 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
23953
23954 [BZ #22145]
23955 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
23956 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
23957
23958 [BZ #22145]
23959 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
23960 Defer is_pty check until end of the function.
23961 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
23962
23963 [BZ #22145]
23964 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
23965 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
23966 (ttyname): Likewise.
23967 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
23968 (__ttyname_r): Likewise.
23969
23970 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
23971 int to bool.
23972
23973 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
23974
23975 * manual/terminal.texi (Is It a Terminal):
23976 Mention ENODEV for ttyname and ttyname_r.
23977
23978 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23979
23980 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
23981 constant and macro.
23982
23983 * sysdeps/unix/sysv/linux/bits/mman-linux.h
23984 [__USE_MISC] (MADV_WIPEONFORK): New macro.
23985 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
23986 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23987 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
23988 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
23989
23990 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23991
23992 * signal/sigrelse.c (sigrelse): Optimize implementation.
23993
23994 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
23995 (__sigpause): Rely on __sigsuspend to implement single thread
23996 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
23997
23998 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23999
24000 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24001 kernel version to 4.14.
24002
24003 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24004
24005 [BZ #22442]
24006 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24007 Check if ifname is too long.
24008
24009 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24010
24011 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24012
24013 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24014
24015 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24016 was accidentally lost.
24017
24018 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24019
24020 * localedata/locales/az_IR: Add standard copyright header.
24021
24022 2017-11-15 Florian Weimer <fweimer@redhat.com>
24023
24024 [BZ #22439]
24025 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24026 not just the top one. Output a new "subheaps" statistic.
24027
24028 2017-11-15 Florian Weimer <fweimer@redhat.com>
24029
24030 [BZ #22408]
24031 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24032 under the per-arena lock.
24033 * malloc/Makefile (tests): Add tst-malloc_info.
24034 (tst-malloc_info): Link with libpthread.
24035 * malloc/tst-malloc_info.c: New file.
24036
24037 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24038
24039 [BZ #21660]
24040 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24041 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24042 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24043 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24044 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24045 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24046 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24047 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24048 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24049 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24050 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24051 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24052 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24053 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24054 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24055 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24056 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24057 (__floating_type): Likewise.
24058 (__real_integer_type): Likewise.
24059 (__complex_integer_type): Likewise.
24060 (__expr_is_real): Likewise.
24061 (__tgmath_real_type_sub): Likewise.
24062 (__tgmath_real_type): Likewise.
24063 (__tgmath_complex_type_sub): Likewise.
24064 (__tgmath_complex_type): Likewise.
24065 (__TGMATH_F128): Likewise.
24066 (__TGMATH_CF128): Likewise.
24067 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24068 new macros.
24069 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24070 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24071 Likewise.
24072 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24073 Likewise.
24074 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24075 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24076 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24077 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24078 Likewise.
24079 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24080 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24081 Likewise.
24082 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24083 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24084 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24085 Likewise.
24086 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24087 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24088 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24089 (cimag): Likewise.
24090 (creal): Likewise.
24091
24092 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24093
24094 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24095 for stpncpy calls for GCC 8.
24096 (test_strncat): Disable -Wstringop-truncation warning for strncat
24097 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24098 strncat call for GCC 7.
24099 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24100 calls for GCC 8.
24101 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24102 trailing NUL.
24103
24104 * string/bug-strncat1.c: Include <libc-diag.h>.
24105 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24106
24107 2017-11-13 Claude Paroz <claude@2xlibre.net>
24108
24109 [BZ #22387]
24110 * localedata/locales/aa_DJ: Improved readibility by replacing
24111 <Uxxxx> sequences in the ASCII printable range by their ASCII
24112 character equivalents.
24113 * localedata/locales/aa_ER: Likewise.
24114 * localedata/locales/aa_ER@saaho: Likewise.
24115 * localedata/locales/aa_ET: Likewise.
24116 * localedata/locales/af_ZA: Likewise.
24117 * localedata/locales/agr_PE: Likewise.
24118 * localedata/locales/ak_GH: Likewise.
24119 * localedata/locales/am_ET: Likewise.
24120 * localedata/locales/anp_IN: Likewise.
24121 * localedata/locales/ar_AE: Likewise.
24122 * localedata/locales/ar_BH: Likewise.
24123 * localedata/locales/ar_DZ: Likewise.
24124 * localedata/locales/ar_EG: Likewise.
24125 * localedata/locales/ar_IN: Likewise.
24126 * localedata/locales/ar_IQ: Likewise.
24127 * localedata/locales/ar_JO: Likewise.
24128 * localedata/locales/ar_KW: Likewise.
24129 * localedata/locales/ar_LB: Likewise.
24130 * localedata/locales/ar_LY: Likewise.
24131 * localedata/locales/ar_MA: Likewise.
24132 * localedata/locales/ar_OM: Likewise.
24133 * localedata/locales/ar_QA: Likewise.
24134 * localedata/locales/ar_SA: Likewise.
24135 * localedata/locales/ar_SD: Likewise.
24136 * localedata/locales/ar_SS: Likewise.
24137 * localedata/locales/ar_SY: Likewise.
24138 * localedata/locales/ar_TN: Likewise.
24139 * localedata/locales/ar_YE: Likewise.
24140 * localedata/locales/as_IN: Likewise.
24141 * localedata/locales/ast_ES: Likewise.
24142 * localedata/locales/ayc_PE: Likewise.
24143 * localedata/locales/az_AZ: Likewise.
24144 * localedata/locales/az_IR: Likewise.
24145 * localedata/locales/be_BY: Likewise.
24146 * localedata/locales/be_BY@latin: Likewise.
24147 * localedata/locales/bem_ZM: Likewise.
24148 * localedata/locales/ber_DZ: Likewise.
24149 * localedata/locales/ber_MA: Likewise.
24150 * localedata/locales/bg_BG: Likewise.
24151 * localedata/locales/bhb_IN: Likewise.
24152 * localedata/locales/bho_IN: Likewise.
24153 * localedata/locales/bi_VU: Likewise.
24154 * localedata/locales/bn_BD: Likewise.
24155 * localedata/locales/bn_IN: Likewise.
24156 * localedata/locales/bo_CN: Likewise.
24157 * localedata/locales/bo_IN: Likewise.
24158 * localedata/locales/br_FR: Likewise.
24159 * localedata/locales/brx_IN: Likewise.
24160 * localedata/locales/bs_BA: Likewise.
24161 * localedata/locales/byn_ER: Likewise.
24162 * localedata/locales/ca_AD: Likewise.
24163 * localedata/locales/ca_ES: Likewise.
24164 * localedata/locales/ca_FR: Likewise.
24165 * localedata/locales/ca_IT: Likewise.
24166 * localedata/locales/ce_RU: Likewise.
24167 * localedata/locales/chr_US: Likewise.
24168 * localedata/locales/cmn_TW: Likewise.
24169 * localedata/locales/crh_UA: Likewise.
24170 * localedata/locales/cs_CZ: Likewise.
24171 * localedata/locales/csb_PL: Likewise.
24172 * localedata/locales/cv_RU: Likewise.
24173 * localedata/locales/cy_GB: Likewise.
24174 * localedata/locales/da_DK: Likewise.
24175 * localedata/locales/de_AT: Likewise.
24176 * localedata/locales/de_BE: Likewise.
24177 * localedata/locales/de_CH: Likewise.
24178 * localedata/locales/de_DE: Likewise.
24179 * localedata/locales/de_IT: Likewise.
24180 * localedata/locales/de_LI: Likewise.
24181 * localedata/locales/de_LU: Likewise.
24182 * localedata/locales/doi_IN: Likewise.
24183 * localedata/locales/dv_MV: Likewise.
24184 * localedata/locales/dz_BT: Likewise.
24185 * localedata/locales/el_CY: Likewise.
24186 * localedata/locales/el_GR: Likewise.
24187 * localedata/locales/en_AG: Likewise.
24188 * localedata/locales/en_AU: Likewise.
24189 * localedata/locales/en_BW: Likewise.
24190 * localedata/locales/en_CA: Likewise.
24191 * localedata/locales/en_DK: Likewise.
24192 * localedata/locales/en_GB: Likewise.
24193 * localedata/locales/en_HK: Likewise.
24194 * localedata/locales/en_IE: Likewise.
24195 * localedata/locales/en_IL: Likewise.
24196 * localedata/locales/en_IN: Likewise.
24197 * localedata/locales/en_NG: Likewise.
24198 * localedata/locales/en_NZ: Likewise.
24199 * localedata/locales/en_PH: Likewise.
24200 * localedata/locales/en_SG: Likewise.
24201 * localedata/locales/en_US: Likewise.
24202 * localedata/locales/en_ZA: Likewise.
24203 * localedata/locales/en_ZM: Likewise.
24204 * localedata/locales/en_ZW: Likewise.
24205 * localedata/locales/eo: Likewise.
24206 * localedata/locales/es_AR: Likewise.
24207 * localedata/locales/es_BO: Likewise.
24208 * localedata/locales/es_CL: Likewise.
24209 * localedata/locales/es_CO: Likewise.
24210 * localedata/locales/es_CR: Likewise.
24211 * localedata/locales/es_CU: Likewise.
24212 * localedata/locales/es_DO: Likewise.
24213 * localedata/locales/es_EC: Likewise.
24214 * localedata/locales/es_ES: Likewise.
24215 * localedata/locales/es_GT: Likewise.
24216 * localedata/locales/es_HN: Likewise.
24217 * localedata/locales/es_MX: Likewise.
24218 * localedata/locales/es_NI: Likewise.
24219 * localedata/locales/es_PA: Likewise.
24220 * localedata/locales/es_PE: Likewise.
24221 * localedata/locales/es_PR: Likewise.
24222 * localedata/locales/es_PY: Likewise.
24223 * localedata/locales/es_SV: Likewise.
24224 * localedata/locales/es_US: Likewise.
24225 * localedata/locales/es_UY: Likewise.
24226 * localedata/locales/es_VE: Likewise.
24227 * localedata/locales/et_EE: Likewise.
24228 * localedata/locales/eu_ES: Likewise.
24229 * localedata/locales/eu_ES@euro: Likewise.
24230 * localedata/locales/fa_IR: Likewise.
24231 * localedata/locales/ff_SN: Likewise.
24232 * localedata/locales/fi_FI: Likewise.
24233 * localedata/locales/fil_PH: Likewise.
24234 * localedata/locales/fo_FO: Likewise.
24235 * localedata/locales/fr_BE: Likewise.
24236 * localedata/locales/fr_CA: Likewise.
24237 * localedata/locales/fr_CH: Likewise.
24238 * localedata/locales/fr_FR: Likewise.
24239 * localedata/locales/fr_LU: Likewise.
24240 * localedata/locales/fur_IT: Likewise.
24241 * localedata/locales/fy_DE: Likewise.
24242 * localedata/locales/fy_NL: Likewise.
24243 * localedata/locales/ga_IE: Likewise.
24244 * localedata/locales/gd_GB: Likewise.
24245 * localedata/locales/gez_ER: Likewise.
24246 * localedata/locales/gez_ET: Likewise.
24247 * localedata/locales/gl_ES: Likewise.
24248 * localedata/locales/gu_IN: Likewise.
24249 * localedata/locales/gv_GB: Likewise.
24250 * localedata/locales/ha_NG: Likewise.
24251 * localedata/locales/hak_TW: Likewise.
24252 * localedata/locales/he_IL: Likewise.
24253 * localedata/locales/hi_IN: Likewise.
24254 * localedata/locales/hif_FJ: Likewise.
24255 * localedata/locales/hne_IN: Likewise.
24256 * localedata/locales/hr_HR: Likewise.
24257 * localedata/locales/hsb_DE: Likewise.
24258 * localedata/locales/ht_HT: Likewise.
24259 * localedata/locales/hu_HU: Likewise.
24260 * localedata/locales/hy_AM: Likewise.
24261 * localedata/locales/i18n: Likewise.
24262 * localedata/locales/ia_FR: Likewise.
24263 * localedata/locales/id_ID: Likewise.
24264 * localedata/locales/ig_NG: Likewise.
24265 * localedata/locales/ik_CA: Likewise.
24266 * localedata/locales/is_IS: Likewise.
24267 * localedata/locales/it_CH: Likewise.
24268 * localedata/locales/it_IT: Likewise.
24269 * localedata/locales/iu_CA: Likewise.
24270 * localedata/locales/ja_JP: Likewise.
24271 * localedata/locales/ka_GE: Likewise.
24272 * localedata/locales/kk_KZ: Likewise.
24273 * localedata/locales/kl_GL: Likewise.
24274 * localedata/locales/kn_IN: Likewise.
24275 * localedata/locales/ko_KR: Likewise.
24276 * localedata/locales/kok_IN: Likewise.
24277 * localedata/locales/ks_IN: Likewise.
24278 * localedata/locales/ks_IN@devanagari: Likewise.
24279 * localedata/locales/ku_TR: Likewise.
24280 * localedata/locales/kw_GB: Likewise.
24281 * localedata/locales/ky_KG: Likewise.
24282 * localedata/locales/lb_LU: Likewise.
24283 * localedata/locales/lg_UG: Likewise.
24284 * localedata/locales/li_BE: Likewise.
24285 * localedata/locales/li_NL: Likewise.
24286 * localedata/locales/lij_IT: Likewise.
24287 * localedata/locales/ln_CD: Likewise.
24288 * localedata/locales/lo_LA: Likewise.
24289 * localedata/locales/lt_LT: Likewise.
24290 * localedata/locales/lv_LV: Likewise.
24291 * localedata/locales/lzh_TW: Likewise.
24292 * localedata/locales/mag_IN: Likewise.
24293 * localedata/locales/mai_IN: Likewise.
24294 * localedata/locales/mg_MG: Likewise.
24295 * localedata/locales/mhr_RU: Likewise.
24296 * localedata/locales/mi_NZ: Likewise.
24297 * localedata/locales/mk_MK: Likewise.
24298 * localedata/locales/ml_IN: Likewise.
24299 * localedata/locales/mn_MN: Likewise.
24300 * localedata/locales/mni_IN: Likewise.
24301 * localedata/locales/mr_IN: Likewise.
24302 * localedata/locales/ms_MY: Likewise.
24303 * localedata/locales/mt_MT: Likewise.
24304 * localedata/locales/my_MM: Likewise.
24305 * localedata/locales/nan_TW: Likewise.
24306 * localedata/locales/nan_TW@latin: Likewise.
24307 * localedata/locales/nb_NO: Likewise.
24308 * localedata/locales/nds_DE: Likewise.
24309 * localedata/locales/nds_NL: Likewise.
24310 * localedata/locales/ne_NP: Likewise.
24311 * localedata/locales/nhn_MX: Likewise.
24312 * localedata/locales/niu_NU: Likewise.
24313 * localedata/locales/niu_NZ: Likewise.
24314 * localedata/locales/nl_AW: Likewise.
24315 * localedata/locales/nl_BE: Likewise.
24316 * localedata/locales/nl_NL: Likewise.
24317 * localedata/locales/nn_NO: Likewise.
24318 * localedata/locales/nr_ZA: Likewise.
24319 * localedata/locales/nso_ZA: Likewise.
24320 * localedata/locales/oc_FR: Likewise.
24321 * localedata/locales/om_ET: Likewise.
24322 * localedata/locales/om_KE: Likewise.
24323 * localedata/locales/or_IN: Likewise.
24324 * localedata/locales/os_RU: Likewise.
24325 * localedata/locales/pa_IN: Likewise.
24326 * localedata/locales/pa_PK: Likewise.
24327 * localedata/locales/pap_AW: Likewise.
24328 * localedata/locales/pap_CW: Likewise.
24329 * localedata/locales/pl_PL: Likewise.
24330 * localedata/locales/ps_AF: Likewise.
24331 * localedata/locales/pt_BR: Likewise.
24332 * localedata/locales/pt_PT: Likewise.
24333 * localedata/locales/quz_PE: Likewise.
24334 * localedata/locales/raj_IN: Likewise.
24335 * localedata/locales/ro_RO: Likewise.
24336 * localedata/locales/ru_RU: Likewise.
24337 * localedata/locales/ru_UA: Likewise.
24338 * localedata/locales/rw_RW: Likewise.
24339 * localedata/locales/sa_IN: Likewise.
24340 * localedata/locales/sat_IN: Likewise.
24341 * localedata/locales/sc_IT: Likewise.
24342 * localedata/locales/sd_IN: Likewise.
24343 * localedata/locales/sd_IN@devanagari: Likewise.
24344 * localedata/locales/se_NO: Likewise.
24345 * localedata/locales/sgs_LT: Likewise.
24346 * localedata/locales/shs_CA: Likewise.
24347 * localedata/locales/si_LK: Likewise.
24348 * localedata/locales/sid_ET: Likewise.
24349 * localedata/locales/sk_SK: Likewise.
24350 * localedata/locales/sl_SI: Likewise.
24351 * localedata/locales/sm_WS: Likewise.
24352 * localedata/locales/so_DJ: Likewise.
24353 * localedata/locales/so_ET: Likewise.
24354 * localedata/locales/so_KE: Likewise.
24355 * localedata/locales/so_SO: Likewise.
24356 * localedata/locales/sq_AL: Likewise.
24357 * localedata/locales/sq_MK: Likewise.
24358 * localedata/locales/sr_ME: Likewise.
24359 * localedata/locales/sr_RS: Likewise.
24360 * localedata/locales/sr_RS@latin: Likewise.
24361 * localedata/locales/ss_ZA: Likewise.
24362 * localedata/locales/st_ZA: Likewise.
24363 * localedata/locales/sv_FI: Likewise.
24364 * localedata/locales/sv_SE: Likewise.
24365 * localedata/locales/sw_KE: Likewise.
24366 * localedata/locales/sw_TZ: Likewise.
24367 * localedata/locales/szl_PL: Likewise.
24368 * localedata/locales/ta_IN: Likewise.
24369 * localedata/locales/ta_LK: Likewise.
24370 * localedata/locales/tcy_IN: Likewise.
24371 * localedata/locales/te_IN: Likewise.
24372 * localedata/locales/tg_TJ: Likewise.
24373 * localedata/locales/th_TH: Likewise.
24374 * localedata/locales/the_NP: Likewise.
24375 * localedata/locales/ti_ER: Likewise.
24376 * localedata/locales/ti_ET: Likewise.
24377 * localedata/locales/tig_ER: Likewise.
24378 * localedata/locales/tk_TM: Likewise.
24379 * localedata/locales/tl_PH: Likewise.
24380 * localedata/locales/tn_ZA: Likewise.
24381 * localedata/locales/to_TO: Likewise.
24382 * localedata/locales/tpi_PG: Likewise.
24383 * localedata/locales/tr_CY: Likewise.
24384 * localedata/locales/tr_TR: Likewise.
24385 * localedata/locales/ts_ZA: Likewise.
24386 * localedata/locales/tt_RU: Likewise.
24387 * localedata/locales/tt_RU@iqtelif: Likewise.
24388 * localedata/locales/ug_CN: Likewise.
24389 * localedata/locales/uk_UA: Likewise.
24390 * localedata/locales/unm_US: Likewise.
24391 * localedata/locales/ur_IN: Likewise.
24392 * localedata/locales/ur_PK: Likewise.
24393 * localedata/locales/uz_UZ: Likewise.
24394 * localedata/locales/uz_UZ@cyrillic: Likewise.
24395 * localedata/locales/ve_ZA: Likewise.
24396 * localedata/locales/vi_VN: Likewise.
24397 * localedata/locales/wa_BE: Likewise.
24398 * localedata/locales/wae_CH: Likewise.
24399 * localedata/locales/wal_ET: Likewise.
24400 * localedata/locales/wo_SN: Likewise.
24401 * localedata/locales/xh_ZA: Likewise.
24402 * localedata/locales/yi_US: Likewise.
24403 * localedata/locales/yo_NG: Likewise.
24404 * localedata/locales/yue_HK: Likewise.
24405 * localedata/locales/yuw_PG: Likewise.
24406 * localedata/locales/zh_CN: Likewise.
24407 * localedata/locales/zh_HK: Likewise.
24408 * localedata/locales/zh_SG: Likewise.
24409 * localedata/locales/zh_TW: Likewise.
24410 * localedata/locales/zu_ZA: Likewise.
24411
24412 2017-11-13 Florian Weimer <fweimer@redhat.com>
24413
24414 * support/next_to_fault.h, support/next_to_fault.c: New files.
24415 * support/Makefile (libsupport-routines): Add next_to_fault.
24416 * resolv/tst-inet_pton.c (struct next_to_fault)
24417 (next_to_fault_allocate, next_to_fault_free): Remove.
24418 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24419
24420 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24421
24422 * elf/dl-support.c: Include <dl-procruntime.c>.
24423 * include/link.h: Include <link_map.h>.
24424 * sysdeps/generic/dl-procruntime.c: New file.
24425 * sysdeps/generic/link_map.h: Likewise.
24426 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24427 the writable ld.so namespace.
24428
24429 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24430
24431 timezone: pacify GCC -Wstringop-truncation
24432 Problem reported by Martin Sebor in:
24433 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24434 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24435
24436 2017-11-12 Florian Weimer <fweimer@redhat.com>
24437
24438 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24439 tst-xreadlink.
24440 (tests): Add tst-xreadlink.
24441 * support/support.h (xstrndup): Declare.
24442 * support/xunistd.h (xunlink, xreadlink): Declare.
24443 * support/temp_file.h (support_create_temp_directory): Declare.
24444 * support/temp_file.c (support_create_temp_directory): New function.
24445 * support/support_chroot.c (support_chroot_create): Use it.
24446 * support/xreadlink.c: New file.
24447 * support/xstrndup.c: Likewise.
24448 * support/xunlink.c: Likewise.
24449 * support/tst-xreadlink.c: Likewise.
24450
24451 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24452
24453 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24454
24455 2017-11-11 Florian Weimer <fweimer@redhat.com>
24456
24457 [BZ #22409]
24458 [BZ #22412]
24459 * resolv/res_comp.c (printable_string, binary_hnok)
24460 (binary_leading_dash): New functions.
24461 (res_hnok): Reimplement using these functions and ns_name_pton.
24462 (res_ownok): Likewise.
24463 (res_mailok): Reimplement using printable_string, ns_name_pton and
24464 binary_hnok.
24465 (res_dnok): Reimplement using printable_string and ns_name_pton.
24466 * resolv/tst-res_hnok.c (tests): Add additional tests.
24467 (LETTERDIGITS, PRINTABLE): Define.
24468 (do_test): Adjust one_char results.
24469
24470 2017-11-11 Florian Weimer <fweimer@redhat.com>
24471
24472 [BZ #22413]
24473 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24474 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24475
24476 2017-11-11 Florian Weimer <fweimer@redhat.com>
24477
24478 * resolv/tst-ns_name_pton.c: New file.
24479 * resolv/Makefile (tests): Add tst-ns_name_pton.
24480 (tst-ns_name_pton): Link against libresolv.
24481
24482 2017-11-11 Florian Weimer <fweimer@redhat.com>
24483
24484 * resolv/tst-res_hnok.c: New file.
24485 * resolv/Makefile (tests): Add tst-res_hnok.
24486 (tst-res_hnok): Link against libresolv.
24487
24488 2017-11-11 Florian Weimer <fweimer@redhat.com>
24489
24490 * resolv/tst-resolv-network.c: Use test framework instead explicit
24491 main function.
24492
24493 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24494
24495 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24496 <jmp_buf-macros.h>.
24497 [!_ISOMAC] (STR_HELPER): New.
24498 [!_ISOMAC] (STR): Likewise.
24499 [!_ISOMAC] (TEST_SIZE): Likewise.
24500 [!_ISOMAC] (TEST_ALIGN): Likewise.
24501 [!_ISOMAC] (TEST_OFFSET): Likewise.
24502 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24503 field offsets of jmp_buf as well as sigjmp_buf.
24504 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24505 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24506 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24507 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24508 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24509 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24510 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24511 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24512 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24513 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24514 Likewise.
24515 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24516 Likewise.
24517 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24518 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24519 Likewise.
24520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24521 Likewise.
24522 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24523 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24524 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24525 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24526 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24527 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24528 Likewise.
24529 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
24530 Likewise.
24531 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24532 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
24533 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
24534
24535 2017-11-07 Joseph Myers <joseph@codesourcery.com>
24536
24537 * include/float.h
24538 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24539 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
24540 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24541 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
24542 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24543 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
24544 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24545 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
24546 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24547 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
24548 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24549 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
24550 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24551 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
24552 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24553 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
24554 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24555 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
24556 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24557 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
24558 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24559 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
24560 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24561 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
24562 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24563 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
24564 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24565 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
24566 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24567 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
24568 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24569 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
24570 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24571 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
24572 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24573 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
24574 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24575 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
24576 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24577 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
24578 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24579 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
24580 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24581 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
24582 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24583 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
24584 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24585 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
24586 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24587 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
24588 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24589 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
24590 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24591 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
24592 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24593 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
24594 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24595 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
24596 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24597 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
24598 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24599 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
24600 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24601 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
24602 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24603 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
24604 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24605 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
24606 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24607 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
24608 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24609 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
24610 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24611 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
24612 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24613 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
24614 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24615 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
24616 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24617 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
24618 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24619 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
24620 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24621 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
24622 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24623 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
24624 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24625 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
24626
24627 * stdlib/tst-strtod.h (F16): New macro.
24628 (F32): Likewise.
24629 (F64): Likewise.
24630 (F32X): Likewise.
24631 (F64X): Likewise.
24632 (F128X): Likewise.
24633 (IF_FLOAT16): Likewise.
24634 (IF_FLOAT32): Likewise.
24635 (IF_FLOAT64): Likewise.
24636 (IF_FLOAT32X): Likewise.
24637 (IF_FLOAT64X): Likewise.
24638 (IF_FLOAT128X): Likewise.
24639 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
24640 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
24641 (STRTOD_TEST_FOREACH): Likewise.
24642 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
24643 (CHOOSE_f64): Likewise.
24644 (CHOOSE_f32x): Likewise.
24645 (CHOOSE_f64x): Likewise.
24646
24647 2017-11-07 Andreas Schwab <schwab@suse.de>
24648
24649 * nptl/Makefile (tests-internal): Remove tst-typesizes.
24650
24651 2017-11-07 Mike FABIAN <mfabian@redhat.com>
24652
24653 [BZ #22403]
24654 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
24655 to be escaped.
24656 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
24657 to be escaped.
24658
24659 2017-11-07 Claude Paroz <claude@2xlibre.net>
24660
24661 [BZ #22403]
24662 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
24663 to be escaped.
24664 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
24665 to be escaped.
24666 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
24667 to be escaped.
24668
24669 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24670
24671 [BZ #22298]
24672 * nptl/allocatestack.c (allocate_stack): Check if
24673 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
24674 __PTHREAD_MUTEX_HAVE_PREV is defined.
24675 * nptl/descr.h (pthread): Likewise.
24676 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24677 Likewise.
24678 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
24679 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
24680 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
24681 * sysdeps/nptl/bits/thread-shared-types.h
24682 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24683 defines.
24684 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
24685 of __WORDSIZE for internal layout.
24686 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
24687 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
24688 instead of __WORDSIZE whether to use an union for __spins and __list
24689 fields.
24690 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
24691 case.
24692 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
24693 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24694 defines.
24695 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
24696 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24697 Likewise.
24698 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
24699 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24700 Likewise.
24701 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
24702 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24703 Likewise.
24704 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
24705 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24706 Likewise.
24707 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
24708 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24709 Likewise.
24710 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
24711 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24712 Likewise.
24713 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
24714 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24715 Likewise.
24716 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
24717 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24718 Likewise.
24719 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
24720 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24721 Likewise.
24722 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
24723 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24724 Likewise.
24725 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
24726 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24727 Likewise.
24728 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
24729 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24730 Likewise.
24731 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
24732 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24733 Likewise.
24734 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
24735 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24736 Likewise.
24737
24738 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
24739 New macros.
24740 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
24741 checks for expected input type size.
24742 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
24743 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
24744 Likewise.
24745 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
24746 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
24747 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24748 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
24749 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
24750 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
24751 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
24752 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
24753 superflous runtime assert check.
24754 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
24755 Likewise.
24756 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
24757 Likewise.
24758 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
24759 Likewise.
24760 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
24761 Likewise.
24762 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
24763 Likewise.
24764 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
24765 Likewise.
24766 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
24767 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
24768 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
24769 Likewise.
24770 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
24771 Likewise.
24772 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
24773 Likewise.
24774 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
24775 Likewise.
24776 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
24777 Likewise.
24778 * nptl/pthread_attr_setinheritsched.c
24779 (__pthread_attr_setinheritsched): Likewise.
24780 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
24781 Likewise.
24782 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
24783 Likewise.
24784 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
24785 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
24786 __old_pthread_attr_setstack): Likewise.
24787 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
24788 Likewise.
24789 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
24790 Likewise.
24791 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
24792 Likewise.
24793 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
24794 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
24795 Likewise.
24796 * nptl/tst-typesizes.c: Remove file.
24797
24798 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
24799 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
24800 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
24801 checks for internal pthread_mutex_t offsets.
24802 * sysdeps/aarch64/nptl/pthread-offsets.h
24803 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
24804 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
24805 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
24806 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
24807 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
24808 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
24809 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
24810 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
24811 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
24812 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
24813 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
24814 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
24815 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
24816 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
24817 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
24818 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
24819 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
24820 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
24821
24822 2017-11-07 Florian Weimer <fweimer@redhat.com>
24823
24824 * bits/mman-linux.h: Move ...
24825 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
24826 comment.
24827 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
24828 outdated comment.
24829
24830 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24831
24832 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
24833 Redefine STRNLEN as __strnlen_power8.
24834
24835 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24836
24837 * signal/sighold.c (sighold): Optimize implementation.
24838
24839 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
24840 __NR_rt_sigqueueinfo.
24841
24842 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
24843 __sigtimedwait.
24844 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
24845 assume __NR_rt_sigtimedwait.
24846 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
24847 and add LIBC_CANCEL_HANDLED for cancellation marking.
24848 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
24849
24850 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
24851 (sysdeps_routines): Add memchr_noneon.
24852 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
24853 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
24854 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
24855 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
24856 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
24857 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
24858 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
24859
24860 * sysdeps/arm/arm-ifunc.h: New file.
24861 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
24862 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
24863 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
24864 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
24865 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
24866 (__memcpy_neon): Avoid create hidden alias.
24867 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
24868 (__memcpy_vfp): Likewise.
24869 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
24870 (sysdep_routines): Add memcpy_arm.
24871 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
24872
24873 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
24874
24875 [BZ #22362]
24876 * Makerules (make-link-multidir): New.
24877 * config.make.in (multidir): New.
24878 * configure.ac (libc_cv_multidir): New. AC_SUBST.
24879 * configure: Regenerated.
24880 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
24881 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
24882 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
24883 New target.
24884
24885 2017-11-06 Joseph Myers <joseph@codesourcery.com>
24886
24887 [BZ #22402]
24888 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
24889 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
24890
24891 2017-11-04 Mike FABIAN <mfabian@redhat.com>
24892
24893 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
24894 to be escaped.
24895
24896 2017-11-04 Florian Weimer <fweimer@redhat.com>
24897
24898 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
24899
24900 2017-11-03 Joseph Myers <joseph@codesourcery.com>
24901
24902 * math/math.h [__HAVE_DISTINCT_FLOAT16
24903 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
24904 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
24905 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
24906 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
24907 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
24908 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
24909 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24910 (__MATH_TG_F32): New macro.
24911 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24912 (__MATH_TG_F64X): Likewise.
24913 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24914 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
24915
24916 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
24917
24918 * po/de.po: Update translations.
24919 * po/ru.po: Likewise.
24920
24921 2017-11-03 Florian Weimer <fweimer@redhat.com>
24922
24923 * manual/filesys.texi (Hard Links): Document linkat.
24924
24925 2017-11-03 Joseph Myers <joseph@codesourcery.com>
24926
24927 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
24928 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
24929 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
24930 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
24931 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
24932 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
24933 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
24934 the same as _Float128.
24935 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
24936 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
24937 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
24938
24939 * stdlib/stdlib.h
24940 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
24941 Declare.
24942 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
24943 Likewise.
24944 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
24945 Likewise.
24946 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24947 (strtof32x): Likewise.
24948 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24949 (strtof64x): Likewise.
24950 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24951 (strtof128x): Likewise.
24952 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24953 (strfromf16): Likewise.
24954 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24955 (strfromf32): Likewise.
24956 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24957 (strfromf64): Likewise.
24958 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24959 (strfromf32x): Likewise.
24960 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24961 (strfromf64x): Likewise.
24962 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24963 (strfromf128x): Likewise.
24964 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
24965 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
24966 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
24967 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
24968 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
24969 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
24970
24971 2017-11-03 Richard Henderson <rth@twiddle.net>
24972
24973 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
24974
24975 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24976
24977 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
24978
24979 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24980
24981 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
24982 DT_TLSDESC_GOT initialization.
24983 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
24984 (_dl_tlsdesc_resolve_hold): Likewise.
24985 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
24986 (_dl_tlsdesc_resolve_hold): Likewise.
24987 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
24988 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
24989
24990 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24991
24992 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
24993
24994 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24995
24996 [BZ #18572]
24997 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
24998 non-lazily for R_ARM_TLS_DESC.
24999
25000 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25001
25002 [BZ #17078]
25003 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25004 R_ARM_TLS_DESC case.
25005 (elf_machine_lazy_rel): Remove the prelink check.
25006
25007 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25008
25009 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25010 DT_TLSDESC_GOT initialization.
25011 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25012 (_dl_tlsdesc_resolve_rela): Likewise.
25013 (_dl_tlsdesc_resolve_hold): Likewise.
25014 (_dl_tlsdesc_undefweak): Remove ldar.
25015 (_dl_tlsdesc_dynamic): Likewise.
25016 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25017 (_dl_tlsdesc_resolve_rela): Likewise.
25018 (_dl_tlsdesc_resolve_hold): Likewise.
25019 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25020 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25021 (_dl_tlsdesc_resolve_rela): Likewise.
25022 (_dl_tlsdesc_resolve_hold): Likewise.
25023
25024 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25025
25026 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25027 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25028
25029 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25030
25031 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25032 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25033
25034 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25035
25036 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25037 Declare.
25038 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25039 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25040 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25041 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25042 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25043 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25044 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25045 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25046 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25047 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25048 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25049
25050 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25051
25052 [BZ #22382]
25053 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25054 * localedata/locales/tpi_PG: Add standard header.
25055
25056 2017-11-02 Florian Weimer <fweimer@redhat.com>
25057
25058 test-errno-linux: quotactl can fail with EPERM in containers.
25059 * sysdeps/unix/sysv/linux/test-errno-linux.c
25060 (LIST, LIST_FORWARD): New macros.
25061 (check_error_in_list): New function.
25062 (test_wrp_rv): Accept list of permitted error codes.
25063 (test_wrp_rv2): Remove.
25064 (test_wrp): Call test_wrp_rv with list of error codes.
25065 (test_wrp2): Accept list of error codes.
25066 (do_test): Adjust. Allow EPERM for quotactl.
25067
25068 2017-11-02 Florian Weimer <fweimer@redhat.com>
25069
25070 * stdio-common/bug16.c (do_test): Use array_length.
25071 * stdio-common/errlist.c (_sys_nerr): Likewise.
25072 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25073 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25074 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25075 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25076 (do_test): Use array_length.
25077 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25078 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25079 * stdio-common/tst-printf-round.c (do_test): Likewise.
25080 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25081 (CHECK): Use array_length.
25082 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25083 * stdio-common/tstscanf.c (main): Likewise.
25084 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25085
25086 2017-11-02 Florian Weimer <fweimer@redhat.com>
25087
25088 Add array_length and array_end macros.
25089 * include/array_length.h: New file.
25090
25091 2017-11-02 Florian Weimer <fweimer@redhat.com>
25092
25093 [BZ #22332]
25094 * posix/tst-glob-tilde.c (do_noescape): New variable.
25095 (one_test): Process it.
25096 (do_test): Set do_noescape. Add unescaping test case.
25097
25098 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25099
25100 * math/complex.h
25101 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25102 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25103 with appropriate macros defined and undefined.
25104 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25105 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25106 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25107 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25108 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25109 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25110 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25111 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25112 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25113 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25114
25115 * math/complex.h
25116 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25117 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25118 that for long double. Do not condition define and undefine of
25119 _Mdouble_complex_ on [__CFLOAT128].
25120
25121 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25122
25123 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25124 of <sysdeps/generic/sysdep.h>.
25125 (ALIGNARG): Removed.
25126 (ASM_SIZE_DIRECTIVE): Likewise.
25127 (ENTRY): Likewise.
25128 (END): Likewise.
25129 (ENTRY_CHK): Likewise.
25130 (END_CHK): Likewise.
25131 (syscall_error): Likewise.
25132 (mcount): Likewise.
25133 (PSEUDO_END): Likewise.
25134 (L): Likewise.
25135 (atom_text_section): Likewise.
25136 * sysdeps/x86/sysdep.h: New file.
25137 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25138 of <sysdeps/generic/sysdep.h>.
25139 (ALIGNARG): Removed.
25140 (ASM_SIZE_DIRECTIVE): Likewise.
25141 (ENTRY): Likewise.
25142 (END): Likewise.
25143 (ENTRY_CHK): Likewise.
25144 (END_CHK): Likewise.
25145 (syscall_error): Likewise.
25146 (mcount): Likewise.
25147 (PSEUDO_END): Likewise.
25148 (L): Likewise.
25149 (atom_text_section): Likewise.
25150
25151 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25152
25153 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25154 category of LC_CTYPE set to "i18n:2012".
25155 * localedata/locales/i18n_ctype: Regenerate.
25156
25157 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25158
25159 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25160 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25161 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25162 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25163
25164 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25165 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25166 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25167 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25168
25169 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25170
25171 * math/complex.h
25172 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25173 New macro.
25174 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25175 Likewise.
25176 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25177 Likewise.
25178 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25179 (CMPLXF32X): Likewise.
25180 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25181 (CMPLXF64X): Likewise.
25182 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25183 (CMPLXF128X): Likewise.
25184
25185 * math/math.h
25186 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25187 (__MATH_EVAL_FMT2): Define to add 0.0f.
25188
25189 2017-10-31 Alan Modra <amodra@gmail.com>
25190
25191 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25192 include sysdep.h.
25193 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25194 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25200 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25201 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25202 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25203 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25207 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25208 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25209 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25210 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25211 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25212 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25213 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25214 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25215 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25216 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25217 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25218 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25219 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25220 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25221 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25222 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25223 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25224 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25225 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25226 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25227 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25228 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25229 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25230 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25231 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25232 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25233 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25234 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25235 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25236 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25237 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25238 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25239 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25240 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25241 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25242 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25243 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25244 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25245 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25246 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25247 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25248 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25249 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25250 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25251 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25252 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25253 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25254 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25255 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25256 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25257 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25258 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25259 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25260 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25261 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25262
25263 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25264 include sysdep.h and math_ldbl_opt.h.
25265
25266 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25267 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25268 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25270 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25271 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25272 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25273 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25275 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25277 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25278 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25279 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25282 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25291 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25292
25293 2017-10-31 Alan Modra <amodra@gmail.com>
25294
25295 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25296 string/strncase_l.c, not string/strncase.c.
25297 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25298 (libc_hidden_def): Redefine.
25299
25300 2017-10-31 Alan Modra <amodra@gmail.com>
25301
25302 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25303 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25304 (__strcasecmp): Don't define.
25305
25306 2017-10-31 Alan Modra <amodra@gmail.com>
25307
25308 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25309 IS_IN (libc).
25310 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25311 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25312 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25313
25314 2017-10-31 Alan Modra <amodra@gmail.com>
25315
25316 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25317 USE_AS_STPNCPY.
25318
25319 2017-10-31 Alan Modra <amodra@gmail.com>
25320
25321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25322 Redefine only when SHARED.
25323
25324 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25325
25326 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25327 Include <bits/math-finite.h> with appropriate macros defined and
25328 undefined.
25329 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25330 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25331 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25332 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25333 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25334
25335 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25336 [!_Mlong_double_] (_Mlong_double_): Likewise.
25337 [!_Mfloat16_] (_Mfloat16_): Likewise.
25338 [!_Mfloat32_] (_Mfloat32_): Likewise.
25339 [!_Mfloat64_] (_Mfloat64_): Likewise.
25340 [!_Mfloat128_] (_Mfloat128_): Likewise.
25341 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25342 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25343 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25344 (_Mdouble_): Define without indirection through those macros.
25345 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25346 [!_Mfloat128_] (_Mfloat128_): Likewise.
25347 [_Mlong_double_] (_Mlong_double_): Likewise.
25348 (_Mdouble_): Define without indirection through those macros.
25349 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25350 not add -D_Mlong_double_=double.
25351 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25352 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25353
25354 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25355
25356 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25357
25358 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25359
25360 * sysdeps/x86/libc-start.c: Reformat.
25361
25362 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25363
25364 [BZ #22353]
25365 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25366 (1): Renamed to ...
25367 (L(Src0)): This.
25368 (L(Src1)): New.
25369 (L(Src2)): Likewise.
25370 (L(1)): Renamed to ...
25371 (L(Src3)): This.
25372
25373 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25374
25375 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25376 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25377 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25378 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25379 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25380 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25381 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25382 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25383 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25384 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25385 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25386 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25387 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25388 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25389 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25390 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25391 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25392 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25393 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25394 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25395 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25396 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25397 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25398 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25399 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25400 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25401 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25402 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25403 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25404 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25405 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25406 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25407 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25408 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25409 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25410 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25411 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25412 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25413 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25414 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25415 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25416 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25417 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25418 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25419 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25420 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25421 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25422 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25423 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25424 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25425 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25426 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25427 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25428 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25429 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25430 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25431 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25432 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25433 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25434 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25435 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25436 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25437 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25438 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25439 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25440 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25441
25442 2017-10-30 Florian Weimer <fweimer@redhat.com>
25443
25444 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25445 always defined.
25446 * io/tst-mkdirat.c (do_test): Likewise.
25447 * io/tst-mkfifoat.c (do_test): Likewise.
25448 * io/tst-mknodat.c (do_test): Likewise.
25449 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25450 * locale/programs/locale.c (select_dirs): Likewise.
25451 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25452 * posix/bug-glob2.c (my_readdir): Likewise.
25453 * posix/tst-dir.c (main): Likewise.
25454 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25455 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25456
25457 2017-10-30 Florian Weimer <fweimer@redhat.com>
25458
25459 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25460 just __USE_GNU.
25461
25462 2017-10-30 Florian Weimer <fweimer@redhat.com>
25463
25464 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25465 Convert to support/test-driver.c.
25466 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25467 New macro parameters.
25468 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25469 * posix/tst-gnuglob.c: New file.
25470 * posix/tst-gnuglob64.c: Likewise.
25471 * posix/Makefile (tests): Add tst-gnuglob64.
25472
25473 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25474
25475 [BZ #19485]
25476 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25477 and use a better translation for March in “mon”.
25478 * localedata/locales/csb_PL: Use more ASCII to improve the
25479 readability of the source.
25480
25481 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25482
25483 [BZ #13953]
25484 * localedata/locales/km_KH: Use ASCII as much
25485 as possible for better readability of the source and
25486 remove useless comments.
25487 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25488 was commented out and apparently wrong anyway because it was
25489 using Lao characters. If Buddhist era should be used
25490 for km_KH, a native speaker should write the correct formaat
25491 for Khmer.
25492 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25493 (According to CLDR, the first weekday for Cambodia is Sunday).
25494 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25495 (These were using Lao characters which must be wrong. If we get
25496 the correct data from a native speaker, we could add it back, until
25497 then it is better not to have name_mr and name_mrs at all than
25498 having it wrong).
25499
25500 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25501
25502 * locale/loadlocale.c: Correct size of
25503 _nl_value_type_LC_<category> arrays.
25504
25505 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25506
25507 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25508 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25509 with appropriate macros defined and undefined.
25510 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25511 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25512 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25513 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25514 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25515
25516 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25517
25518 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25519 "-O2 -march=i586".
25520
25521 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25522
25523 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25524 with lowercase letters to make it agree with CLDR.
25525
25526 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25527
25528 [BZ #15260]
25529 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
25530 first letters of yesstr and nostr in yesexpr and noexpr,
25531 not for the full words.
25532 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25533 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
25534 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
25535 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
25536 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
25537 first letters of yesstr and nostr in yesexpr and noexpr,
25538 until now only English was matched in yesexpr and noexpr.
25539 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
25540 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
25541 fil but not for tl. As tl and fil are very similar, using fil
25542 is probably better than using English.
25543
25544 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
25545
25546 [BZ #21706]
25547 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
25548 in yesstr and nostr.
25549
25550 2017-10-26 Joseph Myers <joseph@codesourcery.com>
25551
25552 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25553 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
25554 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
25555 Likewise.
25556 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
25557 Likewise.
25558 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
25559 Likewise.
25560 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
25561 Likewise.
25562 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25563 (SNANF128X): Likewise.
25564
25565 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25566 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
25567 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25568 (HUGE_VAL_F32): Likewise.
25569 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25570 (HUGE_VAL_F64): Likewise.
25571 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25572 (HUGE_VAL_F32X): Likewise.
25573 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25574 (HUGE_VAL_F64X): Likewise.
25575 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25576 (HUGE_VAL_F128X): Likewise.
25577
25578 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25579
25580 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
25581 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
25582 for the br_FR locale.
25583
25584 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25585
25586 [BZ #21706]
25587 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
25588
25589 2017-10-25 Carlos O'Donell <carlos@redhat.com>
25590
25591 * locale/programs/record-status.h: Define globals, and function
25592 prototypes. Move function bodies...
25593 * locale/programs/record-status.c: ... to here. New file.
25594 * iconv/Makefile (iconv_prog-modules): Add record-status.
25595 * locale/Makefile (lib-modules): Likewise.
25596 * iconv/iconv_prog.c: Remove verbose.
25597 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
25598 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
25599 record a warning about ASCII compatibility.
25600 * locale/programs/ld-monetary.c (monetary_finish): If
25601 warn_int_curr_symbol is true then record a warning about the symbol
25602 not being in our ISO 4217 list.
25603 * locale/programs/locale.c: Include record-status.h. Remove verbose.
25604 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
25605 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
25606 (OPT_NO_WARN): Define.
25607 (OPT_WARN): Define.
25608 (options): Add entry for --no-warnings, and --warnings.
25609 (set_warnings): New function to enable/disable warnings.
25610 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
25611 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
25612 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
25613 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
25614 Pass flags to generate_locale.
25615 (generate_locale): Accept new flag argument and pass it to localedef
25616 invocation.
25617 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
25618 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
25619
25620 * localedata/Makefile (test-input-data): Use full file name.
25621 * localedata/da_DK.in: Rename to...
25622 * localedata/da_DK.ISO-8859-1.in: ...this.
25623 * localedata/de_DE.in: Rename to...
25624 * localedata/de_DE.ISO-8859-1.in: ...this.
25625 * localedata/en_US.in: Rename to...
25626 * localedata/en_US.ISO-8859-1.in: ...this.
25627 * localedata/fr_FR.in: Rename to...
25628 * localedata/fr_FR.UTF-8.in: ... this.
25629 * localedata/hr_HR.in: Rename to...
25630 * localedata/hr_HR.ISO-8859-2.in: ...this.
25631 * localedata/hu_HU.in: Rename to...
25632 * localedata/hu_HU.UTF-8.in: ...this.
25633 * localedata/si_LK.in: Rename to...
25634 * localedata/si_LK.UTF-8.in: ...this.
25635 * localedata/sv_SE.in: Rename to...
25636 * localedata/sv_SE.ISO-8859-1.in: ...this.
25637 * localedata/tr_TR.in: Rename to...
25638 * localedata/tr_TR.UTF-8.in: ...this.
25639 * localedata/uk_UA.in: Rename to...
25640 * localedata/uk_UA.UTF-8.in: ...this.
25641 * localedata/sort-test.sh: Test file is locale name with the
25642 suffix.
25643
25644 * localedata/unicode-gen/Makefile (check_i18n): Rename to
25645 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
25646 file.
25647 * localedata/locales/i18n_ctype: Regenerate.
25648 * localedata/locales/tr_TR: Likewise.
25649 * localedata/locales/translit_circle: Likewise.
25650 * localedata/locales/translit_cjk_compat: Likewise.
25651 * localedata/locales/translit_combining: Likewise.
25652 * localedata/locales/translit_compat: Likewise.
25653 * localedata/locales/translit_font: Likewise.
25654 * localedata/locales/translit_fraction: Likewise.
25655
25656 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25657
25658 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
25659 lxvd2x/stxvd2x with lvx/stvx.
25660 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
25661
25662 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
25663
25664 * include/alloc_buffer.h: Replace "if if " with "if " in
25665 comments.
25666 * sysdeps/mips/memcpy.S: Likkewise.
25667 * sysdeps/mips/memset.S: Likewise.
25668 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25669 Likewise.
25670 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
25671 Likewise.
25672 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
25673 Likewise.
25674
25675 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25676
25677 [BZ #15261]
25678 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
25679 yesexpr and noexpr.
25680 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25681 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25682 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25683 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25684 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25685 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25686 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25687
25688 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25689
25690 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
25691 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25692 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25693 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25694 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25695 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
25696 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25697 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25698 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25699 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25700 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25701 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25702
25703 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25704
25705 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
25706 as possible for better readability of the source.
25707 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
25708 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
25709 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
25710 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
25711 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
25712 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
25713 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
25714 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
25715 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25716 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
25717 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
25718 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
25719 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
25720 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
25721 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
25722 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
25723 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
25724 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
25725 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
25726 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
25727 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
25728 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
25729 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
25730 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
25731 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
25732 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
25733 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
25734 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
25735 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
25736 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
25737 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
25738 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25739 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
25740 * localedata/locales/en_US (LC_MESSAGES): Likewise.
25741 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
25742 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
25743 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
25744 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
25745 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
25746 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
25747 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
25748 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
25749 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
25750 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
25751 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
25752 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
25753 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
25754 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
25755 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
25756 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
25757 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
25758 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
25759 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
25760 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25761 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25762 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
25763 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
25764 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25765 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
25766 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
25767 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
25768 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
25769 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
25770 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
25771 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
25772 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
25773 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
25774 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
25775 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
25776 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
25777 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
25778 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
25779 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
25780 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
25781 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25782 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
25783 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
25784 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
25785 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
25786 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
25787 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
25788 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
25789 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
25790 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25791 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
25792 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
25793 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
25794 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25795 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
25796 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
25797 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
25798 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
25799 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25800 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
25801 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
25802 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25803 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
25804 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25805 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
25806 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
25807 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
25808 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
25809 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
25810 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
25811 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
25812 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
25813 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
25814 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
25815 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
25816 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
25817 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
25818 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
25819 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25820 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
25821 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
25822 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
25823 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
25824 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
25825 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
25826 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
25827 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
25828 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
25829 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
25830 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
25831 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
25832 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
25833 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
25834 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
25835 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
25836 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
25837 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
25838 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
25839 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
25840 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
25841 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
25842 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
25843 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
25844 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
25845 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
25846 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
25847 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
25848 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
25849 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
25850 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
25851 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
25852 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25853 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
25854 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
25855 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
25856 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
25857 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
25858 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
25859 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
25860 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
25861 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25862 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
25863 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
25864 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
25865 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
25866 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
25867 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
25868 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
25869 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
25870 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
25871 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
25872 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25873 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
25874 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
25875 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
25876 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
25877 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25878 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25879 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25880 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
25881
25882 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25883
25884 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
25885 (Use first letters of yesstr and nostr correctly instead of using
25886 full words).
25887
25888 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25889
25890 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
25891 (Use first letters of yesstr and nostr correctly).
25892
25893 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25894
25895 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
25896 also check for the first characters of yesstr and nostr.
25897 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
25898 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
25899
25900 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25901
25902 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
25903 also check for Chinese characters.
25904
25905 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25906
25907 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
25908 match also for the contents of yesstr and nostr. As the first letter
25909 of yesstr and nostr is equal, checking only for the first letter
25910 is not enough.
25911
25912 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25913
25914 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
25915 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
25916
25917 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25918
25919 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
25920 of main contributor.
25921
25922 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25923
25924 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
25925 instead of using English.
25926
25927 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25928
25929 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
25930 by including the first letters of nostr and yesexpr in the regexp.
25931 Also make it more readable by using ASCII where possible.
25932
25933 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25934
25935 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
25936 the first letter of nostr in the regexp. It agrees with CLDR now.
25937 Also make it more readable by using ASCII where possible.
25938
25939 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25940
25941 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
25942 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
25943 these strings contain a U+17D6 (which somewhat looks like a colon)
25944 instead of a real colon to separate the full words for “yes”
25945 and “no” from the single letter responses.
25946
25947 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25948
25949 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
25950 it agree with CLDR (include the first letter of yesstr).
25951 Also make it more readable by using ASCII where possible.
25952
25953 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25954
25955 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
25956 and improve yesexpr and noexpr. The yesstr and nostr apparently
25957 came from CLDR. And CLDR has a bug there: these strings contain
25958 a U+0903 (which looks like a colon) instead of a real colon
25959 to separate the full words for “yes” and “no” from the single
25960 letter responses.
25961
25962 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25963
25964 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
25965 letters of the full yesstr and nostr in yesexpr and noexpr.
25966
25967 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25968
25969 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
25970 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
25971 * localedata/locales/an_ES: Make source more readable by using ASCII
25972 where possible.
25973
25974 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25975
25976 [BZ #20952]
25977 * localedata/locales/yuw_PG: New file.
25978 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
25979 * locale/iso-639.def: Add Yau (Uruwa).
25980
25981 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
25982
25983 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
25984
25985 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
25986
25987 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
25988 (__libc_realloc): Likewise.
25989 (_mid_memalign): Likewise.
25990 (__libc_calloc): Likewise.
25991
25992 2017-10-23 Mike FABIAN <mfabian@redhat.com>
25993
25994 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
25995 by adding the generic +1 and -0 as in all other locales.
25996 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
25997 day names and make it more readable by using ASCII where possible.
25998
25999 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26000
26001 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26002 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26003
26004 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26005
26006 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26007 WNOHANG in waitpid call.
26008
26009 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26010
26011 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26012 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26013
26014 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26015 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26016 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26017 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26018 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26019 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26020 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26021 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26022 variables.
26023
26024 2017-10-23 Michael Collison <michael.collison@arm.com>
26025
26026 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26027 with __builtin_sqrt.
26028 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26029 with __builtin_sqrtf.
26030 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26031 with __builtin_ceil.
26032 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26033 with __builtin_ceilf.
26034 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26035 with __builtin_floor.
26036 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26037 with __builtin_floorf.
26038 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26039 with __builtin_fma.
26040 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26041 with __builtin_fmaf.
26042 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26043 with __builtin_fmax.
26044 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26045 with __builtin_fmaxf.
26046 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26047 with __builtin_fmin.
26048 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26049 with __builtin_fminf.
26050 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26051 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26052 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26053 with builtin_rint and conversion to int.
26054 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26055 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26056 with builtin_llround.
26057 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26058 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26059 with builtin_rint and conversion to long int.
26060 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26061 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26062 with builtin_lround.
26063 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26064 with builtin_lroundf.
26065 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26066 statements with __builtin_nearbyint.
26067 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26068 statements with __builtin_nearbyintf.
26069 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26070 with __builtin_rint.
26071 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26072 with __builtin_rintf.
26073 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26074 with __builtin_round.
26075 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26076 with __builtin_roundf.
26077 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26078 with __builtin_trunc.
26079 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26080 with __builtin_truncf.
26081 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26082 and s_l[l]round[f].c too.
26083
26084 2017-10-23 Alan Modra <amodra@gmail.com>
26085
26086 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26087 Adjust stack after restoring regs. Add missing LR cfi_restore.
26088
26089 2017-10-23 Alan Modra <amodra@gmail.com>
26090
26091 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26092 Move LR save and frame setup/teardown and LR restore to
26093 immediately around memset call. Provide cfi.
26094
26095 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26096
26097 * sysdeps/i386/fpu/e_powf.S: Removed.
26098 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26099 * sysdeps/i386/fpu/w_powf.c: Likewise.
26100 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26101 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26102 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26103 Add e_powf-sse2.
26104 (CFLAGS-e_powf-sse2.c): New.
26105 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26106 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26107
26108 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26109
26110 * sysdeps/i386/fpu/e_log2f.S: Removed.
26111 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26112 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26113 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26114 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26115 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26116 Add e_log2f-sse2.
26117 (CFLAGS-e_log2f-sse2.c): New.
26118 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26119 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26120
26121 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26122
26123 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26124 Add e_powf-fma.
26125 (CFLAGS-e_powf-fma.c): New.
26126 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26127 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26128
26129 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26130
26131 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26132 Add e_log2f-fma.
26133 (CFLAGS-e_log2f-fma.c): New.
26134 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26135 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26136
26137 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26138
26139 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26140 Add e_logf-fma.
26141 (CFLAGS-e_logf-fma.c): New.
26142 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26143 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26144
26145 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26146
26147 * sysdeps/i386/fpu/e_logf.S: Removed.
26148 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26149 * sysdeps/i386/fpu/w_logf.c: Likewise.
26150 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26151 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26152 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26153 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26154 Add e_logf-sse2.
26155 (CFLAGS-e_logf-sse2.c): New.
26156 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26157 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26158
26159 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26160
26161 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26162 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26163 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26164 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26165 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26166 Add e_exp2f-sse2.
26167 (CFLAGS-e_exp2f-sse2.c): New.
26168 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26169 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26170
26171 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26172
26173 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26174 Add e_exp2f-fma.
26175 (CFLAGS-e_exp2f-fma.c): New.
26176 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26177 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26178
26179 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26180
26181 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26182 * sysdeps/i386/fpu/e_expf.S: Likewise.
26183 * sysdeps/i386/fpu/math_errf.c: Likewise.
26184 * sysdeps/i386/fpu/w_expf.c: Likewise.
26185 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26186 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26187 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26188 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26189 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26190 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26191 Remove e_expf-ia32.
26192 (CFLAGS-e_expf-sse2.c): New.
26193 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26194 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26195
26196 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26197
26198 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26199 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26200 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26201 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26202 e_expf.c.
26203 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26204 New.
26205 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26206 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26207 Renamed to ...
26208 (__redirect_expf): This.
26209 (SYMBOL_NAME): Changed to expf.
26210 (__ieee754_expf): Renamed to ...
26211 (__expf): This.
26212 (__GI___expf): This.
26213 (__ieee754_expf): Add strong_alias.
26214 (__expf_finite): Likewise.
26215 (__expf): New.
26216 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26217
26218 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26219
26220 [BZ #22332]
26221 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26222 unescaping.
26223
26224 2017-10-21 Florian Weimer <fweimer@redhat.com>
26225
26226 * posix/Makefile (tests): Add tst-glob-tilde.
26227 (tests-special): Add tst-glob-tilde-mem.out
26228 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26229 (tst-glob-tilde-mem.out): Add mtrace check.
26230 * posix/tst-glob-tilde.c: New file.
26231
26232 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26233
26234 * bits/floatn-common.h: New file.
26235 * math/Makefile (headers): Add bits/floatn-common.h.
26236 * bits/floatn.h: Include <bits/floatn-common.h>.
26237 * sysdeps/ia64/bits/floatn.h: Likewise.
26238 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26239 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26240 * sysdeps/powerpc/bits/floatn.h: Likewise.
26241 * sysdeps/x86/bits/floatn.h: Likewise.
26242
26243 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26244
26245 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26246 indicates whether compiler emits an warning for alias for
26247 functions with incompatible types.
26248
26249 [BZ #22273]
26250 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26251 the auxiliary process is terminated by a signal before calling _exit
26252 or execve.
26253
26254 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26255
26256 [BZ #21265]
26257 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26258 New.
26259 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26260 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26261 and bit_arch_XSAVEC_Usable if needed.
26262 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26263 and bit_arch_Use_dl_runtime_resolve_opt.
26264 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26265 Removed.
26266 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26267 (bit_arch_Prefer_No_AVX512): Updated.
26268 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26269 (bit_arch_XSAVEC_Usable): New.
26270 (STATE_SAVE_OFFSET): Likewise.
26271 (STATE_SAVE_MASK): Likewise.
26272 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26273 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26274 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26275 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26276 (index_arch_XSAVEC_Usable): New.
26277 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26278 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26279 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26280 is enabled.
26281 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26282 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26283 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26284 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26285 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26286 _dl_runtime_resolve_xsavec.
26287 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26288 Removed.
26289 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26290 instead of VEC_SIZE.
26291 (REGISTER_SAVE_BND0): Removed.
26292 (REGISTER_SAVE_BND1): Likewise.
26293 (REGISTER_SAVE_BND3): Likewise.
26294 (REGISTER_SAVE_RAX): Always defined to 0.
26295 (VMOV): Removed.
26296 (_dl_runtime_resolve_avx): Likewise.
26297 (_dl_runtime_resolve_avx_slow): Likewise.
26298 (_dl_runtime_resolve_avx_opt): Likewise.
26299 (_dl_runtime_resolve_avx512): Likewise.
26300 (_dl_runtime_resolve_avx512_opt): Likewise.
26301 (_dl_runtime_resolve_sse): Likewise.
26302 (_dl_runtime_resolve_sse_vex): Likewise.
26303 (USE_FXSAVE): New.
26304 (_dl_runtime_resolve_fxsave): Likewise.
26305 (USE_XSAVE): Likewise.
26306 (_dl_runtime_resolve_xsave): Likewise.
26307 (USE_XSAVEC): Likewise.
26308 (_dl_runtime_resolve_xsavec): Likewise.
26309 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26310 Removed.
26311 (_dl_runtime_resolve_avx512_opt): Likewise.
26312 (_dl_runtime_resolve_avx): Likewise.
26313 (_dl_runtime_resolve_avx_opt): Likewise.
26314 (_dl_runtime_resolve_sse): Likewise.
26315 (_dl_runtime_resolve_sse_vex): Likewise.
26316 (_dl_runtime_resolve_fxsave): New.
26317 (_dl_runtime_resolve_xsave): Likewise.
26318 (_dl_runtime_resolve_xsavec): Likewise.
26319
26320 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26321
26322 [BZ #22320]
26323 CVE-2017-15670
26324 * posix/glob.c (__glob): Fix one-byte overflow.
26325
26326 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26327
26328 * malloc/malloc.c (sysdep-cancel.h): Add include.
26329
26330 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26331
26332 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26333
26334 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26335
26336 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26337 (tests): Remove $(objpfx)ga_test depdendency.
26338 * resolv/ga_test.c: Remove file.
26339
26340 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26341
26342 [BZ #18812]
26343 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26344 * localedata/locales/kab_DZ: New file.
26345
26346 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26347
26348 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26349 _dl_relocate_static_pie instead of _dl_start to compute load
26350 address in static PIE.
26351
26352 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26353
26354 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26355
26356 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26357
26358 [BZ #13605]
26359 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26360 * localedata/locales/shn_MM: New file.
26361
26362 2017-10-20 Florian Weimer <fweimer@redhat.com>
26363
26364 [BZ #22321]
26365 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26366 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26367 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26368 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26369 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26370 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26371
26372 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26373
26374 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26375
26376 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26377
26378 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26379
26380 [BZ #22322]
26381 * sysdeps/mips/bits/long-double.h: Move to ....
26382 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26383
26384 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26385
26386 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26387
26388 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26389 H.J. Lu <hongjiu.lu@intel.com>
26390
26391 [BZ #22299]
26392 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26393 GLRO(dl_platform) to NULL.
26394 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26395 (modules-names): Add tst-platformmod-1 and
26396 x86_64/tst-platformmod-2.
26397 (CFLAGS-tst-platform-1.c): New.
26398 (CFLAGS-tst-platformmod-1.c): Likewise.
26399 (CFLAGS-tst-platformmod-2.c): Likewise.
26400 (LDFLAGS-tst-platformmod-2.so): Likewise.
26401 ($(objpfx)tst-platform-1): Likewise.
26402 ($(objpfx)tst-platform-1.out): Likewise.
26403 (tst-platform-1-ENV): Likewise.
26404 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26405 * sysdeps/x86_64/tst-platform-1.c: New file.
26406 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26407 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26408
26409 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26410
26411 [BZ #13994]
26412 * locale/iso-639.def: Add Karbi.
26413 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26414 * localedata/locales/mjw_IN: New file.
26415
26416 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26417
26418 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26419 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26420 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26421 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26422 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26423 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26424 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26425 <bits/floatn.h>.
26426 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26427 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26428 * manual/math.texi (Mathematics): Document additional architecture
26429 support for _Float128.
26430 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26431 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26432 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26433 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26434 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26435 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26436 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26437 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26438 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26439 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26440 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26441 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26442 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26443 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26444 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26445
26446 2017-10-18 Renlin Li <renlin.li@arm.com>
26447
26448 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26449 _DYNAMIC symbol to calculate load address.
26450
26451 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26452
26453 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26454 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26455 summary bits.
26456 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26457 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26458
26459 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26460
26461 [BZ #16777]
26462 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26463 and improve readability by using more ASCII.
26464 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26465 and improve readability by using more ASCII.
26466
26467 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26468
26469 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26470 not all targets support atomics on bool.
26471
26472 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26473
26474 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26475 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26476 __f128.
26477 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26478 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26479 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26480 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26481 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26482 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26483
26484 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26485
26486 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26487 defines.
26488
26489 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26490
26491 [BZ #22159]
26492 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26493 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26494 (do_check_remalloced_chunk): Fix build bug.
26495 (do_check_malloc_state): Add assert that checks arena->top.
26496 (malloc_consolidate): Remove initialization.
26497 (int_mallinfo): Remove call to malloc_consolidate.
26498 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26499
26500 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26501
26502 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26503 (have_fastchunks): Remove.
26504 (clear_fastchunks): Remove.
26505 (set_fastchunks): Remove.
26506 (malloc_state): Add have_fastchunks.
26507 (malloc_init_state): Use have_fastchunks.
26508 (do_check_malloc_state): Remove incorrect invariant checks.
26509 (_int_malloc): Use have_fastchunks.
26510 (_int_free): Likewise.
26511 (malloc_consolidate): Likewise.
26512
26513 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26514
26515 * malloc/malloc.c (tcache_put): Inline.
26516 (tcache_get): Inline.
26517
26518 2017-10-17 Jordi Mallach <jordi@gnu.org>
26519
26520 Aurelien Jarno <aurelien@aurel32.net>
26521 [BZ #2522]
26522 * localedata/locales/ca_ES@valencia: New file.
26523 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26524
26525 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
26526
26527 [BZ #22296]
26528 * math/math.h: Let signbit use the builtin in C++ mode with gcc
26529 < 6.x
26530
26531 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26532
26533 * scripts/build-many-glibcs.py (Context.add_all_configs):
26534 Add arm-linux-gnueabihf multiarch extra_glibcs.
26535
26536 * sysdeps/generic/ifunc-init.h: New file.
26537 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
26538
26539 2017-10-17 Mike FABIAN <mfabian@redhat.com>
26540
26541 [BZ #22019]
26542 * localedata/locales/el_GR: Set n_cs_precedes to 0.
26543 * localedata/locales/el_CY: copy "el_GR" because it is identical.
26544 * stdlib/tst-strfmon_l.c: adapt test case.
26545
26546 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26547
26548 * sysdeps/generic/float128-abi.h: New file.
26549 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
26550 non-__prefixed symbols to ....
26551 * math/Versions: ... here. Include <float128-abi.h>.
26552 * stdlib/Versions ... and here. Include <float128-abi.h>
26553
26554 2017-10-16 Florian Weimer <fweimer@redhat.com>
26555
26556 * version.h (VERSION): Switch to ".9000" as the development
26557 version suffix.
26558
26559 2017-10-16 Florian Weimer <fweimer@redhat.com>
26560
26561 [BZ #22050]
26562 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
26563 compat_symbol_reference to access non-default version.
26564
26565 2017-10-16 Florian Weimer <fweimer@redhat.com>
26566
26567 * malloc/Makefile (others-extras): Set to mcheck-init.o.
26568
26569 2017-10-16 Carlos O'Donell <carlos@redhat.com>
26570
26571 * include/shlib-compat.h (compat_symbol_reference): Update
26572 comment.
26573
26574 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26575
26576 * math/Makefile (test-types): Add
26577 $(type-float128-$(float128-alias-fcts)).
26578 * math/test-float128.h (TYPE_STR): Define conditional on
26579 [FLT128_MANT_DIG == LDBL_MANT_DIG].
26580 (ULP_IDX): Likewise.
26581 (ULP_I_IDX): Likewise.
26582
26583 * stdlib/strtold.c: Include <bits/floatn.h>
26584 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
26585 and later undefine as macro. Define as weak alias if
26586 [!USE_WIDE_CHAR].
26587 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
26588 and later undefine as macro. Define as weak alias if
26589 [USE_WIDE_CHAR].
26590 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
26591 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
26592 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26593 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26594 Define and later undefine as macro. Define as weak alias if
26595 [USE_WIDE_CHAR].
26596 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
26597 <bits/floatn.h>.
26598 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
26599 Define and later undefine as macro. Define as weak alias if
26600 [!USE_WIDE_CHAR].
26601 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26602 Define and later undefine as macro. Define as weak alias if
26603 [USE_WIDE_CHAR].
26604
26605 2017-10-15 Carlos O'Donell <carlos@redhat.com>
26606
26607 * localedata/collate-test.c (allocate_arrays): Don't use \n in
26608 record_verbose messages.
26609
26610 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
26611
26612 [BZ #22052]
26613 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
26614 to silence -O3 -Wall warning with GCC 7.
26615
26616 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
26617
26618 * Makeconfig (+link-static-before-libc): Use the first of
26619 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
26620 * gmon/Makefile (tests): Add tst-gmon-static.
26621 (tests-static): Likewise.
26622 (CFLAGS-tst-gmon-static.c): New.
26623 (CRT-tst-gmon-static): Likewise.
26624 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
26625 (tst-gmon-static-ENV): Likewise.
26626 (tests-special): Likewise.
26627 ($(objpfx)tst-gmon-static.out): Likewise.
26628 (clean-tst-gmon-static-data): Likewise.
26629 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
26630 * gmon/tst-gmon-static-gprof.sh: New file.
26631 * gmon/tst-gmon-static.c: Likewise.
26632
26633 2017-10-13 Carlos O'Donell <carlos@redhat.com>
26634
26635 [BZ #22295]
26636 * locale/programs/linereader.c (get_string): Don't warn on
26637 non-symbolic character.
26638
26639 [BZ #22294]
26640 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
26641 int_curr_symbol.
26642
26643 [BZ #22292]
26644 * locale/programs/record-status.h: New file
26645 * locale/programs/locale.c: Add comment.
26646 * locale/programs/charmap-dir.c: Don't include error.h.
26647 (charmap_opendir): Use record_error.
26648 * locale/programs/charmap.c: Don't include error.h.
26649 (charmap_read): Use record_error, and record_warning.
26650 (parse_charmap): Likewise.
26651 * locale/programs/ld-address.c: Don't include error.h.
26652 (address_finish): Use record_error, and record_warning.
26653 * locale/programs/ld-collate.c: Don't include error.h.
26654 (collate_finish): Use record_error, and record_error_at_line.
26655 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
26656 (ctype_class_new): Likewise.
26657 (ctype_map_new): Likewise.
26658 (set_one_default): Likewise.
26659 (set_class_defaults): Likewise.
26660 (translit_flatten): Likewise.
26661 (allocate_arrays): Use record_error, and record_verbose.
26662 * locale/programs/ld-identification.c: Don't include error.h.
26663 (indentation_finish): Use record_error and record_warning.
26664 * locale/programs/ld-measurement.c: Don't include error.h.
26665 (measurement_finish): Use record_error.
26666 * locale/programs/ld-messages.c
26667 (message_finish): Likewise.
26668 * locale/programs/ld-monetary.c
26669 (monetary_finish): Likewise.
26670 * locale/programs/ld-name.c (name_finish): Use record_error
26671 and record_warning.
26672 * locale/programs/ld-numeric.c
26673 (numeric_finish): Use record_error.
26674 * locale/programs/ld-paper.c: Don't include error.h.
26675 (paper_finish): Use record_error.
26676 * locale/programs/ld-telephone.c: Don't include error.h.
26677 (telephone_finish): Use record_error.
26678 * locale/programs/ld-time.c (time_finish): Likewise.
26679 * locale/programs/linereader.h (lr_error): Make inline func.
26680 * locale/programs/localedef.c: Define recorded_warning_count,
26681 and recorded_error_count.
26682 (main): Use record_error. Use recorded_error_count and
26683 recorded_warning_count to issue correct error returns.
26684 (add_to_readlist): Use record_error.
26685 (find_locale): Likewise.
26686 (load_locale): Likewise.
26687 * locale/programs/localedef.h: Remove be_quiet
26688 and WITH_CUR_LOCALE.
26689 * locale/programs/locarchive.c (compare_from_file): Use
26690 record_error.
26691 * locale/programs/locfile.c (write_locale_data): Use
26692 record_error.
26693 * locale/programs/repertoire.c: Dont include error.h.
26694 (repertoire_complain): Use record_error.
26695 * localedata/tst-fmon.sh: Expect failures from localedef.
26696 * localedata/tst-locale.sh: Likewise.
26697 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
26698
26699 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
26700 (REPORTS): Likewise.
26701 (check): Likewise.
26702 (i18n): Rename to...
26703 (i18n_ctype): ...this.
26704 (i18n-report): Rename to...
26705 (i18n_ctype-report): ...this.
26706 * localedata/locales/i18n_ctype: Regenerate.
26707 * localedata/locales/i18n: copy i18n_ctype.
26708
26709 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26710
26711 * stdlib/strfroml.c: Include <bits/floatn.h>.
26712 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
26713 Define before include of <stdlib.h> and undefine afterwards, then
26714 define as weak alias.
26715
26716 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
26717 Undefine and restore default definition. Use
26718 libm_alias_ldouble_other.
26719
26720 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
26721
26722 [BZ #22153]
26723 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
26724 in coredumps.
26725
26726 2017-10-13 James Clarke <jrtc27@jrtc27.com>
26727
26728 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
26729 Assign sym_map to be map for local symbols, as TLS relocations
26730 use sym_map to determine whether the symbol is defined and to
26731 extract the TLS information.
26732 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
26733 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
26734
26735 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26736
26737 [BZ #22189]
26738 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
26739 (math_force_eval): Add powerpc version.
26740
26741 [BZ #22142]
26742 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
26743 -DBL_MAX.
26744 (do_test): Likewise.
26745 * stdio-common/tst-printf.sh: Likewise.
26746 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
26747 ifdef clause in order to set the carry bit right. Replace r0 by
26748 0 without changing the behavior.
26749
26750 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26751
26752 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
26753 <libm-alias-ldouble.h>.
26754 (fabsl): Define using libm_alias_ldouble.
26755 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
26756 <libm-alias-ldouble.h>.
26757 (fabsl): Define using libm_alias_ldouble.
26758
26759 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
26760 Remove conditional code.
26761
26762 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
26763 Rename to __clog10_internal_l.
26764 (__clog10_internal_l): Define aliases using
26765 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
26766 with __clog10.
26767
26768 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26769
26770 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
26771 * benchtests/sincosf-inputs: New file.
26772 * benchtests/cosf-inputs: New file.
26773 * benchtests/sinf-inputs: New file.
26774
26775 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
26776
26777 * posix/tst-spawn.c (do_test): Wait for both children.
26778
26779 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
26780
26781 [BZ #22284]
26782 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
26783 tests-pie): Add tst-gmon-pie.
26784 (CFLAGS-tst-gmon-pie.c): New.
26785 (CRT-tst-gmon-pie): Likewise.
26786 (tst-gmon-pie-ENV): Likewise.
26787 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
26788 ($(objpfx)tst-gmon-pie.out): Likewise.
26789 (clean-tst-gmon-pie-data): Likewise.
26790 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
26791 * gmon/gmon.c [PIC]: Include <link.h>.
26792 [PIC] (callback): New function.
26793 (write_hist): Add an argument for load address. Subtract load
26794 address from PCs.
26795 (write_call_graph): Likewise.
26796 (write_gmon): Call __dl_iterate_phdr to get load address, pass
26797 it to write_hist and write_call_graph.
26798 * gmon/tst-gmon-pie.c: New file.
26799
26800 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26801
26802 * math/Makefile (test-types-basic): New variable.
26803 (test-types): Likewise.
26804 (libm-test-support): Use $(test-types) instead of $(types).
26805 (libm-tests-base-normal): Likewise.
26806 (libm-tests-base-finite): Likewise.
26807 (libm-tests-base-inline): Likewise.
26808 (generated): Likewise.
26809 ($(objpfx)libm-test-support-$(t).c): Likewise.
26810 (libm-tests-for-type iterator): Likewise.
26811 (libm-test-support iterator): Likewise.
26812 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
26813 (ulp_idx): Use ULP_IDX.
26814 * math/test-ldouble.h: Include <float.h>.
26815 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
26816 (ULP_IDX): New macro.
26817 (ULP_I_IDX): Likewise.
26818 * math/test-double.h (ULP_IDX): Likewise.
26819 (ULP_I_IDX): Likewise.
26820 * math/test-float.h (ULP_IDX): Likewise.
26821 (ULP_I_IDX): Likewise.
26822 * math/test-float128.h (ULP_IDX): Likewise.
26823 (ULP_I_IDX): Likewise.
26824
26825 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26826
26827 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
26828 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
26829 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
26830 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
26831 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
26832 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
26833 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
26834 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
26835 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
26836 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
26837 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
26838 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
26839 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
26840 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26841 (SINGLE_THREAD_BY_GLOBAL): Define.
26842 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26843 Likewise.
26844 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26845 Likewise.
26846 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26847 Likewise.
26848 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26849 Likewise.
26850 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
26851 (SINGLE_THREAD_BY_GLOBAL): Likewise.
26852 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26853 Likewise.
26854
26855 2017-10-11 Andreas Schwab <schwab@suse.de>
26856
26857 * nis/Makefile (aux): Remove.
26858 * nscd/Makefile (aux): Add nscd_hash.
26859 (nscd-modules): Likewise.
26860 ($(objpfx)nscd): Don't depend on libnsl.
26861 * nscd/nscd_hash.c: New file.
26862 * nscd/nscd_hash.h: Likewise.
26863 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
26864 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
26865 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
26866 instead of <nis/rpcsvc/nis.h>.
26867 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
26868
26869 2017-10-11 Florian Weimer <fweimer@redhat.com>
26870
26871 [BZ #22078]
26872 Avoid large NSS buffers with many addresses, aliases.
26873 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
26874 using dynarrays and struct alloc_buffer.
26875 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
26876 (tst-nss-files-hosts-multi): Link with -ldl.
26877 * nss/tst-nss-files-hosts-multi.c: New file.
26878
26879 2017-10-11 Florian Weimer <fweimer@redhat.com>
26880
26881 [BZ #18023]
26882 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
26883 scratch_buffer. Eliminate gotos.
26884
26885 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26886
26887 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
26888 libm_alias_ldouble_other.
26889 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
26890 undefine and redefine.
26891 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
26892 (exp10l): Do not define here.
26893 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
26894 (weak_alias): Undefine and redefine.
26895 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
26896 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
26897 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
26898 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
26899
26900 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
26901 [!__fma] (fma): Define using libm_alias_double.
26902 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
26903 [!__fmaf] (fmaf): Define using libm_alias_float.
26904 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
26905 (fmal): Define using libm_alias_ldouble.
26906
26907 2017-10-10 Joseph Myers <joseph@codesourcery.com>
26908
26909 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
26910 New macro.
26911 (libm_alias_double_other): Likewise.
26912 (libm_alias_double_r): Use libm_alias_double_other_r.
26913 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
26914 New macro.
26915 (libm_alias_float_other): Likewise.
26916 (libm_alias_float_r): Use libm_alias_float_other_r.
26917 * sysdeps/generic/libm-alias-float128.h
26918 (libm_alias_float128_other_r): New macro.
26919 (libm_alias_float128_other): Likewise.
26920 (libm_alias_float128_r): Use libm_alias_float128_other_r.
26921 * sysdeps/generic/libm-alias-ldouble.h
26922 (libm_alias_ldouble_other_r): New macro.
26923 (libm_alias_ldouble_other): Likewise.
26924 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
26925 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
26926 (libm_alias_double_other_r): New macro.
26927 (libm_alias_double_other): Likewise.
26928 (libm_alias_double_r): Use libm_alias_double_other_r.
26929 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
26930 (libm_alias_ldouble_other_r): New macro.
26931 (libm_alias_ldouble_other): Likewise.
26932 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
26933 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
26934 [!USE_AS_COMPAT]: Use libm_alias_double_other.
26935 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
26936 [!USE_AS_COMPAT]: Use libm_alias_float_other.
26937 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
26938 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
26939 * math/w_exp2f.c: Use libm_alias_float_other.
26940 * math/w_expf.c: Likewise.
26941 * math/w_log2f.c: Likewise.
26942 * math/w_logf.c: Likewise.
26943 * math/w_powf.c: Likewise.
26944 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
26945 [!__exp2f]: Use libm_alias_float_other.
26946 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
26947 [!__expf]: Use libm_alias_float_other.
26948 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
26949 [!__log2f]: Use libm_alias_float_other.
26950 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
26951 [!__logf]: Use libm_alias_float_other.
26952 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
26953 [!__powf]: Use libm_alias_float_other.
26954
26955 2017-10-10 Florian Weimer <fweimer@redhat.com>
26956
26957 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
26958 function.
26959 (_nss_files_gethostbyname3_r): Call it.
26960
26961 2017-10-09 Joseph Myers <joseph@codesourcery.com>
26962
26963 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
26964 error. Remove default definition of declare_mgen_alias.
26965 [!declare_mgen_alias_r]: Likewise.
26966 * sysdeps/generic/math-type-macros-double.h
26967 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
26968 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
26969 (declare_mgen_alias_r): Likewise.
26970 * sysdeps/generic/math-type-macros-float128.h
26971 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
26972 * sysdeps/generic/math-type-macros-ldouble.h
26973 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
26974 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
26975 macro.
26976 (declare_mgen_alias_r_s): Likewise.
26977 (declare_mgen_alias_r): Likewise.
26978 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
26979 (lgamma_r): Define using libm_alias_double_r.
26980 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
26981 (lgammaf_r): Define using libm_alias_float_r.
26982 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
26983 (lgammal_r): Define using libm_alias_ldouble_r.
26984 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
26985 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
26986
26987 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26988
26989 * lib/glob.c (__glob_pattern_type): Remove now-spurious
26990 extern declaration.
26991
26992 2017-10-09 Joseph Myers <joseph@codesourcery.com>
26993
26994 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
26995
26996 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
26997
26998 [BZ #21326]
26999 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27000 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27001 * math/Makefile (test-math-cxx11): New test.
27002 * math/test-math-cxx11.cc: New file.
27003
27004 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27005
27006 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27007
27008 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27009 call to allocate the slave pty file descriptor.
27010
27011 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27012
27013 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27014 [!__fma] (fma): Define using libm_alias_double.
27015 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27016 [!__fma] (fma): Define using libm_alias_double.
27017
27018 * sysdeps/ieee754/float128/float128_private.h: Include
27019 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27020 (libm_alias_ldouble_r): Undefine and redefine.
27021 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27022 <libm-alias-ldouble.h>.
27023 (asinhl): Define using libm_alias_ldouble.
27024 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27025 <libm-alias-ldouble.h>.
27026 (atanl): Define using libm_alias_ldouble.
27027 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27028 <libm-alias-ldouble.h>.
27029 (cbrtl): Define using libm_alias_ldouble.
27030 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27031 <libm-alias-ldouble.h>.
27032 (ceill): Define using libm_alias_ldouble.
27033 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27034 <libm-alias-ldouble.h>.
27035 (copysignl): Define using libm_alias_ldouble.
27036 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27037 <libm-alias-ldouble.h>.
27038 (cosl): Define using libm_alias_ldouble.
27039 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27040 <libm-alias-ldouble.h>.
27041 (erfl): Define using libm_alias_ldouble.
27042 (erfcl): Likewise.
27043 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27044 <libm-alias-ldouble.h>.
27045 (expm1l): Define using libm_alias_ldouble.
27046 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27047 <libm-alias-ldouble.h>.
27048 (fabsl): Define using libm_alias_ldouble.
27049 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27050 <libm-alias-ldouble.h>.
27051 (floorl): Define using libm_alias_ldouble.
27052 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27053 <libm-alias-ldouble.h>.
27054 (fmal): Define using libm_alias_ldouble.
27055 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27056 <libm-alias-ldouble.h>.
27057 (frexpl): Define using libm_alias_ldouble.
27058 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27059 libm_alias_ldouble.
27060 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27061 <libm-alias-ldouble.h>.
27062 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27063 libm_alias_ldouble.
27064 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27065 <libm-alias-ldouble.h>.
27066 (getpayloadl): Define using libm_alias_ldouble.
27067 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27068 <libm-alias-ldouble.h>.
27069 (llrintl): Define using libm_alias_ldouble.
27070 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27071 <libm-alias-ldouble.h>.
27072 (llroundl): Define using libm_alias_ldouble.
27073 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27074 <libm-alias-ldouble.h>.
27075 (logbl): Define using libm_alias_ldouble.
27076 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27077 <libm-alias-ldouble.h>.
27078 (lrintl): Define using libm_alias_ldouble.
27079 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27080 <libm-alias-ldouble.h>.
27081 (lroundl): Define using libm_alias_ldouble.
27082 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27083 <libm-alias-ldouble.h>.
27084 (modfl): Define using libm_alias_ldouble.
27085 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27086 <libm-alias-ldouble.h>.
27087 (nearbyintl): Define using libm_alias_ldouble.
27088 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27089 <libm-alias-ldouble.h>.
27090 (nextafterl): Define using libm_alias_ldouble.
27091 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27092 <libm-alias-ldouble.h>.
27093 (nextupl): Define using libm_alias_ldouble.
27094 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27095 <libm-alias-ldouble.h>.
27096 (remquol): Define using libm_alias_ldouble.
27097 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27098 <libm-alias-ldouble.h>.
27099 (rintl): Define using libm_alias_ldouble.
27100 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27101 <libm-alias-ldouble.h>.
27102 (roundevenl): Define using libm_alias_ldouble.
27103 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27104 <libm-alias-ldouble.h>.
27105 (roundl): Define using libm_alias_ldouble.
27106 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27107 using libm_alias_ldouble.
27108 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27109 <libm-alias-ldouble.h>.
27110 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27111 Define using libm_alias_ldouble.
27112 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27113 <libm-alias-ldouble.h>.
27114 (sincosl): Define using libm_alias_ldouble.
27115 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27116 <libm-alias-ldouble.h>.
27117 (sinl): Define using libm_alias_ldouble.
27118 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27119 <libm-alias-ldouble.h>.
27120 (tanhl): Define using libm_alias_ldouble.
27121 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27122 <libm-alias-ldouble.h>.
27123 (tanl): Define using libm_alias_ldouble.
27124 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27125 <libm-alias-ldouble.h>.
27126 (totalorderl): Define using libm_alias_ldouble.
27127 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27128 <libm-alias-ldouble.h>.
27129 (totalordermagl): Define using libm_alias_ldouble.
27130 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27131 <libm-alias-ldouble.h>.
27132 (truncl): Define using libm_alias_ldouble.
27133 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27134 libm_alias_ldouble.
27135 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27136 libm_alias_ldouble.
27137 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27138 <libm-alias-ldouble.h>.
27139 (weak_alias): Do not undefine and redefine.
27140 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27141 (copysignl): Define with long_double_symbol only if [IS_IN
27142 (libc)].
27143 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27144 <libm-alias-ldouble.h>.
27145 (weak_alias): Do not undefine and redefine.
27146 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27147 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27148 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27149 <libm-alias-ldouble.h>.
27150 (weak_alias): Do not undefine and redefine.
27151 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27152 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27153 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27154 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27155 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27156 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27157 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27158 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27159 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27160 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27161 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27162 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27163 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27164 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27165 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27166 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27167 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27168 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27169 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27170 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27171 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27172 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27173 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27174 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27175 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27176 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27177
27178 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27179
27180 [BZ #22111]
27181 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27182 (tcache_thread_freeres): Set tcache_shutting_down before
27183 freeing the tcache.
27184 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27185 * malloc/tst-malloc-tcache-leak.c: New file.
27186
27187 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27188
27189 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27190 back to powerpc32 file.
27191 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27192 (memrchr): Add __memrchr_power8 to ifunc list.
27193 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27194 extra bytes for unaligned inputs.
27195
27196 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27197
27198 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27199 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27200 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27201 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27202 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27203
27204 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27205
27206 * sysdeps/arm/libm-test-ulps: Update.
27207
27208 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27209 <libm-alias-ldouble.h>.
27210 (asinhl): Define using libm_alias_ldouble.
27211 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27212 <libm-alias-ldouble.h>.
27213 (cbrtl): Define using libm_alias_ldouble.
27214 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27215 <libm-alias-ldouble.h>.
27216 (copysignl): Define using libm_alias_ldouble.
27217 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27218 <libm-alias-ldouble.h>.
27219 (cosl): Define using libm_alias_ldouble.
27220 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27221 <libm-alias-ldouble.h>.
27222 (erfl): Define using libm_alias_ldouble.
27223 (erfcl): Likewise.
27224 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27225 <libm-alias-ldouble.h>.
27226 (fmal): Define using libm_alias_ldouble.
27227 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27228 <libm-alias-ldouble.h>.
27229 (frexpl): Define using libm_alias_ldouble.
27230 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27231 libm_alias_ldouble.
27232 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27233 <libm-alias-ldouble.h>.
27234 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27235 libm_alias_ldouble.
27236 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27237 <libm-alias-ldouble.h>.
27238 (getpayloadl): Define using libm_alias_ldouble.
27239 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27240 <libm-alias-ldouble.h>.
27241 (llrintl): Define using libm_alias_ldouble.
27242 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27243 <libm-alias-ldouble.h>.
27244 (llroundl): Define using libm_alias_ldouble.
27245 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27246 <libm-alias-ldouble.h>.
27247 (lrintl): Define using libm_alias_ldouble.
27248 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27249 <libm-alias-ldouble.h>.
27250 (lroundl): Define using libm_alias_ldouble.
27251 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27252 <libm-alias-ldouble.h>.
27253 (modfl): Define using libm_alias_ldouble.
27254 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27255 <libm-alias-ldouble.h>.
27256 (nextupl): Define using libm_alias_ldouble.
27257 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27258 <libm-alias-ldouble.h>.
27259 (remquol): Define using libm_alias_ldouble.
27260 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27261 <libm-alias-ldouble.h>.
27262 (roundevenl): Define using libm_alias_ldouble.
27263 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27264 <libm-alias-ldouble.h>.
27265 (roundl): Define using libm_alias_ldouble.
27266 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27267 using libm_alias_ldouble.
27268 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27269 <libm-alias-ldouble.h>.
27270 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27271 <libm-alias-ldouble.h>.
27272 (setpayloadsigl): Define using libm_alias_ldouble.
27273 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27274 <libm-alias-ldouble.h>.
27275 (sincosl): Define using libm_alias_ldouble.
27276 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27277 <libm-alias-ldouble.h>.
27278 (sinl): Define using libm_alias_ldouble.
27279 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27280 <libm-alias-ldouble.h>.
27281 (tanhl): Define using libm_alias_ldouble.
27282 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27283 <libm-alias-ldouble.h>.
27284 (tanl): Define using libm_alias_ldouble.
27285 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27286 <libm-alias-ldouble.h>.
27287 (totalorderl): Define using libm_alias_ldouble.
27288 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27289 <libm-alias-ldouble.h>.
27290 (totalordermagl): Define using libm_alias_ldouble.
27291 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27292 libm_alias_ldouble.
27293 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27294 libm_alias_ldouble.
27295
27296 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27297
27298 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27299 memmove_falkor.
27300 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27301 (__libc_ifunc_impl_list): Likewise.
27302 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27303 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27304
27305 * benchtests/bench-memmove-walk.c: New file.
27306 * benchtests/Makefile (string-benchset): Add it.
27307
27308 * benchtests/bench-memset-walk.c: New file.
27309 * benchtests/Makefile (string-benchset): Add it.
27310
27311 * benchtests/bench-memcpy-walk.c: New file.
27312 * benchtests/Makefile (string-benchset): Add it.
27313
27314 2017-10-05 Florian Weimer <fweimer@redhat.com>
27315
27316 nscd: Eliminate compilation time dependency in the build output.
27317 * nscd/nscd_stat.c (STATDATA_VERSION)
27318 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27319 (STATDATA_VERSION_FULL): New macro definitions.
27320 (compilation): Remove.
27321 (struct statdata): Adjust version member.
27322 (send_stats): Set version from STATDATA_VERSION_FULL.
27323 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27324
27325 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27326
27327 * configure.ac (--enable-add-ons): Remove option.
27328 (machine): Do not mention add-ons in comment.
27329 (LIBC_PRECONFIGURE): Likewise.
27330 (add_ons): Remove variable and sanity checks and logic to locate
27331 add-ons.
27332 (add_ons_automatic): Remove variable.
27333 (configured_add_ons): Likewise.
27334 (add_ons_sfx): Likewise.
27335 (add_ons_pfx): Likewise.
27336 (add_on_subdirs): Likewise.
27337 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27338 consideration of add-ons in Implies handling.
27339 (sysdeps_add_ons): Likewise.
27340 * configure: Regenerated.
27341 * libidn/configure.ac: Remove.
27342 * libidn/configure: Likewise.
27343 * sysdeps/unix/inet/configure.ac: New file.
27344 * sysdeps/unix/inet/configure: New generated file.
27345 * sysdeps/unix/inet/Subdirs: Add libidn.
27346 * Makeconfig (sysdeps-srcdirs): Remove variable.
27347 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27348 ($(common-objpfx)config.status): Do not depend on add-on files.
27349 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27350 comment.
27351 (all-subdirs): Do not include $(add-on-subdirs).
27352 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27353 * config.make.in (add-ons): Remove variable.
27354 (add-on-subdirs): Likewise.
27355 (sysdeps-add-ons): Likewise.
27356 * manual/Makefile (add-chapters): Remove.
27357 ($(objpfx)texis): Do not depend on $(add-chapters).
27358 (nonexamples): Do not handle $(add-chapters).
27359 (examples): Do not handle $(add-ons).
27360 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27361 libc-texinfo.sh.
27362 * manual/install.texi (Installation): Do not mention add-ons.
27363 (--enable-add-ons): Do not document configure option.
27364 * INSTALL: Regenerated.
27365 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27366 * manual/maint.texi (Hierarchy Conventions): Do not mention
27367 add-ons.
27368 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27369 --enable-add-ons.
27370 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27371 add-ons.
27372 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27373 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27374
27375 2017-10-05 Andreas Schwab <schwab@suse.de>
27376
27377 [BZ #15142]
27378 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27379 (_IO_flush_all_lockp): Always lock list_all_lock.
27380 (_IO_flush_all_linebuffered): Likewise.
27381 (_IO_unbuffer_all): Likewise.
27382
27383 2017-10-05 Florian Weimer <fweimer@redhat.com>
27384
27385 [BZ #15436]
27386 Do not flush stdio streams on abort.
27387 * stdlib/abort.c (fflush): Remove macro definition.
27388 (abort): Remove stages related to stdio flushing.
27389
27390 2017-10-05 Florian Weimer <fweimer@redhat.com>
27391
27392 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27393
27394 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27395
27396 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27397
27398 2017-10-05 Florian Weimer <fweimer@redhat.com>
27399
27400 * support/support_format_hostent.c (support_format_hostent): Add
27401 more error information for NETDB_INTERNAL.
27402
27403 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27404
27405 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27406 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27407 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27408 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27409 AC_DEFINE if multi-arch is enabled.
27410 * sysdeps/i386/configure: Regenerated.
27411
27412 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27413
27414 * Makeconfig (+link-static-before-libc): Use
27415 $(DEFAULT-LDFLAGS-$(@F)).
27416 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27417 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27418 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27419
27420 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27421
27422 * elf/Makefile (tests): Add tst-main1.
27423 (modules-names): Add tst-main1mod.
27424 ($(objpfx)tst-main1): New.
27425 (CRT-tst-main1): Likewise.
27426 (LDFLAGS-tst-main1): Likewise.
27427 (LDLIBS-tst-main1): Likewise.
27428 (tst-main1mod.so-no-z-defs): Likewise.
27429 * elf/tst-main1.c: New file.
27430 * elf/tst-main1mod.c: Likewise.
27431
27432 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27433
27434 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27435
27436 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27437
27438 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27439 (fma): Define using libm_alias_double.
27440 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27441 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27442 <math_ldbl_opt.h>.
27443 (fmal): Do not define as compat symbol here.
27444 * sysdeps/alpha/fpu/s_fma.c: New file.
27445
27446 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27447
27448 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27449
27450 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27451
27452 [BZ #22229]
27453 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27454 <math_ldbl_opt.h>
27455 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27456 and libc.
27457 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27458 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27459 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27460 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27461 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27462 Include <math_ldbl_opt.h>
27463 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27464 and libc.
27465 (compat_symbol): Undefine and redefine.
27466 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27467 <math_ldbl_opt.h>
27468 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27469 (compat_symbol): Undefine and redefine.
27470 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27471 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27472 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27473 GLIBC_2_1 for libm.
27474 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27475 GLIBC_2.0 copysignl symbol.
27476 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27477 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27478
27479 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27480
27481 2017-10-04 Florian Weimer <fweimer@redhat.com>
27482
27483 * scripts/check-local-headers.sh: Ignore nspr4 header file
27484 directory in addition to nspr.
27485
27486 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27487
27488 [BZ #17956]
27489 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27490 * configure: Regenerate.
27491 * crypt/Makefile (nss-cpp-flags): New variable.
27492 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27493 (CPPFLAGS-md5-crypt.c): Use it.
27494 * scripts/check-local-headers.sh: Ignore nspr header file
27495 directory.
27496
27497 2017-10-04 Andreas Schwab <schwab@suse.de>
27498
27499 * nis/Makefile (services): Remove compat.
27500 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27501 ($(objpfx)libnss_compat.so): Remove rule.
27502 * nis/Versions (libnss_compat): Remove.
27503 * nss/Makefile (services): Add compat.
27504 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27505 * nss/Versions (libnss_compat): Define.
27506 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27507 Don't include <rpc/types.h>. Replace bool_t by bool.
27508 * nss/nss_compat/compat-initgroups.c: Likewise.
27509 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27510 instead of <rpcsrv/ypclnt.h>.
27511 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27512 yp_get_default_domain.
27513 * nss/nss_compat/compat-pwd.c: Likewise.
27514 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27515 yp_get_default_domain.
27516 * nss/nss_compat/nisdomain.c: New file.
27517 * nss/nss_compat/nisdomain.h: Likewise.
27518
27519 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27520
27521 [BZ #22244]
27522 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27523 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27524
27525 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27526
27527 [BZ #22243]
27528 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
27529 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
27530
27531 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27532
27533 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
27534 "movl main@GOTOFF(%ebx), %eax".
27535
27536 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27537
27538 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
27539 allow undefined _DYNAMIC in PIE libc.a.
27540 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27541 Likewse.
27542
27543 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27544
27545 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
27546 check _DYNAMIC.
27547
27548 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27549
27550 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
27551 check _DYNAMIC.
27552
27553 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27554
27555 * math/test-math-iscanonical.cc (error): Replace bool with int.
27556
27557 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27558
27559 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
27560 (modf): Define using libm_alias_double, only if [!__modf].
27561 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
27562 <libm-alias-double.h>.
27563 (modf): Define using libm_alias_double, only if [!__modf].
27564 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
27565 compat symbol here.
27566 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
27567 (weak_alias): Do not undefine and redefine.
27568 (strong_alias): Likewise.
27569 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
27570 (weak_alias): Likewise.
27571 (strong_alias): Likewise.
27572
27573 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
27574 (logb): Define using libm_alias_double, only if [!__logb].
27575 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
27576 <libm-alias-double.h>.
27577 (logb): Define using libm_alias_double, only if [!__logb].
27578 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
27579 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
27580 (weak_alias): Do not undefine and redefine.
27581 (strong_alias): Likewise.
27582 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
27583 (weak_alias): Likewise.
27584 (strong_alias): Likewise.
27585
27586 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27587
27588 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
27589 Check SHARED instead PIC.
27590
27591 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27592
27593 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
27594 [!__fmaf] (fmaf): Define using libm_alias_float.
27595
27596 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
27597 (frexp): Define using libm_alias_double.
27598 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
27599 <libm-alias-double.h>.
27600 (frexp): Define using libm_alias_double.
27601 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
27602 compat symbol here.
27603
27604 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27605
27606 [BZ #22235]
27607 * math/math.h: Trivial fix for unbalanced parentheses in comment.
27608 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
27609 (CFLAGS-test-math-iscanonical.cc): New variable.
27610 * math/test-math-iscanonical.cc: New file.
27611 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
27612 Provide a C++ implementation based on function overloading,
27613 rather than using __MATH_TG, which uses C-only builtins.
27614 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
27615 Likewise.
27616 * sysdeps/powerpc/powerpc64le/Makefile
27617 (CFLAGS-test-math-iscanonical.cc): New variable.
27618
27619 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27620
27621 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
27622 (ceil): Define using libm_alias_double.
27623 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
27624 (floor): Define using libm_alias_double.
27625 * sysdeps/ieee754/dbl-64/s_llround.c: Include
27626 <libm-alias-double.h>.
27627 (llround): Define using libm_alias_double.
27628 * sysdeps/ieee754/dbl-64/s_lround.c: Include
27629 <libm-alias-double.h>.
27630 (lround): Define using libm_alias_double.
27631 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
27632 <libm-alias-double.h>.
27633 (nearbyint): Define using libm_alias_double.
27634 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
27635 <libm-alias-double.h>.
27636 (remquo): Define using libm_alias_double.
27637 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
27638 (rint): Define using libm_alias_double.
27639 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
27640 (round): Define using libm_alias_double.
27641 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
27642 (trunc): Define using libm_alias_double.
27643 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
27644 <libm-alias-double.h>.
27645 (ceil): Define using libm_alias_double.
27646 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
27647 <libm-alias-double.h>.
27648 (floor): Define using libm_alias_double.
27649 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
27650 <libm-alias-double.h>.
27651 (llround): Define using libm_alias_double.
27652 [_LP64] (lround): Likewise.
27653 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
27654 <libm-alias-double.h>.
27655 [!_LP64] (lround): Define using libm_alias_double.
27656 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
27657 <libm-alias-double.h>.
27658 (nearbyint): Define using libm_alias_double.
27659 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
27660 <libm-alias-double.h>.
27661 (remquo): Define using libm_alias_double.
27662 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
27663 <libm-alias-double.h>.
27664 (rint): Define using libm_alias_double.
27665 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
27666 <libm-alias-double.h>.
27667 (round): Define using libm_alias_double.
27668 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
27669 <libm-alias-double.h>.
27670 (trunc): Define using libm_alias_double.
27671 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
27672 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
27673 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
27674 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
27675 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
27676 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
27677 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
27678 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
27679 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
27680
27681 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27682
27683 * math/w_remainder.c: New file.
27684 * math/w_remainderf.c: New file.
27685 * math/w_remainderl.c: New file.
27686
27687 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27688
27689 * elf/rtld.c (BOOTSTRAP_MAP): New.
27690 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
27691 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27692 Likewise.
27693 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27694 Likewise.
27695 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27696 Likewise.
27697
27698 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27699
27700 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
27701 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
27702 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
27703 rtld_hidden_data_ver): Define to empty.
27704 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
27705 __assert_perror_fail): Likewise.
27706 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27707 (__rewinddir): Likewise.
27708 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27709 (__profile_frequency): Likewise.
27710 * include/setjmp.h (__sigsetjmp): Likewise.
27711 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
27712 __libc_sigaction): Likewise.
27713 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
27714 not set hidden attribute.
27715 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
27716 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
27717 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
27718 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
27719 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
27720 __fxstatat64): Likewise.
27721 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27722 (__uname): Likewise.
27723 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27724 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
27725 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
27726 (NO_RTLD_HIDDEN): Set.
27727 * sysdeps/mach/hurd/configure: Refresh.
27728 * config.h.in: Refresh.
27729
27730 2017-10-02 Joseph Myers <joseph@codesourcery.com>
27731
27732 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
27733 (atan): Define using libm_alias_double.
27734 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
27735 (tan): Define using libm_alias_double.
27736 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
27737 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
27738
27739 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
27740 define as weak alias of __atan. Do not define any aliases if
27741 [__atan].
27742 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
27743 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
27744 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
27745 as weak alias of __tan. Do not define any aliases if [__tan].
27746 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
27747 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
27748 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
27749 __atan.
27750 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
27751 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
27752 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
27753 and define as weak alias of __atan.
27754 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
27755 __atan.
27756 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
27757 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
27758 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
27759 define as weak alias of __tan.
27760
27761 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27762
27763 * math/w_lgamma.c: New file.
27764 * math/w_lgammaf.c: New file.
27765 * math/w_lgammal.c: New file.
27766
27767 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27768
27769 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
27770 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
27771 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
27772 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
27773 * sysdeps/ieee754/flt-32/w_logf.c: New file.
27774 * sysdeps/ieee754/flt-32/w_powf.c: New file.
27775 * sysdeps/i386/fpu/w_log2f.c: New file.
27776 * sysdeps/i386/fpu/w_logf.c: New file.
27777 * sysdeps/i386/fpu/w_powf.c: New file.
27778 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
27779 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
27780 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
27781
27782 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27783 H.J. Lu <hongjiu.lu@intel.com>
27784
27785 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
27786 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
27787 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
27788 * sysdeps/ieee754/flt-32/w_expf.c: New file.
27789 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
27790 the new expf code.
27791 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
27792 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
27793 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
27794 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
27795 * sysdeps/i386/fpu/w_exp2f.c: New file.
27796 * sysdeps/i386/fpu/w_expf.c: New file.
27797 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
27798 * sysdeps/x86_64/fpu/w_expf.c: New file.
27799
27800 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27801
27802 * math/Versions (logf): New libm symbol at GLIBC_2.27.
27803 (log2f): Likewise.
27804 (powf): Likewise.
27805 * math/w_log2f.c: New file.
27806 * math/w_logf.c: New file.
27807 * math/w_powf.c: New file.
27808 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
27809 * math/w_logf_compat.c (__logf_compat): Likewise.
27810 * math/w_powf_compat.c (__powf_compat): Likewise.
27811 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
27812 * sysdeps/ia64/fpu/e_logf.S: Likewise.
27813 * sysdeps/ia64/fpu/e_powf.S: Likewise.
27814 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27815 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27816 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27817 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27818 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27819 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27820 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27821 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27822 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27823 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27824 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27825 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27826 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27827 Likewise.
27828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27829 Likewise.
27830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27831 Likewise.
27832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27833 Likewise.
27834 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27835 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27836 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27837 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27838 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27839 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27840 Likewise.
27841 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27842 Likewise.
27843 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27844 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27845 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27846
27847 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27848
27849 * sysdeps/powerpc/powerpc64/multiarch/Makefile
27850 (sysdep_routines): Add memrchr_power8.
27851 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27852 (memrchr): Add __memrchr_power8 to list of memrchr functions.
27853 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
27854 New file.
27855 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27856 (memrchr): Add __memrchr_power8 to ifunc list.
27857 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
27858
27859 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27860
27861 [BZ #18822]
27862 * sysdeps/unix/sysv/linux/posix_fadvise64.c
27863 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
27864 libc_hidden_def.
27865 * sysdeps/unix/sysv/linux/posix_fallocate64.c
27866 (__posix_fallocate64_l64): Likewise.
27867
27868 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27869
27870 [BZ #18822]
27871 * sysdeps/unix/sysv/linux/sched_setaffinity.c
27872 (__sched_setaffinity_new): Add libc_hidden_proto and
27873 libc_hidden_def.
27874
27875 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27876
27877 [BZ #18822]
27878 * include/glob.h (__glob64): Add libc_hidden_proto.
27879 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
27880 libc_hidden_def.
27881
27882 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27883
27884 [BZ #18822]
27885 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
27886 attribute_hidden.
27887
27888 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27889
27890 [BZ #18822]
27891 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
27892
27893 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27894
27895 [BZ #18822]
27896 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
27897 libc_hidden_def.
27898
27899 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27900
27901 [BZ #18822]
27902 * csu/version.c (__libc_print_version): Add attribute_hidden.
27903
27904 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27905
27906 [BZ #18822]
27907 * include/libc-internal.h (__init_misc): Add attribute_hidden.
27908
27909 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27910
27911 [BZ #18822]
27912 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
27913
27914 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27915
27916 [BZ #18822]
27917 * nscd/nscd_helper.c (__nis_hash): New prototype.
27918
27919 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27920
27921 [BZ #18822]
27922 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
27923 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
27924 libc_hidden_def.
27925 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
27926 * termios/tcgetattr.c (__tcgetattr): Likewise.
27927
27928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27929
27930 [BZ #18822]
27931 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
27932 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
27933 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
27934 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
27935 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
27936
27937 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27938
27939 [BZ #18822]
27940 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
27941
27942 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27943
27944 [BZ #18822]
27945 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
27946 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
27947
27948 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27949
27950 [BZ #18822]
27951 * intl/hash-string.h (__hash_string): Add attribute_hidden.
27952
27953 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27954
27955 [BZ #18822]
27956 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
27957 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
27958
27959 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27960
27961 [BZ #18822]
27962 * include/ifreq.h: New file.
27963 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
27964 (__ifreq): Likewise.
27965 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
27966 (__ifreq): Likewise.
27967
27968 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27969
27970 [BZ #18822]
27971 * include/idna.h: New file.
27972 * inet/getnameinfo.c: Include <idna.h> instead of
27973 <libidn/idna.h>.
27974 (__idna_to_unicode_lzlz): Removed.
27975 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
27976 <libidn/idna.h>.
27977 (__idna_to_ascii_lz): Removed.
27978 (__idna_to_unicode_lzlz): Likewise.
27979
27980 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27981
27982 [BZ #18822]
27983 * include/plural-exp.h: New file.
27984 * intl/plural-exp.c: Include <plural-exp.h> instead of
27985 "plural-exp.h".
27986
27987 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27988
27989 [BZ #18822]
27990 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
27991 "getsourcefilter.h".
27992 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
27993 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
27994 "getsourcefilter.h".
27995 (__get_sol): Removed.
27996
27997 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27998
27999 [BZ #18822]
28000 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28001 to ...
28002 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28003
28004 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28005
28006 [BZ #18822]
28007 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28008 attribute_hidden.
28009
28010 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28011
28012 [BZ #18822]
28013 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28014
28015 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28016
28017 [BZ #18822]
28018 * include/search.h (__tdestroy): Add libc_hidden_proto.
28019 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28020
28021 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28022
28023 [BZ #18822]
28024 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28025
28026 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28027
28028 [BZ #18822]
28029 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28030 attribute_hidden.
28031
28032 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28033
28034 [BZ #18822]
28035 * include/signal.h (__kill): Add libc_hidden_proto.
28036 (__sigblock): Likewise.
28037 (__sigprocmask): Likewise.
28038 (__sigaltstack): Likewise.
28039 * signal/kill.c (__kill): Add libc_hidden_def.
28040 * signal/sigblock.c (__sigblock): Likewise.
28041 * signal/sigprocmask.c (__sigprocmask): Likewise.
28042 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28043 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28044 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28045 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28046 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28047 Likewise.
28048 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28049 Likewise.
28050 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28051 (__sigprocmask): Likewise.
28052 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28053 Likewise.
28054 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28055 (__sigprocmask): Likewise.
28056 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28057 Likewise.
28058
28059 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28060
28061 [BZ #18822]
28062 * include/string.h (__strsep): Add libc_hidden_proto.
28063 * string/strsep.c (__strsep): Add libc_hidden_def.
28064
28065 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28066
28067 [BZ #18822]
28068 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28069 attribute_hidden.
28070 (__spawni): Likewise.
28071
28072 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28073
28074 [BZ #18822]
28075 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28076 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28077 libc_hidden_def.
28078
28079 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28080
28081 [BZ #18822]
28082 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28083
28084 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28085
28086 [BZ #18822]
28087 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28088 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28089 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28090 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28091 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28092 Likewise.
28093 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28094 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28095
28096 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28097
28098 [BZ #18822]
28099 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28100 (__dcigettext): Likewise.
28101
28102 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28103
28104 [BZ #18822]
28105 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28106 libc_hidden_proto.
28107 (__get_nprocs): Likewise.
28108 (__get_phys_pages): Likewise.
28109 (__get_avphys_pages): Likewise.
28110 (__get_child_max): Add attribute_hidden.
28111 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28112 (__get_nprocs): Likewise.
28113 (__get_phys_pages): Likewise.
28114 (__get_avphys_pages): Likewise.
28115 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28116 libc_hidden_def.
28117 (__get_nprocs): Likewise.
28118 (__get_phys_pages): Likewise.
28119 (__get_avphys_pages): Likewise.
28120 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28121 libc_hidden_def.
28122 (__get_nprocs_conf): Likewise.
28123 (__get_phys_pages): Likewise.
28124 (__get_avphys_pages): Likewise.
28125
28126 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28127
28128 [BZ #18822]
28129 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28130 attribute_hidden.
28131 (__netlink_close): Likewise.
28132 (__netlink_free_handle): Likewise.
28133 (__netlink_request): Likewise.
28134
28135 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28136
28137 [BZ #18822]
28138 * include/rpc/rpc.h (__rpc_thread_variables): Add
28139 attribute_hidden.
28140 (__rpc_thread_svc_cleanup): Likewise.
28141 (__rpc_thread_clnt_cleanup): Likewise.
28142 (__rpc_thread_key_cleanup): Likewise.
28143
28144 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28145
28146 [BZ #18822]
28147 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28148 (__writev): Likewise.
28149 * misc/readv.c (__readv): Add libc_hidden_def.
28150 * misc/writev.c (__writev): Likewise.
28151 * sysdeps/posix/readv.c (__readv): Likewise.
28152 * sysdeps/posix/writev.c (__writev): Likewise.
28153 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28154 (__readv): Likewise.
28155 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28156 (__writev): Likewise.
28157
28158 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28159
28160 [BZ #18822]
28161 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28162 (__regcomp): Add libc_hidden_proto.
28163 (__regexec): Likewise.
28164 (__regfree): Likewise.
28165 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28166 (__regfree): Likewise.
28167 * posix/regexec.c (__regexec): Likewise.
28168
28169 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28170
28171 [BZ #18822]
28172 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28173 (__getutent): Likewise.
28174 (__getutid): Likewise.
28175 (__getutline): Likewise.
28176 (__pututline): Likewise.
28177 (__getutent_r): Likewise.
28178 (__getutid_r): Likewise.
28179 (__getutline_r): Likewise.
28180 (__utmpname): Add attribute_hidden.
28181 (__setutent): Likewise.
28182 (__endutent): Likewise.
28183 * login/getutent.c (__getutent): Add libc_hidden_def.
28184 * login/getutent_r.c (__getutent_r): Likewise.
28185 (__pututline): Likewise.
28186 * login/getutid.c (__getutid): Likewise.
28187 * login/getutid_r.c (__getutid_r): Likewise.
28188 * login/getutline.c (__getutline): Likewise.
28189 * login/getutline_r.c (__getutline_r): Likewise.
28190 * login/updwtmp.c (__updwtmp): Likewise.
28191
28192 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28193
28194 [BZ #18822]
28195 * include/dirent.h (__opendir): Always add attribute_hidden.
28196 (__fdopendir): Likewise.
28197 (__closedir): Likewise.
28198 (__readdir): Likewise.
28199 (__readdir64): Add libc_hidden_proto.
28200 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28201 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28202 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28203 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28204 New alias.
28205
28206 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28207
28208 [BZ #18822]
28209 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28210 * include/netdb.h (__gethostbyaddr_r): Likewise.
28211 (__gethostbyname_r): Likewise.
28212 (__gethostbyname2_r): Likewise.
28213 (__getnetbyaddr_r): Likewise.
28214 (__getnetbyname_r): Likewise.
28215 (__getservbyname_r): Likewise.
28216 (__getservbyport_r): Likewise.
28217 (__getprotobyname_r): Likewise.
28218 (__getprotobynumber_r): Likewise.
28219 (__getnetgrent_r): Likewise.
28220 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28221 (__getrpcbynumber_r): Likewise.
28222 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28223
28224 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28225
28226 [BZ #18822]
28227 * include/stdio.h (__fcloseall): Add attribute_hidden.
28228 (__getline): Likewise.
28229 (__path_search): Likewise.
28230 (__gen_tempname): Likewise.
28231 (__libc_message): Likewise.
28232 (__flockfile): Likewise.
28233 (__funlockfile): Likewise.
28234 (__fxprintf): Likewise.
28235 (__fxprintf_nocancel): Likewise.
28236
28237 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28238
28239 [BZ #18822]
28240 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28241 (__sgetsgent_r): Likewise.
28242
28243 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28244
28245 [BZ #18822]
28246 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28247 (__statfs64): Likewise.
28248 (__fstatfs64): Likewise.
28249 * include/sys/statvfs.h (__statvfs64): Likewise.
28250 (__fstatvfs64): Likewise.
28251 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28252 (__statfs_filesize_max): Likewise.
28253 (__statfs_symlinks): Likewise.
28254 (__statfs_chown_restricted): Likewise.
28255
28256 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28257
28258 [BZ #18822]
28259 * include/time.h (__tzstring): Add attribute_hidden.
28260 (__tzfile_read): Likewise.
28261 (__tzfile_compute): Likewise.
28262 (__tzfile_default): Likewise.
28263 (__tzset_parse_tz): Likewise.
28264 (__offtime): Likewise.
28265 (__asctime_r): Likewise.
28266 (__tzset): Likewise.
28267 (__tz_convert): Likewise.
28268 (__getdate_r): Likewise.
28269 (__getclktck): Likewise.
28270
28271 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28272
28273 [BZ #18822]
28274 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28275 (__nscd_unmap): Likewise.
28276 (__nscd_cache_search): Likewise.
28277 (__nscd_get_nl_timestamp): Likewise.
28278 (__nscd_getpwnam_r): Likewise.
28279 (__nscd_getpwuid_r): Likewise.
28280 (__nscd_getgrnam_r): Likewise.
28281 (__nscd_getgrgid_r): Likewise.
28282 (__nscd_gethostbyname_r): Likewise.
28283 (__nscd_gethostbyname2_r): Likewise.
28284 (__nscd_gethostbyaddr_r): Likewise.
28285 (__nscd_getai): Likewise.
28286 (__nscd_getgrouplist): Likewise.
28287 (__nscd_getservbyname_r): Likewise.
28288 (__nscd_getservbyport_r): Likewise.
28289 (__nscd_innetgr): Likewise.
28290 (__nscd_setnetgrent): Likewise.
28291
28292 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28293
28294 [BZ #18822]
28295 * include/gmp.h: Declare internal functions only if _ISOMAC is
28296 undefined.
28297 (__mpn_extract_double): Add attribute_hidden.
28298 (__mpn_extract_long_double): Likewise.
28299 (__mpn_extract_float128): Likewise.
28300 (__mpn_construct_float): Likewise.
28301 (__mpn_construct_double): Likewise.
28302 (__mpn_construct_long_double): Likewise.
28303 (__mpn_construct_float128): Likewise.
28304 (mpn_add_1): Likewise.
28305 (mpn_addmul_1): Likewise.
28306 (mpn_add_n): Likewise.
28307 (mpn_cmp): Likewise.
28308 (mpn_divrem): Likewise.
28309 (mpn_lshift): Likewise.
28310 (mpn_mul): Likewise.
28311 (mpn_mul_1): Likewise.
28312 (mpn_rshift): Likewise.
28313 (mpn_sub_1): Likewise.
28314 (mpn_submul_1): Likewise.
28315 (mpn_sub_n): Likewise.
28316
28317 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28318
28319 [BZ #18822]
28320 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28321 (__wcscat): Likewise.
28322 (__btowc): Likewise.
28323 (__wcrtomb): Likewise.
28324 (__mbsrtowcs): Likewise.
28325 (__wcsrtombs): Likewise.
28326 (__mbsnrtowcs): Likewise.
28327 (__wcsnrtombs): Likewise.
28328 (__wcsncpy): Likewise.
28329 (__wcpncpy): Likewise.
28330 (__wmemcpy): Likewise.
28331 (__wmempcpy): Likewise.
28332 (__wmemmove): Likewise.
28333 (__wcschrnul): Likewise.
28334 (__vfwscanf): Likewise.
28335 (__vswprintf): Likewise.
28336 (__fwprintf): Likewise.
28337 (__vfwprintf): Likewise.
28338
28339 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28340
28341 [BZ #18822]
28342 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28343 (__getgrgid_r): Likewise.
28344 (__getgrnam_r): Likewise.
28345 * include/pwd.h (__getpwuid_r): Likewise.
28346 (__getpwnam_r): Likewise.
28347 (__fgetpwent_r): Likewise.
28348 * include/shadow.h (__getspnam_r): Likewise.
28349 (__sgetspent_r): Likewise.
28350 (__fgetspent_r): Likewise.
28351
28352 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28353
28354 [BZ #18822]
28355 * include/unistd.h (__access): Add attribute_hidden.
28356 (__lseek64): Likewise.
28357 (__libc_pread64): Likewise.
28358 (__pipe2): Likewise.
28359 (__sleep): Likewise.
28360 (__chdir): Likewise.
28361 (__fchdir): Likewise.
28362 (__getcwd): Likewise.
28363 (__rmdir): Likewise.
28364 (__execvpe): Likewise.
28365 (__execve): Likewise.
28366 (__setsid): Likewise.
28367 (__getuid): Likewise.
28368 (__geteuid): Likewise.
28369 (__getgid): Likewise.
28370 (__getegid): Likewise.
28371 (__getgroups): Likewise.
28372 (__group_member): Likewise.
28373 (__ttyname_r): Likewise.
28374 (__isatty): Likewise.
28375 (__readlink): Likewise.
28376 (__unlink): Likewise.
28377 (__gethostname): Likewise.
28378 (__profil): Likewise.
28379 (__getdtablesize): Likewise.
28380 (__brk): Likewise.
28381 (__ftruncate): Likewise.
28382 (__ftruncate64): Likewise.
28383
28384 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28385
28386 [BZ #18822]
28387 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28388 * argp/argp-fs-xinl.c: Likewise.
28389 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28390 * argp/argp-parse.c: Include <argp.h>.
28391 * argp/argp-xinl.c: Likewise.
28392 * include/argp-fmtstream.h: New file.
28393 * include/argp.h (__argp_error): Add attribute_hidden.
28394 (__argp_failure): Likewise.
28395 (__argp_input): Likewise.
28396 (__argp_state_help): Likewise.
28397
28398 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28399
28400 [BZ #18822]
28401 * include/wchar.h (____wcstof_l_internal): New prototype.
28402 (____wcstod_l_internal): Likewise.
28403 (____wcstold_l_internal): Likewise.
28404 (____wcstol_l_internal): Likewise.
28405 (____wcstoul_l_internal): Likewise.
28406 (____wcstoll_l_internal): Likewise.
28407 (____wcstoull_l_internal): Likewise.
28408 (____wcstof128_l_internal): Likewise.
28409 * sysdeps/ieee754/float128/wcstof128.c
28410 (____wcstof128_l_internal): Removed.
28411 * sysdeps/ieee754/float128/wcstof128_l.c
28412 (____wcstof128_l_internal): Likewise.
28413 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28414 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28415 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28416 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28417 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28418 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28419 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28420 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28421 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28422 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28423
28424 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28425
28426 [BZ #18822]
28427 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28428 instead of <sys/statvfs.h>.
28429 (__internal_statvfs): Removed.
28430 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28431 instead of <sys/statvfs.h>.
28432 (__internal_statvfs64): Removed.
28433 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28434 "internal_statvfs.h" instead of <sys/statvfs.h>.
28435 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28436 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28437 instead of <sys/statvfs.h>.
28438 (__internal_statvfs): Removed.
28439 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28440 instead of <sys/statvfs.h>.
28441 (__internal_statvfs64): Removed.
28442
28443 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28444
28445 [BZ #18822]
28446 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28447 (__gconv_close): Likewise.
28448 (__gconv): Likewise.
28449 (__gconv_find_transform): Likewise.
28450 (__gconv_lookup_cache): Likewise.
28451 (__gconv_compare_alias_cache): Likewise.
28452 (__gconv_load_cache): Likewise.
28453 (__gconv_get_path): Likewise.
28454 (__gconv_close_transform): Likewise.
28455 (__gconv_release_cache): Likewise.
28456 (__gconv_find_shlib): Likewise.
28457 (__gconv_release_shlib): Likewise.
28458 (__gconv_get_builtin_trans): Likewise.
28459 (__gconv_compare_alias): Likewise.
28460 * include/dlfcn.h (_dlerror_run): Likewise.
28461 * include/stdio.h (__fortify_fail_abort): Likewise.
28462 * include/time.h (__tz_compute): Likewise.
28463 (__strptime_internal): Likewise.
28464 * intl/gettextP.h (_nl_find_domain): Likewise.
28465 (_nl_load_domain): Likewise.
28466 (_nl_find_msg): Likewise.
28467 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28468 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28469 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28470 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28471 (__gai_find_request): Likewise.
28472 (__gai_remove_request): Likewise.
28473 (__gai_notify): Likewise.
28474 (__gai_notify_only): Likewise.
28475 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28476 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28477 (_dl_non_dynamic_init): Likewise.
28478 (_dl_aux_init): Likewise.
28479 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28480 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28481 Likewise.
28482 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28483 (__wcsmbs_clone_conv): Likewise.
28484 (__wcsmbs_named_conv): Likewise.
28485
28486 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28487
28488 [BZ #18822]
28489 * include/stdlib.h (__random): Add attribute_hidden.
28490 (__random_r): Likewise.
28491 (__srandom_r): Likewise.
28492 (__initstate_r): Likewise.
28493 (__setstate_r): Likewise.
28494 (__erand48_r): Likewise.
28495 (__nrand48_r): Likewise.
28496 (__jrand48_r): Likewise.
28497 (__srand48_r): Likewise.
28498 (__seed48_r): Likewise.
28499 (__lcong48_r): Likewise.
28500 (__drand48_iterate): Likewise.
28501 (__setenv): Likewise.
28502 (__unsetenv): Likewise.
28503 (__clearenv): Likewise.
28504 (__ptsname_r): Likewise.
28505 (__posix_openpt): Likewise.
28506 (__add_to_environ): Likewise.
28507 (__realpath): Add libc_hidden_proto.
28508 (__ecvt_r): Likewise.
28509 (__fcvt_r): Likewise.
28510 (__qecvt_r): Likewise.
28511 (__qfcvt_r): Likewise.
28512 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28513 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28514
28515 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28516
28517 [BZ #18822]
28518 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28519 * include/time.h (__mktime_internal): Likewise.
28520 * libio/iolibio.h (__fopen_internal): Likewise.
28521
28522 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
28523
28524 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28525 pointer in frame.
28526 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28527 Correct offset used to restore PIC register.
28528
28529 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
28530
28531 [BZ libc/22165]
28532 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
28533 code to load address of __getcontext_ret when generating PIC code.
28534
28535 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
28536
28537 * elf/Makefile (tests-static-internal): Add
28538 tst-tls1-static-non-pie.
28539 (LDFLAGS-tst-tls1-static-non-pie): New.
28540 * elf/tst-tls1-static-non-pie.c: New file.
28541
28542 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28543
28544 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
28545 (asinh): Define using libm_alias_double.
28546 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
28547 (cbrt): Define using libm_alias_double.
28548 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
28549 <libm-alias-double.h>.
28550 (copysign): Define using libm_alias_double.
28551 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
28552 (erf): Define using libm_alias_double.
28553 (erfc): Likewise.
28554 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
28555 (expm1): Define using libm_alias_double.
28556 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
28557 (fabs): Define using libm_alias_double.
28558 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
28559 libm_alias_double.
28560 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
28561 <libm-alias-double.h>.
28562 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
28563 libm_alias_double.
28564 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
28565 <libm-alias-double.h>.
28566 (getpayload): Define using libm_alias_double.
28567 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
28568 <libm-alias-double.h>.
28569 (llrint): Define using libm_alias_double.
28570 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
28571 (lrint): Define using libm_alias_double.
28572 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
28573 <libm-alias-double.h>.
28574 (nextup): Define using libm_alias_double.
28575 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
28576 <libm-alias-double.h>.
28577 (roundeven): Define using libm_alias_double.
28578 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
28579 libm_alias_double.
28580 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
28581 <libm-alias-double.h>.
28582 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
28583 using libm_alias_double.
28584 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
28585 (cos): Define using libm_alias_double.
28586 (sin): Likewise.
28587 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
28588 <libm-alias-double.h>.
28589 (sincos): Define using libm_alias_double.
28590 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
28591 (tanh): Define using libm_alias_double.
28592 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
28593 <libm-alias-double.h>.
28594 (totalorder): Define using libm_alias_double.
28595 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
28596 <libm-alias-double.h>.
28597 (totalordermag): Define using libm_alias_double.
28598 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
28599 libm_alias_double.
28600 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
28601 libm_alias_double.
28602 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
28603 <libm-alias-double.h>.
28604 (getpayload): Define using libm_alias_double.
28605 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
28606 <libm-alias-double.h>.
28607 (roundeven): Define using libm_alias_double.
28608 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
28609 <libm-alias-double.h>.
28610 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
28611 <libm-alias-double.h>.
28612 (totalorder): Define using libm_alias_double.
28613 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
28614 <libm-alias-double.h>.
28615 (totalordermag): Define using libm_alias_double.
28616 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
28617 libc compat symbol here.
28618 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
28619 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
28620 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
28621 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
28622 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
28623 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
28624 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
28625 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
28626 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
28627 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
28628
28629 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28630
28631 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
28632 _dl_relocate_static_pie instead of _dl_start to compute load
28633 address in static PIE. Return 0 if _DYNAMIC is undefined for
28634 static executable.
28635
28636 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28637
28638 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
28639 _DYNAMIC is undefined for static executable.
28640
28641 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28642
28643 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
28644
28645 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28646
28647 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28648
28649 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28650
28651 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
28652 (__ieee754_lgamma_r): Use fabs rather than __fabs.
28653 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28654 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28655 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
28656 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
28657 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28658 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
28659 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
28660 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28661 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
28662 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
28663 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28664 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28665 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
28666 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
28667 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
28668
28669 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28670
28671 * math/bits/cmathcalls.h (cimag): Remove inline.
28672 (creal): Remove inline.
28673 (conj): Remove inline.
28674
28675 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28676
28677 * math/Makefile (type-float-routines): Add e_powf_log2_data.
28678 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
28679 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
28680 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
28681 (issignalingf_inline): Likewise.
28682 (POWF_LOG2_TABLE_BITS): Likewise.
28683 (POWF_LOG2_POLY_ORDER): Likewise.
28684 (POWF_SCALE_BITS): Likewise.
28685 (POWF_SCALE): Likewise.
28686 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
28687 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
28688 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
28689
28690 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28691
28692 * math/Makefile (type-float-routines): Add e_log2f_data.
28693 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
28694 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
28695 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
28696 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
28697 * sysdeps/i386/fpu/e_log2f_data.c: New file.
28698 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
28699 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
28700
28701 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28702
28703 * math/Makefile (type-float-routines): Add e_logf_data.
28704 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
28705 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
28706 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
28707 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
28708 * sysdeps/i386/fpu/e_logf_data.c: New file.
28709 * sysdeps/ia64/fpu/e_logf_data.c: New file.
28710 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
28711
28712 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
28713
28714 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
28715 undefined _DYNAMIC in PIE libc.a.
28716 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28717 Likewse.
28718
28719 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28720
28721 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
28722 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
28723 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
28724 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
28725 (__signbit): Remove.
28726 (__signbitl): Remove.
28727 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
28728 (__signbit): Remove.
28729 (__signbitl): Remove.
28730 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
28731 (__signbit): Remove.
28732 (__signbitl): Remove.
28733 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
28734 (__signbit): Remove.
28735 (__signbitl): Remove.
28736 * sysdeps/tile/bits/mathinline.h: Delete file.
28737 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
28738 (__signbit): Remove.
28739 (__signbitl): Remove.
28740
28741 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28742
28743 * math/math.h: Improve handling of C99 isgreater macros.
28744 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
28745 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
28746 * sysdeps/powerpc/bits/mathinline.h: Likewise.
28747 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
28748 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
28749
28750 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
28751
28752 * sysdeps/aarch64/libm-test-ulps: Update.
28753
28754 2017-09-28 Joseph Myers <joseph@codesourcery.com>
28755
28756 [BZ #22225]
28757 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
28758 math_opt_barrier on argument when doing arithmetic on it.
28759 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28760 Likewise. Use math_force_eval not math_opt_barrier after
28761 arithmetic.
28762 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
28763 math_opt_barrier on argument when doing arithmetic on it.
28764 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
28765 Likewise.
28766
28767 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
28768
28769 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
28770 libc_hidden_def.
28771 (__freeifaddrs): Likewise.
28772
28773 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
28774
28775 * include/dirent.h (__dirfd): New declaration.
28776 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
28777 alias.
28778 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
28779 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
28780 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
28781 * include/unistd.h (__revoke): New declaration.
28782 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
28783 alias.
28784 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
28785 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
28786 revoke.
28787 * include/dirent.h (__seekdir): New declaration.
28788 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
28789 redefine as weak alias.
28790 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
28791 of seekdir.
28792 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
28793 and use libc_hidden_def on them.
28794 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
28795 them.
28796 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
28797 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
28798 instead of getifaddrs and freeifaddrs.
28799
28800 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28801
28802 [BZ #18822]
28803 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
28804 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
28805 (__dso_handle): Remove declaration.
28806 * dlfcn/tstatexit.c (__dso_handle): Removed.
28807 (main): Don't check __dso_handle.
28808 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
28809 (main): Don't check __dso_handle.
28810 * include/dso_handle.h: New file.
28811 * malloc/mtrace.c: Include <dso_handle.h>.
28812 (mtrace): Pass __dso_handle directly.
28813 * nptl/pthread_atfork.c: Include <dso_handle.h>.
28814 (__dso_handle): Remove declaration.
28815 (__pthread_atfork): Pass __dso_handle directly.
28816 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
28817 (__dso_handle): Removed.
28818 * posix/wordexp-test.c: Include <dso_handle.h>.
28819 (__dso_handle): Remove declaration.
28820 (__app_register_atfork): Pass __dso_handle directly.
28821 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
28822 (__dso_handle): Remove declaration.
28823 (at_quick_exit): Pass __dso_handle directly.
28824 * stdlib/atexit.c: Include <dso_handle.h>.
28825 (__dso_handle): Remove declaration.
28826 (atexit): Pass __dso_handle directly.
28827 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
28828 (__dso_handle): Removed.
28829
28830 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28831
28832 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
28833 using VDSO.
28834
28835 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
28836
28837 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
28838 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
28839 values to correct default value for given type.
28840
28841 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28842
28843 [BZ #22101]
28844 * elf/Makefile (tests): Add tst-debug1.
28845 ($(objpfx)tst-debug1): New.
28846 ($(objpfx)tst-debug1.out): Likewise.
28847 ($(objpfx)tst-debug1mod1.so): Likewise.
28848 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
28849 with p_filesz == 0.
28850 * elf/tst-debug1.c: New file.
28851
28852 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28853
28854 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
28855 Define using __ifunc.
28856
28857 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28858
28859 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
28860 exp2f() values.
28861
28862 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28863
28864 [BZ #22156]
28865 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
28866
28867 2017-09-26 Florian Weimer <fweimer@redhat.com>
28868
28869 * resolv/Makefile (tests-internal): Fix typo in comment.
28870
28871 2017-09-26 Florian Weimer <fweimer@redhat.com>
28872
28873 * resolv/nss_dns/dns-host.c: Fix typo in comment.
28874
28875 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28876
28877 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
28878 Use an union instead of a max_align_t array for __space,
28879 so that __space is the same size on all platforms.
28880 * malloc/scratch_buffer_grow_preserve.c
28881 (__libc_scratch_buffer_grow_preserve): Likewise.
28882
28883 [BZ #22183]
28884 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
28885 version to 2.
28886 * posix/Makefile (routines): Add glob-lstat-compat and
28887 glob64-lstat-compat.
28888 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
28889 * posix/glob-lstat-compat.c: New file.
28890 * posix/glob64-lstat-compat.c: Likewise.
28891 * posix/tst-glob_lstat_compat.c: Likewise.
28892 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
28893 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
28894 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
28895 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
28896 Likewise.
28897 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
28898 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28899 * posix/glob.c (glob_lstat): New function.
28900 (glob): Rename to __glob and add versioned symbol to 2.27.
28901 (glob_in_dir): Use glob_lstat.
28902 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
28903 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
28904 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
28905 2.27.
28906 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
28907 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
28908 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
28909 gl_lstat on glob call.
28910 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
28911 and glob64 symbols.
28912 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
28913 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
28914 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
28915 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
28916 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
28917 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
28918 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
28919 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
28920 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
28921 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
28922 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
28923 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
28924 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
28925 Likewise.
28926 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
28927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
28928 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
28929 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
28930 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
28931 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
28932 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
28933 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
28934 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
28935 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
28936 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
28937 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
28938
28939 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
28940
28941 * configure.ac (AS): Require binutils 2.25 or later.
28942 * configure: Regenerated.
28943
28944 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
28945
28946 [BZ #22207]
28947 * stdlib/test-atexit-race-common.c (do_test): Minimize required
28948 VM size.
28949
28950 2017-09-25 DJ Delorie <dj@redhat.com>
28951
28952 [BZ #22161]
28953 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
28954 resetting timeout.
28955
28956 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
28957
28958 * sysdeps/ieee754/dbl-64/sincos32.h
28959 [SINCCOS32_H]: Remove define.
28960 [SINCOS32_H]: Define.
28961
28962 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
28963
28964 * math/Versions (expf): New libm symbol at GLIBC_2.27.
28965 (exp2f): Likewise.
28966 * math/w_exp2f.c: New file.
28967 * math/w_expf.c: New file.
28968 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
28969 * math/w_expf_compat.c (__expf_compat): Likewise.
28970 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
28971 * sysdeps/ia64/fpu/e_expf.S: Likewise.
28972 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28973 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28974 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28975 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28976 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28977 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28978 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28979 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28980 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28981 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28982 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28983 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28985 Likewise.
28986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28987 Likewise.
28988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28989 Likewise.
28990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28991 Likewise.
28992 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28993 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28994 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28995 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28996 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28997 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28998 Likewise.
28999 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29000 Likewise.
29001 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29002 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29003 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29004
29005 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29006
29007 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29008 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29009 (roundtoint, converttoint): Likewise.
29010 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29011 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29012 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29013 * sysdeps/ieee754/flt-32/math_config.h: New file.
29014 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29015 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29016 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29017 * sysdeps/i386/fpu/math_errf.c: New file.
29018 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29019 * sysdeps/ia64/fpu/math_errf.c: New file.
29020 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29021 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29022
29023 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29024
29025 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29026 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29027 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29028 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29029 to make sure that these symbols are defined.
29030 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29031 of <limits.h>
29032 (__need_NULL): Do not define.
29033 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29034 alignment.
29035 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29036 CMGROUP_MAX, cmsgcred): Do not define.
29037 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29038 NULL.
29039 * bits/socket.h: Likewise.
29040 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29041 __gettimeofday instead of gettimeofday.
29042 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29043 instead of settimeofday.
29044
29045 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29046
29047 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29048 (asinhf): Define using libm_alias_float.
29049 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29050 (atanf): Define using libm_alias_float.
29051 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29052 (cbrtf): Define using libm_alias_float.
29053 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29054 (ceilf): Define using libm_alias_float.
29055 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29056 <libm-alias-float.h>.
29057 (copysignf): Define using libm_alias_float.
29058 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29059 (cosf): Define using libm_alias_float.
29060 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29061 (erff): Define using libm_alias_float.
29062 (erfcf): Likewise.
29063 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29064 (expm1f): Define using libm_alias_float.
29065 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29066 (fabsf): Define using libm_alias_float.
29067 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29068 (floorf): Define using libm_alias_float.
29069 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29070 (frexpf): Define using libm_alias_float.
29071 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29072 libm_alias_float.
29073 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29074 <libm-alias-float.h>.
29075 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29076 libm_alias_float.
29077 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29078 <libm-alias-float.h>.
29079 (getpayloadf): Define using libm_alias_float.
29080 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29081 <libm-alias-float.h>.
29082 (llrintf): Define using libm_alias_float.
29083 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29084 <libm-alias-float.h>.
29085 (llroundf): Define using libm_alias_float.
29086 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29087 (logbf): Define using libm_alias_float.
29088 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29089 (lrintf): Define using libm_alias_float.
29090 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29091 (lroundf): Define using libm_alias_float.
29092 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29093 (modff): Define using libm_alias_float.
29094 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29095 <libm-alias-float.h>.
29096 (nearbyintf): Define using libm_alias_float.
29097 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29098 <libm-alias-float.h>.
29099 (nextafterf): Define using libm_alias_float.
29100 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29101 <libm-alias-float.h>.
29102 (nextupf): Define using libm_alias_float.
29103 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29104 <libm-alias-float.h>.
29105 (remquof): Define using libm_alias_float.
29106 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29107 (rintf): Define using libm_alias_float.
29108 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29109 <libm-alias-float.h>.
29110 (roundevenf): Define using libm_alias_float.
29111 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29112 (roundf): Define using libm_alias_float.
29113 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29114 using libm_alias_float.
29115 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29116 <libm-alias-float.h>.
29117 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29118 Define using libm_alias_float.
29119 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29120 <libm-alias-float.h>.
29121 (sincosf): Define using libm_alias_float.
29122 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29123 (sinf): Define using libm_alias_float.
29124 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29125 (tanf): Define using libm_alias_float.
29126 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29127 (tanhf): Define using libm_alias_float.
29128 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29129 <libm-alias-float.h>.
29130 (totalorderf): Define using libm_alias_float.
29131 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29132 <libm-alias-float.h>.
29133 (totalordermagf): Define using libm_alias_float.
29134 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29135 (truncf): Define using libm_alias_float.
29136 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29137 libm_alias_float.
29138 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29139 libm_alias_float.
29140
29141 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29142
29143 [BZ #22146]
29144 math/math.h: Let fpclassify use the builtin in C++ mode, even
29145 when optimazing for size.
29146
29147 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29148
29149 * csu/Makefile (generated): Do not add version-info.h.
29150 (before-compile): Likewise.
29151 (all-Banner-files): Remove variable.
29152 ($(objpfx)version-info.h): Remove rule.
29153 * csu/version.c (banner): Do not include "version-info.h".
29154 * libidn/Banner: Remove.
29155 * manual/contrib.texi (Simon Josefsson): New entry.
29156
29157 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29158
29159 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29160 Remove conditionals on LDBL_MANT_DIG.
29161 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29162 (__ieee754_lgammal_r): Likewise.
29163
29164 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29165
29166 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29167 _Float128 and L().
29168 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29169 _Float128 and L(). Replace _Float128 with long double and L(x)
29170 with xL, throughout the file.
29171 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29172 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29173 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29174 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29175
29176 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29177
29178 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29179 sysdeps/ieee754/ldbl-128ibm.
29180 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29181 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29182 of including it. Keep _Float128 and L() intact. These will be
29183 reviewed by a separate patch.
29184 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29185 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29186 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29187 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29188
29189 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29190
29191 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29192 (__finitef128): Define to __redirect___finitef128.
29193 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29194 (__isinff128): Define to __redirect___isinff128.
29195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29196 (__isnanf128): Define to __redirect___isnanf128.
29197
29198 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29199
29200 * sysdeps/powerpc/powerpc64le/Makefile
29201 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29202 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29203
29204 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29205 Carlos O'Donell <carlos@redhat.com>
29206
29207 [BZ #22180]
29208 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29209 * stdlib/test-dlclose-exit-race.c: New file.
29210 * stdlib/test-dlclose-exit-race-helper.c: New file.
29211 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29212
29213 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29214
29215 * crypt/Banner: Remove file.
29216 * nptl/Banner: Likewise.
29217 * resolv/Banner: Likewise.
29218 * soft-fp/Banner: Likewise.
29219 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29220 ($(objpfx)version.d): Remove dependency on banner.h.
29221 ($(objpfx)version.os): Likewise.
29222 * nptl/version.c (banner): Do not include banner.h.
29223 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29224 Jelinek and BIND code.
29225
29226 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29227 Carlos O'Donell <carlos@redhat.com>
29228
29229 * support/xdlfcn.h: New file.
29230 * support/xdlfcn.c: New file.
29231 * support/Makefile (libsupport-routines): Add xdlfcn.
29232 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29233
29234 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29235
29236 [BZ #20142]
29237 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29238 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29239 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29240 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29241 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29242 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29243 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29244 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29245
29246 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29247 Ricky Zhou <rickyz@google.com>
29248 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29249
29250 [BZ #14333]
29251 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29252 Remove atomics.
29253 (__new_exitfn): Fail registration when we finished at_exit processing.
29254 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29255 * stdlib/on_exit.c (__on_exit): Likewise.
29256 * stdlib/exit.c (__exit_funcs_done): New variable.
29257 (__run_exit_handlers): Use __exit_funcs_lock.
29258 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29259 declarations.
29260 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29261 (test-cxa_atexit-race, test-on_exit-race): New tests.
29262 * stdlib/test-atexit-race-common.c: New file.
29263 * stdlib/test-atexit-race.c: New file.
29264 * stdlib/test-at_quick_exit-race.c: New file.
29265 * stdlib/test-cxa_atexit-race.c: New file.
29266 * stdlib/test-on_exit-race.c: New file.
29267
29268 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29269
29270 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29271 * benchtests/exp2f-inputs: Copy of expf-inputs.
29272 * benchtests/log2f-inputs: Copy of logf-inputs.
29273
29274 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29275
29276 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29277 Explicitly take address of first element of array arguments in
29278 call to INLINE_SYSCALL.
29279
29280 2017-09-19 Andreas Schwab <schwab@suse.de>
29281
29282 [BZ #22134]
29283 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29284 execveat first.
29285 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29286 unimplemented.
29287 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29288 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29289 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29290 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29291 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29292 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29293 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29294 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29295 * posix/Makefile (tests): Add tst-fexecve.
29296 * posix/tst-fexecve.c: New file.
29297
29298 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29299
29300 * benchtests/Makefile: Add logf benchmark.
29301 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29302
29303 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29304
29305 * benchtests/Makefile: Add expf benchmark.
29306 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29307
29308 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29309
29310 * csu/Makefile: Add -funwind-tables to libc-start.c.
29311 * debug/Makefile: Add -funwind-tables to backtrace.c.
29312 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29313 * sysdeps/arm/Makefile: Likewise.
29314 * sysdeps/i386/Makefile: Likewise.
29315 * sysdeps/m68k/Makefile: Likewise.
29316 * sysdeps/mips/Makefile: Likewise.
29317 * sysdeps/nios2/Makefile: Likewise.
29318 * sysdeps/sh/Makefile: Likewise.
29319 * sysdeps/sparc/Makefile: Likewise.
29320
29321 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29322
29323 * benchtests/Makefile (bench-math): Add trunc and truncf.
29324 (CFLAGS-bench-trunc.c): New variable.
29325 (CFLAGS-bench-truncf.c): Likewise.
29326 * benchtests/trunc-inputs: New file.
29327 * benchtests/truncf-inputs: Likewise.
29328
29329 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29330
29331 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29332
29333 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29334
29335 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29336 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29337 redefine.
29338 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29339 (exp10l): Define as weak alias.
29340 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29341 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29342 and redefine.
29343 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29344 (remainderl): Define as weak alias.
29345
29346 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29347 (fmal): Define using libm_alias_ldouble.
29348 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29349 (acoshl): Define using libm_alias_ldouble.
29350 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29351 (acosl): Define using libm_alias_ldouble.
29352 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29353 (asinl): Define using libm_alias_ldouble.
29354 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29355 (atan2l): Define using libm_alias_ldouble.
29356 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29357 (atanhl): Define using libm_alias_ldouble.
29358 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29359 (coshl): Define using libm_alias_ldouble.
29360 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29361 (exp10l): Define using libm_alias_ldouble.
29362 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29363 (exp2l): Define using libm_alias_ldouble.
29364 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29365 (expl): Define using libm_alias_ldouble.
29366 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29367 (fmodl): Define using libm_alias_ldouble.
29368 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29369 (hypotl): Define using libm_alias_ldouble.
29370 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29371 (j0l): Define using libm_alias_ldouble.
29372 (y0l): Likewise.
29373 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29374 (j1l): Define using libm_alias_ldouble.
29375 (y1l): Likewise.
29376 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29377 (jnl): Define using libm_alias_ldouble.
29378 (ynl): Likewise.
29379 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29380 (log10l): Define using libm_alias_ldouble.
29381 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29382 (log2l): Define using libm_alias_ldouble.
29383 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29384 (logl): Define using libm_alias_ldouble.
29385 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29386 (powl): Define using libm_alias_ldouble.
29387 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29388 (remainderl): Define using libm_alias_ldouble.
29389 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29390 (sinhl): Define using libm_alias_ldouble.
29391 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29392 (sqrtl): Define using libm_alias_ldouble.
29393 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29394 (tgammal): Define using libm_alias_ldouble.
29395 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29396 (exp10l): Do not use long_double_symbol here.
29397 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29398 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29399 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29400 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29401 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29402 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29403 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29404 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29405 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29406 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29407 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29408 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29409 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29410 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29411 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29412 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29413 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29414 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29415 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29416 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29417 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29418 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29419
29420 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29421
29422 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29423 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29424
29425 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29426
29427 * io/read.c (read): Add libc_hidden_weak.
29428 * sysdeps/mach/hurd/read.c (read): Likewise.
29429 * io/write.c (write): Likewise.
29430 * sysdeps/mach/hurd/write.c (write): Likewise.
29431 * io/pread64.c (__pread64): Likewise.
29432 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29433 * posix/pread64.c (__pread64): Add libc_hidden_def.
29434
29435 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29436
29437 * benchtests/scripts/compare_strings.py: New option -g.
29438 (draw_graph): Print a message that a graph is being generated.
29439 (process_results): Generate graph only if -g is passed.
29440 (main): Process option -g.
29441
29442 * benchtests/scripts/compare_strings.py (process_results):
29443 Better spacing for output.
29444
29445 * benchtests/scripts/compare_strings.py: Use argparse.
29446 * benchtests/README: Document existence of compare_strings.py.
29447
29448 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29449
29450 * math/s_fma.c: Include <libm-alias-double.h>.
29451 (fma): Define using libm_alias_double.
29452 * math/s_nextafter.c: Include <libm-alias-double.h>.
29453 (nextafter): Define using libm_alias_double.
29454 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29455 (acos): Define using libm_alias_double.
29456 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29457 (aocsh): Define using libm_alias_double.
29458 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29459 (asin): Define using libm_alias_double.
29460 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29461 (atan2): Define using libm_alias_double.
29462 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29463 (atanh): Define using libm_alias_double.
29464 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29465 (cosh): Define using libm_alias_double.
29466 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29467 (exp10): Define using libm_alias_double.
29468 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29469 (exp2): Define using libm_alias_double.
29470 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29471 (exp): Define using libm_alias_double.
29472 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29473 (fmod): Define using libm_alias_double.
29474 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29475 (hypot): Define using libm_alias_double.
29476 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29477 (j0): Define using libm_alias_double.
29478 (y0): Likewise.
29479 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29480 (j1): Define using libm_alias_double.
29481 (y1): Likewise.
29482 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29483 (jn): Define using libm_alias_double.
29484 (yn): Likewise.
29485 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29486 (log10): Define using libm_alias_double.
29487 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29488 (log2): Define using libm_alias_double.
29489 * math/w_log_compat.c: Include <libm-alias-double.h>.
29490 (log): Define using libm_alias_double.
29491 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29492 (pow): Define using libm_alias_double.
29493 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29494 (remainder): Define using libm_alias_double.
29495 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29496 (sinh): Define using libm_alias_double.
29497 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29498 (sqrt): Define using libm_alias_double.
29499 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29500 (tgamma): Define using libm_alias_double.
29501 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29502 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29503 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29504 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29505 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29506 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29507 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29508 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29509 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29510 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29511 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29512 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29513 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29514 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29515 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29516 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29517 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29518 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29519 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29520 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29521 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29522 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29523 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29524 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29525 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29526
29527 * math/e_acoshl.c: Remove.
29528 * math/e_acosl.c: Likewise.
29529 * math/e_asinl.c: Likewise.
29530 * math/e_atan2l.c: Likewise.
29531 * math/e_atanhl.c: Likewise.
29532 * math/e_coshl.c: Likewise.
29533 * math/e_expl.c: Likewise.
29534 * math/e_fmodl.c: Likewise.
29535 * math/e_gammal_r.c: Likewise.
29536 * math/e_hypotl.c: Likewise.
29537 * math/e_j0l.c: Likewise.
29538 * math/e_j1l.c: Likewise.
29539 * math/e_jnl.c: Likewise.
29540 * math/e_lgammal_r.c: Likewise.
29541 * math/e_log10l.c: Likewise.
29542 * math/e_log2l.c: Likewise.
29543 * math/e_logl.c: Likewise.
29544 * math/e_powl.c: Likewise.
29545 * math/e_rem_pio2l.c: Likewise.
29546 * math/e_sinhl.c: Likewise.
29547 * math/e_sqrtf128.c: Likewise.
29548 * math/e_sqrtl.c: Likewise.
29549 * math/k_cosl.c: Likewise.
29550 * math/k_sinl.c: Likewise.
29551 * math/k_tanl.c: Likewise.
29552 * math/s_asinhl.c: Likewise.
29553 * math/s_atanl.c: Likewise.
29554 * math/s_cbrtl.c: Likewise.
29555 * math/s_erfl.c: Likewise.
29556 * math/s_expm1l.c: Likewise.
29557 * math/s_log1pl.c: Likewise.
29558 * math/s_tanhl.c: Likewise.
29559
29560 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29561
29562 [BZ #21745]
29563 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
29564 [$(subdir) = math] (sysdep_calls): New variable. Has the
29565 previous contents of sysdep_routines, but re-sorted..
29566 [$(subdir) = math] (sysdep_routines): Re-use the contents from
29567 sysdep_calls.
29568 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
29569 defined in sysdep_calls and replace by the respective m_* names.
29570 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
29571 (compat_symbol): Undefine to avoid duplicated compat symbols in
29572 libc.
29573
29574 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29575
29576 * math/s_fmaf.c: Include <libm-alias-float.h>.
29577 (fmaf): Define using libm_alias_float.
29578 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
29579 (acosf): Define using libm_alias_float.
29580 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
29581 (acoshf): Define using libm_alias_float.
29582 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
29583 (asinf): Define using libm_alias_float.
29584 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
29585 (atan2f): Define using libm_alias_float.
29586 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
29587 (atanhf): Define using libm_alias_float.
29588 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
29589 (coshf): Define using libm_alias_float.
29590 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
29591 (exp10f): Define using libm_alias_float.
29592 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
29593 (fmodf): Define using libm_alias_float.
29594 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
29595 (hypotf): Define using libm_alias_float.
29596 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
29597 (j0f): Define using libm_alias_float.
29598 (y0f): Likewise.
29599 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
29600 (j1f): Define using libm_alias_float.
29601 (y1f): Likewise.
29602 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
29603 (jnf): Define using libm_alias_float.
29604 (ynf): Likewise.
29605 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
29606 (log10f): Define using libm_alias_float.
29607 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
29608 (log2f): Define using libm_alias_float.
29609 * math/w_logf_compat.c: Include <libm-alias-float.h>.
29610 (logf): Define using libm_alias_float.
29611 * math/w_powf_compat.c: Include <libm-alias-float.h>.
29612 (powf): Define using libm_alias_float.
29613 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
29614 (remainderf): Define using libm_alias_float.
29615 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
29616 (sinhf): Define using libm_alias_float.
29617 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
29618 (sqrtf): Define using libm_alias_float.
29619 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
29620 (tgammaf): Define using libm_alias_float.
29621
29622 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29623
29624 * include/math.h (roundeven): Change hidden_proto call to
29625 __roundeven.
29626 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
29627 alias.
29628 [NO_LONG_DOUBLE] (__j0l): New strong alias.
29629 (y0): Rename to __y0 and define as weak alias.
29630 [NO_LONG_DOUBLE] (__y0l): New strong alias.
29631 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
29632 alias.
29633 (y0f): Rename to __y0f and define as weak alias.
29634 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
29635 alias.
29636 [NO_LONG_DOUBLE] (__j1l): New strong alias.
29637 (y1): Rename to __y1 and define as weak alias.
29638 [NO_LONG_DOUBLE] (__y1l): New strong alias.
29639 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
29640 alias.
29641 (y1f): Rename to __y1f and define as weak alias.
29642 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
29643 alias.
29644 [NO_LONG_DOUBLE] (__jnl): New strong alias.
29645 (yn): Rename to __yn and define as weak alias.
29646 [NO_LONG_DOUBLE] (__ynl): New strong alias.
29647 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
29648 alias.
29649 (ynf): Rename to __ynf and define as weak alias.
29650 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
29651 (fromfp): Define as weak alias.
29652 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
29653 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
29654 (fromfpx): Define as weak alias.
29655 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
29656 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
29657 __getpayload and define as weak alias.
29658 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29659 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
29660 __roundeven and define as weak alias.
29661 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29662 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
29663 __setpayload.
29664 (setpayload): Define as weak alias.
29665 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
29666 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
29667 __setpayloadsig.
29668 (setpayloadsig): Define as weak alias.
29669 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
29670 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
29671 __totalorder and define as weak alias.
29672 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29673 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
29674 to __totalordermag and define as weak alias.
29675 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29676 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
29677 (ufromfp): Define as weak alias.
29678 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
29679 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
29680 __ufromfpx.
29681 (ufromfpx): Define as weak alias.
29682 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
29683 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
29684 Rename to __getpayload and define as weak alias.
29685 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29686 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
29687 Rename to __roundeven and define as weak alias.
29688 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29689 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
29690 Rename to __totalorder and define as weak alias.
29691 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29692 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
29693 (totalordermag): Rename to __totalordermag and define as weak
29694 alias.
29695 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29696 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
29697 macro.
29698 (__roundevenl): Likewise.
29699 (__totalorderl): Likewise.
29700 (__totalordermagl): Likewise
29701 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
29702 __fromfpf128.
29703 (fromfpf128): Define as weak alias.
29704 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
29705 __fromfpxf128.
29706 (fromfpxf128): Define as weak alias.
29707 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
29708 __setpayloadf128.
29709 (setpayloadf128): Define as weak alias.
29710 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
29711 __setpayloadsigf128.
29712 (setpayloadsigf128): Define as weak alias.
29713 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
29714 __ufromfpf128.
29715 (ufromfpf128): Define as weak alias.
29716 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
29717 __ufromfpxf128.
29718 (ufromfpxf128): Define as weak alias.
29719 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
29720 (fromfpf): Define as weak alias.
29721 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
29722 __fromfpxf.
29723 (fromfpxf): Define as weak alias.
29724 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
29725 __getpayloadf and define as weak alias.
29726 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
29727 __roundevenf and define as weak alias.
29728 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
29729 __setpayloadf.
29730 (setpayloadf): Define as weak alias.
29731 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
29732 __setpayloadsigf.
29733 (setpayloadsigf): Define as weak alias.
29734 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
29735 __totalorderf and define as weak alias.
29736 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
29737 Rename to __totalordermagf and define as weak alias.
29738 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
29739 __ufromfpf.
29740 (ufromfpf): Define as weak alias.
29741 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
29742 __ufromfpxf.
29743 (ufromfpxf): Define as weak alias.
29744 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
29745 __fromfpl.
29746 (fromfpl): Define as weak alias.
29747 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
29748 __fromfpxl.
29749 (fromfpxl): Define as weak alias.
29750 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
29751 to __getpayloadl and define as weak alias.
29752 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
29753 __roundevenl and define as weak alias.
29754 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
29755 __setpayloadl.
29756 (setpayloadl): Define as weak alias.
29757 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
29758 __setpayloadsigl.
29759 (setpayloadsigl): Define as weak alias.
29760 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
29761 to __totalorderl and define as weak alias.
29762 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
29763 Rename to __totalordermagl and define as weak alias.
29764 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
29765 __ufromfpl.
29766 (ufromfpl): Define as weak alias.
29767 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
29768 __ufromfpxl.
29769 (ufromfpxl): Define as weak alias.
29770 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
29771 __fromfpl.
29772 (fromfpl): Define as weak alias.
29773 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
29774 __fromfpxl.
29775 (fromfpxl): Define as weak alias.
29776 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
29777 Rename to __getpayloadl and define as weak alias.
29778 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
29779 to __roundevenl and define as weak alias. Call __roundeven
29780 instead of roundeven.
29781 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
29782 __setpayloadl.
29783 (setpayloadl): Define as weak alias.
29784 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
29785 __setpayloadsigl.
29786 (setpayloadsigl): Define as weak alias.
29787 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
29788 Rename to __totalorderl and define as weak alias.
29789 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
29790 Rename to __totalordermagl and define as weak alias.
29791 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
29792 __ufromfpl.
29793 (ufromfpl): Define as weak alias.
29794 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
29795 __ufromfpxl.
29796 (ufromfpxl): Define as weak alias.
29797 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
29798 __fromfpl.
29799 (fromfpl): Define as weak alias.
29800 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
29801 __fromfpxl.
29802 (fromfpxl): Define as weak alias.
29803 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
29804 __getpayloadl and define as weak alias.
29805 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
29806 __roundevenl and define as weak alias.
29807 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
29808 __setpayloadl.
29809 (setpayloadl): Define as weak alias.
29810 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
29811 __setpayloadsigl.
29812 (setpayloadsigl): Define as weak alias.
29813 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
29814 __totalorderl and define as weak alias.
29815 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
29816 Rename to __totalordermagl and define as weak alias.
29817 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
29818 __ufromfpl.
29819 (ufromfpl): Define as weak alias.
29820 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
29821 __ufromfpxl.
29822 (ufromfpxl): Define as weak alias.
29823
29824 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
29825
29826 * benchtests/bench-string.h (realloc_bufs): New function.
29827 (test_init): Call it.
29828 * benchtests/bench-memset-large.c (do_test): Likewise.
29829 * benchtests/bench-memset.c (do_test): Likewise.
29830
29831 * benchtests/bench-memset-large.c: Print output in JSON
29832 format.
29833 * benchtests/bench-memset.c: Likewise.
29834
29835 2017-09-14 Mike FABIAN <mfabian@redhat.com>
29836
29837 [BZ #21084]
29838 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
29839 * iconvdata/Makefile: Add IBM858.
29840 * iconvdata/gconv-modules: Likewise.
29841 * iconvdata/tst-tables.sh: Likewise.
29842 * iconvdata/ibm858.c: New file.
29843 * localedata/charmaps/IBM858: Likewise.
29844
29845 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
29846
29847 [BZ #22023]
29848 * locales/niu_NZ (LC_TIME): copy "niu_NU".
29849 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
29850
29851 2017-09-14 Mike FABIAN <mfabian@redhat.com>
29852
29853 [BZ #22112]
29854 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
29855 and add tel_int_fmt.
29856
29857 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29858
29859 * sysdeps/generic/libm-alias-float128.h: New file.
29860 * sysdeps/generic/math-type-macros-float128.h: Include
29861 <libm-alias-float128.h>.
29862 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
29863
29864 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29865
29866 * sysdeps/generic/libm-alias-ldouble.h: New file.
29867 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
29868 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
29869 * sysdeps/generic/math-type-macros-ldouble.h: Include
29870 <libm-alias-ldouble.h>.
29871 [!declare_mgen_alias] (declare_mgen_alias): Define to use
29872 libm_alias_ldouble.
29873
29874 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
29875
29876 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
29877 * math/w_exp_compat.c: ... here.
29878 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
29879 * math/w_expf_compat.c: ... here.
29880 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
29881 * math/w_expl_compat.c: ... here.
29882 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
29883 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
29884 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
29885 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29886
29887 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29888
29889 * math/w_scalbln_template.c (strong_alias): Do not undefine and
29890 redefine.
29891 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
29892 macro.
29893 (ldexpl): Only define as compat symbol for libc, not libm.
29894 (scalbnl): Define as compat symbol for libc here.
29895 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
29896 define for [IS_IN (libc)].
29897 (__ldexpl_2): Remove alias.
29898 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
29899 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
29900 name in long_double_symbol call.
29901 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
29902 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
29903 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
29904 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
29905 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
29906 Remove macro.
29907 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
29908 Define as compat symbol.
29909
29910 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29911
29912 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
29913 * sysdeps/unix/sysv/linux/alpha/Makefile
29914 [$(subdir) = csu] (sysdep_routines): Remove rule.
29915
29916 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29917
29918 * sysdeps/generic/libm-alias-double.h: New file.
29919 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
29920 * sysdeps/generic/math-type-macros-double.h: Include
29921 <libm-alias-double.h>.
29922 [declare_mgen_alias] (declare_mgen_alias): Define to use
29923 libm_alias_double.
29924 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
29925 (M_LIBM_NEED_COMPAT): Remove macro.
29926 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
29927 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
29928 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
29929 code.
29930 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29931 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29932 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29933 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29934 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29935 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29936 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29937 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29938 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29939 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29940 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29941 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29942 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29943 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29944 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29945 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29946 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29947 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29948 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29949 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29950 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29951 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29952 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29953 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29954 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29955 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29956 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29957 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
29958 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
29959 macro.
29960 (declare_mgen_alias): New macro.
29961 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
29962 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
29963 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
29964 (M_LIBM_NEED_COMPAT): Remove macro.
29965 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
29966 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
29967 <first-versions.h>.
29968 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
29969 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
29970
29971 2017-09-12 Joseph Myers <joseph@codesourcery.com>
29972
29973 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
29974 (declare_mgen_alias_2): Remove.
29975 * sysdeps/generic/math-type-macros-double.h
29976 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
29977 Likewise.
29978 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
29979 alias.
29980 (ldexp): Define with declare_mgen_alias.
29981 (scalbn): Likewise.
29982
29983 2017-09-12 Steve Ellcey <sellcey@cavium.com>
29984
29985 * grp/initgroups.c: Include config.h.
29986 (DEFAULT_CONFIG): New macro.
29987 (internal_getgrouplist): Use DEFAULT_CONFIG.
29988 * nscd/initgrcache.c (addinitgroupsX): Likewise.
29989 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
29990 (DEFAULT_DEFCONFIG): New macro.
29991 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
29992 * nss/grp-lookup.c: Include config.h
29993 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
29994 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
29995 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
29996 * manual/nss.texi: Update default values section.
29997
29998 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
29999
30000 [BZ #21967]
30001 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30002 New.
30003 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30004 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30005 Handle MathVec_Prefer_No_AVX512.
30006 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30007 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30008 is set.
30009
30010 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30011
30012 * posix/sched_primax.c (__sched_get_priority_max): Add
30013 libc_hidden_def.
30014 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30015 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30016 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30017 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30018 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30019 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30020 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30021 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30022 Add aliases.
30023
30024 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30025
30026 * sysdeps/generic/libm-alias-float.h: New file.
30027 * sysdeps/generic/math-type-macros-float.h: Include
30028 <libm-alias-float.h>.
30029 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30030
30031 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30032
30033 [BZ #22093]
30034 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30035 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30036 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30037 (HWCAP_IMPORTANT): Likewise.
30038 (HWCAP_X86_64): New enum.
30039 (HWCAP_X86_AVX512_1): Updated.
30040 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30041 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30042 (modules-names): Add x86_64/tst-x86_64mod-1.
30043 (LDFLAGS-tst-x86_64mod-1.so): New.
30044 ($(objpfx)tst-x86_64-1): Likewise.
30045 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30046 (tst-x86_64-1-clean): Likewise.
30047 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30048 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30049
30050 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30051
30052 * po/sv.po: Update translations.
30053 * po/fr.po: Likewise.
30054
30055 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30056
30057 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30058 seconds.
30059 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30060 seconds.
30061 * elf/rtld-Rules: Fix $(error) use.
30062
30063 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30064
30065 [BZ #14925]
30066 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30067 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30068 * localedata/locales/bn_BD: “Bengali” was still used in some
30069 comments. Change it to “Bangla”.
30070
30071 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30072
30073 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30074
30075 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30076
30077 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30078 thunderx2t99p1 to list of cpu names.
30079 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30080 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30081
30082 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30083
30084 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30085 Use strcmp instead of tunable_is_name.
30086
30087 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30088
30089 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30090 (F_GET_RW_HINT): New macro.
30091 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30092 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30093 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30094 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30095 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30096 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30097 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30098 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30099 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30100
30101 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30102 (F_ADD_SEALS): New macro.
30103 [__USE_GNU] (F_GET_SEALS): Likewise.
30104 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30105 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30106 [__USE_GNU] (F_SEAL_GROW): Likewise.
30107 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30108
30109 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30110
30111 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30112 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30113 * posix/glob_internal.h (__glob_pattern_type):
30114 * posix/glob.c (glob):
30115 * posix/glob_pattern_p.c (__glob_pattern_p):
30116 Use them.
30117
30118 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30119 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30120 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30121 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30122 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30124 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30125 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30126 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30127 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30128 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30129 * sysdeps/wordsize-64/glob.c: Likewise.
30130 * sysdeps/wordsize-64/glob64.c: Likewise.
30131 * sysdeps/wordsize-64/globfree.c: Likewise.
30132 * sysdeps/wordsize-64/globfree64.c: Likewise.
30133 * sysdeps/unix/sysv/linux/glob.c: New file.
30134 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30135 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30136 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30137 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30138 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30139 adds !GLOB_NO_OLD_VERSION as an extra condition.
30140 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30141 using relative path instead of absolute one.
30142 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30143 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30144 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30145 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30146 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30147 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30148
30149 [BZ #1062]
30150 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30151 (glob): Use the same scratch buffer for both getlogin_r and
30152 getpwnam_r. Don’t require preallocation of the login name. This
30153 simplifies storage allocation, and corrects the handling of
30154 long login names.
30155
30156 [BZ #1062]
30157 * posix/glob.c (glob): Port recent patches to platforms
30158 lacking getpwnam_r.
30159 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30160 returns an error number rather than setting errno.
30161
30162 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30163 instead of GCC extension.
30164 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30165 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30166 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30167
30168 [BZ #866]
30169 [BZ #1062]
30170 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30171 * posix/bug-glob1.c: Remove file.
30172 * posix/tst-glob_symlinks.c: New file.
30173 * posix/glob.c (__lstat64): New macro.
30174 (is_dir): New function.
30175 (glob, glob_in_dir): Match symlinks even if they are dangling.
30176 (link_stat, link_exists_p): Remove. All uses removed.
30177
30178 [BZ #1062]
30179 [BZ #19971]
30180 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30181 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30182 All uses removed.
30183
30184 [BZ #1062]
30185 CVE-2017-15671
30186 * posix/Makefile (routines): Add globfree, globfree64, and
30187 glob_pattern_p.
30188 * posix/flexmember.h: New file.
30189 * posix/glob_internal.h: Likewise.
30190 * posix/glob_pattern_p.c: Likewise.
30191 * posix/globfree.c: Likewise.
30192 * posix/globfree64.c: Likewise.
30193 * sysdeps/gnu/globfree64.c: Likewise.
30194 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30195 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30196 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30197 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30198 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30199 * sysdeps/wordsize-64/globfree.c: Likewise.
30200 * sysdeps/wordsize-64/globfree64.c: Likewise.
30201 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30202 [NDEBUG): Remove comments.
30203 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30204 (dirent_type): New type. Use uint_fast8_t not
30205 uint8_t, as C99 does not require uint8_t.
30206 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30207 (struct readdir_result): Use dirent_type. Do not define skip_entry
30208 unless it is needed; this saves a byte on platforms lacking d_ino.
30209 (readdir_result_type, readdir_result_skip_entry):
30210 New functions, replacing ...
30211 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30212 these functions, which were removed. This makes the callers
30213 easier to read. All callers changed.
30214 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30215 (size_add_wrapv, glob_use_alloca): New static functions.
30216 (glob, glob_in_dir): Check for size_t overflow in several places,
30217 and fix some size_t checks that were not quite right.
30218 Remove old code using SHELL since Bash no longer
30219 uses this.
30220 (glob, prefix_array): Separate MS code better.
30221 (glob_in_dir): Remove old Amiga and VMS code.
30222 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30223 separate files.
30224 (glob_in_dir): Do not rely on undefined behavior in accessing
30225 struct members beyond their bounds. Use a flexible array member
30226 instead
30227 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30228 0/1. Caller changed.
30229 (glob): Fix memory leaks.
30230 * posix/glob64 (globfree64): Move to separate file.
30231 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30232 (globfree64): Remove hidden alias.
30233 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30234 oldglob.
30235 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30236 separate file.
30237 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30238 define.
30239 Move compat code to separate file.
30240 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30241 separate file.
30242
30243 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30244
30245 * resolv/tst-resolv-qtypes.c (domain): Changed to
30246 "const char domain[] =".
30247
30248 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30249
30250 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30251 version to 3.1.6.
30252
30253 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30254 (TCP_MD5SIG_EXT): Likewise.
30255 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30256 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30257 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30258
30259 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30260
30261 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30262
30263 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30264
30265 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30266
30267 [BZ #22100]
30268 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30269
30270 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30271
30272 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30273 before assuming that the file is empty. Avoid testing buffer content
30274 when nread == 0.
30275
30276 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30277
30278 [BZ #18858]
30279 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30280 Remove define.
30281 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30282 Likewise.
30283 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30284 Likewise.
30285 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30286 Likewise.
30287 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30288 Likewise.
30289 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30290 Likewise.
30291 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30292 Likewise.
30293
30294 2017-09-06 Florian Weimer <fweimer@redhat.com>
30295
30296 * malloc/dynarray_emplace_enlarge.c
30297 (__libc_dynarray_emplace_enlarge): Add missing else.
30298
30299 2017-09-06 Florian Weimer <fweimer@redhat.com>
30300
30301 [BZ #22096]
30302 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30303 case of failure to obtain the global conf object.
30304
30305 2017-09-06 Florian Weimer <fweimer@redhat.com>
30306
30307 [BZ #22095]
30308 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30309 dynarray allocation failure.
30310
30311 2017-09-06 Florian Weimer <fweimer@redhat.com>
30312
30313 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30314 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30315 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30316 New functions.
30317 (response): Call them. Add 'p', '6' flag processing.
30318 (test_reverse): New function.
30319 (test_get2_any): Call it.
30320 (test_no_inet6): Add 'p' test.
30321 (test_inet6): Likewise.
30322
30323 2017-09-06 Florian Weimer <fweimer@redhat.com>
30324
30325 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30326 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30327 the QNAME.
30328 (test_gai): Adjust query names. Add additional tests.
30329 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30330 test_get2. Adjust query names. Add additional tests.
30331 (test_no_inet6): New function, extracted from threadfunc.
30332 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30333 Add additional tests.
30334
30335 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30336
30337 [BZ #22070]
30338 * localedata/unicode-gen/utf8_gen.py: Set the width for
30339 characters with Prepended_Concatenation_Mark property to 1
30340 * localedata/charmaps/UTF-8: Updated using the improved script.
30341
30342 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30343
30344 [BZ #21750]
30345 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30346 use the range notation for all ranges of neighbouring characters
30347 with the same width.
30348
30349 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30350
30351 * sysdeps/generic/math-type-macros-double.h: Include
30352 <math-svid-compat.h>.
30353 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30354 * sysdeps/generic/math-type-macros-float.h: Include
30355 <math-svid-compat.h>.
30356 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30357 * sysdeps/generic/math-type-macros-ldouble.h: Include
30358 <math-svid-compat.h>.
30359 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30360 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30361 condition.
30362 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30363 * math/w_acosf_compat.c: Likewise.
30364 * math/w_acosh_compat.c: Likewise.
30365 * math/w_acoshf_compat.c: Likewise.
30366 * math/w_acoshl_compat.c: Likewise.
30367 * math/w_acosl_compat.c: Likewise.
30368 * math/w_asin_compat.c: Likewise.
30369 * math/w_asinf_compat.c: Likewise.
30370 * math/w_asinl_compat.c: Likewise.
30371 * math/w_atan2_compat.c: Likewise.
30372 * math/w_atan2f_compat.c: Likewise.
30373 * math/w_atan2l_compat.c: Likewise.
30374 * math/w_atanh_compat.c: Likewise.
30375 * math/w_atanhf_compat.c: Likewise.
30376 * math/w_atanhl_compat.c: Likewise.
30377 * math/w_cosh_compat.c: Likewise.
30378 * math/w_coshf_compat.c: Likewise.
30379 * math/w_coshl_compat.c: Likewise.
30380 * math/w_exp10_compat.c: Likewise.
30381 * math/w_exp10f_compat.c: Likewise.
30382 * math/w_exp10l_compat.c: Likewise.
30383 * math/w_exp2_compat.c: Likewise.
30384 * math/w_exp2f_compat.c: Likewise.
30385 * math/w_exp2l_compat.c: Likewise.
30386 * math/w_fmod_compat.c: Likewise.
30387 * math/w_fmodf_compat.c: Likewise.
30388 * math/w_fmodl_compat.c: Likewise.
30389 * math/w_hypot_compat.c: Likewise.
30390 * math/w_hypotf_compat.c: Likewise.
30391 * math/w_hypotl_compat.c: Likewise.
30392 * math/w_j0_compat.c: Likewise.
30393 * math/w_j0f_compat.c: Likewise.
30394 * math/w_j0l_compat.c: Likewise.
30395 * math/w_j1_compat.c: Likewise.
30396 * math/w_j1f_compat.c: Likewise.
30397 * math/w_j1l_compat.c: Likewise.
30398 * math/w_jn_compat.c: Likewise.
30399 * math/w_jnf_compat.c: Likewise.
30400 * math/w_jnl_compat.c: Likewise.
30401 * math/w_lgamma_r_compat.c: Likewise.
30402 * math/w_lgammaf_r_compat.c: Likewise.
30403 * math/w_lgammal_r_compat.c: Likewise.
30404 * math/w_log10_compat.c: Likewise.
30405 * math/w_log10f_compat.c: Likewise.
30406 * math/w_log10l_compat.c: Likewise.
30407 * math/w_log2_compat.c: Likewise.
30408 * math/w_log2f_compat.c: Likewise.
30409 * math/w_log2l_compat.c: Likewise.
30410 * math/w_log_compat.c: Likewise.
30411 * math/w_logf_compat.c: Likewise.
30412 * math/w_logl_compat.c: Likewise.
30413 * math/w_pow_compat.c: Likewise.
30414 * math/w_powf_compat.c: Likewise.
30415 * math/w_powl_compat.c: Likewise.
30416 * math/w_remainder_compat.c: Likewise.
30417 * math/w_remainderf_compat.c: Likewise.
30418 * math/w_remainderl_compat.c: Likewise.
30419 * math/w_sinh_compat.c: Likewise.
30420 * math/w_sinhf_compat.c: Likewise.
30421 * math/w_sinhl_compat.c: Likewise.
30422 * math/w_sqrt_compat.c: Likewise.
30423 * math/w_sqrtf_compat.c: Likewise.
30424 * math/w_sqrtl_compat.c: Likewise.
30425 * math/w_tgamma_compat.c: Likewise.
30426 * math/w_tgammaf_compat.c: Likewise.
30427 * math/w_tgammal_compat.c: Likewise.
30428 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30429 [LIBM_SVID_COMPAT].
30430 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30431 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30432 [LIBM_SVID_COMPAT].
30433 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30434 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30435 [LIBM_SVID_COMPAT].
30436 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30437 * sysdeps/i386/fpu/w_sqrt.c: New file.
30438 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30439 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30440 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30441 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30442 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30443 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30444 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30445 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30446 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30447 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30448 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30449 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30450 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30451 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30452 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30453 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30454 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30455 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30456 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30457 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30458 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30459 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30460 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30461 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30462 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30463 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30464 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30465 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30466 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30467 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30468 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30469 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30470 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30471 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30472 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30473 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30474 * sysdeps/ia64/fpu/w_log.c: Likewise.
30475 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30476 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30477 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30478 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30479 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30480 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30481 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30482 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30483 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30484 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30485 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30486 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30487 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30488 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30489 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30490 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30491 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30492 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30493 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30494 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30495 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30496 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30497 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30498 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30499 [LIBM_SVID_COMPAT].
30500 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30501 * sysdeps/ieee754/k_standard.c: Likewise.
30502 * sysdeps/ieee754/k_standardf.c: Likewise.
30503 * sysdeps/ieee754/k_standardl.c: Likewise.
30504 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30505 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30506 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30507 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30508 long_double_symbol call on [LIBM_SVID_COMPAT].
30509 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30510 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30511 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30512 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30513 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30514 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30515 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30516 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30517 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30518 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30519 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30520 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30521 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30522 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30523 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30524 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30525 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30526 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30527 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30528 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30529 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
30530 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
30531
30532 2017-09-05 Steve Ellcey <sellcey@cavium.com>
30533
30534 * include/shlib-compat.h (TEST_COMPAT): New Macro.
30535 * malloc/tst-mallocstate.c: Convert from test-skeleton
30536 to test-driver. Ifdef code using TEST_COMPAT macro.
30537 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
30538 * math/test-matherr.c: Likewise.
30539
30540 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30541
30542 [BZ #22086]
30543 * debug/pcprofiledump.c (main): Use byte-swapped mask when
30544 comparing word with byte-swapped constant.
30545
30546 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
30547
30548 [BZ #20498]
30549 * locale/iso-639.def: add Miskito.
30550 * localedata/SUPPORTED: Add miq_NI/UTF-8.
30551 * localedata/locales/miq_NI: New file.
30552
30553 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
30554
30555 [BZ #18822]
30556 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
30557 (__mkdir): Likewise.
30558 * io/chmod.c (__chmod): Add libc_hidden_def.
30559 * io/mkdir.c (__mkdir): Likewise.
30560 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
30561 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
30562 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
30563 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
30564
30565 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30566
30567 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
30568 version to 4.13.
30569
30570 [BZ #22082]
30571 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
30572 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
30573
30574 2017-09-04 Florian Weimer <fweimer@redhat.com>
30575
30576 * math/math.h: Issue warning if log is defined.
30577
30578 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30579
30580 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
30581 kernel version to 4.13.
30582
30583 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30584
30585 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
30586 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
30587 parameter.
30588 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
30589 just <bits/types.h>.
30590 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
30591 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
30592 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
30593 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
30594 * misc/preadv2.c: Include <errno.h>.
30595 * misc/preadv64v2.c: Include <errno.h>.
30596 * misc/pwritev2.c: Include <errno.h>.
30597 * misc/pwritev64v2.c: Include <errno.h>.
30598 * sysdeps/posix/preadv2.c: Include <errno.h>.
30599 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
30600 Fix <unistd.h> inclusion.
30601 * sysdeps/posix/pwritev2.c: Include <errno.h>.
30602 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
30603 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
30604 __strtoul_internal): New functions.
30605 * sysdeps/posix/pause.c: Include <sigsetops.h>.
30606 * sysdeps/posix/system.c: Include <sigsetops.h>.
30607 * sysdeps/mach/hurd/i386/Makefile
30608 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
30609 [$(subdir) = csu] (sysdep-only-routines): Likewise.
30610 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
30611 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
30612 __feraiseexcept_renamed to feraiseexcept instead of
30613 __GI_feraiseexcept.
30614 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
30615 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
30616 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
30617 RWF_NOWAIT): Define to 0 if undefined already.
30618 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
30619 boils down to 0.
30620 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
30621 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
30622
30623 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30624
30625 * manual/math.texi (pow10): Do not document.
30626 (pow10f): Likewise.
30627 (pow10l): Likewise.
30628 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
30629 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
30630 * math/libm-test-exp10.inc (pow10_test): Remove.
30631 (do_test): Do not call pow10.
30632 * math/w_exp10_compat.c (pow10): Make into compat symbol.
30633 [NO_LONG_DOUBLE] (pow10l): Likewise.
30634 * math/w_exp10f_compat.c (pow10f): Likewise.
30635 * math/w_exp10l_compat.c (pow10l): Likewise.
30636 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
30637 (pow10): Make into compat symbol.
30638 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
30639 (pow10f): Make into compat symbol.
30640 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
30641 (pow10l): Make into compat symbol.
30642 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
30643 pow10.
30644 (CFLAGS-nldbl-pow10.c): Remove variable..
30645 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
30646 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
30647 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
30648 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
30649 Undefine and redefine.
30650 (pow10l): Make into compat symbol.
30651 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
30652 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
30653 * sysdeps/arm/libm-test-ulps: Likewise.
30654 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
30655 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
30656 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30657 * sysdeps/microblaze/libm-test-ulps: Likewise.
30658 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
30659 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
30660 * sysdeps/nios2/libm-test-ulps: Likewise.
30661 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30662 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
30663 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
30664 * sysdeps/sh/libm-test-ulps: Likewise.
30665 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
30666 * sysdeps/tile/libm-test-ulps: Likewise.
30667 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30668
30669 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30670
30671 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
30672
30673 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30674
30675 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
30676 "../ChangeLog.old/ChangeLog.8".
30677 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
30678 "../ChangeLog.old/ChangeLog.14".
30679
30680 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30681
30682 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
30683 Threads Library.
30684
30685 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30686
30687 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
30688
30689 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30690
30691 * csu/version.c (banner): Remove "by Roland McGrath et al.".
30692 * nptl/Banner: Remove "by Ulrich Drepper et al.".
30693
30694 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30695
30696 * stdlib/tst-atexit-common.c (do_test): Test support for at least
30697 32 atexit handlers.
30698
30699 2017-09-01 Zack Weinberg <zackw@panix.com>
30700
30701 * math/math.h (HUGE_VAL): Improve commentary.
30702
30703 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30704 Andreas Schwab <schwab@suse.de>
30705
30706 [BZ #21530]
30707 * include/stdio.h (__gen_tempfd): New function.
30708 * stdio-common/Makefile (routines): Add gentempfd.
30709 * stdio-common/gentempfd.c: New file.
30710 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
30711 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
30712 unnamed file first.
30713
30714 2017-09-01 Florian Weimer <fweimer@redhat.com>
30715
30716 [BZ #21915]
30717 [BZ #21922]
30718 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
30719 result to determine success or failure, not the errno value.
30720 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
30721 (tst-nss-files-hosts-erange): Link with -ldl.
30722 * nss/tst-nss-files-hosts-erange.c: New file.
30723 * nss/tst-resolv-basic.c (response): Handle nodata.example.
30724 (do_test): Add NO_DATA tests.
30725 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
30726 (do_test): Call it.
30727
30728 2017-09-01 Florian Weimer <fweimer@redhat.com>
30729
30730 [BZ #21922]
30731 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
30732 coming from gethostbyname2_r.
30733
30734 2017-09-01 Florian Weimer <fweimer@redhat.com>
30735
30736 * support/namespace.h (struct support_chroot_configuration): Add
30737 hosts, host_conf.
30738 (struct support_chroot): Add path_hosts, path_host_conf.
30739 * support/support_chroot.c (write_file): New function.
30740 (support_chroot_create): Call it to process /etc/resolv.conf,
30741 /etc/hosts, /etc/host.conf.
30742 (support_chroot_free): Update.
30743
30744 2017-09-01 Florian Weimer <fweimer@redhat.com>
30745
30746 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
30747 status indicates it is set.
30748
30749 2017-09-01 Florian Weimer <fweimer@redhat.com>
30750
30751 [BZ #20532]
30752 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
30753 function lookup failures more reliable.
30754
30755 2017-09-01 Florian Weimer <fweimer@redhat.com>
30756
30757 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
30758 (getcanonname): Likewise.
30759 (gaih_inet): Likewise.
30760
30761 2017-09-01 Florian Weimer <fweimer@redhat.com>
30762
30763 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
30764 (getcanonname): Likewise.
30765 (gaih_inet): Likewise.
30766
30767 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30768 Richard Henderson <rth@twiddle.net>
30769
30770 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
30771 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
30772 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
30773 (IREG_SIZE, OREG_SIZE): New macros.
30774 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
30775 (IREG_SIZE, OREG_SIZE): New macros.
30776 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
30777 (IREG_SIZE): New macro.
30778 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
30779 (IREG_SIZE): New macro.
30780 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
30781 New includes.
30782 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
30783 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30784 (__CONCATX): Handle exceptions correctly on large values that may
30785 set FE_INVALID.
30786 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
30787 Initialize if not already set.
30788 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30789
30790 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30791
30792 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
30793 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
30794 Likewise.
30795 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
30796 Likewise.
30797 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
30798 Likewise.
30799 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
30800 Likewise.
30801 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
30802 Likewise.
30803 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
30804 Likewise.
30805 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
30806 Likewise.
30807 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
30808 (NO_CANCELLATION): Likewise.
30809 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
30810 Likewise.
30811 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
30812 Likewise.
30813 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
30814 Likewise.
30815 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
30816 (NO_CANCELLATION): Likewise.
30817 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
30818 (NO_CANCELLATION): Likewise.
30819 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
30820 Likewise
30821 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
30822 Likewise.
30823 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
30824 Likewise.
30825 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
30826 Likewise.
30827 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
30828 hidden prototype.
30829 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
30830 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
30831
30832 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30833
30834 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
30835 in resolver call.
30836
30837 2017-08-31 Florian Weimer <fweimer@redhat.com>
30838
30839 * include/libc-symbols.h (internal_function): Remove.
30840
30841 2017-08-31 Florian Weimer <fweimer@redhat.com>
30842
30843 * stdlib/fmtmsg.c (internal_addseverity): Remove
30844 internal_function.
30845
30846 2017-08-31 Florian Weimer <fweimer@redhat.com>
30847
30848 * stdio-common/printf_fp.c (group_number): Remove
30849 internal_function.
30850 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
30851
30852 2017-08-31 Florian Weimer <fweimer@redhat.com>
30853
30854 * posix/fnmatch.c (internal_function): Remove definition.
30855 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
30856 * posix/regcomp.c (peek_token, init_word_char)
30857 (duplicate_node_closure, fetch_token, peek_token)
30858 (peek_token_bracket, build_range_exp, build_collating_symbol):
30859 Likewise.
30860 * posix/regex_internal.c (re_string_construct_common)
30861 (create_ci_newstate, create_cd_newstate, re_string_allocate)
30862 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
30863 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
30864 (re_string_translate_buffer, re_string_reconstruct)
30865 (re_string_peek_byte_case, re_string_fetch_byte_case)
30866 (re_string_destruct, re_string_context_at, re_node_set_alloc)
30867 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
30868 (re_node_set_add_intersect, re_node_set_init_union)
30869 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
30870 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
30871 (re_dfa_add_node, calc_state_hash, re_acquire_state)
30872 (re_acquire_state_context): Likewise.
30873 * posix/regex_internal.h (internal_function): Remove definition.
30874 (re_string_realloc_buffers, build_wcs_buffer)
30875 (build_wcs_upper_buffer, build_upper_buffer)
30876 (re_string_translate_buffer, re_string_context_at)
30877 (re_string_char_size_at, re_string_wchar_at)
30878 (re_string_elem_size_at): Likewise.
30879 * posix/regexec.c (match_ctx_init, match_ctx_clean)
30880 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
30881 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
30882 (re_search_internal, re_search_2_stub, re_search_stub)
30883 (re_copy_regs, prune_impossible_nodes, check_matching)
30884 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
30885 (free_fail_stack_return, sift_states_iter_mb)
30886 (sift_states_backward, build_sifted_states)
30887 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
30888 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
30889 (check_subexp_limits, sift_states_bkref, merge_state_array)
30890 (find_recover_state, transit_state, merge_state_with_log)
30891 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
30892 (transit_state_mb, transit_state_bkref, get_subexp)
30893 (get_subexp_sub, find_subexp_node, check_arrival)
30894 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
30895 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
30896 (check_node_accept_bytes, find_collation_sequence_value)
30897 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
30898 (acquire_init_state_context, check_halt_node_context)
30899 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
30900 (sub_epsilon_src_nodes): Likewise.
30901 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
30902 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
30903 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
30904 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
30905 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
30906 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
30907 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
30908 * sysdeps/posix/ttyname.c (getttyname): Likewise.
30909 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
30910 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
30911 (PREADV): Likewise.
30912 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
30913 (PREADV): Likewise.
30914 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
30915 (PWRITEV): Likewise.
30916 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
30917 (PWRITEV): Likewise.
30918 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
30919 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
30920
30921 2017-08-31 Florian Weimer <fweimer@redhat.com>
30922
30923 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
30924 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
30925 Remove internal_function.
30926 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
30927 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
30928 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
30929 (__deallocate_stack, __libc_pthread_init)
30930 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
30931 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
30932 (__libc_disable_asynccancel, __librt_disable_asynccancel):
30933 Likewise.
30934 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
30935 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
30936 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
30937 Likewise.
30938 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
30939 (__pthread_mutex_unlock_usercnt): Likewise.
30940
30941 2017-08-31 Florian Weimer <fweimer@redhat.com>
30942
30943 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
30944 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
30945 (fts_safe_changedir): Remove internal_function.
30946 * io/ftw.c (internal_function): Remove definition.
30947 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
30948
30949 2017-08-31 Florian Weimer <fweimer@redhat.com>
30950
30951 * inet/deadline.c (__deadline_current_time)
30952 (__deadline_from_timeval, __deadline_to_ms): Remove
30953 internal_function.
30954 * inet/getnameinfo.c (nrl_domainname): Likewise.
30955 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
30956 * inet/inet6_option.c (add_pad): Likewise.
30957 * inet/net-internal.h (__deadline_current_time)
30958 (__deadline_from_timeval, __deadline_to_ms): Likewise.
30959 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
30960 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
30961 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
30962
30963 2017-08-31 Joseph Myers <joseph@codesourcery.com>
30964
30965 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
30966 include <bits/nan.h>.
30967 * math/Makefile (headers): Remove bits/nan.h.
30968 * bits/nan.h: Remove.
30969 * sysdeps/ieee754/bits/nan.h: Likewise.
30970 * sysdeps/mips/bits/nan.h: Likewise.
30971
30972 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
30973 not include <bits/inf.h>.
30974 * math/Makefile (headers): Remove bits/inf.h.
30975 * bits/inf.h: Remove.
30976 * sysdeps/ieee754/bits/inf.h: Likewise.
30977
30978 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
30979 bits/huge_vall.h or bits/huge_val_flt128.h.
30980 (HUGE_VAL): Define directly here.
30981 [__USE_ISOC99] (HUGE_VALF): Likewise.
30982 [__USE_ISOC99] (HUGE_VALL): Likewise.
30983 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30984 (HUGE_VAL_F128): Likewise.
30985 * math/Makefile (headers): Remove bits/huge_val.h,
30986 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
30987 * bits/huge_val.h: Remove.
30988 * bits/huge_val_flt128.h: Likewise.
30989 * bits/huge_valf.h: Likewise.
30990 * bits/huge_vall.h: Likewise.
30991 * sysdeps/ia64/bits/huge_vall.h: Likewise.
30992 * sysdeps/ieee754/bits/huge_val.h: Likewise.
30993 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
30994 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
30995 * sysdeps/sh/bits/huge_val.h: Likewise.
30996 * sysdeps/sparc/bits/huge_vall.h: Likewise.
30997 * sysdeps/x86/bits/huge_vall.h: Likewise.
30998
30999 2017-08-31 Florian Weimer <fweimer@redhat.com>
31000
31001 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31002 internal_function.
31003 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31004 Likewise.
31005 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31006 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31007 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31008 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31009 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31010 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31011 * elf/dl-libc.c (dlerror_run): Likewise.
31012 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31013 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31014 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31015 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31016 Likewise.
31017 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31018 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31019 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31020 * elf/dl-profile.c (_dl_start_profile): Likewise.
31021 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31022 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31023 Likewise.
31024 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31025 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31026 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31027 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31028 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31029 (_dl_allocate_tls_storage): Likewise.
31030 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31031 (_dl_check_all_versions): Likewise.
31032 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31033 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31034 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31035 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31036 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31037 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31038 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31039 internal_function from __dl_start.
31040 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31041 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31042 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31043 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31044 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31045 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31046 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31047 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31048 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31049 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31050 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31051 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31052 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31053 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31054 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31055 Likewise.
31056 (struct rtld_global_ro): Remove internal_function from the
31057 _dl_lookup_symbol_x member.
31058 (_dl_symbol_value): Remove. No longer defined anywhere.
31059 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31060 internal_function.
31061 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31062 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31063 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31064 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31065 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31066 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31067 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31068 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31069 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31070 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31071 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31072 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31073
31074 2017-08-31 Florian Weimer <fweimer@redhat.com>
31075
31076 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31077 Remove internal_function.
31078 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31079 Likewise.
31080 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31081 Likewise.
31082
31083 2017-08-31 Florian Weimer <fweimer@redhat.com>
31084
31085 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31086 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31087 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31088
31089 2017-08-31 Florian Weimer <fweimer@redhat.com>
31090
31091 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31092 (__gai_enqueue_request): Remove internal_function.
31093 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31094 (__gai_remove_request, __gai_notify, __gai_notify_only)
31095 (__gai_sigqueue): Likewise.
31096 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31097 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31098 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31099 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31100 Likewise.
31101
31102 2017-08-31 Florian Weimer <fweimer@redhat.com>
31103
31104 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31105 * include/dirent.h (__opendirat, __getdents, __getdents64)
31106 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31107 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31108 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31109 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31110 Likewise.
31111 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31112
31113 2017-08-31 Florian Weimer <fweimer@redhat.com>
31114
31115 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31116 internal_function.
31117 (GETCWD_RETURN_TYPE): Likewise.
31118
31119 2017-08-31 Florian Weimer <fweimer@redhat.com>
31120
31121 * include/time.h (__tz_compute, __strptime_internal): Remove
31122 internal_function.
31123 * time/strptime_l.c (__strptime_internal): Likewise.
31124 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31125
31126 2017-08-31 Florian Weimer <fweimer@redhat.com>
31127
31128 * iconv/gconv.c (__gconv): Remove internal_function.
31129 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31130 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31131 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31132 (__gconv_release_cache): Likewise.
31133 * iconv/gconv_close.c (__gconv_close): Likewise.
31134 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31135 (read_conf_file, __gconv_get_path): Likewise.
31136 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31137 (__gconv_release_step, gen_steps, increment_counter)
31138 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31139 (__gconv_close_transform, free_modules_db): Likewise.
31140 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31141 Likewise.
31142 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31143 (__gconv_find_transform, __gconv_lookup_cache)
31144 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31145 (__gconv_close_transform, __gconv_release_cache)
31146 (__gconv_loaded_object, __gconv_release_shlib)
31147 (__gconv_compare_alias): Likewise.
31148 * iconv/gconv_open.c (__gconv_open): Likewise.
31149 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31150 * iconv/iconvconfig.c (add_module): Likewise.
31151 * intl/dcigettext.c (plural_lookup, guess_category_value)
31152 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31153 * intl/eval-plural.h (plural_eval): Likewise.
31154 * intl/finddomain.c (_nl_find_domain): Likewise.
31155 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31156 (_nl_load_domain, _nl_find_msg): Likewise.
31157 (internal_function): Remove definition.
31158 * intl/loadinfo.h (internal_function): Likewise.
31159 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31160 internal_function.
31161 * intl/localealias.c (internal_function): Remove definition.
31162 (read_alias_file): Remove internal_function.
31163 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31164 * intl/plural-exp.h (internal_function): Remove definition.
31165 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31166 internal_function.
31167 * intl/plural.c: Regenerate.
31168 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31169 * locale/coll-lookup.c (__collidx_table_lookup)
31170 (__collseq_table_lookup): Likewise.
31171 * locale/coll-lookup.h (__collidx_table_lookup)
31172 (__collseq_table_lookup): Likewise.
31173 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31174 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31175 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31176 (_nl_unload_locale): Likewise.
31177 * locale/localeinfo.h (struct __locale_data): Remove
31178 internal_function from cleanup member.
31179 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31180 (_nl_remove_locale, _nl_load_locale_from_archive)
31181 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31182 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31183 (_nl_cleanup_time): Remove internal_function.
31184 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31185 (_nl_parse_alt_digit): Likewise.
31186 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31187 (_nl_select_era_entry): Likewise.
31188 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31189 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31190 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31191 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31192 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31193
31194 2017-08-31 Florian Weimer <fweimer@redhat.com>
31195
31196 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31197 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31198 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31199 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31200 Likewise.
31201 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31202 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31203 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31204 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31205 Likewise.
31206 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31207
31208 2017-08-31 Florian Weimer <fweimer@redhat.com>
31209
31210 * misc/getttyent.c (skip, value): Remove internal_function.
31211 * misc/syslog.c (openlog_internal): Likewise.
31212 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31213
31214 2017-08-31 Florian Weimer <fweimer@redhat.com>
31215
31216 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31217 (__nss_rewrite_field): Remove internal_function.
31218 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31219 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31220 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31221 * nss/nsswitch.c (nss_parse_file, nss_getline)
31222 (nss_parse_service_list, nss_new_service): Likewise.
31223 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31224 * nss/valid_field.c (__nss_valid_field): Likewise.
31225 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31226
31227 2017-08-31 Florian Weimer <fweimer@redhat.com>
31228
31229 * malloc/arena.c (__malloc_fork_lock_parent)
31230 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31231 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31232 internal_function from defintions.
31233 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31234 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31235 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31236 internal_function from declarations.
31237 * malloc/malloc.c (internal_function): Do not define.
31238 (mem2mem_check): Remove internal_function from declaration.
31239 (munmap_chunk, mremap_chunk): Remove internal_function.
31240 * malloc/mtrace.c (tr_where): Likewise.
31241
31242 2017-08-31 Florian Weimer <fweimer@redhat.com>
31243
31244 * include/rpc/pmap_clnt.h (__get_socket): Remove
31245 internal_function.
31246 * sunrpc/auth_des.c (synchronize): Likewise.
31247 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31248 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31249 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31250 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31251 (key_call): Likewise.
31252 * sunrpc/pm_getport.c (__get_socket): Likewise.
31253 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31254 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31255 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31256 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31257 (invalidate): Likewise.
31258 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31259 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31260 (set_input_fragment, get_input_bytes): Likewise.
31261
31262 2017-08-31 Florian Weimer <fweimer@redhat.com>
31263
31264 * malloc/malloc.c (_int_free): Remove locked variable and related
31265 asserts.
31266
31267 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31268
31269 [BZ #22051]
31270 * Makerules (build-module-helper-objlist): Filter out
31271 $(elf-objpfx)sofini.os.
31272 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31273 needed.
31274
31275 2017-08-31 Florian Weimer <fweimer@redhat.com>
31276
31277 * libio/fcloseall.c: Assume weak_alias is defined.
31278 * libio/feof.c: Likewise.
31279 * libio/fileno.c: Likewise.
31280 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31281 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31282 definitions.
31283 (_IO_file_open): Call __open directly.
31284 (_IO_new_file_sync): Assume ESPIPE is defined.
31285 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31286 (_IO_new_file_write): Call __write directly.
31287 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31288 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31289 * libio/genops.c: Assume _LIBC is defined.
31290 (save_for_backup): Remove internal_function.
31291 * libio/getc.c: Assume weak_alias is defined.
31292 * libio/getwc.c: Likewise.
31293 * libio/iofclose.c: Assume _LIBC is defined.
31294 * libio/iofdopen.c: Likewise.
31295 (_IO_fcntl): Remove macro definition.
31296 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31297 Call __fcntl directly.
31298 * libio/iofflush.c: Assume weak_alias is defined.
31299 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31300 defined.
31301 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31302 * libio/iofgets.c: Likewise.
31303 * libio/iofopen.c: Assume _LIBC is defined.
31304 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31305 * libio/iofputs.c: Assume weak_alias is defined.
31306 * libio/iofread.c: Likewise.
31307 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31308 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31309 * libio/ioftell.c: Assume weak_alias is defined.
31310 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31311 * libio/iofwide.c: Assume _LIBC is defined.
31312 (_IO_fwide): Drop SHARED conditional because it is implied by
31313 SHLIB_COMPAT.
31314 * libio/iofwrite.c: Assume weak_alias is defined.
31315 * libio/iogetdelim.c: Likewise.
31316 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31317 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31318 (_IO_getwline): Call __wmemcpy directly.
31319 * libio/iopopen.c: Assume _LIBC is defined.
31320 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31321 (_IO_close): Remove macro definitions.
31322 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31323 _exit directly.
31324 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31325 directly.
31326 * libio/ioputs.c: Assume weak_alias is defined.
31327 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31328 * libio/iosetbuffer.c: Assume weak_alias is defined.
31329 * libio/iosetvbuf.c: Likewise.
31330 * libio/ioungetc.c: Likewise.
31331 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31332 libc_hidden_def, libc_hidden_weak, NULL are defined.
31333 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31334 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31335 defined.
31336 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31337 definitions.
31338 (_IO_old_file_init_internal): Drop SHARED conditional because it
31339 is implied by SHLIB_COMPAT.
31340 (_IO_old_file_fopen): Call __open directly.
31341 (_IO_old_file_sync): Assume ESPIPE is defined.
31342 (_IO_old_file_write): Call __write directly.
31343 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31344 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31345 Call __fcntl directly.
31346 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31347 (_IO_old_fgetpos): Assume EIO is defined.
31348 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31349 (_IO_old_fgetpos64): Assume EIO is defined.
31350 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31351 (_IO_old_fsetpos): Assume EIO is defined.
31352 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31353 (_IO_old_fsetpos64): Assume EIO is defined.
31354 * libio/oldiopopen.c: Assume _LIBC is defined.
31355 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31356 (_IO_close): Remove macro definitions.
31357 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31358 directly.
31359 (_IO_old_proc_close): Call __close, __waitpid directly.
31360 * libio/put.c: Assume weak_alias is defined.
31361 * libio/stdfiles.c: Assume _LIBC is defined.
31362 * libio/stdio.c: Likewise.
31363 * libio/wfileops.c: Likewise.
31364 (_IO_wfile_sync): Assume ESPIPE is defined.
31365 * libio/wgenops.c: Assume _LIBC is defined.
31366 (save_for_wbackup): Remove internal_function.
31367
31368 2017-08-31 Florian Weimer <fweimer@redhat.com>
31369
31370 * malloc/malloc.c (top_check): Change return type to void. Remove
31371 internal_function.
31372 * malloc/hooks.c (top_check): Likewise.
31373 (malloc_check, realloc_check, memalign_check): Adjust.
31374
31375 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31376
31377 [BZ #21457]
31378 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31379 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31380 sigcontext and namespace requirements.
31381 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31382 * sysdeps/m68k/sys/ucontext.h: Likewise.
31383 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31384 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31385 <bits/sigcontext.h>.
31386 (__ctx): Define earlier.
31387 (mcontext_t): Define structure contents rather than using struct
31388 sigcontext.
31389 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31390 __glibc_reserved1 instead of __reserved.
31391 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31392 <bits/sigcontext.h>.
31393 (__ctx): Define earlier.
31394 (mcontext_t): Define structure contents rather than using struct
31395 sigcontext.
31396 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31397 mcontext_t instead of struct sigcontext.
31398 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31399 <bits/sigcontext.h>.
31400 (__ctx): Define earlier.
31401 (mcontext_t): Define structure contents rather than using struct
31402 sigcontext.
31403 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31404 <bits/sigcontext.h>.
31405 (__ctx): Define earlier.
31406 (mcontext_t): Define structure contents rather than using struct
31407 sigcontext.
31408 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31409 mcontext_t instead of struct sigcontext.
31410 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31411 mcontext_t instead of struct sigcontext.
31412 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31413 <bits/sigcontext.h>.
31414 (__ctx): New macro.
31415 (struct __ia64_fpreg_mcontext): New type.
31416 (mcontext_t): Define structure contents rather than using struct
31417 sigcontext.
31418 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31419 (uc_sigmask): Define using __ctx.
31420 (uc_stack): Likewise.
31421 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31422 <bits/sigcontext.h>.
31423 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31424 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31425 <bits/sigcontext.h>.
31426 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31427 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31428 <bits/sigcontext.h>.
31429 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31430 <bits/sigcontext.h>.
31431 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31432 <bits/sigcontext.h>.
31433 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31434 <bits/sigcontext.h>.
31435 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31436 <bits/sigcontext.h>.
31437 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31438 <bits/sigcontext.h>.
31439 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31440 <bits/sigcontext.h>.
31441 (__ctx): Define earlier.
31442 (mcontext_t): Define structure contents rather than using struct
31443 sigcontext.
31444 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31445 <bits/sigcontext.h>. Include <bits/types.h>.
31446 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31447 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31448 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31449 (test-xfail-UNIX98/signal.h/conform): Likewise.
31450 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31451 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31452 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31453 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31454 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31455 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31456 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31457 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31458 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31459
31460 2017-08-30 Florian Weimer <fweimer@redhat.com>
31461
31462 * malloc/dynarray_emplace_enlarge.c
31463 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31464 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31465 * malloc/tst-dynarray.c (test_long_overflow): New function.
31466 (do_test): Call it.
31467
31468 2017-08-30 Florian Weimer <fweimer@redhat.com>
31469
31470 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31471 (set_arena_corrupt): Remove definitions.
31472 (mtrim): Do not check for corrupt arena.
31473 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31474 Likewise.
31475
31476 2017-08-30 Florian Weimer <fweimer@redhat.com>
31477
31478 [BZ #21754]
31479 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31480 check_action.
31481 (ptmalloc_init): Do not set or use check_action.
31482 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31483 call to malloc_printerr. Remove return statement.
31484 (free_check): Likewise. Remove arena unlock.
31485 (top_check): Update comment. Adjust call to malloc_printerr.
31486 Remove heap repair code.
31487 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31488 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31489 (sysmalloc): Adjust call to malloc_printerr.
31490 (munmap_chunk, __libc_realloc): Likewise. Remove return
31491 statement.
31492 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31493 Remove errout label and corresponding gotos.
31494 (_int_free): Likewise. Remove arena unlock.
31495 (do_set_mallopt_check): Do not set check_action.
31496 (malloc_printerr): Adjust parameter list. Do not mark arena as
31497 corrupt.
31498 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31499 comment.
31500 * manual/probes.texi (Memory Allocation Probes): Remove
31501 memory_mallopt_check_action.
31502
31503 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31504
31505 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31506 Use pointer to uint64_t instead of long int for sp.
31507
31508 2017-08-30 Florian Weimer <fweimer@redhat.com>
31509
31510 [BZ #21754]
31511 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31512 without printing a backtrace. Do not leak any information in the
31513 error message.
31514 * manual/memory.texi (Heap Consistency Checking): Update.
31515 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31516
31517 2017-08-30 Florian Weimer <fweimer@redhat.com>
31518
31519 Do not scale NPTL tests with available number of CPUs.
31520 * nptl/tst-cond16.c (count): Set to constant value of 8.
31521 * nptl/tst-cond18.c (count): Likewise.
31522
31523 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31524
31525 [BZ #22035]
31526 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31527 Define to take a second argument that is a macro that
31528 concatentates a suffix, not the suffix itself.
31529 (__CONCAT_d): New macro.
31530 (__CONCAT_f): Likewise.
31531 (__CONCAT_l): Likewise.
31532
31533 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
31534
31535 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
31536 by child.
31537
31538 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31539 Aurelien Jarno <aurelien@aurel32.net>
31540 Maciej W. Rozycki <macro@imgtec.com>
31541
31542 [BZ #21956]
31543 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
31544 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
31545 `mips16-syscall6' and `mips16-syscall7'.
31546 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
31547 (CFLAGS-mips16-syscall7.c): Remove.
31548 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
31549 Remove `__mips16_syscall5', `__mips16_syscall6' and
31550 `__mips16_syscall7'.
31551 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
31552 (__mips16_syscall0): Rename `__mips16_syscall_return' to
31553 `__mips_syscall_return'.
31554 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
31555 (__mips16_syscall1): Likewise.
31556 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
31557 (__mips16_syscall2): Likewise.
31558 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
31559 (__mips16_syscall3): Likewise.
31560 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
31561 (__mips16_syscall4): Likewise.
31562 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
31563 Remove.
31564 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
31565 Remove.
31566 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
31567 Remove.
31568 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
31569 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
31570 `__mips16_syscall5'. Remove prototype.
31571 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
31572 `__mips16_syscall6'. Remove prototype.
31573 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
31574 `__mips16_syscall7'. Remove prototype.
31575 (__nomips16, __mips16_syscall_return): Move to...
31576 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
31577 (__nomips16, __mips_syscall_return): ... here.
31578 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
31579 `__mips16_syscall_return' to `__mips_syscall_return'.
31580 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
31581 `internal_syscall##nr'.
31582 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
31583 `internal_syscall##nr'.
31584 (FORCE_FRAME_POINTER): Remove.
31585 (__mips_syscall5): New prototype.
31586 (internal_syscall5): Rewrite to call `__mips_syscall5'.
31587 (__mips_syscall6): New prototype.
31588 (internal_syscall6): Rewrite to call `__mips_syscall6'.
31589 (__mips_syscall7): New prototype.
31590 (internal_syscall7): Rewrite to call `__mips_syscall7'.
31591 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
31592 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
31593 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
31594 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
31595 (sysdep_routines): Add libc-do-syscall.
31596 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
31597 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
31598
31599 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31600
31601 [BZ #21672]
31602 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
31603 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
31604 (advise_stack_range): New function.
31605 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
31606 stack non required to advise_stack_range at allocatestack.c
31607
31608 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31609
31610 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
31611
31612 2017-08-29 Florian Weimer <fweimer@redhat.com>
31613
31614 [BZ #22026]
31615 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
31616 __end_fct. Mangle __end_fct after setting it to NULL.
31617 * iconv/Makefile (tests): Add tst-gconv-init-failure.
31618 (modules-names, modules-names-tests): Add
31619 tst-gconv-init-failure-mod.
31620 (gconv-modules): New target.
31621 (tst-gconv-init-failure-mod.so): Link against libsupport.
31622 (tst-gconv-init-failure): Depend on gconv-modules,
31623 tst-gconv-init-failure-mod.so.
31624 * iconv/tst-gconv-init-failure-mod.c: New file.
31625 * iconv/tst-gconv-init-failure.c: Likewise.
31626 * iconv/test-gconv-modules: Likewise.
31627
31628 2017-08-29 Florian Weimer <fweimer@redhat.com>
31629
31630 [BZ #22025]
31631 * iconv/gconv_db.c (free_derivation): Remove redundant
31632 parentheses.
31633 (gen_steps): Unconditionally mangle __btowc_fct after
31634 initialization.
31635 (increment_counter): Likewise. Do not call init_fct for internal
31636 modules.
31637
31638 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31639
31640 [BZ #22028]
31641 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31642 (_MSUF_): Remove macro.
31643 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
31644 Likewise.
31645 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31646 (__REDIRFROM_X): New macro.
31647 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
31648 Likewise.
31649 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
31650 (__REDIRTO_X): Likewise.
31651 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
31652 arguments.
31653 (__MATH_REDIRCALL_2): Likewise.
31654 (__MATH_REDIRCALL_INTERNAL): Likewise.
31655 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31656 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
31657 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
31658 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31659 * math/test-finite-macros.c: New file.
31660 * math/Makefile (tests): Add test-finite-macros.
31661 (CFLAGS-test-finite-macros.c): New variable.
31662
31663 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
31664 Jeff Law <law@redhat.com>
31665
31666 [BZ #22025]
31667 Mangle NULL pointers in iconv/gconv.
31668 * iconv/gconv_cache.c (find_module): Demangle init_fct before
31669 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
31670 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
31671 is non-NULL before demangling the end_fct. Check for NULL
31672 end_fct after demangling.
31673 (__gconv_release_step): Demangle the end_fct before checking
31674 it for NULL. Remove assert on __shlibc_handle != NULL.
31675 (gen_steps): Don't check btowc_fct for NULL before mangling.
31676 Demangle init_fct before checking for NULL.
31677 (increment_counter): Likewise.
31678 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
31679 end_fct for NULL before mangling.
31680 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
31681 for NULL.
31682
31683 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
31684
31685 [BZ #21971]
31686 * locale/iso-639.def: add Morisyen.
31687
31688 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31689
31690 [BZ #21930]
31691 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
31692 (iszero): New C++ implementation that does not use
31693 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
31694 signaling nans are enabled, since __builtin_types_compatible_p
31695 is a C-only feature.
31696 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
31697 defined, include ieee754_float128.h for access to the union and
31698 member ieee854_float128.ieee.
31699 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
31700 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
31701 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31702 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
31703 options of test-math-zero on powerpc64le.
31704
31705 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
31706
31707 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
31708 Change double to float.
31709
31710 2017-08-28 Joseph Myers <joseph@codesourcery.com>
31711
31712 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
31713 unconditional.
31714 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
31715 conditional code; define contents only for [LIBM_SVID_COMPAT].
31716
31717 2017-08-28 Florian Weimer <fweimer@redhat.com>
31718
31719 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
31720 (abi-lp64_be-options): Remove.
31721 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
31722 (abi-hard-options): Likewise.
31723 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
31724 (abi-o32_hard-options, abi-o32_soft_2008-options)
31725 (abi-o32_hard_2008-options, abi-n32_soft-options)
31726 (abi-n32_hard-options, abi-n32_soft_2008-options)
31727 (abi-n32_hard_2008-options, abi-n64_soft-options)
31728 (abi-n64_hard-options, abi-n64_soft_2008-options)
31729 (abi-n64_hard_2008-options): Likewise.
31730 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
31731 (abi-64-v1-options, abi-64-v2-options): Likewise.
31732 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
31733 (abi-64-options): Likewise.
31734 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
31735 (abi-64-options): Likewise.
31736 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
31737 (abi-64-options): Likewise.
31738 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
31739 (abi-64-options, abi-x32-options): Likewise.
31740
31741 2017-08-28 Florian Weimer <fweimer@redhat.com>
31742
31743 Store supported list of SYS_* system calls in the source tree.
31744 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
31745 (bits/syscall.h): Generate from list file.
31746 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
31747 [$(subdir) = misc] (tests): Add tst-syscall-list.
31748 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
31749 [$(subdir) = misc] (tst-syscall-list-macros.list)
31750 [$(subdir) = misc] (tst-syscall-list-nr.list)
31751 (tst-syscall-list-sys.list): Helper targets for new
31752 tst-syscall-list test.
31753 [$(subdir) = misc] (tst-syscall-list.out): Run test script
31754 tst-syscall-list.sh.
31755 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
31756 target. Do not include bits/syscall.d.
31757 [$(subdir) = misc] (generated): Do not update.
31758 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
31759 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
31760 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
31761 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
31762
31763 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
31764
31765 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
31766 (tst-cxa_atexit, tst-on_exit): Likewise.
31767 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
31768 tst-cxa_atexit, and tst-on_exit.
31769 * stdlib/tst-atexit-common.c: New file.
31770 * stdlib/tst-atexit.c: New file.
31771 * stdlib/tst-at_quick_exit.c: New file.
31772 * stdlib/tst-cxa_atexit.c: New file.
31773 * stdlib/tst-on_exit.c: New file.
31774
31775 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
31776
31777 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
31778 * mach/stack_chk_fail_local.c: New file.
31779 * hurd/stack_chk_fail_local.c: New file.
31780 * mach/Machrules ($(interface-library)-routines): Add
31781 stack_chk_fail_local.
31782 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
31783 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
31784 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
31785 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
31786 * hurd/Makefile (CFLAGS-hurdstartup.o,
31787 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
31788
31789 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
31790
31791 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31792 (index_cpu_*, index_arch_*): Removed.
31793
31794 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
31795
31796 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
31797 Use uint64_t instead of unsigned long.
31798
31799 2017-08-25 Joseph Myers <joseph@codesourcery.com>
31800
31801 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
31802 [__HAVE_DISTINCT_FLOAT128].
31803
31804 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
31805 of <bits/math-finite.h>.
31806 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
31807 inclusion of <bits/math-finite.h>.
31808 * math/bits/math-finite.h (__REDIRTO_X): Do not define
31809 conditionally on [__MATH_DECLARING_LDOUBLE && defined
31810 __NO_LONG_DOUBLE_MATH].
31811 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
31812 (__MATH_REDIRCALL_2): Likewise.
31813 (__MATH_REDIRCALL_INTERNAL): Likewise.
31814 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31815 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
31816 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31817
31818 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
31819 Remove file.
31820 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
31821 Likewise.
31822 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
31823 Likewise.
31824 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
31825 Likewise.
31826 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
31827 Likewise.
31828 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
31829 Likewise.
31830 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31831 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31832 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31833 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31834 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
31835 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
31836 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
31837 w_sqrtf_compat-ppc32.
31838
31839 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31840
31841 * math/math.h [defined __cplusplus] (issignaling): In the long
31842 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
31843 is not defined. Call __issignaling, otherwise.
31844
31845 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31846
31847 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
31848 syscall definitions and replace __builtin_expect with __glibc_likely.
31849 * sysdeps/unix/syscall-template.S: Update comment about cancellable
31850 syscall.
31851 (SYSCALL_CANCELLABLE): Removedefinition
31852 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
31853 definition.
31854 (PSEUDO_END): Likewise.
31855 [IS_IN (libpthread)] (CENABLE): Likewise.
31856 [IS_IN (libpthread)] (CDISABLE): Likewise.
31857 [IS_IN (libc)] (CENABLE): Likewise.
31858 [IS_IN (libc)] (CENABLE): Likewise.
31859 [IS_IN (librt)] (CDISABLE): Likewise.
31860 [IS_IN (librt)] (CDISABLE): Likewise.
31861 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31862 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
31863 definition.
31864 (PSEUDO_END): Likewise.
31865 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
31866 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
31867 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
31868 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
31869 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
31870 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
31871 (CENABLE): Likewise.
31872 (CDISABLE): Likewise.
31873 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31874 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
31875 defintion.
31876 (PSEUDO_END): Likewise.
31877 [IS_IN (libpthread)] (CENABLE): Likewise.
31878 [IS_IN (libpthread)] (CDISABLE): Likewise.
31879 [IS_IN (libc)] (CENABLE): Likewise.
31880 [IS_IN (libc)] (CENABLE): Likewise.
31881 [IS_IN (librt)] (CDISABLE): Likewise.
31882 [IS_IN (librt)] (CDISABLE): Likewise.
31883 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31884 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
31885 definition.
31886 (PSEUDO_END): Likewise.
31887 [IS_IN (libpthread)] (CENABLE): Likewise.
31888 [IS_IN (libpthread)] (CDISABLE): Likewise.
31889 [IS_IN (libc)] (CENABLE): Likewise.
31890 [IS_IN (libc)] (CENABLE): Likewise.
31891 [IS_IN (librt)] (CDISABLE): Likewise.
31892 [IS_IN (librt)] (CDISABLE): Likewise.
31893 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31894 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
31895 definition.
31896 (PSEUDO_END): Likewise.
31897 [IS_IN (libpthread)] (CENABLE): Likewise.
31898 [IS_IN (libpthread)] (CDISABLE): Likewise.
31899 [IS_IN (libc)] (CENABLE): Likewise.
31900 [IS_IN (libc)] (CENABLE): Likewise.
31901 [IS_IN (librt)] (CDISABLE): Likewise.
31902 [IS_IN (librt)] (CDISABLE): Likewise.
31903 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31904 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
31905 definition.
31906 (PSEUDO_END): Likewise.
31907 [IS_IN (libpthread)] (CENABLE): Likewise.
31908 [IS_IN (libpthread)] (CDISABLE): Likewise.
31909 [IS_IN (libc)] (CENABLE): Likewise.
31910 [IS_IN (libc)] (CENABLE): Likewise.
31911 [IS_IN (librt)] (CDISABLE): Likewise.
31912 [IS_IN (librt)] (CDISABLE): Likewise.
31913 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31914 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
31915 definition.
31916 (PSEUDO_END): Likewise.
31917 [IS_IN (libpthread)] (CENABLE): Likewise.
31918 [IS_IN (libpthread)] (CDISABLE): Likewise.
31919 [IS_IN (libc)] (CENABLE): Likewise.
31920 [IS_IN (libc)] (CENABLE): Likewise.
31921 [IS_IN (librt)] (CDISABLE): Likewise.
31922 [IS_IN (librt)] (CDISABLE): Likewise.
31923 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31924 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
31925 definition.
31926 (PSEUDO_END): Likewise.
31927 [IS_IN (libpthread)] (CENABLE): Likewise.
31928 [IS_IN (libpthread)] (CDISABLE): Likewise.
31929 [IS_IN (libc)] (CENABLE): Likewise.
31930 [IS_IN (libc)] (CENABLE): Likewise.
31931 [IS_IN (librt)] (CDISABLE): Likewise.
31932 [IS_IN (librt)] (CDISABLE): Likewise.
31933 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31934 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
31935 Remove definition.
31936 (PSEUDO_END): Likewise.
31937 [IS_IN (libpthread)] (CENABLE): Likewise.
31938 [IS_IN (libpthread)] (CDISABLE): Likewise.
31939 [IS_IN (libc)] (CENABLE): Likewise.
31940 [IS_IN (libc)] (CENABLE): Likewise.
31941 [IS_IN (librt)] (CDISABLE): Likewise.
31942 [IS_IN (librt)] (CDISABLE): Likewise.
31943 (SINGLE_THREAD_P): Likewise.
31944 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
31945 definition.
31946 (PSEUDO_END): Likewise.
31947 [IS_IN (libpthread)] (CENABLE): Likewise.
31948 [IS_IN (libpthread)] (CDISABLE): Likewise.
31949 [IS_IN (libc)] (CENABLE): Likewise.
31950 [IS_IN (libc)] (CENABLE): Likewise.
31951 [IS_IN (librt)] (CDISABLE): Likewise.
31952 [IS_IN (librt)] (CDISABLE): Likewise.
31953 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31954 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
31955 definition.
31956 (PSEUDO_END): Likewise.
31957 [IS_IN (libpthread)] (CENABLE): Likewise.
31958 [IS_IN (libpthread)] (CDISABLE): Likewise.
31959 [IS_IN (libc)] (CENABLE): Likewise.
31960 [IS_IN (libc)] (CENABLE): Likewise.
31961 [IS_IN (librt)] (CDISABLE): Likewise.
31962 [IS_IN (librt)] (CDISABLE): Likewise.
31963 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31964 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
31965 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
31966 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
31967 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
31968 definition.
31969 (PSEUDO_END): Likewise.
31970 [IS_IN (libpthread)] (CENABLE): Likewise.
31971 [IS_IN (libpthread)] (CDISABLE): Likewise.
31972 [IS_IN (libc)] (CENABLE): Likewise.
31973 [IS_IN (libc)] (CENABLE): Likewise.
31974 [IS_IN (librt)] (CDISABLE): Likewise.
31975 [IS_IN (librt)] (CDISABLE): Likewise.
31976 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31977 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
31978 definition.
31979 (PSEUDO_END): Likewise.
31980 [IS_IN (libpthread)] (CENABLE): Likewise.
31981 [IS_IN (libpthread)] (CDISABLE): Likewise.
31982 [IS_IN (libc)] (CENABLE): Likewise.
31983 [IS_IN (libc)] (CENABLE): Likewise.
31984 [IS_IN (librt)] (CDISABLE): Likewise.
31985 [IS_IN (librt)] (CDISABLE): Likewise.
31986 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31987 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
31988 definition.
31989 (PSEUDO_END): Likewise.
31990 [IS_IN (libpthread)] (CENABLE): Likewise.
31991 [IS_IN (libpthread)] (CDISABLE): Likewise.
31992 [IS_IN (libc)] (CENABLE): Likewise.
31993 [IS_IN (libc)] (CENABLE): Likewise.
31994 [IS_IN (librt)] (CDISABLE): Likewise.
31995 [IS_IN (librt)] (CDISABLE): Likewise.
31996 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31997 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
31998 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
31999 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32000 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32001 definition.
32002 (PSEUDO_END): Likewise.
32003 [IS_IN (libpthread)] (CENABLE): Likewise.
32004 [IS_IN (libpthread)] (CDISABLE): Likewise.
32005 [IS_IN (libc)] (CENABLE): Likewise.
32006 [IS_IN (libc)] (CENABLE): Likewise.
32007 [IS_IN (librt)] (CDISABLE): Likewise.
32008 [IS_IN (librt)] (CDISABLE): Likewise.
32009 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32010 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32011 definition.
32012 (PSEUDO_END): Likewise.
32013 [IS_IN (libpthread)] (CENABLE): Likewise.
32014 [IS_IN (libpthread)] (CDISABLE): Likewise.
32015 [IS_IN (libc)] (CENABLE): Likewise.
32016 [IS_IN (libc)] (CENABLE): Likewise.
32017 [IS_IN (librt)] (CDISABLE): Likewise.
32018 [IS_IN (librt)] (CDISABLE): Likewise.
32019 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32020
32021 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32022
32023 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32024
32025 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32026
32027 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32028
32029 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32030
32031 [BZ #21982]
32032 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32033 middle and outer with size_t instead of int. Repleace %d and
32034 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32035 "MAX (outer, nchars - 64)" to support unsigned outer and
32036 nchars. Also exit loop when outer == 0.
32037
32038 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32039
32040 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32041 * include/signal.h (__sigsuspend_nocancel): Likewise.
32042 * include/time.h (__nanosleep_nocancel): Likewise.
32043 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32044 * login/utmp_file.c: Include non cancellable syscall header.
32045 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32046 prototype.
32047
32048 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32049
32050 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32051 .byte sequences with AVX512F instructions.
32052 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32053 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32054 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32055 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32056 Likewise.
32057 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32058 Likewise.
32059
32060 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32061 Steve Ellcey <sellcey@cavium.com>
32062
32063 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32064 Use PTR_REG macro in cmp instruction.
32065
32066 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32067
32068 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32069 Change the return type of the ifunc resolver to match the return
32070 type of the target function.
32071
32072 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32073
32074 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32075 (preadv64): Likewise.
32076 (pwrite64(: Likewise.
32077 (pwritev64): Likewise.
32078
32079 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32080 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32081 (LOAD_ARGS_0): Likewise.
32082 (LOAD_ARGS_1): Likewise.
32083 (LOAD_ARGS_2): Likewise.
32084 (LOAD_ARGS_3): Likewise.
32085 (LOAD_ARGS_4): Likewise.
32086 (LOAD_ARGS_5): Likewise.
32087 (LOAD_ARGS_6): Likewise.
32088 (LOAD_REGS_0): Likewise.
32089 (LOAD_REGS_1): Likewise.
32090 (LOAD_REGS_2): Likewise.
32091 (LOAD_REGS_3): Likewise.
32092 (LOAD_REGS_4): Likewise.
32093 (LOAD_REGS_5): Likewise.
32094 (LOAD_REGS_6): Likewise.
32095 (ASM_ARGS_0): Likewise.
32096 (ASM_ARGS_1): Likewise.
32097 (ASM_ARGS_2): Likewise.
32098 (ASM_ARGS_3): Likewise.
32099 (ASM_ARGS_4): Likewise.
32100 (ASM_ARGS_5): Likewise.
32101 (ASM_ARGS_6): Likewise.
32102 (LOAD_ARGS_TYPES_1): Likewise.
32103 (LOAD_ARGS_TYPES_2): Likewise.
32104 (LOAD_ARGS_TYPES_3): Likewise.
32105 (LOAD_ARGS_TYPES_4): Likewise.
32106 (LOAD_ARGS_TYPES_5): Likewise.
32107 (LOAD_ARGS_TYPES_6): Likewise.
32108 (LOAD_REGS_TYPES_1): Likewise.
32109 (LOAD_REGS_TYPES_2): Likewise.
32110 (LOAD_REGS_TYPES_3): Likewise.
32111 (LOAD_REGS_TYPES_4): Likewise.
32112 (LOAD_REGS_TYPES_5): Likewise.
32113 (LOAD_REGS_TYPES_6): Likewise.
32114 (TYPEFY): New define.
32115 (ARGIFY): Likewise.
32116 (internal_syscall0): Likewise.
32117 (internal_syscall1): Likewise.
32118 (internal_syscall2): Likewise.
32119 (internal_syscall3): Likewise.
32120 (internal_syscall4): Likewise.
32121 (internal_syscall5): Likewise.
32122 (internal_syscall6): Likewise.
32123 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32124 (INTERNAL_SYSCALL_NCS): Remove define.
32125 (internal_syscall1): Add define.
32126
32127 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32128
32129 * math/w_remainder_compat.c: Remove duplicate inclusion of
32130 math-svid-compat.h.
32131 * math/w_remainderf_compat.c: Likewise.
32132 * math/w_remainderl_compat.c: Likewise.
32133
32134 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32135
32136 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32137
32138 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32139
32140 [BZ #21684]
32141 * math/tgmath.h (__floating_type): Simplify definitions.
32142 (__real_integer_type): New macro.
32143 (__complex_integer_type): Likewise.
32144 (__expr_is_real): Likewise.
32145 (__tgmath_real_type_sub): Update comment to describe handling of
32146 complex types.
32147 (__tgmath_complex_type_sub): New macro.
32148 (__tgmath_complex_type): Likewise.
32149 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32150 (__TGMATH_CF128): Use __expr_is_real.
32151 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32152 __expr_is_real.
32153 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32154 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32155 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32156 integer types.
32157
32158 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32159
32160 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32161 macro.
32162 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32163 alias.
32164 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32165 Likewise.
32166
32167 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32168 nanosleep_not_cancel with __nanosleep_nocancel.
32169 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32170 (__nanosleep_nocancel): New macro.
32171 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32172 function.
32173 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32174 macro.
32175 (__nanosleep_nocancel): New prototype.
32176
32177 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32178 pause_not_cancel with __pause_nocancel.
32179 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32180 (__pause_nocancel): New macro.
32181 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32182 macro.
32183 (__pause_nocancel): New prototype.
32184 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32185
32186 2017-08-22 Martin Sebor <msebor@redhat.com>
32187
32188 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32189 to return a pointer to the same type as the target function.
32190
32191 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32192
32193 [BZ #18822]
32194 [BZ #21986]
32195 * include/printf.h (__printf_fphex): Add attribute_hidden.
32196 (__guess_grouping): New prototype.
32197 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32198 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32199 libc_hidden_proto and libc_hidden_def.
32200 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32201 (__vstrfmon_l): Remove the third argument passed to
32202 __guess_grouping.
32203
32204 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32205
32206 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32207 definition for issignaling that does not rely on __MATH_TG,
32208 since __MATH_TG uses __builtin_types_compatible_p, which is only
32209 available in C mode.
32210 (CFLAGS-test-math-issignaling.cc): New variable.
32211 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32212 * math/test-math-issignaling.cc: New test for C++ implementation
32213 of type-generic issignaling.
32214 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32215 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32216 options of test-math-issignaling on powerpc64le.
32217
32218 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32219
32220 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32221 building libc.a.
32222 (hidden_proto): Likewise.
32223 (hidden_tls_proto): Likewise.
32224 (__hidden_proto): Likewise.
32225
32226 2017-08-22 Florian Weimer <fweimer@redhat.com>
32227
32228 math: Statically link tests of internal functionality.
32229 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32230 atest-exp2.
32231 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32232 (gmp-objs): Remove assignment.
32233 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32234
32235 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32236
32237 [BZ #21987]
32238 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32239 and copy to ...
32240 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32241 ... here.
32242 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32243 ... and here.
32244
32245 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32246 variable definitions above inclusion of ../Rules.
32247
32248 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32249
32250 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32251 case calling __builtin_unreachable.
32252
32253 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32254
32255 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32256 __waitpid_nocancel.
32257 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32258 (__waitpid_nocancel): New macro.
32259 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32260 macro.
32261 (__waitpid_nocancel): Replace macro with a function.
32262 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32263 function.
32264
32265 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32266 __fcntl_nocancel.
32267 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32268 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32269
32270 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32271 __writev_nocancel_nostatus.
32272 (write_call_graph): Likewise.
32273 (write_bb_counts): Likewise.
32274 * resolv/herror.c (herror): Likewise.
32275 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32276 macro.
32277 (__writev_nocancel_nostatus): New macro.
32278 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32279 Remove macro.
32280 (__writev_nocancel_nostatus): New function.
32281
32282 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32283
32284 Revert:
32285 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32286
32287 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32288 building libc.a.
32289 (hidden_proto): Likewise.
32290 (hidden_tls_proto): Likewise.
32291 (__hidden_proto): Likewise.
32292
32293 [BZ #21973]
32294 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32295 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32296 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32297 Likewise.
32298 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32299 Likewise.
32300 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32301 Likewise.
32302 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32303 Likewise.
32304 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32305 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32306 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32307 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32308 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32309 GLIBC_2.0 sqrtl symbol.
32310
32311 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32312 [__USE_MISC] (_LIB_VERSION): Likewise.
32313 [__USE_MISC] (struct exception): Likewise.
32314 [__USE_MISC] (matherr): Likewise.
32315 [__USE_MISC] (DOMAIN): Likewise.
32316 [__USE_MISC] (SING): Likewise.
32317 [__USE_MISC] (OVERFLOW): Likewise.
32318 [__USE_MISC] (UNDERFLOW): Likewise.
32319 [__USE_MISC] (TLOSS): Likewise.
32320 [__USE_MISC] (PLOSS): Likewise.
32321 [__USE_MISC] (HUGE): Likewise.
32322 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32323 * math/math-svid-compat.h: New file.
32324 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32325 and matherrl.
32326 * include/math.h [!_ISOMAC] (__matherr): Remove.
32327 * manual/arith.texi (FP Exceptions): Do not document matherr.
32328 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32329 (tests-internal): New variable.
32330 (install-lib): Do not add libieee.a.
32331 (non-lib.a): Likewise.
32332 (extra-objs): Do not add libieee.a and ieee-math.o.
32333 (CPPFLAGS-s_lib_version.c): Remove variable.
32334 ($(objpfx)libieee.a): Remove rule.
32335 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32336 * math/ieee-math.c: Remove.
32337 * math/libm-test-support.c (matherr): Remove.
32338 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32339 and license notices. Include <math-svid-compat.h> and
32340 <shlib-compat.h>.
32341 (matherr): Undefine as macro. Use compat_symbol_reference.
32342 (_LIB_VERSION): Likewise.
32343 * math/test-matherr-2.c: New file.
32344 * math/test-matherr-3.c: Likewise.
32345 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32346 declaration.
32347 (__kernel_standard_f): Likewise.
32348 (__kernel_standard_l): Likewise.
32349 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32350 <math_private.h>. Include <math-svid-compat.h>.
32351 (_LIB_VERSION): Undefine as macro.
32352 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32353 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32354 [LIBM_SVID_COMPAT], use compat_symbol.
32355 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32356 <math_private.h>. Include <math-svid-compat.h>.
32357 (matherr): Undefine as macro.
32358 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32359 compat_symbol.
32360 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32361 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32362 compat_symbol_reference.
32363 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32364 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32365 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32366 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32367 (MATHERR_D): Remove declaration.
32368 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32369 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32370 [LIBM_BUILD] (pmatherrf): Likewise.
32371 [LIBM_BUILD] (pmatherr): Likewise.
32372 [LIBM_BUILD] (pmatherrl): Likewise.
32373 (DOMAIN): Likewise.
32374 (SING): Likewise.
32375 (OVERFLOW): Likewise.
32376 (UNDERFLOW): Likewise.
32377 (TLOSS): Likewise.
32378 (PLOSS): Likewise.
32379 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32380 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32381 compat_symbol.
32382 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32383 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32384 compat_symbol.
32385 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32386 * math/w_acos_compat.c: Likewise.
32387 * math/w_acosf_compat.c: Likewise.
32388 * math/w_acosh_compat.c: Likewise.
32389 * math/w_acoshf_compat.c: Likewise.
32390 * math/w_acoshl_compat.c: Likewise.
32391 * math/w_acosl_compat.c: Likewise.
32392 * math/w_asin_compat.c: Likewise.
32393 * math/w_asinf_compat.c: Likewise.
32394 * math/w_asinl_compat.c: Likewise.
32395 * math/w_atan2_compat.c: Likewise.
32396 * math/w_atan2f_compat.c: Likewise.
32397 * math/w_atan2l_compat.c: Likewise.
32398 * math/w_atanh_compat.c: Likewise.
32399 * math/w_atanhf_compat.c: Likewise.
32400 * math/w_atanhl_compat.c: Likewise.
32401 * math/w_cosh_compat.c: Likewise.
32402 * math/w_coshf_compat.c: Likewise.
32403 * math/w_coshl_compat.c: Likewise.
32404 * math/w_exp10_compat.c: Likewise.
32405 * math/w_exp10f_compat.c: Likewise.
32406 * math/w_exp10l_compat.c: Likewise.
32407 * math/w_exp2_compat.c: Likewise.
32408 * math/w_exp2f_compat.c: Likewise.
32409 * math/w_exp2l_compat.c: Likewise.
32410 * math/w_fmod_compat.c: Likewise.
32411 * math/w_fmodf_compat.c: Likewise.
32412 * math/w_fmodl_compat.c: Likewise.
32413 * math/w_hypot_compat.c: Likewise.
32414 * math/w_hypotf_compat.c: Likewise.
32415 * math/w_hypotl_compat.c: Likewise.
32416 * math/w_j0_compat.c: Likewise.
32417 * math/w_j0f_compat.c: Likewise.
32418 * math/w_j0l_compat.c: Likewise.
32419 * math/w_j1_compat.c: Likewise.
32420 * math/w_j1f_compat.c: Likewise.
32421 * math/w_j1l_compat.c: Likewise.
32422 * math/w_jn_compat.c: Likewise.
32423 * math/w_jnf_compat.c: Likewise.
32424 * math/w_jnl_compat.c: Likewise.
32425 * math/w_lgamma_main.c: Likewise.
32426 * math/w_lgamma_r_compat.c: Likewise.
32427 * math/w_lgammaf_main.c: Likewise.
32428 * math/w_lgammaf_r_compat.c: Likewise.
32429 * math/w_lgammal_main.c: Likewise.
32430 * math/w_lgammal_r_compat.c: Likewise.
32431 * math/w_log10_compat.c: Likewise.
32432 * math/w_log10f_compat.c: Likewise.
32433 * math/w_log10l_compat.c: Likewise.
32434 * math/w_log2_compat.c: Likewise.
32435 * math/w_log2f_compat.c: Likewise.
32436 * math/w_log2l_compat.c: Likewise.
32437 * math/w_log_compat.c: Likewise.
32438 * math/w_logf_compat.c: Likewise.
32439 * math/w_logl_compat.c: Likewise.
32440 * math/w_pow_compat.c: Likewise.
32441 * math/w_powf_compat.c: Likewise.
32442 * math/w_powl_compat.c: Likewise.
32443 * math/w_remainder_compat.c: Likewise.
32444 * math/w_remainderf_compat.c: Likewise.
32445 * math/w_remainderl_compat.c: Likewise.
32446 * math/w_scalb_compat.c: Likewise.
32447 * math/w_scalbf_compat.c: Likewise.
32448 * math/w_scalbl_compat.c: Likewise.
32449 * math/w_sinh_compat.c: Likewise.
32450 * math/w_sinhf_compat.c: Likewise.
32451 * math/w_sinhl_compat.c: Likewise.
32452 * math/w_sqrt_compat.c: Likewise.
32453 * math/w_sqrtf_compat.c: Likewise.
32454 * math/w_sqrtl_compat.c: Likewise.
32455 * math/w_tgamma_compat.c: Likewise.
32456 * math/w_tgammaf_compat.c: Likewise.
32457 * math/w_tgammal_compat.c: Likewise.
32458 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32459 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32460 * sysdeps/ieee754/k_standard.c: Likewise.
32461 * sysdeps/ieee754/k_standardf.c: Likewise.
32462 * sysdeps/ieee754/k_standardl.c: Likewise.
32463 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32464 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32465 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32466 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32467 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32468 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32469 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32470 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32471 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32472 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32473 Likewise.
32474 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32475 Likewise.
32476 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32477 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32478 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32479 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32480
32481 2017-08-21 Florian Weimer <fweimer@redhat.com>
32482
32483 [BZ #21864]
32484 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32485 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32486 Move before inclusion of ../Rules.
32487
32488 2017-08-21 Florian Weimer <fweimer@redhat.com>
32489
32490 [BZ #21972]
32491 * assert/assert.h (assert): Use static_cast (bool) for C++.
32492 Use the ternary operator in the warning branch for GNU C.
32493 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32494 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32495 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32496 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32497 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32498
32499 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32500
32501 [BZ #18822]
32502 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32503 (__syscall_clock_gettime): Add attribute_hidden.
32504 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32505 (__start_context): Likewise.
32506
32507 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32508
32509 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32510 building libc.a.
32511 (hidden_proto): Likewise.
32512 (hidden_tls_proto): Likewise.
32513 (__hidden_proto): Likewise.
32514
32515 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32516
32517 * include/libc-symbols.h (attribute_hidden): Enable hidden
32518 visibility in libc.a compiled with PIE.
32519
32520 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32521
32522 [BZ #18822]
32523 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32524 Add attribute_hidden.
32525
32526 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32527
32528 [BZ #21864]
32529 * Makerules (all-nonlib): Add $(others-extras).
32530 * catgets/Makefile (others-extras): New.
32531 * elf/Makefile (others-extras): Likewise.
32532 * nss/Makefile (others-extras): Likewise.
32533
32534 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32535
32536 [BZ #18822]
32537 * csu/libc-start.c (__libc_multiple_libcs): Removed.
32538 * elf/dl-open.c: Include <libc-internal.h>.
32539 (__libc_multiple_libcs): Removed.
32540 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
32541 <hp-timing.h>.
32542 * include/libc-internal.h (__libc_multiple_libcs): New.
32543 * misc/sbrk.c: Include <libc-internal.h>.
32544 (__libc_multiple_libcs): Removed.
32545
32546 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32547
32548 [BZ #18822]
32549 * grp/initgroups.c (__nss_group_database): Removed.
32550 (__nss_initgroups_database): Likewise.
32551 * nscd/gai.c (__nss_hosts_database): Likewise.
32552 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
32553 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
32554 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
32555 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
32556 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
32557 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
32558 attribute_hidden.
32559 * nss/nsswitch.c (__nss_database_custom): Define only if
32560 USE_NSCD is defined.
32561 (__nss_configure_lookup): Use __nss_database_custom only if
32562 USE_NSCD is defined.
32563 * nss/nsswitch.h (__nss_database_custom): Declare only if
32564 USE_NSCD is defined. Add attribute_hidden.
32565 (__nss_setent): Add attribute_hidden.
32566 (__nss_endent): Likewise.
32567 (__nss_getent_r): Likewise.
32568 (__nss_getent): Likewise.
32569 (DEFINE_DATABASE): Declare __nss_##arg##_database.
32570
32571 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32572
32573 [BZ #18822]
32574 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
32575 libc_hidden_proto and libc_hidden_def.
32576
32577 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32578
32579 [BZ #18822]
32580 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
32581 Add libc_hidden_proto.
32582 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
32583 Add libc_hidden_def.
32584
32585 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32586
32587 [BZ #21974]
32588 * gmon/Makefile (routines): Remove bb_init_func and
32589 bb_exit_func.
32590 (elide-routines.os): Removed.
32591 * gmon/bb_exit_func.c: Likewise.
32592 * gmon/bb_init_func.c: Likewise.
32593 * include/sys/gmon.h (__bb): Likewise.
32594 (__bb_init_func): Likewise.
32595 (__bb_exit_func): Likewise.
32596 * sysdeps/alpha/bb_init_func.S: Likewise.
32597
32598 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32599
32600 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
32601 * include/setjmp.h (____longjmp_chk): Here. Add
32602 attribute_hidden.
32603
32604 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
32605
32606 [BZ #18822]
32607 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
32608 attribute_hidden.
32609 (__strspn_sse2): Likewise.
32610
32611 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32612
32613 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
32614 (close_not_cancel_no_status): Likewise.
32615 (__close_nocancel): New macro.
32616 (__close_nocancel_nostatus): Likewise.
32617 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
32618 macro.
32619 (close_not_cancel): Likewise.
32620 (close_not_cancel_no_status): Likewise.
32621 (__close_nocancel): New prototype.
32622 (__close_nocancel_nostatus): New function.
32623 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
32624 * catgets/open_catalog.c (__open_catalog): Replace
32625 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
32626 * gmon/gmon.c (write_gmon): Likewise.
32627 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
32628 * intl/loadmsgcat.c (close): Likewise.
32629 * io/ftw.c (open_dir_stream): Likewise.
32630 (ftw_startup): Likewise.
32631 * libio/fileops.c (_IO_file_open): Likewise.
32632 (_IO_file_close_mmap): Likewise.
32633 (_IO_file_close): Likewise.
32634 * libio/iopopen.c (_IO_dup2): Likewise.
32635 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32636 * locale/loadlocale.c (_nl_load_locale): Likewise.
32637 * login/utmp_file.c (pututline_file): Likewise.
32638 (endutent_file): Likewise.
32639 * misc/daemon.c (daemon): Likewise.
32640 * nscd/nscd_getai.c (__nscd_getai): Likewise.
32641 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32642 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32643 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32644 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32645 * nscd/nscd_helper.c (open_socket): Likewise.
32646 (__nscd_open_socket): Likewise.
32647 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
32648 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
32649 (__nscd_innetgr): Likewise.
32650 * nss/nss_db/db-open.c (internal_setent): Likewise.
32651 * resolv/res-close.c (__res_iclose): Likewise.
32652 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
32653 * sysdeps/posix/closedir.c (__closedir): Likewise.
32654 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
32655 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32656 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32657 (opendir_tail): Likewise.
32658 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32659 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
32660 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
32661 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
32662 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32663 (gethostid): Likewise.
32664 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32665 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32666 Likewise.
32667 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32668 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
32669 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32670 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32671 Likewise.
32672 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
32673 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
32674 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32675 Likewise.
32676 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
32677 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32678 Likewise.
32679 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32680 Likewise.
32681 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32682 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32683 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32684 __close_nocancel.
32685
32686 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
32687 (openat_not_cancel_3): Likewise.
32688 (openat64_not_cancel_3): Likewise).
32689 (openat_not_cancel_3): Likewise).
32690 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
32691 macro.
32692 (openat_not_cancel_3): Likewise.
32693 (openat64_not_cancel): Likewise.
32694 (openat64_not_cancel_3): Likewise.
32695 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
32696 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
32697 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
32698 __open{64}_nocancel.
32699 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32700 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32701 * sysdeps/posix/opendir.c (__opendirat): Likewise.
32702
32703 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32704
32705 [BZ #18822]
32706 * include/argz.h (__argz_create_sep): New function prototype.
32707 (__argz_append): Likewise.
32708 (__argz_add): Likewise.
32709 (__argz_add_sep): Likewise.
32710 (__argz_delete): Likewise.
32711 (__argz_insert): Likewise.
32712 (__argz_replace): Likewise.
32713 * string/argz.h (__argz_create_sep): Removed.
32714 (__argz_append): Likewise.
32715 (__argz_add): Likewise.
32716 (__argz_add_sep): Likewise.
32717 (__argz_delete): Likewise.
32718 (__argz_insert): Likewise.
32719 (__argz_replace): Likewise.
32720
32721 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32722
32723 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
32724 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
32725 (GNU_PROPERTY_STACK_SIZE): Likewie.
32726 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
32727 (GNU_PROPERTY_LOPROC): Likewise.
32728 (GNU_PROPERTY_HIPROC): Likewise.
32729 (GNU_PROPERTY_LOUSER): Likewise.
32730 (GNU_PROPERTY_HIUSER): Likewise.
32731 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
32732 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
32733 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
32734 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
32735 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
32736 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
32737 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
32738 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
32739 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
32740 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
32741 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
32742 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
32743 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
32744 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
32745 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
32746 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
32747 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
32748 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
32749 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
32750 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
32751 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
32752 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
32753 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
32754
32755 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32756
32757 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
32758 in C++ mode.
32759
32760 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32761
32762 [BZ #21930]
32763 * math/math.h (isinf): Check if in C or C++ mode before using
32764 __builtin_types_compatible_p, since this is a C mode feature.
32765
32766 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32767
32768 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
32769 (__write_nocancel): New macro.
32770 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
32771 Rewrite as a function prototype.
32772 (write_not_cancel): Remove macro.
32773 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
32774 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
32775 (write_gmon): Likewise.
32776 * libio/fileops.c (_IO_new_file_write): Likewise.
32777 * login/utmp_file.c (pututline_file): Likewise.
32778 (updwtmp_file): Likewise.
32779 * stdio-common/psiginfo.c (psiginfo): Likewise.
32780 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32781 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32782 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32783 Likewise.
32784 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32785 Likewise.
32786
32787 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
32788 (__read_nocancel): New macro.
32789 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32790 __read_nocancel.
32791 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
32792 macro.
32793 (__read_nocancel): New prototype.
32794 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
32795 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
32796 with __read_nocancel.
32797 * intl/loadmsgcat.c (read): Likewise.
32798 * libio/fileops.c (_IO_file_read): Likewise.
32799 * locale/loadlocale.c (_nl_load_locale): Likewise.
32800 * login/utmp_file.c (getutent_r_file): Likewise.
32801 (internal_getut_r): Likewise.
32802 (getutline_r_file): Likewise.
32803 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32804 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
32805 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32806 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32807 Likewise.
32808 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
32809 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32810 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32811 Likewise.
32812 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32813 Likewise.
32814 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32815 Likewise.
32816 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32817 Likewise.
32818 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32819
32820 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32821
32822 [BZ #21966]
32823 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
32824 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
32825 usable.
32826
32827 2017-08-17 DJ Delorie <dj@redhat.com>
32828
32829 * bug17079.c: Update to new test harness.
32830 * test-digits-dots.c: Likewise.
32831 * test-netdb.c: Likewise.
32832 * tst-field.c: Likewise.
32833 * tst-nss-getpwent.c: Likewise.
32834 * tst-nss-static.c: Likewise.
32835 * tst-nss-test1.c: Likewise.
32836 * tst-nss-test2.c: Likewise.
32837 * tst-nss-test3.c: Likewise.
32838 * tst-nss-test4.c: Likewise.
32839 * tst-nss-test5.c: Likewise.
32840
32841 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32842
32843 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
32844 (open_not_cancel_2): Likewise.
32845 (open_nocancel): New macro.
32846 (open64_nocancel): Likewise.
32847 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
32848 (open_not_cancel_2): Likewise.
32849 (__open_nocancel): New prototype.
32850 (__open64_nocancel): Likewise.
32851 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32852 __open_nocancel.
32853 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
32854 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
32855 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
32856 with __open_nocancel.
32857 * csu/check_fds.c (check_one_fd): Likewise.
32858 * gmon/gmon.c (write_gmon): Likewise.
32859 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
32860 * intl/loadmsgcat.c (open): Likewise.
32861 * libio/fileops.c (_IO_file_open): Likewise.
32862 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32863 * locale/loadlocale.c (_nl_load_locale): Likewise.
32864 * login/utmp_file.c (setutent_file): Likewise.
32865 * misc/daemon.c (daemon): Likewise.
32866 * nss/nss_db/db-open.c (internal_setent): Likewise.
32867 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32868 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
32869 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32870 (__opendir): Likewise.
32871 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32872 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32873 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32874 (gethostid): Likewise.
32875 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32876 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32877 Likewise.
32878 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32879 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
32880 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32881 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32882 Likewise.
32883 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32884 Likewise.
32885 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32886 Likewise.
32887 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
32888 Likewise.
32889 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32890 Likewise.
32891 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32892 Likewise.
32893 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32894 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32895
32896 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
32897
32898 * benchtests/bench-skeleton.c (main): Add support for
32899 latency benchmarking.
32900 * benchtests/scripts/bench.py: Add support for latency benchmarking.
32901
32902 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
32903
32904 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
32905 the startup object.
32906
32907 2017-08-17 Florian Weimer <fweimer@redhat.com>
32908
32909 * include/sys/socket.h (__opensock): Remove internal_function.
32910 * socket/opensock.c (__opensock): Likewise.
32911 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
32912
32913 2017-08-16 Joseph Myers <joseph@codesourcery.com>
32914
32915 [BZ #21944]
32916 * signal/bits/types/__sigval_t.h: New file.
32917 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
32918 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
32919 and define sigval_t using __sigval_t.
32920 * include/bits/types/__sigval_t.h: New file.
32921 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
32922 instead of <bits/types/__sigval_t.h>.
32923 (struct sigevent): Use __sigval_t instead of sigval_t.
32924 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
32925 instead of <bits/types/__sigval_t.h>.
32926 (siginfo_t): Use __sigval_t instead of sigval_t.
32927 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
32928 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
32929 (struct sigevent): Use __sigval_t instead of sigval_t.
32930 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
32931 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
32932 (siginfo_t): Use __sigval_t instead of sigval_t.
32933 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
32934
32935 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32936
32937 * NEWS: Remove "[Add new features here]" for 2.27.
32938
32939 2017-08-16 Joseph Myers <joseph@codesourcery.com>
32940
32941 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
32942 libc.so.
32943
32944 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32945
32946 * NEWS: Mention x86-64 FMA optimization.
32947
32948 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32949
32950 [BZ #21912]
32951 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32952 Add e_expf-fma.
32953 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
32954 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
32955 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
32956
32957 2017-08-16 Andreas Schwab <schwab@suse.de>
32958
32959 [BZ #16750]
32960 CVE-2009-5064
32961 * elf/ldd.bash.in: Never run file directly.
32962
32963 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
32964
32965 [BZ #21955]
32966 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
32967 (L(SP_INF_0)): Likewise.
32968
32969 2017-08-15 Florian Weimer <fweimer@redhat.com>
32970
32971 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
32972 run-built-tests.
32973
32974 2017-08-15 Florian Weimer <fweimer@redhat.com>
32975
32976 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
32977 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
32978 BROKEN_THREAD_SIGNALS code.
32979 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
32980 request_list): Remove caller_pid member used for
32981 BROKEN_THREAD_SIGNALS.
32982 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
32983 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32984 Remove BROKEN_THREAD_SIGNALS support.
32985 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
32986 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
32987
32988 2017-08-15 Florian Weimer <fweimer@redhat.com>
32989
32990 * gmon/Makefile (tests): Add tst-gmon.
32991 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
32992 Set.
32993 (tests-special): Add tst-gmon-prof.out.
32994 (tst-gmon.out): Depend on clean-tst-gmon-data.
32995 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
32996 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
32997 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
32998 startup object.
32999 * aclocal.m4 (GPROF): Set and substitute.
33000 * config.amke.in (GPROF): Set.
33001 * configure: Regenerate.
33002
33003 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33004
33005 * elf/elf.h A (NT_PPC_TAR): New macro.
33006 (NT_PPC_PPR): Likewise.
33007 (NT_PPC_DSCR): Likewise.
33008 (NT_PPC_EBB): Likewise.
33009 (NT_PPC_PMU): Likewise.
33010 (NT_PPC_TM_CGPR): Likewise.
33011 (NT_PPC_TM_CFPR): Likewise.
33012 (NT_PPC_TM_CVMX): Likewise.
33013 (NT_PPC_TM_CVSX): Likewise.
33014 (NT_PPC_TM_SPR): Likewise.
33015 (NT_PPC_TM_CTAR): Likewise.
33016 (NT_PPC_TM_CPPR): Likewise.
33017 (NT_PPC_TM_CDSCR): Likewise.
33018
33019 2017-08-15 Florian Weimer <fweimer@redhat.com>
33020
33021 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33022 regparm (2) instead of internal_function.
33023 (_MCOUNT_DECL): Adjust.
33024
33025 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33026
33027 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33028 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33029
33030 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33031
33032 * conform/data/sys/wait.h-data (si_value): Do not expect for
33033 XPG42.
33034
33035 2017-08-14 Florian Weimer <fweimer@redhat.com>
33036
33037 [BZ #21962]
33038 NSS: Create stubs for accidentally exported lookup functions.
33039 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33040 Remove declaration.
33041 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33042 (ether_hostton): Call __nss_ethers_lookup2 instead.
33043 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33044 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33045 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33046 (setup): Call __nss_netgroup_lookup2 instead.
33047 * nss/Makefile (routines): Add compat-lookup.
33048 * nss/Versions (GLIBC_2.27): Add symbol version.
33049 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33050 (DB_COMPAT_FCT): Remove.
33051 * nss/compat-lookup.c: New file.
33052 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33053 from databases.def.
33054 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33055 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33056 (netname2user): Call __nss_publickey_lookup2 instead.
33057 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33058 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33059 instead.
33060
33061 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33062 Sergei Trofimovich <slyfox@inbox.ru>
33063
33064 [BZ #21908]
33065 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33066 Rename to MMAP2_PAGE_UNIT.
33067 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33068 __OFF_T_MATCHES_OFF64_T is not defined.
33069 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33070 uint64_t.
33071 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33072 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33073
33074 2017-08-14 Florian Weimer <fweimer@redhat.com>
33075
33076 i386: Do not set internal_function.
33077 * config.h.in (USE_REGPARMS, internal_function): Remove.
33078 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33079 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33080
33081 2017-08-14 Florian Weimer <fweimer@redhat.com>
33082
33083 * elf/dl-init.c (_dl_init): Remove internal_function.
33084 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33085 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33086
33087 2017-08-14 Florian Weimer <fweimer@redhat.com>
33088
33089 * elf/rtld.c (_dl_start): Remove internal_function.
33090 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33091 _dl_start.
33092
33093 2017-08-14 Florian Weimer <fweimer@redhat.com>
33094
33095 * elf/dl-fini.c (_dl_fini): Remove internal_function
33096 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33097
33098 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33099
33100 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33101 (bit_cpu_SHSTK): Likewise.
33102 (index_cpu_IBT): Likewise.
33103 (index_cpu_SHSTK): Likewise.
33104 (reg_IBT): Likewise.
33105 (reg_SHSTK): Likewise.
33106 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33107 Handle index_cpu_IBT and index_cpu_SHSTK.
33108
33109 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33110
33111 [BZ #19982]
33112 * po/fr.po: Fix spelling mistake.
33113
33114 2017-08-13 Florian Weimer <fweimer@redhat.com>
33115
33116 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33117 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33118 (_dl_catch_error, _dl_receive_error): Likewise.
33119 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33120 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33121 (_dl_deallocate_tls): Likewise.
33122 * include/dlfcn.h (_dl_addr): Likewise.
33123 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33124 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33125 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33126 Likewise.
33127
33128 2017-08-13 Florian Weimer <fweimer@redhat.com>
33129
33130 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33131 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33132 internal_function.
33133 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33134
33135 2017-08-13 Florian Weimer <fweimer@redhat.com>
33136
33137 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33138 internal_function.
33139 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33140 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33141 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33142 internal_function from _dl_make_stack_executable_hook member.
33143 (_dl_make_stack_executable): Remove internal_function.
33144 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33145 Likewise.
33146 * sysdeps/unix/sysv/linux/dl-execstack.c
33147 (_dl_make_stack_executable): Likewise.
33148
33149 2017-08-13 Florian Weimer <fweimer@redhat.com>
33150
33151 * sysdeps/unix/sysv/linux/netlinkaccess.h
33152 (__netlink_assert_response): Remove internal_function.
33153 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33154 (__netlink_assert_response): Likewise.
33155
33156 2017-08-13 Florian Weimer <fweimer@redhat.com>
33157
33158 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33159 internal_function.
33160 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33161
33162 2017-08-13 Florian Weimer <fweimer@redhat.com>
33163
33164 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33165 internal_function.
33166 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33167 * inet/netgroup.h (__internal_setnetgrent)
33168 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33169 * inet/getnetgrent_r.c (__internal_setnetgrent)
33170 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33171 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33172 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33173 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33174 * nss/nsswitch.h (db_lookup_function): Likewise.
33175
33176 2017-08-13 Florian Weimer <fweimer@redhat.com>
33177
33178 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33179 Remove internal_function.
33180 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33181 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33182 message argument on the stack.
33183 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33184 Likeweise.
33185
33186 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33187
33188 Adapt test case data to the changes in the thousands
33189 separators.
33190
33191 [BZ #20756]
33192 * localedata/tst-langinfo.sh: Adapt test case data.
33193 * stdlib/tst-strfmon_l.c: Likewise.
33194 * stdlib/tst-strtod4.c: Likewise.
33195 * stdlib/tst-strtod5i.c: Likewise.
33196
33197 2017-08-11 Florian Weimer <fweimer@redhat.com>
33198
33199 [BZ #21242]
33200 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33201 Suppress pedantic warning resulting from statement expression.
33202 (__ASSERT_FUNCTION): Add missing __extension__.
33203
33204 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33205
33206 * benchtests/bench-memmove-large.c: Print output in JSON
33207 format.
33208 * benchtests/bench-memmove.c: Likewise.
33209
33210 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33211 * benchtests/bench-memchr.c (do_one_test): Likewise.
33212 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33213 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33214 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33215 * benchtests/bench-memmove.c (do_one_test): Likewise.
33216 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33217 * benchtests/bench-memset.c (do_one_test): Likewise.
33218 * benchtests/bench-string.h (test_init): Remove memsets.
33219
33220 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33221
33222 * manual/lang.texi
33223 (Computing the Width of an Integer Data Type): Rename section to
33224 "Width of an Integer Type". Remove inaccurate statement regarding
33225 lack of C language facilities for determining width of integer
33226 types, and reorder content to improve flow and context of
33227 discussion.
33228
33229 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33230
33231 * lang.texi (va_copy): Change standard from ISO to C99.
33232 (__va_copy): Add standard and header annotation.
33233 Update description for clarity of origins and current use.
33234
33235 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33236
33237 [BZ #21941]
33238 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33239 xssqrtqp requires operands to be in Vector Registers
33240 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33241 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33242 (__ieee754_sqrtf128): Likewise.
33243
33244 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33245
33246 * sysdeps/aarch64/memcmp.S (memcmp):
33247 Rewrite of optimized memcmp.
33248
33249 2017-08-10 Florian Weimer <fweimer@redhat.com>
33250
33251 Introduce ld.so exceptions.
33252 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33253 (_dl_exception_create, _dl_exception_create_format)
33254 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33255 (_dl_catch_exception): Declare.
33256 (_dl_catch_error): Update comment.
33257 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33258 errstring, malloced members with exception member.
33259 (_dl_out_of_memory): Remove.
33260 (fatal_error): New function, extracted from _dl_signal_error.
33261 (_dl_signal_exception, _dl_signal_cexception): New functions.
33262 (_dl_signal_error): Call _dl_exception_create to allocate an
33263 exception object.
33264 (_dl_catch_exception): New function, based on _dl_catch_error.
33265 (_dl_catch_error): Implement using _dl_catch_exception.
33266 * elf/dl-exception.c: New file.
33267 * elf/Makefile (dl-routines): Add dl-exception.
33268 (elide-routines.os): Likewise.
33269 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33270 _dl_exception_create_format, _dl_exception_free.
33271 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33272 _dl_signal_exception.
33273 * elf/dl-lookup.c (make_string): Remove.
33274 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33275 _dl_signal_cexception, _dl_exception_free.
33276 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33277 _dl_signal_exception.
33278 * elf/dl-sym.c (do_sym): Likewise.
33279 * elf/dl-version.c (make_string): Remove.
33280 (match_symbol): Use _dl_exception_create_format,
33281 _dl_signal_cexception, _dl_exception_free.
33282 (_dl_check_map_versions): Likewise.
33283 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33284 _dl_catch_exception.
33285 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33286 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33287 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33288 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33289 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33290 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33291 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33292 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33293 Likewise.
33294 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33296 (ld.so): Likewise.
33297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33298 (ld.so): Likewise.
33299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33300 Likewise.
33301 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33302 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33303 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33304 Likewise.
33305 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33306 Likewise.
33307 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33308
33309 2017-08-10 Florian Weimer <fweimer@redhat.com>
33310
33311 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33312 attribute_hidden, internal_function.
33313 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33314 internal_function.
33315
33316 2017-08-10 Florian Weimer <fweimer@redhat.com>
33317
33318 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33319 function which calls __builtin_unreachable.
33320
33321 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33322
33323 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33324 Indian monetary formatting
33325 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33326 test cases.
33327
33328 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33329
33330 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33331 Fix typo in comment.
33332
33333 [BZ #21928]
33334 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33335 PTRACE_SEIZE_DEVEL): Remove.
33336 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33337 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33338 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33339 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33340 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33341
33342 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33343
33344 * posix/bits/types.h (__qaddr_t): Remove.
33345
33346 [BZ #21457]
33347 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33348 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33349 __glibc_reserved1.
33350 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33351 (ucontext_t): Use __ctx with uc_flags.
33352 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33353 (__ctxt): Likewise.
33354 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33355 __glibc_reserved1.
33356 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33357 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33358 __glibc_reserved1.
33359 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33360 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33361 __glibc_reserved1.
33362 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33363 macro.
33364 (ucontext_t): Use __ctx with uc_flags.
33365 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33366 (ucontext_t): Use __ctx with uc_flags.
33367 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33368 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33369 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33370 (ucontext_t): Use __ctx with uc_flags.
33371 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33372 undefine further down.
33373 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33374 __glibc_reserved1.
33375 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33376 undefine further down.
33377 (ucontext_t): Use __ctx with uc_flags.
33378 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33379 undefine further down.
33380 (ucontext_t): Use __ctx with uc_flags.
33381 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33382 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33383 Rename uc_pad to __glibc_reserved1.
33384 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33385 undefine further down.
33386 (ucontext_t): Use __ctx with uc_flags.
33387 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33388 further down.
33389 (ucontext_t): Use __ctx with uc_flags.
33390 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33391 __ctx with uc_flags.
33392 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33393 (ucontext_t): Use __ctx with uc_flags.
33394 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33395 __ctx with uc_flags.
33396
33397 2017-08-09 Florian Weimer <fweimer@redhat.com>
33398
33399 [BZ #21932]
33400 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33401 before early return.
33402
33403 2017-08-09 Andreas Schwab <schwab@suse.de>
33404
33405 [BZ #21041]
33406 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33407 renamed alias.
33408
33409 [BZ #21041]
33410 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33411 tst-compat-forwarder.
33412 (modules-names): Add tst-compat-forwarder-mod.
33413 ($(objpfx)tst-compat-forwarder): Depend on
33414 $(objpfx)tst-compat-forwarder-mod.so.
33415 * nptl/tst-compat-forwarder.c: New file.
33416 * nptl/tst-compat-forwarder-mod.c: New file.
33417
33418 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33419
33420 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33421 comments.
33422
33423 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33424 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33425 memcpy_falkor.
33426 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33427 Bump.
33428 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33429 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33430 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33431 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33432 Add falkor.
33433 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33434 New macro.
33435
33436 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33437
33438 [BZ #759]
33439 * manual/setjmp.texi (getcontex): Document uc_stack value
33440 compatibility differences.
33441
33442 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33443
33444 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33445 (old_malloc_hook): Likewise.
33446 (old_memalign_hook): Likewise.
33447 (old_realloc_hook): Likewise.
33448 (struct hdr): Likewise.
33449 (flood): Likewise.
33450 (freehook): Likewise.
33451 (mallochook): Likewise.
33452 (memalignhook): Likewise.
33453 (reallochook): Likewise.
33454 (mprobe): Likewise.
33455 * malloc/mtrace.c (mallwatch): Likewise.
33456 (tr_old_free_hook): Likewise.
33457 (tr_old_malloc_hook): Likewise.
33458 (tr_old_realloc_hook): Likewise.
33459 (tr_old_memalign_hook): Likewise.
33460 (tr_where): Likewise.
33461 (lock_and_info): Likewise.
33462 (tr_freehook): Likewise.
33463 (tr_mallochook): Likewise.
33464 (tr_reallochook): Likewise.
33465 (tr_memalignhook): Likewise.
33466 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33467 * misc/mmap.c (__mmap): Likewise.
33468 * misc/mmap64.c (__mmap64): Likewise.
33469 * misc/mprotect.c (__mprotect): Likewise.
33470 * misc/msync.c (msync): Likewise.
33471 * misc/munmap.c (__munmap): Likewise.
33472 * posix/posix_madvise.c (posix_madvise): Likewise.
33473 * socket/send.c (__send): Likewise.
33474 * socket/sendto.c (__sendto): Likewise.
33475 * socket/setsockopt.c (__setsockopt): Likewise.
33476 * string/memcmp.c (__ptr_t): Remove macro.
33477 (MEMCMP): Use void * instead of ptr_t.
33478 * string/memrchr.c (__ptr_t): Remove macro.
33479 (__memrchr): Use void * instead of ptr_t.
33480 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33481 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33482 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33483 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33484 * sysdeps/mach/msync.c (msync): Likewise.
33485 * sysdeps/mach/munmap.c (__munmap): Likewise.
33486 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33487 Likewise.
33488 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33489 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33490 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33491 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33492 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33493 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33494 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33495 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33496 Likewise.
33497 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33498 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33499 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33500 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33501 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33502 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33503 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33504 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33505 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33506 Likewise.
33507 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33508 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33509 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33510 (MEMCMP): Use void * instead of ptr_t.
33511 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33512 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33513
33514 2017-08-08 Florian Weimer <fweimer@redhat.com>
33515
33516 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33517 return statement.
33518
33519 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33520
33521 [BZ #21913]
33522 * csu/libc-tls.c: Include <startup.h> first.
33523 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33524 * elf/dl-tunables.c: Include <startup.h> first.
33525 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33526 * sysdeps/generic/startup.h: New file.
33527 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33528 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
33529 (I386_USE_SYSENTER): New. Defined to 0.
33530
33531 2017-08-08 Andreas Schwab <schwab@suse.de>
33532
33533 [BZ #21041]
33534 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
33535 * nptl/pt-system.c (system): Likewise.
33536
33537 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33538
33539 [BZ #21780]
33540 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
33541 EOPNOTSUPP.
33542 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
33543 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
33544 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
33545 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
33546 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
33547 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
33548 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
33549
33550 2017-08-07 Joseph Myers <joseph@codesourcery.com>
33551
33552 [BZ #21899]
33553 * bits/sigaction.h (struct sigaction): Define sa_handler and
33554 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
33555 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33556 [__USE_XOPEN_EXTENDED].
33557 (SA_RESTART): Likewise.
33558 (SA_NODEFER): Likewise.
33559 (SA_RESETHAND): Likewise.
33560 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
33561 (struct sigaction): Define sa_handler and sa_sigaction using union
33562 also for [__USE_XOPEN_EXTENDED].
33563 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33564 [__USE_XOPEN_EXTENDED].
33565 (SA_RESTART): Likewise.
33566 (SA_NODEFER): Likewise.
33567 (SA_RESETHAND): Likewise.
33568 * sysdeps/unix/sysv/linux/bits/sigaction.h
33569 (struct sigaction): Define sa_handler and sa_sigaction using union
33570 also for [__USE_XOPEN_EXTENDED].
33571 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33572 [__USE_XOPEN_EXTENDED].
33573 (SA_RESTART): Likewise.
33574 (SA_NODEFER): Likewise.
33575 (SA_RESETHAND): Likewise.
33576 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
33577 (struct sigaction): Define sa_handler and sa_sigaction using union
33578 also for [__USE_XOPEN_EXTENDED].
33579 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33580 [__USE_XOPEN_EXTENDED].
33581 (SA_RESTART): Likewise.
33582 (SA_NODEFER): Likewise.
33583 (SA_RESETHAND): Likewise.
33584 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
33585 (struct sigaction): Define sa_handler and sa_sigaction using union
33586 also for [__USE_XOPEN_EXTENDED].
33587 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33588 [__USE_XOPEN_EXTENDED].
33589 (SA_RESTART): Likewise.
33590 (SA_NODEFER): Likewise.
33591 (SA_RESETHAND): Likewise.
33592 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
33593 (struct sigaction): Define sa_handler and sa_sigaction using union
33594 also for [__USE_XOPEN_EXTENDED].
33595 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33596 [__USE_XOPEN_EXTENDED].
33597 (SA_RESTART): Likewise.
33598 (SA_NODEFER): Likewise.
33599 (SA_RESETHAND): Likewise.
33600 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
33601 (struct sigaction): Define sa_handler and sa_sigaction using union
33602 also for [__USE_XOPEN_EXTENDED].
33603 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33604 [__USE_XOPEN_EXTENDED].
33605 (SA_RESTART): Likewise.
33606 (SA_NODEFER): Likewise.
33607 (SA_RESETHAND): Likewise.
33608 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33609 (struct sigaction): Define sa_handler and sa_sigaction using union
33610 also for [__USE_XOPEN_EXTENDED].
33611 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33612 [__USE_XOPEN_EXTENDED].
33613 (SA_RESTART): Likewise.
33614 (SA_NODEFER): Likewise. Define directly rather than as alias.
33615 (SA_RESETHAND): Likewise.
33616 (SA_INTERRUPT): Define only for [__USE_MISC].
33617 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
33618 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
33619 [__USE_MISC].
33620 (SA_STACK): Define only for [__USE_MISC].
33621 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
33622 (struct sigaction): Define sa_handler and sa_sigaction using union
33623 also for [__USE_XOPEN_EXTENDED].
33624 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33625 [__USE_XOPEN_EXTENDED].
33626 (SA_RESTART): Likewise.
33627 (SA_NODEFER): Likewise.
33628 (SA_RESETHAND): Likewise.
33629 (SA_NOPTRACE): Define only for [__USE_MISC].
33630
33631 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
33632 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
33633 (struct catalog_info): Likewise.
33634 * inet/htontest.c (lo): Likewise.
33635 (foo): Likewise.
33636 * inet/inet_lnaof.c (inet_lnaof): Likewise.
33637 * inet/inet_net.c (inet_network): Likewise.
33638 * inet/inet_netof.c (inet_netof): Likewise.
33639 * inet/rcmd.c (__ivaliduser): Likewise.
33640 (iruserok): Likewise.
33641 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
33642 * locale/programs/locale-spec.c (locale_special): Likewise.
33643 * nis/nis_findserv.c (struct findserv_req): Likewise.
33644 (__nis_findfastest_with_timeout): Likewise.
33645 * nss/test-netdb.c (test_network): Likewise.
33646 * resolv/inet_neta.c (inet_neta): Likewise.
33647 * resolv/ns_date.c (ns_datetosecs): Likewise.
33648 (SECS_PER_DAY): Likewise.
33649 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
33650 Likewise.
33651 * resolv/res_comp.c (__putlong): Likewise.
33652 (__putshort): Likewise.
33653 (_getlong): Likewise.
33654 (_getshort): Likewise.
33655 * resolv/res_debug.c (p_time): Likewise.
33656 (precsize_ntoa): Likewise.
33657 (precsize_aton): Likewise.
33658 (latlon2ul): Likewise.
33659 (loc_aton): Likewise.
33660 (loc_ntoa): Likewise.
33661 * resolv/res_hconf.c (struct netaddr): Likewise.
33662 (_res_hconf_reorder_addrs): Likewise.
33663 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
33664 (clnttcp_control): Likewise.
33665 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
33666 (clntudp_control): Likewise.
33667 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
33668 (clntunix_control): Likewise.
33669 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
33670 * sunrpc/rpc/auth.h (union des_block): Likewise.
33671 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
33672 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
33673 (xdrrec_create): Likewise.
33674 (xdrrec_endofrecord): Likewise.
33675 (flush_out): Likewise.
33676 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
33677 (xdrstdio_putlong): Likewise.
33678 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
33679 Likewise.
33680
33681 * misc/sys/cdefs.h (__long_double_t): Remove.
33682 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
33683 instead of __long_double_t,
33684 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
33685
33686 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
33687
33688 * benchtests/scripts/compare_strings.py: Avoid display error when
33689 running on a text terminal.
33690
33691 * benchtests/scripts/compare_strings.py (main): Add an
33692 optional -base option.
33693 (process_results): New argument base_func.
33694
33695 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
33696 hardcoding memcpy.
33697 * benchtests/bench-memcpy-large.c (test_name): Likewise.
33698 * benchtests/bench-memcpy-random.c (test_name): Likewise.
33699
33700 2017-08-07 Andreas Schwab <schwab@suse.de>
33701
33702 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
33703 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
33704 * intl/Makefile ($(objpfx)tst-gettext.out)
33705 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
33706 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
33707 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
33708 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
33709 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
33710 * posix/Makefile ($(objpfx)globtest.out)
33711 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
33712 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
33713 ($(objpfx)tst-printf.out): Likewise.
33714 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
33715 ($(objpfx)tst-setcontext3.out): Likewise.
33716
33717 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
33718
33719 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33720 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
33721 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
33722 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
33723 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
33724 and mptan-fma.
33725 (CFLAGS-doasin-fma.c): New.
33726 (CFLAGS-dosincos-fma.c): Likewise.
33727 (CFLAGS-e_asin-fma.c): Likewise.
33728 (CFLAGS-e_atan2-fma.c): Likewise.
33729 (CFLAGS-e_exp-fma.c): Likewise.
33730 (CFLAGS-e_log-fma.c): Likewise.
33731 (CFLAGS-e_pow-fma.c): Likewise.
33732 (CFLAGS-halfulp-fma.c): Likewise.
33733 (CFLAGS-mpa-fma.c): Likewise.
33734 (CFLAGS-mpatan-fma.c): Likewise.
33735 (CFLAGS-mpatan2-fma.c): Likewise.
33736 (CFLAGS-mpexp-fma.c): Likewise.
33737 (CFLAGS-mplog-fma.c): Likewise.
33738 (CFLAGS-mpsqrt-fma.c): Likewise.
33739 (CFLAGS-mptan-fma.c): Likewise.
33740 (CFLAGS-s_atan-fma.c): Likewise.
33741 (CFLAGS-sincos32-fma.c): Likewise.
33742 (CFLAGS-slowexp-fma.c): Likewise.
33743 (CFLAGS-slowpow-fma.c): Likewise.
33744 (CFLAGS-s_sin-fma.c): Likewise.
33745 (CFLAGS-s_tan-fma.c): Likewise.
33746 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
33747 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
33748 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
33749 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
33750 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
33751 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
33752 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
33753 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
33754 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
33755 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
33756 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
33757 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
33758 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
33759 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
33760 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
33761 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
33762 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
33763 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
33764 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
33765 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
33766 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
33767 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
33768 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
33769 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
33770 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
33771 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
33772 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
33773 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
33774 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
33775 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
33776 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
33777
33778 2017-08-04 Joseph Myers <joseph@codesourcery.com>
33779
33780 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
33781 (min_of_type_f): New macro.
33782 (min_of_type_): Likewise.
33783 (min_of_type_l): Likewise.
33784 (min_of_type_f128): Likewise.
33785 (min_of_type): Define using __MATH_TG and taking an expression
33786 argument.
33787 (math_check_force_underflow): Pass expression instead of type to
33788 min_of_type.
33789 (math_check_force_underflow_nonneg): Likewise.
33790
33791 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33792
33793 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33794 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
33795 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
33796
33797 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33798
33799 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33800 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
33801 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
33802 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
33803 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
33804 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
33805 memcpy_chk-nonshared, mempcpy_chk-nonshared,
33806 memmove_chk-nonshared and memset_chk-nonshared
33807 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
33808 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
33809 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
33810 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
33811 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
33812 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
33813 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
33814 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
33815 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
33816 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
33817 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
33818 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
33819 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
33820 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
33821 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
33822 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
33823 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
33824 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
33825 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
33826 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
33827 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
33828 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
33829 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
33830 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
33831 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
33832 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
33833 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
33834 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
33835 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
33836 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
33837 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
33838 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
33839 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
33840 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
33841 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
33842 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
33843 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
33844 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
33845 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
33846 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
33847 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
33848 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
33849 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
33850 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
33851 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
33852 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
33853 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
33854 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
33855 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
33856 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
33857 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
33858 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
33859 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
33860 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
33861 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
33862 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
33863 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
33864 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
33865 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
33866 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
33867 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
33868 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
33869 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
33870 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
33871 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
33872 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
33873 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
33874 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
33875 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
33876 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
33877 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
33878 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
33879 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
33880 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
33881 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
33882 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
33883 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
33884 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
33885 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
33886 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
33887 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
33888 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
33889 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
33890 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
33891 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
33892 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
33893 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
33894 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
33895 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
33896 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
33897 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
33898 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
33899 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
33900 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
33901 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
33902 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
33903 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
33904 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
33905 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
33906 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
33907 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
33908 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
33909 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
33910 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
33911 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
33912 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
33913 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
33914 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
33915
33916 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33917
33918 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
33919 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
33920 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
33921 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
33922 svml_d_log2_core-sse2, svml_d_log4_core-sse,
33923 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
33924 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
33925 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
33926 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
33927 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
33928 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
33929 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
33930 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
33931 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
33932 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
33933 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
33934 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
33935 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
33936 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
33937 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
33938 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
33939 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
33940 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
33941 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
33942 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
33943 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
33944 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
33945 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
33946 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
33947 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
33948 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
33949 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
33950 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
33951 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
33952 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
33953 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
33954 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
33955 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
33956 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
33957 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
33958 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
33959 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
33960 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
33961 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
33962 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
33963 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
33964 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
33965 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
33966 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
33967 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
33968 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
33969 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
33970 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
33971 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
33972 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
33973 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
33974 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
33975 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
33976 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
33977 ...
33978 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
33979 Don't include <sysdep.h> nor <init-arch.h>.
33980 (_ZGVbN2v_cos): Removed.
33981 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
33982 ...
33983 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
33984 Don't include <sysdep.h> nor <init-arch.h>.
33985 (_ZGVdN4v_cos): Removed.
33986 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
33987 ...
33988 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
33989 Don't include <sysdep.h> nor <init-arch.h>.
33990 (_ZGVeN8v_cos): Removed.
33991 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
33992 ...
33993 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
33994 Don't include <sysdep.h> nor <init-arch.h>.
33995 (_ZGVbN2v_exp): Removed.
33996 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
33997 ...
33998 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
33999 Don't include <sysdep.h> nor <init-arch.h>.
34000 (_ZGVdN4v_exp): Removed.
34001 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34002 ...
34003 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34004 Don't include <sysdep.h> nor <init-arch.h>.
34005 (_ZGVeN8v_exp): Removed.
34006 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34007 ...
34008 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34009 Don't include <sysdep.h> nor <init-arch.h>.
34010 (_ZGVbN2v_log): Removed.
34011 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34012 ...
34013 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34014 Don't include <sysdep.h> nor <init-arch.h>.
34015 (_ZGVdN4v_log): Removed.
34016 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34017 ...
34018 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34019 Don't include <sysdep.h> nor <init-arch.h>.
34020 (_ZGVeN8v_log): Removed.
34021 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34022 ...
34023 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34024 Don't include <sysdep.h> nor <init-arch.h>.
34025 (_ZGVbN2vv_pow): Removed.
34026 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34027 ...
34028 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34029 Don't include <sysdep.h> nor <init-arch.h>.
34030 (_ZGVdN4vv_pow): Removed.
34031 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34032 ...
34033 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34034 Don't include <sysdep.h> nor <init-arch.h>.
34035 (_ZGVeN8vv_pow): Removed.
34036 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34037 ...
34038 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34039 Don't include <sysdep.h> nor <init-arch.h>.
34040 (_ZGVbN2v_sin): Removed.
34041 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34042 ...
34043 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34044 Don't include <sysdep.h> nor <init-arch.h>.
34045 (_ZGVbN4v_sin): Removed.
34046 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34047 ...
34048 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34049 Don't include <sysdep.h> nor <init-arch.h>.
34050 (_ZGVbN8v_sin): Removed.
34051 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34052 ...
34053 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34054 Don't include <sysdep.h> nor <init-arch.h>.
34055 (_ZGVbN2vvv_sincos): Removed.
34056 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34057 ...
34058 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34059 Don't include <sysdep.h> nor <init-arch.h>.
34060 (_ZGVdN4vvv_sincos): Removed.
34061 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34062 ...
34063 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34064 Don't include <sysdep.h> nor <init-arch.h>.
34065 (_ZGVeN8vvv_sincos): Removed.
34066 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34067 ...
34068 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34069 Don't include <sysdep.h> nor <init-arch.h>.
34070 (_ZGVeN16v_cosf): Removed.
34071 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34072 ...
34073 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34074 Don't include <sysdep.h> nor <init-arch.h>.
34075 (_ZGVbN4v_cosf): Removed.
34076 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34077 ...
34078 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34079 Don't include <sysdep.h> nor <init-arch.h>.
34080 (_ZGVdN8v_cosf): Removed.
34081 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34082 ...
34083 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34084 Don't include <sysdep.h> nor <init-arch.h>.
34085 (_ZGVeN16v_expf): Removed.
34086 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34087 ...
34088 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34089 Don't include <sysdep.h> nor <init-arch.h>.
34090 (_ZGVbN4v_expf): Removed.
34091 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34092 ...
34093 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34094 Don't include <sysdep.h> nor <init-arch.h>.
34095 (_ZGVdN8v_expf): Removed.
34096 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34097 ...
34098 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34099 Don't include <sysdep.h> nor <init-arch.h>.
34100 (_ZGVeN16v_logf): Removed.
34101 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34102 ...
34103 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34104 Don't include <sysdep.h> nor <init-arch.h>.
34105 (_ZGVbN4v_logf): Removed.
34106 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34107 ...
34108 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34109 Don't include <sysdep.h> nor <init-arch.h>.
34110 (_ZGVdN8v_logf): Removed.
34111 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34112 ...
34113 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34114 Don't include <sysdep.h> nor <init-arch.h>.
34115 (_ZGVeN16vv_powf): Removed.
34116 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34117 ...
34118 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34119 Don't include <sysdep.h> nor <init-arch.h>.
34120 (_ZGVbN4vv_powf): Removed.
34121 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34122 ...
34123 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34124 Don't include <sysdep.h> nor <init-arch.h>.
34125 (_ZGVdN8vv_powf): Removed.
34126 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34127 ...
34128 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34129 Don't include <sysdep.h> nor <init-arch.h>.
34130 (_ZGVeN16vvv_sincosf): Removed.
34131 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34132 ...
34133 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34134 Don't include <sysdep.h> nor <init-arch.h>.
34135 (_ZGVbN4vvv_sincosf): Removed.
34136 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34137 ...
34138 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34139 Don't include <sysdep.h> nor <init-arch.h>.
34140 (_ZGVdN8vvv_sincosf): Removed.
34141 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34142 ...
34143 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34144 Don't include <sysdep.h> nor <init-arch.h>.
34145 (_ZGVeN16v_sinf): Removed.
34146 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34147 ...
34148 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34149 Don't include <sysdep.h> nor <init-arch.h>.
34150 (_ZGVbN4v_sinf): Removed.
34151 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34152 ...
34153 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34154 Don't include <sysdep.h> nor <init-arch.h>.
34155 (_ZGVdN8v_sinf): Removed.
34156
34157 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34158
34159 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34160 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34161 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34162 s_rint-sse4_1 and s_rintf-sse4_1.
34163 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34164 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34165 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34166 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34167 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34168 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34169 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34170 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34171 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34172 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34173 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34174 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34175 (__ceil): Removed.
34176 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34177 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34178 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34179 (__ceilf): Removed.
34180 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34181 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34182 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34183 (__floor): Removed.
34184 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34185 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34186 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34187 (__floorf): Removed.
34188 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34189 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34190 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34191 (__nearbyint): Removed.
34192 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34193 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34194 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34195 (__nearbyintf): Removed.
34196 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34197 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34198 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34199 (__rint): Removed.
34200 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34201 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34202 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34203 (__rintf): Removed.
34204
34205 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34206
34207 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34208 SHARED. Avoid dynamic relocation against main in static PIE.
34209
34210 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34211
34212 [BZ #21815]
34213 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34214 (LDFLAGS-tst-prelink): Likewise.
34215
34216 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34217
34218 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34219 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34220 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34221 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34222 (INTERNAL_SYSCALL_NCS): Likewise.
34223 (LOADARGS_1): Likewise.
34224 (LOADARGS_5): Likewise.
34225 (RESTOREARGS_1): Likewise.
34226 (RESTOREARGS_5): Likewise.
34227
34228 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34229
34230 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34231 (MEMPCPY_SYMBOL): Likewise.
34232 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34233 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34234 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34235 in libc.a.
34236 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34237 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34238 Likewise.
34239 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34240 (__hidden_ver1): Don't use in libc.a.
34241 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34242 (__mempcpy): Don't create a weak alias in libc.a.
34243 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34244 libc.a.
34245 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34246 (__hidden_ver1): Don't use in libc.a.
34247
34248 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34249
34250 * config.make.in (have-insert): New.
34251 * configure.ac (libc_cv_insert): New. Set to yes if linker
34252 supports INSERT in linker script.
34253 (AC_SUBST(libc_cv_insert): New.
34254 * configure: Regenerated.
34255 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34256 if $(have-insert) == yes.
34257
34258 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34259
34260 * elf/Makefile (tests): Add vismain only if
34261 $(have-protected-data) == yes.
34262 (tests-pie): Likewise.
34263
34264 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34265
34266 [BZ #21871]
34267 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34268 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34269
34270 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34271
34272 [BZ #21790]
34273 * sysdeps/i386/i586/memset.S
34274 (__memset_zero_constant_len_parameter): Removed.
34275 * sysdeps/i386/i686/memset.S
34276 (__memset_zero_constant_len_parameter): Likewise.
34277 * sysdeps/i386/i686/multiarch/memset_chk.S
34278 (__memset_zero_constant_len_parameter): Likewise.
34279 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34280 Likewise.
34281
34282 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34283
34284 * stdlib/getentropy.c (getentropy): Change return type to int.
34285
34286 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34287
34288 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34289
34290 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34291
34292 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34293 u_intN_t.
34294 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34295 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34296 Likewise.
34297 (ieee_float_shape_type): Likewise.
34298 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34299 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34300 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34301 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34302 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34303 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34304 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34305 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34306 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34307 Likewise.
34308 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34309 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34310 (__ieee754_yn): Likewise.
34311 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34312 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34313 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34314 Likewise.
34315 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34316 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34317 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34318 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34319 (__erfc): Likewise.
34320 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34321 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34322 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34323 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34324 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34325 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34326 Likewise.
34327 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34328 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34329 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34330 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34331 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34332 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34333 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34334 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34335 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34336 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34337 (__issignaling): Likewise.
34338 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34339 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34340 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34341 Likewise.
34342 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34343 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34344 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34345 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34346 Likewise.
34347 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34348 Likewise.
34349 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34350 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34351 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34352 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34353 (__erfcf): Likewise.
34354 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34355 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34356 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34357 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34358 Likewise.
34359 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34360 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34361 Likewise.
34362 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34363 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34364 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34365 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34366 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34367 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34368 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34369 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34370 Likewise.
34371 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34372 Likewise.
34373 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34374 Likewise.
34375 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34376 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34377 Likewise.
34378 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34379 Likewise.
34380 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34381 (__ieee754_ynl): Likewise.
34382 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34383 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34384 Likewise.
34385 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34386 Likewise.
34387 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34388 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34389 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34390 Likewise.
34391 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34392 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34393 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34394 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34395 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34396 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34397 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34398 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34399 Likewise.
34400 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34401 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34402 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34403 Likewise.
34404 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34405 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34406 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34407 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34408 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34409 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34410 Likewise.
34411 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34412 Likewise.
34413 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34414 Likewise.
34415 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34416 Likewise.
34417 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34418 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34419 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34420 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34421 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34422 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34423 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34424 Likewise.
34425 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34426 Likewise.
34427 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34428 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34429 Likewise.
34430 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34431 (__ieee754_remainderl): Likewise.
34432 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34433 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34434 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34435 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34436 Likewise.
34437 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34438 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34439 Likewise.
34440 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34441 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34442 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34443 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34444 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34445 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34446 Likewise.
34447 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34448 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34449 (__ieee754_y0l): Likewise.
34450 (pzero): Likewise.
34451 (qzero): Likewise.
34452 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34453 (__ieee754_y1l): Likewise.
34454 (pone): Likewise.
34455 (qone): Likewise.
34456 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34457 (__ieee754_ynl): Likewise.
34458 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34459 (__ieee754_lgammal_r): Likewise.
34460 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34461 Likewise.
34462 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34463 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34464 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34465 (__erfcl): Likewise.
34466 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34467 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34468 Likewise.
34469 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34470 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34471 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34472 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34473 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34474 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34475 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34476 Likewise.
34477 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34478 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34479 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34480 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34481 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34482 Likewise.
34483 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34484 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34485 Likewise.
34486 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34487 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34488 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34489 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34490 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34491
34492 2017-08-03 Florian Weimer <fweimer@redhat.com>
34493
34494 [BZ #21885]
34495 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34496 on memory allocation failure.
34497
34498 2017-08-03 Alan Modra <amodra@gmail.com>
34499
34500 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34501 tst-tlsopt-powerpc.c with function name change and no test harness.
34502 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34503 Call tls_get_addr_opt_test.
34504 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34505 (modules-names): Add mod-tlsopt-powerpc.
34506 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34507 (tst-tlsopt-powerpc): Depend on .so.
34508 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34509 define. Expand use in TLS_GD and TLS_LD.
34510
34511 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34512
34513 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34514 function.
34515 * sysdeps/posix/shm_open.c: Include <pthread.h>.
34516
34517 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34518
34519 [BZ #21686]
34520 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34521 comparing size with that of double.
34522 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34523 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34524 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34525 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34526 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34527 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34528 unsigned __int128 types.
34529
34530 2017-08-02 Steve Ellcey <sellcey@cavium.com>
34531
34532 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
34533 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
34534 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
34535 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
34536 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
34537
34538 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34539
34540 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
34541
34542 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34543
34544 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
34545 of SHARED.
34546 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
34547 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
34548 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34549 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
34550 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
34551 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
34552 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
34553
34554 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34555
34556 [BZ #21685]
34557 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
34558 bit-field expressions passed to sizeof or typeof.
34559 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34560 (__TGMATH_F128): Likewise.
34561 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34562 (__TGMATH_CF128): Likewise.
34563 (__TGMATH_UNARY_REAL_ONLY): Likewise.
34564 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
34565 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
34566 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
34567 (__TGMATH_BINARY_REAL_ONLY): Likewise.
34568 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34569 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34570 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34571 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34572 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
34573 (__TGMATH_UNARY_REAL_IMAG): Likewise.
34574 (__TGMATH_UNARY_IMAG): Likewise.
34575 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
34576 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34577 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
34578 type.
34579 (define_vars_for_type): Handle bit_field type specially.
34580 (Tests.__init__): Declare structure with bit-field element.
34581
34582 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34583
34584 [BZ #21791]
34585 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
34586 (MEMCPY_CHK): Define only if SHARED is defined.
34587 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
34588 Likewise.
34589 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
34590 Likewise.
34591
34592 See ChangeLog.18 for earlier changes.