]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
4cb846f476f73a938047a3d57058cb40757ff286
[thirdparty/glibc.git] / ChangeLog
1 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4 initialization for LLL_LOCK_INITIALIZER different than 0.
5 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
6 Assume LLL_LOCK_INITIALIZER being 0.
7 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
8 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
9 Likewise.
10 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
11 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
12
13 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
14 Optimize futex call and add systemtap probe.
15
16 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
17 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
18 __libc_disable_asynccancel, __librt_enable_asynccancel,
19 __libc_disable_asynccancel, __librt_enable_asynccancel,
20 __librt_disable_asynccancel): Move to ...
21 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
22 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
23 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
24 * sysdeps/generic/single-thread.h: New file.
25 * sysdeps/unix/sysdep.h: Include single-thread.h.
26 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
27 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
28
29 2019-05-08 Mike FABIAN <mfabian@redhat.com>
30
31 [BZ #24535]
32 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
33 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
34 Unicode 12.1.0.
35 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
36 * localedata/unicode-gen/PropList.txt: Likewise.
37 * localedata/unicode-gen/UnicodeData.txt: Likewise.
38 * localedata/charmaps/UTF-8: Regenerate.
39 * localedata/locales/i18n_ctype: Likewise.
40 * localedata/locales/tr_TR: Likewise.
41 * localedata/locales/translit_circle: Likewise.
42 * localedata/locales/translit_cjk_compat: Likewise.
43 * localedata/locales/translit_combining: Likewise.
44 * localedata/locales/translit_compat: Likewise.
45 * localedata/locales/translit_font: Likewise.
46 * localedata/locales/translit_fraction: Likewise.
47
48 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
49
50 [BZ #24531]
51 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
52 (do_set_tcache_count): Only update if count is small enough.
53 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
54
55 2019-05-10 Florian Weimer <fweimer@redhat.com>
56
57 * nptl/sem_close.c (struct walk_closure): Define.
58 (walker): Adjust for __twalk_r.
59 (sem_close): Call __twalk_r.
60
61 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
62
63 * support/timespec.c (test_timespec_before_impl,
64 test_timespec_equal_or_after_impl): print timespec member as intmax_t
65 insted of long int.
66
67 2019-05-09 Mike Crowe <mac@mcrowe.com>
68
69 * nptl/tst-abstime.c: Use libsupport.
70
71 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
72 small bug where only tv.tv_usec was checked which could cause an
73 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
74 than a second.
75
76 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
77 libsupport.
78
79 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
80 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
81
82 * nptl/tst-cond11.c: Use libsupport.
83
84 * support/timespec.h: New file. Provide timespec helper functions
85 along with macros in the style of those in check.h.
86 * support/timespec.c: New file. Implement check functions declared
87 in support/timespec.h.
88 * support/timespec-add.c: New file from gnulib containing
89 timespec_add implementation that handles overflow.
90 * support/timespec-sub.c: New file from gnulib containing
91 timespec_sub implementation that handles overflow.
92 * support/README: Mention timespec.h.
93
94 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
95
96 [BZ #24537]
97 * nptl/Makefile: Move tst-eintr1 to xtests.
98
99 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
100
101 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
102 TRUNC handling.
103 (round_mode): Add definition for TRUNC.
104 * sysdeps/powerpc/fpu/s_trunc.c: New file.
105 * sysdeps/powerpc/fpu/s_truncf.c: New file.
106 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
107 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
108 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
109 Likewise.
110 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
111 Likewise.
112 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
113 Likewise.
114 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
115 Likewise.
116 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
117 file.
118 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
119 Likewise.
120 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
121 Likewise.
122 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
123 Likewise.
124 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
125 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
126 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
127 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
128 s_truncf-power5+, and s_truncf-ppc64.
129 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
130 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
131 file.
132 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
134 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
135 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
136 file.
137 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
138 Likewise.
139 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
140 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
141 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
142 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
143 s_truncf-power5+, and s_truncf-ppc64.
144 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
145 file.
146 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
147 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
148 Likewise.
149 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
150 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
151 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
152 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
153 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
154
155 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
156 ROUND handling.
157 (round_mode): Add definition for ROUND.
158 (round_to_integer_float): Likewise.
159 * sysdeps/powerpc/fpu/s_round.c: New file.
160 * sysdeps/powerpc/fpu/s_roundf.c: New file.
161 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
162 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
163 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
164 Likewise.
165 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
166 Likewise.
167 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
168 Likewise.
169 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
170 Likewise.
171 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
172 file.
173 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
174 Likewise.
175 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
176 Likewise.
177 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
178 Likewise.
179 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
180 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
181 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
182 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
183 s_roundf-power5+, and s_roundf-ppc64.
184 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
185 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
186 file.
187 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
188 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
189 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
190 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
191 file.
192 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
193 Likewise.
194 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
195 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
196 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
197 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
198 s_roundf-power5+, and s_roundf-ppc64.
199 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
200 file.
201 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
202 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
203 Likewise.
204 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
205 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
206 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
207 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
208 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
209
210 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
211 Add FLOOR option.
212 (round_mode): Add definition for FLOOR.
213 * sysdeps/powerpc/fpu/s_floor.c: New file.
214 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
215 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
216 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
217 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
218 Remove file.
219 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
220 Likewise
221 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
222 Likewise.
223 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
224 Likewise.
225 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
226 New file.
227 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
228 Likewise.
229 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
230 Likewise.
231 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
232 Likewise.
233 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
234 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
235 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
236 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
237 s_floorf-power5+, and s_floorf-ppc64.
238 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
239 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
240 file.
241 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
243 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
244 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
245 file.
246 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
247 Likewise.
248 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
249 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
250 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
251 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
252 s_floorf-power5+, and s_floorf-ppc64.
253 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
254 file.
255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
256 file.
257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
258 Likewise.
259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
260 Likewise.
261 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
262 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
263 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
264 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
265
266 2019-05-08 Mike Crowe <mac@mcrowe.com>
267
268 * support/xclock_gettime.c (xclock_gettime): New file. Provide
269 clock_gettime wrapper for use in tests that fails the test rather
270 than returning failure.
271
272 * support/xtime.h: New file to declare xclock_gettime.
273
274 * support/Makefile: Add xclock_gettime.c.
275
276 * support/README: Mention xtime.h.
277
278 2019-05-08 Florian Weimer <fweimer@redhat.com>
279
280 malloc/tst-mallocfork2: Use process-shared barriers.
281 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
282 (signal_count, sigusr1_sender_pid): Remove.
283 (iterations): Define constant.
284 (shared): New variable.
285 (sigusr1_received): Update comment.
286 (sigusr1_handler): Do not send SIGSTOP to the sender process.
287 (signal_sender): Optional use barriers to avoid sending signals
288 during irrelevant times.
289 (do_it): Initialize variable shared. Use xfork for error
290 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
291 the iteration count, independent of signal delivery. Check for
292 deadlocks in fork. Introduce barriers for reducing signal
293 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
294 replaced by the barriers. Count signals during fork/free/malloc
295 and report them.
296 * malloc/Makefile (tst-mallocfork): Link with libpthread.
297
298 2019-05-07 Joseph Myers <joseph@codesourcery.com>
299
300 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
301 version to 5.1.
302 (clock_adjtime64) New syscall.
303 (clock_getres_time64) Likewise.
304 (clock_gettime64) Likewise.
305 (clock_nanosleep_time64) Likewise.
306 (clock_settime64) Likewise.
307 (futex_time64) Likewise.
308 (io_pgetevents_time64) Likewise.
309 (io_uring_enter) Likewise.
310 (io_uring_register) Likewise.
311 (io_uring_setup) Likewise.
312 (mq_timedreceive_time64) Likewise.
313 (mq_timedsend_time64) Likewise.
314 (pidfd_send_signal) Likewise.
315 (ppoll_time64) Likewise.
316 (pselect6_time64) Likewise.
317 (recvmmsg_time64) Likewise.
318 (rt_sigtimedwait_time64) Likewise.
319 (sched_rr_get_interval_time64) Likewise.
320 (semtimedop_time64) Likewise.
321 (timer_gettime64) Likewise.
322 (timer_settime64) Likewise.
323 (timerfd_gettime64) Likewise.
324 (timerfd_settime64) Likewise.
325 (utimensat_time64) Likewise.
326
327 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
328 version to 9 branch.
329
330 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
331
332 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
333 __memmove_thunderx2 to the list of implementations
334 * sysdeps/aarch64/multiarch/memmove.c: Likewise
335 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
336 (__memmove_thunderx2): Rewritten using SIMD ld/st
337 (__memcpy_thunderx2): Fixed handling overlapping cases.
338 Used ldp/stp instead of ldr/str if possible. Made loops
339 tails branchless.
340
341 2019-05-03 Florian Weimer <fweimer@redhat.com>
342
343 * misc/tst-tsearch.c (walk_tree): Add more error checking.
344
345 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
346
347 [BZ #24506]
348 * elf/tst-pldd.c (in_str_list): New function.
349 (do_test): Add default names for ld and libc as one option.
350
351 2019-05-02 Florian Weimer <fweimer@redhat.com>
352
353 misc: Add twalk_r function.
354 * include/search.h (__twalk_r): Declare.
355 * manual/examples/twalk.c: New file.
356 * manual/search.texi (Tree Search Function): Document twalk_r.
357 * misc/Versions (2.30): Export twalk_r.
358 (GLIBC_PRIVATE): Export __twalk_r.
359 * misc/search.h [__USE_GNU] (twalk_r): Declare.
360 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
361 (twalk_r): Add weak alias.
362 * misc/tst-tsearch.c (struct walk_trace_element): Define.
363 (walk_trace): New variable.
364 (struct twalk_with_twalk_r_closure): Define.
365 (twalk_with_twalk_r_action): New function.
366 (twalk_with_twalk_r): Likewise.
367 (walk_action): Call walk_trace_add.
368 (walk_tree_with): Rename from walk_tree. Add walk argument.
369 (walk_tree): New function.
370 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
371 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
372 Likewise.
373 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
374 Likewise.
375 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
376 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
377 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
378 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
379 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
380 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
381 Likewise.
382 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
383 Likewise.
384 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
385 Likewise.
386 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
387 (GLIBC_2.30): Likewise.
388 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
389 (GLIBC_2.30): Likewise.
390 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
391 (GLIBC_2.30): Likewise.
392 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
393 (GLIBC_2.30): Likewise.
394 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
395 Likewise.
396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
397 (GLIBC_2.30): Likewise.
398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
399 (GLIBC_2.30): Likewise.
400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
401 (GLIBC_2.30): Likewise.
402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
403 (GLIBC_2.30): Likewise.
404 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
405 Likewise.
406 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
407 Likewise.
408 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
409 Likewise.
410 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
411 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
412 Likewise.
413 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
414 Likewise.
415 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
416 Likewise.
417 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
418 Likewise.
419
420 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
421
422 Make mktime etc. compatible with __time64_t
423 Keep these functions compatible with Gnulib while adding
424 __time64_t support. The basic idea is to move private API
425 declarations from include/time.h to time/mktime-internal.h, since
426 the former file cannot easily be shared with Gnulib whereas the
427 latter can.
428 Also, do some other minor cleanup while in the neighborhood.
429 * include/time.h: Include stdbool.h, time/mktime-internal.h.
430 (__mktime_internal): Move this prototype to time/mktime-internal.h,
431 since Gnulib needs it.
432 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
433 Move these macros to time/mktime-internal.h, since Gnulib needs them.
434 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
435 (in_time_t_range): New static function.
436 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
437 so that glibc users are not tempted to use __time64_t.
438 * time/mktime-internal.h: Rewrite so that it does both glibc
439 and Gnulib work. Include time.h if not _LIBC.
440 (mktime_offset_t) [!_LIBC]: Define for gnulib.
441 (__time64_t): New type or macro, moved here from
442 posix/bits/types.h.
443 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
444 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
445 from include/time.h.
446 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
447 New macros, taken from GNulib.
448 (__mktime_internal): New prototype, moved here from include/time.h.
449 * time/mktime.c (mktime_min, mktime_max, convert_time)
450 (ranged_convert, __mktime_internal, __mktime64):
451 * time/timegm.c (__timegm64):
452 Use __time64_t, not time_t.
453 * time/mktime.c: Stop worrying about whether time_t is floating-point.
454 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
455 Rename from mktime.
456 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
457 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
458 for libc_hidden_def.
459 Include errno.h.
460 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
461 Rename from timegm.
462 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
463
464 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
465
466 [BZ #19444]
467 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
468 from `-Wmaybe-uninitialized'.
469 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
470
471 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
472
473 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
474 function.
475 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
476 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
477 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
478 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
479 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
480 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
481 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
483 Remove file.
484 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
485 Likewise.
486 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
487 Likewise.
488 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
489 Likewise.
490 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
491 New file.
492 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
493 Likewise.
494 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
495 Likewise.
496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
497 Likewise.
498 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
499 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
500 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
501 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
502 Likewise.
503 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
504 Likewise.
505 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
506 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
507 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
508 file.
509 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
510 Likewise.
511 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
512 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
513 * here.
514 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
515 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
516 s_ceilf-power5+, and s_ceilf-ppc64.
517 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
518 file.
519 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
520 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
521 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
522 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
523 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
524 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
525 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
526
527 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
528 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
529 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
530
531 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
532
533 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
534 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
535 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
536 (sem_getvalue): Likewise.
537
538 2019-04-26 Florian Weimer <fweimer@redhat.com>
539
540 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
541 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
542
543 2019-04-26 Florian Weimer <fweimer@redhat.com>
544
545 Makeconfig: Move -Wl,-rpath-link options before library references.
546 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
547 (link-libc): Remove $(link-libc-rpath-link).
548
549 2019-04-25 Florian Weimer <fweimer@redhat.com>
550
551 * Makeconfig (+link-pie-before-libc): Remove $(CC).
552 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
553 (+link-static-before-libc): Remove $(CC).
554 (+link-static, +link-static-tests): Add $(CC).
555 (+link-before-libc): Remove $(CC).
556 (+link, +link-pie, +link-pie-printers): Add $(CC).
557
558 2019-04-26 Florian Weimer <fweimer@redhat.com>
559
560 * Makeconfig (+link-pie-before-libc): Remove $(CC).
561 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
562 (+link-static-before-libc): Remove $(CC).
563 (+link-static, +link-static-tests): Add $(CC).
564 (+link-before-libc): Remove $(CC).
565 (+link, +link-pie, +link-pie-printers): Add $(CC).
566
567 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
568
569 [BZ#24484]
570 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
571
572 2019-04-25 Florian Weimer <fweimer@redhat.com>
573
574 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
575 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
576 (bench-link-targets): New variable.
577 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
578
579 2019-04-25 Florian Weimer <fweimer@redhat.com>
580
581 Also enable BIND_NOW for programs if --enable-bind-now.
582 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
583 (+link-pie): Use $(link-extra-flags).
584 (+link-static): Likewise.
585 [! $(build-pie-default)] (+link): Likewise.
586 * manual/install.texi (Configuring and compiling): Update
587 --enable-bind-now description.
588 * INSTALL: Regenerated.
589
590 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
591
592 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
593 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
594
595 2019-04-24 Mike Frysinger <vapier@gentoo.org>
596
597 [BZ #18465]
598 * malloc/Makefile (others): Add memusagestat.
599 ($(objpfx)memusagestat): Delete rule.
600 (LDLIBS-memusagestat): New variable.
601
602 2019-04-24 Florian Weimer <fweimer@redhat.com>
603
604 * locale/Makefile (tests-special): Guard setting by
605 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
606 to run while cross-compiling.
607
608 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
609
610 [BZ #18035]
611 * elf/Makefile (tests-container): Add tst-pldd.
612 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
613 (E(find_maps)): Avoid use alloca, use default read file operations
614 instead of explicit LFS names, and fix infinite loop.
615 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
616 (get_process_info): Use _Static_assert instead of assert, use default
617 directory operations instead of explicit LFS names, and free some
618 leadek pointers.
619 * elf/tst-pldd.c: New file.
620
621 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
622
623 * malloc/arena.c (do_set_mallopt_check): Removed.
624
625 2019-04-23 Florian Weimer <fweimer@redhat.com>
626
627 locale: Add LOCPATH diagnostics to the locale program.
628 * locale/programs/locale.c (setlocale_failed): New variable.
629 (try_setlocale): New function.
630 (quote_string): Likewise.
631 (setlocale_diagnostics): Likewise.
632 (main): Call try_setlocale instead of setlocale. Call
633 setlocale_diagnostics.
634 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
635 (tst-locale-locpath.out): New target.
636 * locale/tst-locale-locpath.sh: New file.
637
638 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
639
640 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
641 to 2.30 notes.
642
643 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
644
645 [BZ #23741]
646 * malloc/hooks.c (malloc_check, realloc_check): Use
647 __builtin_add_overflow on overflow check and adapt to
648 checked_request2size change.
649 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
650 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
651 allocation size to PTRDIFF_MAX.
652 (REQUEST_OUT_OF_RANGE): Remove macro.
653 (checked_request2size): Change to inline function and limit maximum
654 requested size to PTRDIFF_MAX.
655 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
656 maximum allocation size to PTRDIFF_MAX.
657 (_mid_memalign): Use _int_memalign call for overflow check.
658 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
659 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
660 limit maximum requested size to PTRDIFF_MAX.
661 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
662 valloc, pvalloc): Add __attribute_alloc_size__.
663 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
664 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
665 larger than PTRDIFF_MAX.
666 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
667 around tests of malloc with negative sizes.
668 * malloc/tst-posix_memalign.c (do_test): Likewise.
669 * malloc/tst-pvalloc.c (do_test): Likewise.
670 * malloc/tst-valloc.c (do_test): Likewise.
671 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
672 with resulting size allocation larger than PTRDIFF_MAX with
673 reallocarray_nowarn.
674 (reallocarray_nowarn): New function.
675 * NEWS: Mention the malloc function semantic change.
676
677 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
678
679 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
680 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
681
682 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
683 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
684 * sysdeps/powerpc/fpu/s_fma.c: New file.
685 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
686
687 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
688 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
689
690 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
691 the magic flag store.
692 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
693 Likewise.
694 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
695 Likewise.
696 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
697 Remove rt_sigreturn call.
698
699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
700 Remove rt_sigreturn call.
701 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
702 Likewise.
703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
704 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
705
706 * support/Makefile (libsupport-routines): Add support_subprocess,
707 xposix_spawn, xposix_spawn_file_actions_addclose, and
708 xposix_spawn_file_actions_adddup2.
709 (tst-support_capture_subprocess-ARGS): New rule.
710 * support/capture_subprocess.h (support_capture_subprogram): New
711 prototype.
712 * support/support_capture_subprocess.c (support_capture_subprocess):
713 Refactor to use support_subprocess and support_capture_poll.
714 (support_capture_subprogram): New function.
715 * support/tst-support_capture_subprocess.c (write_mode_to_str,
716 str_to_write_mode, test_common, parse_int, handle_restart,
717 do_subprocess, do_subprogram, do_multiple_tests): New functions.
718 (do_test): Add support_capture_subprogram tests.
719 * support/subprocess.h: New file.
720 * support/support_subprocess.c: Likewise.
721 * support/xposix_spawn.c: Likewise.
722 * support/xposix_spawn_file_actions_addclose.c: Likewise.
723 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
724 * support/xspawn.h: Likewise.
725
726 2019-04-17 Mike Gerow <gerow@google.com>
727
728 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
729 groups limit.
730
731 2019-04-11 Florian Weimer <fweimer@redhat.com>
732
733 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
734 domain with empty string.
735 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
736
737 2019-04-11 Florian Weimer <fweimer@redhat.com>
738
739 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
740 comment.
741 (alloc_buffer_next): Change return type to non-const. Update
742 comment.
743
744 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
745
746 * manual/time.texi (Formatting Calendar Time): Add missing percent
747 sign to conversion specifier.
748
749 2019-04-09 Carlos O'Donell <carlos@redhat.com>
750 Kwok Cheung Yeung <kcy@codesourcery.com>
751
752 [BZ #16573]
753 * malloc/mtrace.c: Define prototypes for all hooks.
754 (set_default_hooks): New function.
755 (set_trace_hooks): Likewise.
756 (save_default_hooks): Likewise.
757 (tr_freehook): Use new s*_hooks functions.
758 (tr_mallochook): Likewise.
759 (tr_reallochook): Likewise.
760 (tr_memalignhook): Likewise.
761 (mtrace): Likewise.
762 (muntrace): Likewise.
763
764 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
765
766 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
767 (generic_stpcpy): New function.
768 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
769 (generic_stpncpy): New function.
770 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
771 (generic_strcat): New function.
772 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
773 (generic_strcpy): New function.
774 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
775 (STUPID_STRNCAT): Remove function.
776 (generic_strncat): New function.
777 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
778 (STUPID_STRNCPY): Remove function.
779 (generic_strncpy): New function.
780 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
781 (generic_strnlen): New function.
782 (memchr_strnlen): New function.
783 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
784 (memchr_strlen): Likewise.
785
786 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
787
788 * benchtests/bench-strstr.c (input): Add realistic input text.
789 (stupid_strstr): Remove function.
790 (basic_strstr): Add function.
791 (twoway_strstr): Add function.
792 (do_one_test): Add result checking.
793 (do_test): Use new input text. Remove accidental early matches.
794 (test_main): Improve range of tests, reduce unaligned cases.
795
796 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
797
798 * benchtests/bench-memmem.c (simple_memmem): Remove function.
799 (basic_memmem): Add function.
800 (twoway_memmem): Add function.
801
802 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
803
804 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
805 * benchtests/bench-malloc-thread.c: Likewise.
806 * benchtests/bench-skeleton.c: Likewise.
807 * benchtests/bench-strtod.c: Likewise.
808 * benchtests/bench-timing.h: Likewise.
809
810 2019-04-08 Florian Weimer <fweimer@redhat.com>
811
812 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
813 definitions.
814 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
815 RES_INSECURE2 security checks.
816 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
817 RES_INSECURE2 handling.
818
819 2019-04-08 Florian Weimer <fweimer@redhat.com>
820
821 resolv: Remove support for RES_USE_INET6 and the inet6 option.
822 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
823 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
824 GETHOSTBYNAME.
825 * resolv/Makefile (tests): Remove tst-res_use_inet6.
826 (tests-internal): Update justification for tst-resolv-res_init,
827 tst-resolv-res_init-thread.
828 (tst-res_use_inet6): Remove target.
829 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
830 * resolv/res_debug.c (p_option): Remove "inet6" support.
831 * resolv/res_init.c (res_setoptions): Likewise.
832 * resolv/res_use_inet6.h: Remove file.
833 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
834 definition.
835 (res_use_inet6): Always return false.
836 * resolv/resolv.h (RES_USE_INET6): Remove definition.
837 * resolv/resolv_context.h: Adjust file comment.
838 (struct resolv_context): Update comment on __next field.
839 (__resolv_context_put): Update comment.
840 * resolv/tst-res_use_inet6.c: Remove file.
841 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
842 "inet6" support.
843 (test_cases): Adjust test case.
844 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
845 (thread_byname2_af_inet6): Use old byname_inet6 code.
846 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
847 (gai): Remove do_inet6 argument.
848 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
849 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
850 (thread_gai_unspec_inet6): Remove functions.
851 (do_test): Adjust thread_funcs.
852 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
853 RES_USE_INET6 flag.
854 (gaih_inet): Do not disable RES_USE_INET6 flag.
855
856 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
857
858 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
859 and remove redundant code.
860
861 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
862
863 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
864 New rule.
865 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
866 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
867 Likewise.
868 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
869 Likewise.
870 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
871 Likewise.
872 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
873 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
874 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
875 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
876 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
877 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
878 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
879 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
880 wcsrchr-power7.
881 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
882 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
883 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
884 Remove wcsrchr optimizations.
885 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
886
887 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
888 the loop unroll.
889
890 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
891 New rule.
892 * sysdeps/powerpc/power6/wcschr.c: Remove file.
893 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
894 Likewise.
895 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
896 Likewise.
897 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
898 Likewise.
899 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
900 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
901 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
902 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
903 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
904 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
905 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
906 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
907 wcschr-power7.
908 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
909 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
910 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
911 Remove wcschr optimizations.
912 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
913
914 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
915 the loop unroll.
916
917 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
918 New rule.
919 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
920 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
921 Likewise.
922 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
923 Likewise.
924 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
925 Likewise.
926 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
927 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
928 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
929 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
930 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
931 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
932 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
933 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
934 wcscpy-power7.
935 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
936 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
937 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
938 Remove wcscpy optimizations.
939 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
940
941 * include/loop_unroll.h: New file.
942 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
943 besides generic implementation.
944
945 2019-04-03 DJ Delorie <dj@redhat.com>
946
947 * time/tst-strftime3.c (tm_to_printed): Disable warning about
948 snprintf truncating output.
949
950 2019-04-02 DJ Delorie <dj@redhat.com>
951
952 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
953 warning.
954
955 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
956
957 [BZ #22964]
958 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
959 era.
960 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
961 (mkreftable): Add rules for the new Japanese era and the new dates.
962
963 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
964 Rafal Luzynski <digitalfreak@lingonborough.com>
965
966 * time/tst-strftime2.c (date_t): Explicitly define the type.
967 (dates): Use natural month and year numbers to express a date.
968 (is_before): New function to compare dates.
969 (mkreftable): Minor improvements to simplify maintenance.
970 (do_test): Reflect the changes in dates array.
971
972 [BZ #24293]
973 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
974 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
975 * time/tst-strftime2.c (locales): Likewise.
976 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
977 2010-04-01, and 2011-04-01.
978 (mkreftable): Add rules for the new locales and the new dates.
979
980 2019-04-01 Carlos O'Donell <carlos@redhat.com>
981
982 * localedata/locales/ja_JP: Add comments to era entries.
983
984 2019-04-01 DJ Delorie <dj@redhat.com>
985
986 [BZ #24394]
987 * time/strptime_l.c (%Ey): Fix fencepost error.
988 * time/tst-strftime3.c: New.
989 * time/Makefile (tests): Add tst-strftime3.
990
991 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
992
993 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
994 conditional branch to DIVBYZERO. Fix unwind info.
995 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
996 excb after conditional branch to $powerof2. Add missing unop
997 instructions and .align directives and reorder instructions to
998 match __divqu.
999
1000 2019-04-01 Richard Henderson <rth@twiddle.net>
1001
1002 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1003 Do not redefine.
1004 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1005 Do not redefine.
1006
1007 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1008
1009 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1010 $libc_cv_riscv_float_abi in `test' invocation.
1011 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1012
1013 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1014
1015 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1016 asm with builtin.
1017 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1018 Likewise.
1019 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1020 (_GET_SI_FPSCR): Likewise.
1021 (_SET_SI_FPSCR): Likewise.
1022
1023 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1024
1025 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1026 clang 2.8.
1027 (signbit): Use builtin for clang 3.3.
1028 (isinf): Use builtin for clang 3.7.
1029
1030 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1031
1032 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1033
1034 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1035
1036 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1037 quote in printf.
1038
1039 2019-03-25 Mike Crowe <mac@mcrowe.com>
1040
1041 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1042 pthread_rwlock_timedrdlock with calls to
1043 pthread_rwlock_timedwrlock to ensure that the latter is tested
1044 too. Use new function name in diagnostic messages too.
1045
1046 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1047 (do_test) Use libsupport test macros rather than hand-coded
1048 conditionals and error messages. Ensure that sem_init returns zero
1049 rather than not -1. Use <support/test-driver.c> rather than
1050 test-skeleton.c.
1051
1052 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1053 test macros rather than hand-coded conditionals and error messages.
1054 Use <support/test-driver.c> rather than test-skeleton.c.
1055
1056 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1057
1058 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1059
1060 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1061 (NT_MIPS_MSA): Likewise.
1062
1063 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1064
1065 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1066 * benchtests/README: Update description.
1067 * benchtests/bench-timing.h: Default to hp-timing.
1068 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1069 HP_TIMING_PRINT): Remove.
1070 (HP_TIMING_NOW): Add generic implementation.
1071 (hp_timing_t): Change to uint64_t.
1072
1073 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1074 HP_TIMING_INLINE.
1075 * nptl/descr.h: Likewise.
1076 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1077 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1078 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1079 Abstract hp-timing usage with RTLD_* macros.
1080 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1081 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1082 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1083 HP_TIMING_NONAVAIL): Likewise.
1084 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1085 Likewise.
1086 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1087 HP_SMALL_TIMING_AVAIL): Likewise.
1088 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1089 HP_SMALL_TIMING_AVAIL): Likewise.
1090 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1091 HP_SMALL_TIMING_AVAIL): Likewise.
1092 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1093 HP_SMALL_TIMING_AVAIL): Likewise.
1094 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1095 Likewise.
1096 * sysdeps/generic/hp-timing-common.h: Update comment with
1097 HP_TIMING_AVAIL removal.
1098
1099 * include/random-bits.h: New file.
1100 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1101 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1102 random_bits.
1103 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1104 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1105 Likewise.
1106
1107 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1108 * rt/Makefile (clock-routines): Remove get_clockfreq.
1109 * rt/get_clockfreq.c: Remove file.
1110 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1111 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1112 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1113 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1114 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1115
1116 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1117 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1118 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1119 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1120 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1121
1122 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1123 pthread_clock_settime.
1124 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1125 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1126 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1127 * elf/rtld.c (_dl_start_final): Likewise.
1128 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1129 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1130 Remove.
1131 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1132 (_dl_cpuclock_offset): Remove.
1133 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1134 cpuclock_offset_ununsed.
1135 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1136 cpuclock_offset set.
1137 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1138 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1139 * nptl/pthread_clock_gettime.c: Remove file.
1140 * nptl/pthread_clock_settime.c: Likewise.
1141 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1142 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1143 and CLOCK_PROCESS_CPUTIME_ID support.
1144 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1145 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1146 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1147 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1148 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1149 Likewise.
1150 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1151
1152 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1153
1154 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1155 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1156 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1157 New defines.
1158 * sysdeps/s390/memmem-arch13.S: New file.
1159 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1160 if it is only used as fallback.
1161 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1162 * sysdeps/s390/multiarch/ifunc-impl-list.c
1163 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1164
1165 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1166
1167 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1168 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1169 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1170 New defines.
1171 * sysdeps/s390/multiarch/ifunc-impl-list.c
1172 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1173 * sysdeps/s390/strstr-arch13.S: New file.
1174 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1175 if it is only used as fallback.
1176 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1177
1178 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1179
1180 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1181 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1182 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1183 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1184 ifunc selector.
1185 * sysdeps/s390/multiarch/ifunc-impl-list.c
1186 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1187 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1188 S390_IS_ARCH13_MIE3): New defines.
1189
1190 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1191
1192 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1193 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1194 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1195 * sysdeps/s390/configure: Regenerated.
1196
1197 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1198
1199 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1200 Add vxe2, vxp, dflt, sort flags.
1201 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1202 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1203 capabilities.
1204 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1205 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1206 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1207 HWCAP_S390_DFLT): Define.
1208
1209 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1210
1211 [BZ #24372]
1212 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1213 of compiler warning.
1214 * locale/programs/ld-collate.c (collate_output): Likewise.
1215
1216 2019-03-21 DJ Delorie <dj@redhat.com>
1217
1218 [BZ #24372]
1219 * iconv/iconvconfig.c (write_output): Replace floating point math
1220 with integer math to avoid imprecise results.
1221 * locale/programs/ld-collate.c (collate_output): Likewise.
1222
1223 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1224
1225 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1226 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1227
1228 2019-03-20 mansayk <6688000@gmail.com>
1229
1230 [BZ #24296]
1231 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1232 (abday): Likewise, but remove the trailing dots.
1233
1234 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1235
1236 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1237 macro.
1238 (HWCAP_PACA): Likewise.
1239 (HWCAP_PACG): Likewise.
1240 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1241 Increase to 32.
1242 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1243
1244 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1245
1246 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1247 should be handled.
1248
1249 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1250
1251 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1252 version to 5.0.
1253 (old_getpagesize): New syscall.
1254
1255 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1256
1257 [BZ #24293]
1258 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1259 * localedata/locales/cmn_TW (era): Likewise.
1260 * localedata/locales/hak_TW (era): Likewise.
1261 * localedata/locales/lzh_TW (era): Likewise.
1262 * localedata/locales/nan_TW (era): Likewise.
1263
1264 2019-03-14 Florian Weimer <fweimer@redhat.com>
1265
1266 Remove obsolete, never-implemented XSI STREAMS declarations.
1267 * manual/terminal.texi (Allocation): Remove portability note and
1268 adjust example.
1269 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1270 _SC_STREAMS.
1271 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1272 * sysdeps/unix/inet/Subdirs (streams): Remove.
1273 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1274 (conformtest-headers-UNIX98): Likewise.
1275 (conformtest-headers-XOPEN2K): Likewise.
1276 (conformtest-headers-POSIX2008): Likewise.
1277 * posix/compat-streams.c: New file.
1278 * posix/Makefile (routines): Add it.
1279 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1280 getpmsg, isastream, putmsg, putpmsg.
1281 (GLIBC_2.30): New section.
1282 * bits/stropts.h: Remove file.
1283 * bits/xtitypes.h: Likewise.
1284 * conform/data/stropts.h-data: Likewise.
1285 * include/stropts.h: Likewise.
1286 * include/sys/stropts.h: Likewise.
1287 * include/xtitypes.h: Likewise.
1288 * streams/Makefile: Likewise.
1289 * streams/fattach.c: Likewise.
1290 * streams/fdetach.c: Likewise.
1291 * streams/getmsg.c: Likewise.
1292 * streams/getpmsg.c: Likewise.
1293 * streams/isastream.c: Likewise.
1294 * streams/putmsg.c: Likewise.
1295 * streams/putpmsg.c: Likewise.
1296 * streams/stropts.h: Likewise.
1297 * streams/sys/stropts.h: Likewise.
1298 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1299 * sysdeps/s390/bits/xtitypes.h: Likewise.
1300 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1301 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1302 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1303 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1304 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1305 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1306 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1307 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1308 * sysdeps/x86/bits/xtitypes.h: Likewise.
1309
1310 2019-03-14 Florian Weimer <fweimer@redhat.com>
1311
1312 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1313 libnss_files.
1314 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1315 but not with libnss_files.
1316 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1317
1318 2019-03-14 Zack Weinberg <zackw@panix.com>
1319
1320 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1321 Specify encoding="utf-8" when opening headers to check.
1322
1323 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1324
1325 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1326 version to 5.0.
1327 (Context.checkout_tar): Handle variable major version for Linux
1328 kernel.
1329
1330 2019-03-13 Florian Weimer <fweimer@redhat.com>
1331
1332 [BZ #24047]
1333 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1334
1335 2019-03-13 Zack Weinberg <zackw@panix.com>
1336
1337 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1338 Move to stdlib.
1339 * include/inttypes.h: Adjust to match.
1340 * include/stdint.h: New wrapper.
1341
1342 2019-03-13 Zack Weinberg <zackw@panix.com>
1343
1344 * scripts/check-obsolete-constructs.py: New test script.
1345 * scripts/check-installed-headers.sh: Remove tests for
1346 obsolete typedefs, superseded by check-obsolete-constructs.py.
1347 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1348 as a special test. Update commentary.
1349 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1350 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1351 Update commentary.
1352 * posix/sys/types.h (__u_intN_t): Remove.
1353 (u_int8_t): Typedef using __uint8_t.
1354 (u_int16_t): Typedef using __uint16_t.
1355 (u_int32_t): Typedef using __uint32_t.
1356 (u_int64_t): Typedef using __uint64_t.
1357
1358 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1359
1360 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1361 call _dl_procinfo.
1362 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1363 Ignore types other than AT_HWCAP.
1364 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1365 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1366 Likewise.
1367 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1368 in the case of falling back to generic output mechanism.
1369 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1370 Likewise.
1371
1372 2019-03-12 Florian Weimer <fweimer@redhat.com>
1373
1374 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1375
1376 2019-03-12 Florian Weimer <fweimer@redhat.com>
1377
1378 [BZ #24047]
1379 resolv: Enable full ICMP errors for UDP DNS sockets
1380 * resolv/res_enable_icmp.c: New file.
1381 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1382 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1383 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1384 socket.
1385
1386 2019-03-11 Mao Han <han_mao@c-sky.com>
1387
1388 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1389 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1390
1391 2019-03-11 Mao Han <han_mao@c-sky.com>
1392
1393 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1394 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1395 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1396
1397 2019-03-11 Mao Han <han_mao@c-sky.com>
1398
1399 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
1400 directly.
1401 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
1402 definition.
1403
1404 2019-03-11 Mao Han <han_mao@c-sky.com>
1405
1406 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
1407 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
1408 in mcontext_t
1409
1410 2019-03-08 Mike FABIAN <mfabian@redhat.com>
1411
1412 [BZ #24307]
1413 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
1414 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1415 Unicode 12.0.0.
1416 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1417 * localedata/unicode-gen/PropList.txt: Likewise.
1418 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1419 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
1420 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
1421 * localedata/charmaps/UTF-8: Regenerate.
1422 * localedata/locales/i18n_ctype: Likewise.
1423 * localedata/locales/tr_TR: Likewise.
1424 * localedata/locales/translit_circle: Likewise.
1425 * localedata/locales/translit_cjk_compat: Likewise.
1426 * localedata/locales/translit_combining: Likewise.
1427 * localedata/locales/translit_compat: Likewise.
1428 * localedata/locales/translit_font: Likewise.
1429 * localedata/locales/translit_fraction: Likewise.
1430
1431 2019-03-07 Joseph Myers <joseph@codesourcery.com>
1432
1433 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
1434 than after operators.
1435 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
1436 (setitimer_locked): Likewise.
1437 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1438 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1439 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
1440 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
1441 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
1442 (PPC_CPU_SUPPORTED): Likewise.
1443 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
1444 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
1445 (stat_overflow): Likewise.
1446 (statfs_overflow): Likewise.
1447 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
1448 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
1449 (eq_ttyname_r): Likewise.
1450 (run_chroot_tests): Likewise.
1451
1452 2019-03-07 Florian Weimer <fweimer@redhat.com>
1453
1454 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
1455 header check.
1456
1457 2019-03-07 Martin Liska <mliska@suse.cz>
1458
1459 * math/Makefile: Change location where math-vector-fortran.h is
1460 installed.
1461 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
1462 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
1463 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
1464 * scripts/check-installed-headers.sh: Skip Fortran header files.
1465 * scripts/check-wrapper-headers.py: Likewise.
1466
1467 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1468
1469 * nptl/nptl-init.c (__have_futex_clock_realtime,
1470 __have_futex_clock_realtime): Remove definition.
1471 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
1472 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
1473 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
1474 __ASSUME_FUTEX_CLOCK_REALTIME support.
1475 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1476 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1477 * sysdeps/unix/sysv/linux/kernel-features.h
1478 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
1479 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
1480 Adjust comment.
1481
1482 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1483
1484 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
1485 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
1486 __GI___wcscpy and wcscpy.
1487
1488 2019-03-04 Florian Weimer <fweimer@redhat.com>
1489
1490 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
1491 declaration.
1492 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
1493 defined.
1494
1495 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
1496
1497 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
1498 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1499
1500 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1501
1502 [BZ #24162]
1503 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
1504 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
1505
1506 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1507
1508 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
1509 tests.
1510 (do_test): Likewise.
1511 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1512 (do_test_call_varg): Likewise.
1513 (do_test_call_rarg): Likewise.
1514 * sysdeps/ieee754/ldbl-opt/Makefile
1515 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
1516 tst-nldbl-error.
1517 ($(objpfx)tst-nldbl-warn.c): New rule.
1518 ($(objpfx)tst-nldbl-error.c): Likewise.
1519 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
1520 New variables.
1521
1522 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1523
1524 [BZ #23984]
1525 * include/bits/error-ldbl.h: New file.
1526 * include/error.h: Include stdarg.h. Declare internal functions
1527 __error_internal and __error_at_line_internal.
1528 * misc/Makefile (headers): Add bits/error-ldbl.h.
1529 * misc/bits/error-ldbl.h: New file.
1530 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
1531 avoid the inclusion of bits/error.h.
1532 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
1533 and __nldbl_error_at_line.
1534 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
1535 (__nldbl_error, __ndlbl_error_at_line): New functions.
1536 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
1537 Redirect error and error_at_line.
1538 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1540 Likewise.
1541 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1542 Likewise.
1543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1544 Likewise.
1545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1546 Likewise.
1547 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1548 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1549 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1550
1551 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1552
1553 [BZ #23984]
1554 * include/bits/err-ldbl.h: New file.
1555 * include/err.h: Add prototypes for the internal functions:
1556 __vwarnx_internal and __vwarn_internal.
1557 * misc/Makefile (headers): Add bits/err-ldbl.h.
1558 * misc/bits/err-ldbl.h: New file.
1559 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
1560 defined, i.e.: when -mlong-double-64 is in use.
1561 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
1562 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
1563 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
1564 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
1565 (VA_CALL): New macro.
1566 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
1567 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
1568 functions.
1569 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
1570 declare prototypes for the new functions.
1571 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1573 Likewise.
1574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1575 Likewise.
1576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1577 Likewise.
1578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1579 Likewise.
1580 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1581 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1582 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1583
1584 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1585
1586 * sysdeps/ieee754/ldbl-opt/Makefile
1587 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
1588 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
1589 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
1590
1591 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1592
1593 [BZ #23983]
1594 * argp/Makefile (headers): Add bits/argp-ldbl.h.
1595 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
1596 * argp/bits/argp-ldbl.h: New file.
1597 * include/argp.h: Include stdarg.h. Add prototypes for internal
1598 functions: __argp_error_internal and __argp_failure_internal.
1599 * include/bits/argp-ldbl.h: New file.
1600 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
1601 __nldbl_argp_error and __nldbl_argp_failure.
1602 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
1603 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
1604 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
1605 Redirect argp_error and argp_failure calls.
1606 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1607 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1608 Likewise.
1609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1610 Likewise.
1611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1612 Likewise.
1613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1614 Likewise.
1615 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1616 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1617 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1618
1619 2019-03-01 Florian Weimer <fweimer@redhat.com>
1620
1621 [BZ #20419]
1622 * elf/tst-big-note-lib.S: Create a syntactically valid note.
1623 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
1624 code, to avoid creating an ABI tag note.
1625 (modules-names-nobuild): Add tst-big-note-lib.
1626
1627 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
1628
1629 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
1630 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
1631
1632 2019-03-01 Florian Weimer <fweimer@redhat.com>
1633
1634 [BZ #20271]
1635 * sysdeps/unix/sysv/linux/netlink_assert_response.c
1636 (__netlink_assert_response): Add additional missing newlines.
1637
1638 2019-02-28 Joseph Myers <joseph@codesourcery.com>
1639
1640 * sysdeps/powerpc/powerpc32/dl-machine.c
1641 (__elf_machine_fixup_plt): Use space before '('.
1642 (__process_machine_rela): Likewise.
1643 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
1644 Likewise.
1645 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
1646 Likewise.
1647 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
1648 Likewise.
1649 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
1650 (pattern): Likewise.
1651 (delta): Likewise.
1652 (check_result): Likewise.
1653 (check_excepts): Likewise.
1654 (check_op): Likewise.
1655 (fail_xr): Likewise.
1656 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
1657 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
1658 (SCNHSZ): Likewise.
1659 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
1660 Likewise.
1661 (ARGS): Likewise.
1662 (__makecontext): Likewise.
1663 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
1664 Likewise.
1665
1666 2019-02-28 Florian Weimer <fweimer@redhat.com>
1667
1668 [BZ #23937]
1669 elf: Add test with a local IFUNC resolver.
1670 * elf/ifuncmain9.c: New file.
1671 * elf/ifuncmain9pic.c: Likewise.
1672 * elf/ifuncmain9picstatic.c: Likewise.
1673 * elf/ifuncmain9pie.c: Likewise.
1674 * elf/ifuncmain9static.c: Likewise.
1675 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
1676 ifuncmain9static, ifuncmain9picstatic.
1677 * elf/Makefile [multi-arch && build-shared] (tests-internal):
1678 Add ifuncmain9, ifuncmain9pic.
1679 * elf/Makefile [multi-arch && build-shared && have-fpie]
1680 (ifunc-pie-tests): Add ifuncmain9pie.
1681 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
1682 (CFLAGS-ifuncmain9picstatic.c): Likewise.
1683 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
1684
1685 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1686
1687 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
1688 * configure: Regenerated.
1689 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
1690
1691 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1692
1693 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
1694 symbol as __wcspcy instead of wcscpy.
1695
1696 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1697
1698 * include/stdio.h (__renameat2): New hidden prototype.
1699 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
1700 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
1701 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
1702 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
1703
1704 2019-02-27 Joseph Myers <joseph@codesourcery.com>
1705
1706 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
1707 if statement.
1708
1709 * benchtests/bench-strcpy.c (do_test): Use space before '('.
1710 * benchtests/bench-string.h (cmdline_process_function): Likewise.
1711 * benchtests/bench-strlen.c (do_test): Likewise.
1712 (test_main): Likewise.
1713 * catgets/gencat.c (read_old): Likewise.
1714 * elf/cache.c (load_aux_cache): Likewise.
1715 * iconvdata/bug-iconv8.c (do_test): Likewise.
1716 * math/test-tgmath-ret.c (do_test): Likewise.
1717 * nis/nis_call.c (rec_dirsearch): Likewise.
1718 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
1719 * nptl/tst-audit-threads.c (do_test): Likewise.
1720 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
1721 * nss/nss_test1.c (init): Likewise.
1722 * nss/test-netdb.c (test_hosts): Likewise.
1723 * posix/execvpe.c (maybe_script_execute): Likewise.
1724 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
1725 * stdio-common/tst-printf.c (do_test): Likewise.
1726 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
1727 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
1728 * stdlib/qsort.c (STACK_SIZE): Likewise.
1729 * stdlib/test-canon.c (do_test): Likewise.
1730 * stdlib/tst-swapcontext1.c (do_test): Likewise.
1731 * string/memcmp.c (OPSIZ): Likewise.
1732 * string/test-strcpy.c (do_test): Likewise.
1733 (do_random_tests): Likewise.
1734 * string/test-strlen.c (do_test): Likewise.
1735 (test_main): Likewise.
1736 * string/test-strrchr.c (do_test): Likewise.
1737 (do_random_tests): Likewise.
1738 * string/tester.c (test_memrchr): Likewise.
1739 (test_memchr): Likewise.
1740 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
1741 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
1742 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
1743 (read_encoded_value_with_base): Likewise.
1744 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
1745 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
1746 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
1747 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
1748 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
1749 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
1750 Likewise.
1751 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
1752 Likewise.
1753 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
1754 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
1755 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
1756 Likewise.
1757 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
1758 Likewise.
1759 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
1760 Likewise.
1761 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
1762 Likewise.
1763 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
1764 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
1765 (FP_XSTATE_MAGIC2_SIZE): Likewise.
1766 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
1767 * time/test_time.c (main): Likewise.
1768
1769 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1770
1771 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
1772
1773 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
1774 wmemcpy.
1775
1776 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
1777 wmemcpy.
1778
1779 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
1780
1781 * include/wchar.h (__wcscpy): New prototype.
1782 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
1783 (__wcscpy): Route internal symbol to generic implementation.
1784 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
1785 Add internal __wcscpy alias.
1786 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
1787 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
1788 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
1789 * wcsmbs/wcscpy.c (wcscpy): Add
1790 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
1791 use generic implementation.
1792 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
1793
1794 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
1795 wmemset.
1796
1797 * sysdeps/m68k/wcpcpy.c: Remove file.
1798 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
1799
1800 2019-02-26 Joseph Myers <joseph@codesourcery.com>
1801
1802 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
1803 than after operators.
1804 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1805 * sysdeps/mach/hurd/getcwd.c
1806 (__hurd_canonicalize_directory_name_internal): Likewise.
1807 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
1808 (pthread_mutex_consistent): Likewise.
1809 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
1810 Likewise.
1811 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
1812 (__pthread_mutex_transfer_np): Likewise.
1813 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
1814 (__pthread_mutex_unlock): Likewise.
1815 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
1816 (mtx_owned_p): Likewise.
1817 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
1818 (pthread_mutexattr_getrobust): Likewise.
1819 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
1820 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1821 Likewise.
1822 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1823 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
1824 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
1825 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
1826 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
1827 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1828 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
1829 Likewise.
1830 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
1831 Likewise.
1832 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
1833 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
1834 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
1835 (____longjmp_chk): Likewise.
1836 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
1837 Likewise.
1838 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1839 (INTERNAL_SYSCALL): Likewise.
1840 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1841 (INTERNAL_SYSCALL): Likewise.
1842 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1843 (__get_clockfreq_via_cpuinfo): Likewise.
1844
1845 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
1846 comments.
1847 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
1848 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
1849 (WORD_COPY_BWD): Likewise.
1850 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1851 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1852 Likewise.
1853 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
1854 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
1855 comment.
1856 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
1857
1858 2019-02-25 Joseph Myers <joseph@codesourcery.com>
1859
1860 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
1861 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
1862 rather than after operators.
1863 * elf/cache.c (print_cache): Likewise.
1864 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
1865 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
1866 * hurd/hurdinit.c (_hurd_setproc): Likewise.
1867 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
1868 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
1869 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
1870 (reauth_proc): Likewise.
1871 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
1872 (__file_name_split_at): Likewise.
1873 (__directory_name_split_at): Likewise.
1874 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
1875 * hurd/port2fd.c (_hurd_port2fd): Likewise.
1876 * iconv/gconv_dl.c (do_print): Likewise.
1877 * inet/netinet/in.h (struct sockaddr_in): Likewise.
1878 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
1879 * locale/setlocale.c (new_composite_name): Likewise.
1880 * malloc/memusagestat.c (main): Likewise.
1881 * misc/fstab.c (fstab_convert): Likewise.
1882 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
1883 Likewise.
1884 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
1885 (getgrent_next_file): Likewise.
1886 (internal_getgrnam_r): Likewise.
1887 (internal_getgrgid_r): Likewise.
1888 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
1889 Likewise.
1890 (internal_getgrent_r): Likewise.
1891 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
1892 (getpwent_next_nss): Likewise.
1893 (getpwent_next_file): Likewise.
1894 (internal_getpwnam_r): Likewise.
1895 (internal_getpwuid_r): Likewise.
1896 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
1897 Likewise.
1898 (getspent_next_nss): Likewise.
1899 (internal_getspnam_r): Likewise.
1900 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
1901 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
1902 * string/strchr.c (STRCHR): Likewise.
1903 * string/strchrnul.c (STRCHRNUL): Likewise.
1904 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
1905 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
1906 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
1907 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
1908 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
1909 Likewise.
1910 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
1911 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
1912 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
1913 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
1914 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
1915 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
1916 (open_file): Likewise.
1917 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
1918 (pthread_mutexattr_setprotocol): Likewise.
1919 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1920 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
1921 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
1922 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
1923 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
1924 Likewise.
1925 (elf_machine_rela): Likewise.
1926 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
1927 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
1928 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
1929 * sysdeps/posix/rename.c (rename): Likewise.
1930 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
1931 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
1932 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
1933 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
1934 * sysdeps/unix/grantpt.c (grantpt): Likewise.
1935 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
1936 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
1937 Likewise.
1938 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
1939 Likewise.
1940 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
1941 * time/tzfile.c (__tzfile_compute): Likewise.
1942
1943 2019-02-22 Joseph Myers <joseph@codesourcery.com>
1944
1945 * benchtests/bench-memmem.c (simple_memmem): Break lines before
1946 rather than after operators.
1947 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
1948 * crypt/md5.c (md5_finish_ctx): Likewise.
1949 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
1950 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
1951 * elf/cache.c (load_aux_cache): Likewise.
1952 * elf/dl-load.c (open_verify): Likewise.
1953 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
1954 * elf/readelflib.c (process_elf_file): Likewise.
1955 * elf/rtld.c (dl_main): Likewise.
1956 * elf/sprof.c (generate_call_graph): Likewise.
1957 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
1958 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
1959 * hurd/dtable.c (reauth_dtable): Likewise.
1960 * hurd/getdport.c (__getdport): Likewise.
1961 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
1962 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
1963 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
1964 Likewise.
1965 * hurd/hurdioctl.c (fioctl): Likewise.
1966 * hurd/hurdselect.c (_hurd_select): Likewise.
1967 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
1968 (STOPSIGS): Likewise.
1969 * hurd/hurdstartup.c (_hurd_startup): Likewise.
1970 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
1971 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
1972 * hurd/msgportdemux.c (msgport_server): Likewise.
1973 * hurd/setauth.c (_hurd_setauth): Likewise.
1974 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
1975 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
1976 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
1977 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
1978 * login/tst-utmp.c (do_check): Likewise.
1979 (simulate_login): Likewise.
1980 * mach/lowlevellock.h (lll_lock): Likewise.
1981 (lll_trylock): Likewise.
1982 * math/test-fenv.c (ALL_EXC): Likewise.
1983 * math/test-fenvinline.c (ALL_EXC): Likewise.
1984 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
1985 * nis/nis_call.c (__do_niscall3): Likewise.
1986 * nis/nis_callback.c (cb_prog_1): Likewise.
1987 * nis/nis_defaults.c (searchaccess): Likewise.
1988 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
1989 * nis/nis_ismember.c (internal_ismember): Likewise.
1990 * nis/nis_local_names.c (nis_local_principal): Likewise.
1991 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
1992 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
1993 Likewise.
1994 * nis/ypclnt.c (yp_match): Likewise.
1995 (yp_first): Likewise.
1996 (yp_next): Likewise.
1997 (yp_master): Likewise.
1998 (yp_order): Likewise.
1999 * nscd/hstcache.c (cache_addhst): Likewise.
2000 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2001 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2002 (internal_getpwuid_r): Likewise.
2003 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2004 * posix/glob.h (__GLOB_FLAGS): Likewise.
2005 * posix/regcomp.c (peek_token): Likewise.
2006 (peek_token_bracket): Likewise.
2007 (parse_expression): Likewise.
2008 * posix/regexec.c (sift_states_iter_mb): Likewise.
2009 (check_node_accept_bytes): Likewise.
2010 * posix/tst-spawn3.c (do_test): Likewise.
2011 * posix/wordexp-test.c (testit): Likewise.
2012 * posix/wordexp.c (parse_tilde): Likewise.
2013 (exec_comm): Likewise.
2014 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2015 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2016 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2017 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2018 * stdio-common/tst-fileno.c (do_test): Likewise.
2019 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2020 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2021 * stdlib/strtod_l.c (round_and_return): Likewise.
2022 (____STRTOF_INTERNAL): Likewise.
2023 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2024 * string/strcspn.c (STRCSPN): Likewise.
2025 * string/test-memmem.c (simple_memmem): Likewise.
2026 * termios/tcsetattr.c (tcsetattr): Likewise.
2027 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2028 * time/asctime.c (asctime_internal): Likewise.
2029 * time/strptime_l.c (__strptime_internal): Likewise.
2030 * time/sys/time.h (timercmp): Likewise.
2031 * time/tzfile.c (__tzfile_compute): Likewise.
2032
2033 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2034
2035 [BZ #21915]
2036 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2037
2038 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2039
2040 * argp/argp-help.c (__argp_error_internal): New function,
2041 renamed from __argp_error, but that takes a 'mode_flags'
2042 parameter to control the format of long double parameters.
2043 (__argp_error): Converted into a call __argp_error_internal.
2044 (__argp_failure_internal): New function, renamed from
2045 __argp_failure, but that takes a 'mode_flags' parameter.
2046 (__argp_failure): Converted into a call __argp_failure_internal.
2047 * misc/err.c (__vwarnx_internal): New function, renamed from
2048 vwarnx, but that takes a 'mode_flags' parameter.
2049 (vwarnx): Converted into a call to __vwarnx_internal.
2050 (__vwarn_internal): New function, renamed from vwarn, but that
2051 takes a 'mode_flags' parameter.
2052 (vwarn): Converted into a call to __vwarn_internal.
2053 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2054 call to __vfxprintf with 'mode_flags'.
2055 (__error_internal): New function, renamed from error, but that
2056 takes a 'mode_flags' parameter.
2057 (error): Converted into a call to __error_internal.
2058 (__error_at_line_internal): New function, renamed from
2059 error_at_line, but that takes a 'mode_flags' parameter.
2060 (error_at_line): Converted into a call to
2061 __error_at_line_internal.
2062 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2063 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2064 Likewise.
2065
2066 2019-02-20 Martin Liska <mliska@suse.cz>
2067
2068 * math/Makefile: Install math-vector-fortran.h.
2069 * bits/math-vector-fortran.h: New file.
2070 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2071
2072 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2073
2074 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2075 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2076
2077 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2078
2079 * nptl/pthread_mutex_trylock.c: Fix comment.
2080
2081 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2082
2083 * nptl/pthread_tryjoin.c: Fix comment.
2084
2085 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2086
2087 [BZ #24231]
2088 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2089 after R_SPARC_H34 case.
2090
2091 2019-02-18 Florian Weimer <fweimer@redhat.com>
2092
2093 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2094 (getanswer): Do not call Dprintf.
2095 (res_gethostbyname2_context): Likewise.
2096 (res_gethostbyaddr_context): Likewise.
2097
2098 2019-02-18 Florian Weimer <fweimer@redhat.com>
2099
2100 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2101 declaration.
2102 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2103 Remove definitions.
2104 * libio/stdfiles.c: Update comment.
2105 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2106 set _IO_stdin, _IO_stdout, _IO_stderr.
2107 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2108 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2109 inline function.
2110 (_IO_deallocate_file): New inline function.
2111 * libio/iolibio.h (_IO_vprintf): Remove definition.
2112 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2113 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2114 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2115 _IO_legacy_file.
2116 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2117 __builtin_expect. Use _IO_legacy_file.
2118
2119 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2120
2121 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2122 Initialize ctid with a known value and remove update of ctid
2123 after clone.
2124 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2125 as assumed current value of ctid_ptr.
2126
2127 2019-02-16 Florian Weimer <fweimer@redhat.com>
2128
2129 Check that non-sysdeps headers have wrapper headers.
2130 * scripts/check-wrapper-headers.py: New file.
2131 * Makefile (tests-special): Add check-wrapper-headers.out.
2132 (check-wrapper-headers.out): New target.
2133 * Rules (tests-special): Add check-wrapper-headers.out.
2134 (check-wrapper-headers.out): New target.
2135
2136 2019-02-16 Florian Weimer <fweimer@redhat.com>
2137
2138 Add missing header wrappers under include/.
2139 * include/ar.h: New file.
2140 * include/bits/mqueue2.h: Likewise.
2141 * include/bits/stdio.h: Likewise.
2142 * include/bits/stdio2.h: Likewise.
2143 * include/fstab.h: Likewise.
2144 * include/fts.h: Likewise.
2145 * include/lastlog.h: Likewise.
2146 * include/netinet/icmp6.h: Likewise.
2147 * include/netinet/igmp.h: Likewise.
2148 * include/netinet/ip6.h: Likewise.
2149 * include/re_comp.h: Likewise.
2150 * include/regexp.h: Likewise.
2151 * include/rpcsvc/bootparam.h: Likewise.
2152 * include/rpcsvc/yp_prot.h: Likewise.
2153 * include/sys/random.h: Likewise.
2154 * include/sys/stropts.h: Likewise.
2155 * include/sys/ttychars.h: Likewise.
2156 * include/sys/vfs.h: Likewise.
2157 * include/wait.h: Likewise.
2158
2159 2019-02-16 Florian Weimer <fweimer@redhat.com>
2160
2161 * nptl_db/proc_service.h: Move to ...
2162 * sysdeps/nptl/proc_service.h: ... here.
2163 * nptl_db/thread_db.h: Move to ...
2164 * sysdeps/nptl/thread_db.h: ... here.
2165 * nptl/descr.h: Include <thread_db.h>.
2166
2167 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2168
2169 * io/Makefile (tests): Add tst-lockf.
2170 * io/lockf.c (lockf): Use __fcntl and only define for
2171 !__OFF_T_MATCHES_OFF64_T.
2172 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2173 __OFF_T_MATCHES_OFF64_T case.
2174 * io/tst-lockf.c: New file.
2175 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2176 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2177 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2178 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2179 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2181 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2182 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2183 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2184
2185 2019-02-15 Florian Weimer <fweimer@redhat.com>
2186
2187 [BZ #24211]
2188 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2189 pd->result after the thread descriptor has been freed.
2190
2191 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2192
2193 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2194 from function return type.
2195
2196 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2197
2198 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2199
2200 * scripts/test_printers_common.py: Set TERM to a known harmless
2201 value.
2202
2203 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2204
2205 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2206 (xdr_u_int): Likewise.
2207 (xdr_enum): Likewise.
2208 (xdr_bytes): Reword fall-through comment.
2209 (xdr_string): Likewise.
2210
2211 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2212
2213 [BZ #2421]
2214 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2215 (tests): Add tst-join8 tst-join9.
2216 * nptl/lll_timedwait_tid.c: Remove file.
2217 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2218 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2219 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2220 * nptl/pthread_join_common.c (timedwait_tid): New function.
2221 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2222 is set.
2223 * nptl/tst-join5.c (thread_join): New function.
2224 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2225 check.
2226 * nptl/tst-join8.c: New file.
2227 * nptl/tst-join9.c: Likewise.
2228 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2229 lll_futex_timed_wait_cancel): Add generic macros.
2230 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2231 Remove definitions.
2232 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2233 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2234 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2235 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2236 Remove function.
2237 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2238 Likewise.
2239 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2240 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2241 (lll_futex_timed_wait_cancel): New macro.
2242
2243 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2244
2245 * benchtests/Makefile: Add malloc-simple benchmark.
2246 * benchtests/bench-malloc-simple.c: New benchmark.
2247
2248 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2249
2250 * benchtests/bench-memmove.c (do_one_test): Remove unused
2251 ORIG_SRC.
2252 (do_test): Adjust.
2253 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2254 ORIG_SRC.
2255 (do_test): Adjust.
2256
2257 2019-01-13 Jim Wilson <jimw@sifive.com>
2258
2259 [BZ #24040]
2260 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2261 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2262 (func): New.
2263 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2264 call func directly.
2265 * nptl/Makefile (tests): Add tst-unwind-thread.
2266 (CFLAGS-tst-unwind-thread.c): Define.
2267 * nptl/tst-unwind-thread.c: New file.
2268 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2269 as undefined.
2270
2271 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2272
2273 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2274 comment wording.
2275 * nis/nis_call.c (__do_niscall3): Likewise.
2276
2277 * catgets/gencat.c (normalize_line): Use braces around empty
2278 'else' body.
2279 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2280 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2281 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2282 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2283 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2284 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2285 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2286 definition.
2287
2288 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2289 execlp returns.
2290
2291 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2292
2293 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2294 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2295 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2296 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2297 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2298 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2299 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2300 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2301 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2302 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2303 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2304 * benchtests/bench-bcopy.c: Delete file.
2305 * benchtests/bench-bzero.c: Likewise.
2306 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2307 (simple_memccpy): Remove.
2308 (generic_memccpy): Add function.
2309 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2310 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2311 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2312 (generic_mempcpy): Add new function.
2313 * benchtests/bench-memset.c (simple_bzero): Remove.
2314 (builtin_bzero): Remove.
2315 (builtin_memset): Remove.
2316 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2317 (generic_rawmemchr): Add new function.
2318
2319 2019-02-12 Florian Weimer <fweimer@redhat.com>
2320
2321 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2322
2323 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2324
2325 [BZ #24122]
2326 * elf/Makefile (tests): Add tst-audit13.
2327 (modules-names): Add tst-audit13mod1.
2328 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2329 rule.
2330 * elf/tst-audit13.c: New file.
2331 * elf/tst-audit13mod1.c: Likewise.
2332
2333 2019-02-12 Florian Weimer <fweimer@redhat.com>
2334
2335 [BZ #24122]
2336 * elf/rtld.c (unload_audit_module): New function.
2337 (report_audit_module_load_error): Likewise.
2338 (load_audit_module): Likewise. Extracted from dl_main. Call
2339 _dl_close if the laversion symbol cannot be found. Use early
2340 returns for error handling. Add malloc error check. Check for a
2341 zero return value from la_version. Remove spurious comment about
2342 static TLS initialization. Remove useless casts.
2343 (notify_audit_modules_of_loaded_object): New function. Extracted
2344 from dl_main.
2345 (load_audit_module): Likewise.
2346 (dl_main): Call load_audit_modules.
2347
2348 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2349
2350 * elf/dl-exception.c (_dl_exception_create_format): Add
2351 fall-through comments.
2352 * elf/ldconfig.c (parse_conf_include): Likewise.
2353 * elf/rtld.c (print_statistics): Likewise.
2354 * locale/programs/charmap.c (parse_charmap): Likewise.
2355 * misc/mntent_r.c (__getmntent_r): Likewise.
2356 * posix/wordexp.c (parse_arith): Likewise.
2357 (parse_backtick): Likewise.
2358 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2359 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2360 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2361
2362 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2363
2364 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2365 Use float instead of double.
2366
2367 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2368
2369 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2370
2371 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2372
2373 * sysdeps/powerpc/bits/mathinline.h: Remove.
2374
2375 2019-02-08 Florian Weimer <fweimer@redhat.com>
2376
2377 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2378 * math/bits/math-finite.h: Move to ...
2379 * bits/math-finite.h: ... here.
2380
2381 2019-02-08 Florian Weimer <fweimer@redhat.com>
2382
2383 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2384 * bits/unistd_ext.h: here.
2385
2386 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2387
2388 [BZ #21915]
2389 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2390 * nss/tst-nss-files-hosts-long.c: New file.
2391 * nss/tst-nss-files-hosts-long.root: New directory.
2392 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2393 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2394
2395 2019-02-08 Florian Weimer <fweimer@redhat.com>
2396
2397 * include/bits/unistd_ext.h: Remove file.
2398 * posix/bits/unistd_ext.h: Move to ...
2399 * sysdeps/generic/bits/unistd_ext.h: ... here.
2400
2401 2019-02-08 Florian Weimer <fweimer@redhat.com>
2402
2403 * include/bits/unistd_ext.h: New file.
2404
2405 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
2406
2407 * time/tst-strftime2.c: Use array_length macros instead of magic
2408 numbers.
2409
2410 2019-02-08 Florian Weimer <fweimer@redhat.com>
2411
2412 [BZ #24161]
2413 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
2414 argument.
2415 * nptl/register-atfork.c (__run_fork_handlers): Only perform
2416 locking if the new do_locking argument is true.
2417 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
2418 __run_fork_handlers.
2419
2420 2019-02-08 Florian Weimer <fweimer@redhat.com>
2421
2422 [BZ #6399]
2423 Linux: Add gettid system call wrapper.
2424 * posix/Makefile (headers): Add bits/unistd_ext.h.
2425 * posix/bits/unistd_ext.h: New file.
2426 * posix/unistd.h: Include it.
2427 * manual/process.texi (Process Identification): Document gettid.
2428 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
2429 tst-gettid, tst-gettid-kill.
2430 (tst-gettid): Link with $(shared-thread-library).
2431 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
2432 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
2433 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
2434 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
2435 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
2436 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2437 Add gettid.
2438 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2439 Likewise.
2440 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2441 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2442 Likewise.
2443 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2444 Likewise.
2445 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2446 Likewise.
2447 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2448 Likewise.
2449 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2450 Likewise.
2451 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2452 Likewise.
2453 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2454 Likewise.
2455 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2456 (GLIBC_2.30): Likewise.
2457 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2458 (GLIBC_2.30): Likewise.
2459 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2460 (GLIBC_2.30): Likewise.
2461 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2462 (GLIBC_2.30): Likewise.
2463 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2464 Likewise.
2465 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2466 (GLIBC_2.30): Likewise.
2467 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2468 (GLIBC_2.30): Likewise.
2469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2470 (GLIBC_2.30): Likewise.
2471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2472 (GLIBC_2.30): Likewise.
2473 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2474 Likewise.
2475 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2476 Likewise.
2477 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2478 Likewise.
2479 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2480 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2481 Likewise.
2482 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2483 Likewise.
2484 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2485 Likewise.
2486 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2487 Likewise.
2488 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
2489
2490 2019-02-08 Florian Weimer <fweimer@redhat.com>
2491
2492 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
2493 compatibility symbols.
2494
2495 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
2496
2497 [BZ #24180]
2498 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
2499 Add compiler barriers and comments.
2500
2501 2019-02-07 Florian Weimer <fweimer@redhat.com>
2502
2503 * include/array_length.h (array_length): Do not use a statement
2504 expression and _Static_assert, so that array_length can be used at
2505 file scope and as a constant expression.
2506
2507 2019-02-07 Florian Weimer <fweimer@redhat.com>
2508
2509 * support/xdlfcn.h (xdlmopen): Declare.
2510 * support/xdlmopen.c: New file.
2511 * support/Makefile (libsupport-routines): Add xdlmopen.
2512
2513 2019-02-06 Joseph Myers <joseph@codesourcery.com>
2514
2515 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
2516 before return type, without separate inline.
2517 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
2518 * elf/dl-tunables.h (tunable_is_name): Likewise.
2519 * malloc/malloc.c (do_set_trim_threshold): Likewise.
2520 (do_set_top_pad): Likewise.
2521 (do_set_mmap_threshold): Likewise.
2522 (do_set_mmaps_max): Likewise.
2523 (do_set_mallopt_check): Likewise.
2524 (do_set_perturb_byte): Likewise.
2525 (do_set_arena_test): Likewise.
2526 (do_set_arena_max): Likewise.
2527 (do_set_tcache_max): Likewise.
2528 (do_set_tcache_count): Likewise.
2529 (do_set_tcache_unsorted_limit): Likewise.
2530 * nis/nis_subr.c (count_dots): Likewise.
2531 * nptl/allocatestack.c (advise_stack_range): Likewise.
2532 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
2533 (do_sin): Likewise.
2534 (reduce_sincos): Likewise.
2535 (do_sincos): Likewise.
2536 * sysdeps/unix/sysv/linux/x86/elision-conf.c
2537 (do_set_elision_enable): Likewise.
2538 (TUNABLE_CALLBACK_FNDECL): Likewise.
2539
2540 2019-02-06 Florian Weimer <fweimer@redhat.com>
2541
2542 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
2543 (xdlsym): Use dlerror to detect a NULL symbol.
2544
2545 2019-02-06 Florian Weimer <fweimer@redhat.com>
2546
2547 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
2548 <stap-probe.h>.
2549 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2550
2551 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2552
2553 * libio/tst-bz24153.c (wide): Use wide char format specifier.
2554
2555 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2556
2557 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
2558 __wmemcmp and weak alias to wmemcmp.
2559
2560 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2561
2562 [BZ #23403]
2563 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
2564 TLS_TCB_AT_TP tls variant.
2565 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
2566 Add alignment checks.
2567 * support/Makefile (libsupport-routines): Add xposix_memalign and
2568 xpthread_setstack.
2569 * support/support.h: Add xposix_memalign.
2570 * support/xthread.h: Add xpthread_attr_setstack.
2571 * support/xposix_memalign.c: New File.
2572 * support/xpthread_attr_setstack.c: Likewise.
2573
2574 2019-02-05 Florian Weimer <fweimer@redhat.com>
2575
2576 [BZ #24164]
2577 arm: Use "nr" constraint for Systemtap probes, to avoid the
2578 compiler using memory operands for constants, due to the "o"
2579 alternative in the default "nor" constraint.
2580 * include/stap-probe.h [USE_STAP_PROBE]: Include
2581 <stap-probe-machine.h>
2582 * sysdeps/generic/stap-probe-machine.h: New file.
2583 * sysdeps/arm/stap-probe-machine.h: Likewise.
2584
2585 2019-02-04 Joseph Myers <joseph@codesourcery.com>
2586
2587 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
2588 with 0, not tcache->entries[tc_idx].
2589
2590 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
2591 once.
2592
2593 2019-02-04 Andreas Schwab <schwab@suse.de>
2594
2595 [BZ #16976]
2596 [BZ #17396]
2597 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
2598 looking up collating elements match against (wide) character
2599 sequence instead of name. Correct alignment adjustment.
2600 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
2601 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
2602 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
2603 (LOCALES): Add cs_CZ.ISO-8859-2.
2604 * posix/tst-fnmatch4.c: New file.
2605 * posix/tst-fnmatch5.c: New file.
2606 * include/wchar.h (__wmemcmp): Declare.
2607 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
2608 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2609 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
2610 * sysdeps/s390/wmemcmp.c: Likewise.
2611
2612 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
2613
2614 [BZ #24155]
2615 CVE-2019-7309
2616 * NEWS: Updated for CVE-2019-7309.
2617 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
2618 upper 32 bits of RDX register for x32. Use unsigned Jcc
2619 instructions, instead of signed.
2620 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
2621 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
2622
2623 2019-02-04 Florian Weimer <fweimer@redhat.com>
2624
2625 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
2626 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
2627 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
2628 Likewise.
2629 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
2630 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
2631 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
2632 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
2633 Likewise.
2634 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
2635 Likewise.
2636 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
2637 Likewise.
2638 (posix_spawn_file_actions_addopen): Likewise.
2639 (posix_spawn_file_actions_addclose): Likewise.
2640 (posix_spawn_file_actions_adddup2): Likewise.
2641 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
2642 qualifiers.
2643 (posix_spawn_file_actions_addfchdir_np): Likewise.
2644
2645 2019-02-04 David Newall <glibc@davidnewall.com>
2646
2647 elf: Implement --preload option for the dynamic linker.
2648 * elf/rtld.c (preloadarg): New variable.
2649 (handle_preload_list): Pass through “where” argument to
2650 do_preload.
2651 (dl_main): Handle "--preload" and add second call to
2652 handle_preload_list.
2653 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
2654 (tst-rtld-preload-OBJS): Set variable.
2655 (tst-rtld-preload.out): New target.
2656 * elf/tst-rtld-preload.sh: New file.
2657
2658 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
2659
2660 * Makefile (testrun.sh): Exit in case of incorrect argument.
2661
2662 2019-02-04 Florian Weimer <fweimer@redhat.com>
2663
2664 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
2665 alignment gaps.
2666
2667 2019-02-03 Florian Weimer <fweimer@redhat.com>
2668
2669 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
2670 implicit overflow checks.
2671
2672 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
2673
2674 * stdlib/isomac.c: Include <unistd.h>.
2675
2676 2019-02-03 Florian Weimer <fweimer@redhat.com>
2677
2678 * include/time.h (__tzfile_default): Use int, not long int, for
2679 the GMT offsets.
2680 * time/tzfile.c (struct ttinfo): Change type of the offset member
2681 to int.
2682 (__tzfile_read): Remove useless cast.
2683 (__tzfile_default): Adjust prototype.
2684 * time/tzset.c (tz_rule): Change type of the offset member to int.
2685 (parse_offset): Change the type of the sign variable to int.
2686
2687 2019-02-03 Florian Weimer <fweimer@redhat.com>
2688
2689 [BZ #24153]
2690 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
2691 * libio/getchar.c (getchar): Likewise.
2692 * libio/getchar_u.c (getchar_unlocked): Likewise.
2693 * libio/getwchar.c (getwchar): Likewise.
2694 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
2695 * libio/iogets.c (_IO_gets): Likewise.
2696 * libio/vscanf.c (_IO_vscanf): Likewise.
2697 * libio/vwscanf.c (__vwscanf): Likewise.
2698 * libio/tst-bz24153.c: New file.
2699 * libio/Makefile (tests): Add it.
2700
2701 2019-02-02 Florian Weimer <fweimer@redhat.com>
2702
2703 [BZ #14829]
2704 * manual/resource.texi (Basic Scheduling Functions): Add
2705 portability note. Change process to task throughout the section.
2706 Remove incorrect comment about sched_yield as it affects
2707 tasks/threads, not entire processes.
2708 * sysdeps/unix/sysv/linux/bits/posix_opt.h
2709 (_POSIX_PRIORITY_SCHEDULING): Update comment.
2710
2711 2019-02-01 Joseph Myers <joseph@codesourcery.com>
2712
2713 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
2714 * configure: Regenerated.
2715 * manual/install.texi (Tools for Compilation): Update minimum GCC
2716 version.
2717 * INSTALL: Regenerated.
2718
2719 2019-02-01 Florian Weimer <fweimer@redhat.com>
2720
2721 * support/support_test_compare_string.c
2722 (support_test_compare_string): Use "string" in error message.
2723 * support/tst-test_compare_string.c (do_test): Adjust.
2724
2725 2019-02-01 Florian Weimer <fweimer@redhat.com>
2726
2727 * support/support_format_address_family.c
2728 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
2729
2730 2019-02-01 Florian Weimer <fweimer@redhat.com>
2731
2732 * manual/socket.texi (Internet Address Formats): Clarify the byte
2733 order of struct sockaddr_in, struct sockaddr_in6. Document
2734 sin6_flowinfo and sin6_scope_id.
2735
2736 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
2737
2738 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
2739 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
2740 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
2741 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
2742 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
2743 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
2744
2745 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2746
2747 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
2748 [!MEMCHR](MEMCHR): Set to __memchr.
2749 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2750 Add memchr_generic and memchr_nosimd.
2751 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2752 (__libc_ifunc_impl_list): Add memchr ifuncs.
2753 * sysdeps/aarch64/multiarch/memchr.c: New file.
2754 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
2755 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
2756
2757 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2758
2759 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2760 Add memset_emag.
2761 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2762 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
2763 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
2764 Add IS_EMAG check for ifunc dispatch.
2765 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
2766 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
2767
2768 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2769
2770 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
2771 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2772 Add emag.
2773 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
2774 New macro.
2775
2776 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
2777
2778 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
2779
2780 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
2781
2782 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
2783 syscall-template file.
2784
2785 2019-01-31 Carlos O'Donell <carlos@redhat.com>
2786 Torvald Riegel <triegel@redhat.com>
2787 Rik Prohaska <prohaska7@gmail.com>
2788
2789 [BZ# 23844]
2790 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
2791 tst-rwlock-trywrlock-stall.
2792 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
2793 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
2794 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
2795 Set __wrphase_fute to 1 only if we started the write phase.
2796 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
2797 * nptl/tst-rwlock-trywrlock-stall.c: New file.
2798 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
2799 * support/xpthread_rwlock_destroy.c: New file.
2800 * support/xthread.h: Declare xpthread_rwlock_destroy.
2801
2802 2019-02-01 Joseph Myers <joseph@codesourcery.com>
2803
2804 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
2805 version to 4.0.2.
2806
2807 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2808
2809 [BZ #24051]
2810 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
2811 * libio/fileops.c (_IO_new_file_underflow): Likewise
2812 * libio/wfileops.c (_IO_wfile_underflow): Likewise
2813 * libio/putchar.c (putchar): Likewise.
2814 * libio/putchar_u.c (putchar_unlocked): Likewise.
2815 * libio/putwchar.c (putchar): Likewise.
2816 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
2817 * libio/tst-bz24051.c: New test.
2818 * libio/Makefile (tests): Add tst-bz24051
2819
2820 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
2821
2822 CVE-2019-9169
2823 regex: fix read overrun [BZ #24114]
2824 Problem found by AddressSanitizer, reported by Hongxu Chen in:
2825 https://debbugs.gnu.org/34140
2826 * posix/regexec.c (proceed_next_node):
2827 Do not read past end of input buffer.
2828
2829 2019-01-31 Florian Weimer <fweimer@redhat.com>
2830
2831 [BZ #24059]
2832 * nss/nss_files/files-alias.c (get_next_alias): Handle
2833 continuation line without newline at the end.
2834 * nss/tst-nss-files-alias-truncated.c: New file.
2835 * nss/Makefile [$(build-shared)] (tests): Add
2836 tst-nss-files-alias-truncated.
2837 (tst-nss-files-alias-truncated): Link with libnss_files.so.
2838 * support/namespace.h (struct support_chroot_configuration): Add
2839 aliases member.
2840 (struct support_chroot): Add path_aliases member.
2841 * support/support_chroot.c (support_chroot_create): Handle
2842 aliases.
2843 (support_chroot_free): Free path_aliases.
2844
2845 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
2846
2847 * version.h (RELEASE): Set to "development".
2848 (VERSION): Set to "2.29.9000".
2849 * NEWS: Add section for 2.30.
2850
2851 * version.h (RELEASE): Set to "stable".
2852 (VERSION): Set to "2.29".
2853 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
2854
2855 * NEWS: Add the list of bugs fixed in 2.29.
2856 * manual/contrib.texi: Update contributors list with some more
2857 names.
2858 * manual/install.texi: Update latest versions of packages
2859 tested.
2860 * INSTALL: Regenerated.
2861
2862 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
2863
2864 * po/be.po: Update translations.
2865 * po/bg.po: Likewise.
2866 * po/ca.po: Likewise.
2867 * po/cs.po: Likewise.
2868 * po/da.po: Likewise.
2869 * po/de.po: Likewise.
2870 * po/el.po: Likewise.
2871 * po/eo.po: Likewise.
2872 * po/es.po: Likewise.
2873 * po/fi.po: Likewise.
2874 * po/fr.po: Likewise.
2875 * po/gl.po: Likewise.
2876 * po/hr.po: Likewise.
2877 * po/hu.po: Likewise.
2878 * po/ia.po: Likewise.
2879 * po/id.po: Likewise.
2880 * po/it.po: Likewise.
2881 * po/ja.po: Likewise.
2882 * po/ko.po: Likewise.
2883 * po/lt.po: Likewise.
2884 * po/nb.po: Likewise.
2885 * po/nl.po: Likewise.
2886 * po/pl.po: Likewise.
2887 * po/pt_BR.po: Likewise.
2888 * po/ru.po: Likewise.
2889 * po/rw.po: Likewise.
2890 * po/sk.po: Likewise.
2891 * po/sl.po: Likewise.
2892 * po/sv.po: Likewise.
2893 * po/tr.po: Likewise.
2894 * po/uk.po: Likewise.
2895 * po/vi.po: Likewise.
2896 * po/zh_CN.po: Likewise.
2897 * po/zh_TW.po: Likewise.
2898
2899 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
2900
2901 [BZ #24130]
2902 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
2903 of $f3 register on $y_is_neg path.
2904
2905 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
2906
2907 [BZ #24110]
2908 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
2909 sigaltstack.ss_flags.
2910
2911 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
2912
2913 [BZ #23758]
2914 * manual/time.texi (strftime): Document "%Ey".
2915 * time/strftime_l.c (__strftime_internal): Set the default width
2916 padding with zero of "%Ey" to 2.
2917
2918 [BZ #24096]
2919 * manual/time.texi (strftime): Document "%EC" and "%EY".
2920 * time/Makefile (tests): Add tst-strftime2.
2921 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
2922 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
2923 override padding for "%Ey".
2924 If an optional flag ('_' or '-') is specified to "%EY", interpret the
2925 "%Ey" in the subformat as if decorated with that flag.
2926 * time/tst-strftime2.c: New file.
2927
2928 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2929
2930 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
2931 are not defined.
2932
2933 [BZ #24122]
2934 * elf/Makefile (tests): Add tst-audit13.
2935 (modules-names): Add tst-audit13mod1.
2936 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2937 rule.
2938 * elf/rtld.c (dl_main): Handle invalid audit module version.
2939 * elf/tst-audit13.c: New file.
2940 * elf/tst-audit13mod1.c: Likewise.
2941
2942 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
2943
2944 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
2945 returned by __hurd_at_flags.
2946 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
2947 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
2948 directly instead of __hurd_file_name_lookup.
2949
2950 2019-01-21 Joseph Myers <joseph@codesourcery.com>
2951
2952 * scripts/build-many-glibcs.py (Context.checkout): Default
2953 binutils version to 2.32 branch.
2954
2955 2019-01-21 Florian Weimer <fweimer@redhat.com>
2956
2957 [BZ #20018]
2958 CVE-2016-10739
2959 resolv: Reject trailing characters in host names
2960 * include/arpa/inet.h (__inet_aton_exact): Declare.
2961 (inet_aton): Remove hidden prototype. No longer used internally.
2962 * nscd/gai.c (__inet_aton): Do not define.
2963 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
2964 * nss/digits_dots.c (__inet_aton): Likewise.
2965 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
2966 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
2967 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
2968 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
2969 (tst-resolv-trailing): Likewise.
2970 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
2971 libc.
2972 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
2973 Make static. Add endp parameter.
2974 (__inet_aton_exact): New function.
2975 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
2976 (__inet_addr): Call inet_aton_end.
2977 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
2978 not just IPv6. Call __inet_aton_exact.
2979 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
2980 (tests): Make const. Add additional test cases with trailing
2981 characters.
2982 (do_test): Use array_length.
2983 * resolv/tst-inet_aton_exact.c: New file.
2984 * resolv/tst-resolv-trailing.c: Likewise.
2985 * resolv/tst-resolv-nondecimal.c: Likewise.
2986 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
2987
2988 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2989
2990 [BZ# 24097]
2991 CVE-2019-6488
2992 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
2993 Clear the upper 32 bits of RSI register.
2994 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
2995 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
2996 and tst-size_t-wcsnlen.
2997 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
2998 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
2999
3000 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3001
3002 [BZ# 24097]
3003 CVE-2019-6488
3004 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3005 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3006 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3007 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3008 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3009
3010 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3011
3012 [BZ# 24097]
3013 CVE-2019-6488
3014 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3015 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3016 * sysdeps/x86_64/strcmp.S: Likewise.
3017 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3018 tst-size_t-strncmp and tst-size_t-wcsncmp.
3019 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3020 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3021 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3022
3023 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3024
3025 [BZ# 24097]
3026 CVE-2019-6488
3027 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3028 RDX_LP for length. Clear the upper 32 bits of RDX register.
3029 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3030 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3031 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3032 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3033
3034 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3035
3036 [BZ# 24097]
3037 CVE-2019-6488
3038 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3039 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3040 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3041 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3042
3043 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3044
3045 [BZ# 24097]
3046 CVE-2019-6488
3047 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3048 length. Clear the upper 32 bits of RDX register.
3049 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3050 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3051 Likewise.
3052 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3053 Likewise.
3054 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3055 tst-size_t-wmemchr.
3056 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3057
3058 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3059
3060 [BZ# 24097]
3061 CVE-2019-6488
3062 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3063 length. Clear the upper 32 bits of RDX register.
3064 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3065 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3066 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3067 tst-size_t-wmemcmp.
3068 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3069 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3070
3071 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3072
3073 [BZ# 24097]
3074 CVE-2019-6488
3075 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3076 upper 32 bits of RDX register.
3077 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3078 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3079 tst-size_t-wmemchr.
3080 * sysdeps/x86_64/x32/test-size_t.h: New file.
3081 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3082 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3083
3084 2019-01-18 Florian Weimer <fweimer@redhat.com>
3085
3086 [BZ #24112]
3087 resolv: Do not send queries for non-host-names in nss_dns.
3088 * resolv/nss_dns/dns-host.c (check_name): New function.
3089 (_nss_dns_gethostbyname2_r): Use it.
3090 (_nss_dns_gethostbyname_r): Likewise.
3091 (_nss_dns_gethostbyname4_r): Likewise.
3092
3093 2019-01-21 Florian Weimer <fweimer@redhat.com>
3094
3095 * resolv/inet_addr.c: Reformat to GNU style.
3096 (__inet_addr, __inet_aton): Update comment.
3097
3098 2019-01-18 Florian Weimer <fweimer@redhat.com>
3099
3100 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3101 ("malloc: Use current (C11-style) atomics for fastbin access").
3102 This commit introduces a substantial performance regression on
3103 POWER and Aarch64.
3104 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3105 (REMOVE_FB): Define.
3106 (_int_malloc): Use it and reindent.
3107 (_int_free): Use CAS loop with
3108 catomic_compare_and_exchange_val_rel.
3109 (malloc_consolidate): Use atomic_exchange_acq.
3110
3111
3112 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3113
3114 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3115 -Wl,-z,now.
3116 (LDFLAGS-tst-minsigstksz-2): Likewise.
3117 (LDFLAGS-tst-minsigstksz-3): Likewise.
3118 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3119 (LDFLAGS-tst-minsigstksz-4): Likewise.
3120
3121 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3122
3123 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3124 than "alternate".
3125
3126 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3127
3128 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3129
3130 2019-01-16 Zack Weinberg <zackw@panix.com>
3131
3132 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3133 (xget_sigstack_location): New test support functions.
3134 * support/xsigstack.c: New file, implementing them.
3135 * support/tst-xsigstack.c: New test for them.
3136 * support/Makefile: Update.
3137
3138 * signal/tst-minsigstksz-1.c
3139 * signal/tst-minsigstksz-2.c
3140 * signal/tst-minsigstksz-3.c
3141 * signal/tst-minsigstksz-3a.c
3142 * signal/tst-minsigstksz-4.c: New tests.
3143 * signal/Makefile: Run them.
3144
3145 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3146
3147 * po/libc.pot: Regenerate.
3148
3149 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3150
3151 * math/libm-test-fma.inc (fma_test_data): Set
3152 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3153
3154 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3155
3156 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3157 (do_test): Changed __vector __int128_t to __vector unsigned int.
3158
3159 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3160
3161 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3162 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3163 stpcpy-avx2 and stpncpy-avx2.
3164 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3165 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3166 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3167 and __stpncpy_avx2.
3168 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3169 ifunc-strcpy.h}: rename header for a more generic name.
3170 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3171 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3172 AVX unaligned load is fast and vzeroupper is preferred.
3173 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3174 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3175 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3176 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3177 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3178 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3179
3180 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3181
3182 * argp/argp-help.c: Fix typo in comment.
3183 * misc/sys/cdefs.h: Likewise.
3184 * posix/regexec.c (sift_states_iter_mb): Likewise.
3185 * socket/sockatmark.c: Likewise.
3186 * socket/sys/socket.h: Likewise.
3187 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3188 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3189 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3190 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3191 * sysdeps/unix/sockatmark.c: Likewise.
3192 * time/strptime_l.c: Likewise.
3193
3194 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3195
3196 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3197 missing space after the cast of "_NL_CURRENT".
3198
3199 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3200
3201 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3202 ifdef to fix read of VSCR.
3203 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3204 tst-ucontext-ppc64-vscr.c to test list.
3205 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3206
3207 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3208
3209 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3210 fall-through.
3211
3212 2019-01-09 Jim Wilson <jimw@sifive.com>
3213
3214 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3215
3216 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3217
3218 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3219 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3220 __memcpy_falkor for ares.
3221 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3222 Add new define.
3223 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3224 Add ares cpu.
3225
3226 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3227
3228 [BZ #24066]
3229 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3230 4_FP_W_TYPEs are used for IEEE quad precision.
3231 * soft-fp/extendhftf2.c: Likewise.
3232 * soft-fp/extendsftf2.c: Likewise.
3233 * soft-fp/extendxftf2.c: Likewise.
3234 * soft-fp/trunctfdf2.c: Likewise.
3235 * soft-fp/trunctfhf2.c: Likewise.
3236 * soft-fp/trunctfsf2.c: Likewise.
3237 * soft-fp/trunctfxf2.c: Likewise.
3238 * sysdeps/alpha/ots_cvttx.c: Likewise.
3239 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3240 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3241 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3242 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3243 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3244 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3245 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3246 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3247 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3248 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3249 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3250 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3251 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3252 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3253 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3254 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3255 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3256
3257 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3258
3259 [BZ #24024]
3260 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3261 code with -fmath-errno.
3262 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3263 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3264 * string/test-strerror-errno.c: New file.
3265
3266 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3267
3268 [BZ #24046]
3269 * localedata/locales/en_US (date_fmt): Add, set to
3270 "%a %d %b %Y %r %Z".
3271
3272 2019-01-07 Florian Weimer <fweimer@redhat.com>
3273
3274 [BZ #24063]
3275 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3276 instead of @var{errno}.
3277 (Parsing of Integers): Likewise.
3278 (Parsing of Floats): Likewise.
3279 * manual/filesys.texi (Working with Directory Trees): Likewise.
3280 (Temporary Files): Likewise.
3281 * manual/job.texi (Terminal Access Functions): Likewise.
3282 * manual/llio.texi (Synchronizing I/O): Likewise.
3283 * manual/math.texi (SVID Random): Likewise.
3284 * manual/message.texi (The catgets Functions): Likewise.
3285 (Translation with gettext): Likewise.
3286 (Locating gettext catalog): Likewise.
3287 (Charset conversion in gettext): Likewise.
3288 * manual/nss.texi (NSS Module Function Internals): Likewise.
3289 * manual/search.texi (Hash Search Function): Likewise.
3290 * manual/setjmp.texi (System V contexts): Likewise.
3291 * manual/time.texi (Sleeping): Likewise.
3292 * manual/users.texi (Lookup User): Likewise.
3293 (Lookup Group): Likewise.
3294
3295 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3296
3297 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3298 fix typo.
3299
3300 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3301
3302 [BZ #19444]
3303 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3304 __builtin_unreachable for default case in switch.
3305 (__ieee754_yn): Likewise.
3306 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3307 (__ieee754_ynl): Likewise.
3308 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3309 (__ieee754_ynl): Likewise.
3310 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3311 (__ieee754_ynl): Likewise.
3312
3313 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3314
3315 * manual/maint.texi: Use @{ and @}.
3316
3317 2019-01-04 Florian Weimer <fweimer@redhat.com>
3318
3319 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3320 function.
3321 (do_in_chroot_1): Call it.
3322 (run_chroot_tests):
3323 Improve error reporting in case it is not possible to create a
3324 collision for the PTY name required by the test.
3325
3326 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3327
3328 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3329 lll_wait_tid with timeout.
3330 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3331 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3332 futex_reltimed_wait_cancelable for cancelabla mode.
3333 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3334 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3335 macros.
3336 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3337 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3338 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3339 SYSCALL_CANCEL_NCS): New macro.
3340 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3341 (lll_timedwait_tid): Remove macro.
3342 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3343 Likewise.
3344 (lll_timedwait_tid): Likewise.
3345 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3346 Likewise.
3347 (lll_timedwait_tid): Likewise.
3348 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3349 Likewise.
3350 (lll_timedwait_tid): Likewise.
3351 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3352 Use INTERNAL_SYSCALL_CANCEL.
3353 * sysdeps/unix/sysv/linux/futex-internal.h
3354 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3355 instead of __pthread_{enable,disable}_asynccancel.
3356 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3357 (lll_futex_wait_cancel): New macro.
3358
3359 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3360 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3361
3362 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3363 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3364
3365 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3366 in backtrace analysis.
3367 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3368 side-effects.
3369 (tf_send): Likewise.
3370
3371 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3372 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3373 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3374 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3375 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3376 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3377 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3378 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3379 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3380 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3381 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3382 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3383 Likewise.
3384 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3385 tst-cancel-wrappers.sh.
3386 (generated): Remove tst-cancel-wrappers.out.
3387 (tst-cancel-wrappers.out): Remove rule.
3388 * nptl/tst-cancel-wrappers.sh: Remove file.
3389
3390 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3391
3392 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3393 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3394 Update.
3395
3396 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3397
3398 [BZ #23640]
3399 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
3400 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
3401 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
3402 close-on-exec reset for adddup2 file action.
3403 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3404
3405 2019-01-03 Zack Weinberg <zackw@panix.com>
3406
3407 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
3408 parameter. Only use deprecated scanf when __USE_GNU is defined
3409 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
3410 than 201103L, whichever is relevant for the language being compiled.
3411
3412 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
3413 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
3414 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
3415 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
3416 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
3417
3418 * libio/iovsscanf.c
3419 * libio/fwscanf.c
3420 * libio/iovswscanf.c
3421 * libio/swscanf.c
3422 * libio/vscanf.c
3423 * libio/vwscanf.c
3424 * libio/wscanf.c
3425 * stdio-common/fscanf.c
3426 * stdio-common/scanf.c
3427 * stdio-common/vfscanf.c
3428 * stdio-common/vfwscanf.c
3429 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3430 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
3431 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
3432 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
3433 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
3434 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
3435 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
3436 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
3437 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
3438 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
3439 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
3440 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
3441 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
3442 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
3443 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
3444
3445 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
3446 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
3447 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
3448 not sscanf.
3449 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
3450 with a preprocessor macro.
3451
3452 * stdio-common/bug21.c, stdio-common/scanf14.c:
3453 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
3454 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3455 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
3456 to xscanf, xfscanf, xsscanf.
3457
3458 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
3459 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3460 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
3461 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
3462 xfscanf, xsscanf.
3463 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
3464 override feature selection macros or provide definitions of u_char etc.
3465 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
3466 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
3467 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
3468 with -std=gnu89.
3469
3470 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3471
3472 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3473 bits/termios-misc.h.
3474 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
3475 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3476 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3477 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3478 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
3479 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
3480
3481 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
3482 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3483 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
3484 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
3485 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
3486 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
3487 termios-misc.h.
3488 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
3489 (sysdep_headers): Add termios-misc.h.
3490
3491 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
3492 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3493 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3494
3495 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3496 termios-tcflow.h.
3497 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
3498 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
3499 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
3500 TCSAFLUSH): Move to termios-tcflow.h.
3501 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3502 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3503 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3504 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3505
3506 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3507 termios-c_lflag.h.
3508 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
3509 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
3510 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
3511 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
3512 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
3513 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
3514 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
3515 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
3516 Likewise.
3517 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3518 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3519 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3520 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3521
3522 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3523 termios-c_cflag.h.
3524 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
3525 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
3526 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
3527 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
3528 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
3529 termios-c_cflag.h.
3530 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3531 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3532 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3533 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3534
3535 [BZ #23783]
3536 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3537 termios-baud.h.
3538 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
3539 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
3540 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
3541 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
3542 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
3543 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
3544 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
3545 __MAX_BAUD): Move to termios-baud.h.
3546 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
3547 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
3548 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3549 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3550 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3551
3552 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
3553 termios-c_oflag.h.
3554 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
3555 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
3556 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
3557 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
3558 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
3559 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
3560 termios-c_oflag.h.
3561 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
3562 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
3563 FFR1): Likewise.
3564 [USE_MISC] (XTABS): Likewise.
3565 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3566 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3567 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3568 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
3569
3570 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3571 termios-c_iflag.h.
3572 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
3573 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
3574 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
3575 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
3576 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
3577 IUTF8): Move to termios-c_iflag.h.
3578 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3579 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3580 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3581 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3582
3583 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3584 termios-cc.h.
3585 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
3586 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
3587 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
3588 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
3589 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
3590 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
3591 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
3592 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
3593 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3594 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3595 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3596 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3597
3598 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
3599 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
3600 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
3601 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
3602 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3603 termios-struct.h.
3604 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
3605 termios-struct.h.
3606 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
3607 Likewise.
3608 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
3609 Likewise.
3610 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
3611 Likewise.
3612 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
3613 Likewise.
3614 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
3615 _HAVE_C_OSPEED): Define.
3616 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
3617 _HAVE_C_OSPEED): Likewise.
3618 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
3619 _HAVE_C_OSPEED): Likewise.
3620 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
3621 (cfsetospeed): Check for define value instead of existence.
3622 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
3623 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3624 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
3625 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3626 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
3627
3628 [BZ #17783]
3629 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
3630 Define.
3631 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3632 (TIOCSER_TEMT): Likewise.
3633 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
3634 (TEOCSER_TEMT): Likewise.
3635
3636 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
3637
3638 [BZ #24011]
3639 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
3640
3641 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3642
3643 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3644
3645 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3646
3647 * sysdeps/htl/pt-barrierattr-setpshared.c
3648 (pthread_barrierattr_setpshared): Add stub warning.
3649 * sysdeps/htl/pt-condattr-setpshared.c
3650 (pthread_condattr_setpshared): Likewise.
3651 * sysdeps/htl/pt-mutexattr-setpshared.c
3652 (pthread_mutexattr_setpshared): Likewise.
3653 * sysdeps/htl/pt-rwlockattr-setpshared.c
3654 (pthread_rwlockattr_setpshared): Likewise.
3655 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
3656 (pthread_mutexattr_setpshared): Likewise.
3657
3658 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3659
3660 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
3661 constants to match with Linux 4.20.
3662
3663 * sysdeps/mips/mips32/libm-test-ulps: Update.
3664 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3665
3666 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
3667
3668 [BZ #24034]
3669 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
3670 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
3671 than __typeof (...) for the a_ptr variable.
3672
3673 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3674
3675 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
3676 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
3677 * libio/Makefile (tests): Add tst-sprintf-ub and
3678 tst-sprintf-chk-ub.
3679 (CFLAGS-tst-sprintf-ub.c): New variable.
3680 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
3681 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
3682 destination buffer and check for overflows in fortified mode.
3683 * libio/libioP.h (PRINTF_CHK): New macro.
3684 * libio/tst-sprintf-chk-ub.c: New file.
3685 * libio/tst-sprintf-ub.c: Likewise.
3686
3687 2019-01-02 Florian Weimer <fweimer@redhat.com>
3688
3689 [BZ #24018]
3690 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
3691 failure.
3692
3693 2019-01-02 Florian Weimer <fweimer@redhat.com>
3694
3695 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
3696
3697 2019-01-01 Joseph Myers <joseph@codesourcery.com>
3698
3699 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
3700 macro.
3701
3702 * sysdeps/unix/sysv/linux/netpacket/packet.h
3703 (PACKET_IGNORE_OUTGOING): New macro.
3704
3705 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
3706 macro.
3707
3708 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3709 version to 4.20.
3710 (riscv_flush_icache): New syscall.
3711
3712 * manual/texinfo.tex: Update to version 2018-12-28.17 with
3713 trailing whitespace removed.
3714 * scripts/config.guess: Update to version 2019-01-01.
3715 * scripts/config.sub: Update to version 2019-01-01.
3716 * scripts/move-if-change: Update from gnulib.
3717
3718 * NEWS: Update copyright dates.
3719 * catgets/gencat.c (print_version): Likewise.
3720 * csu/version.c (banner): Likewise.
3721 * debug/catchsegv.sh: Likewise.
3722 * debug/pcprofiledump.c (print_version): Likewise.
3723 * debug/xtrace.sh (do_version): Likewise.
3724 * elf/ldconfig.c (print_version): Likewise.
3725 * elf/ldd.bash.in: Likewise.
3726 * elf/pldd.c (print_version): Likewise.
3727 * elf/sotruss.sh: Likewise.
3728 * elf/sprof.c (print_version): Likewise.
3729 * iconv/iconv_prog.c (print_version): Likewise.
3730 * iconv/iconvconfig.c (print_version): Likewise.
3731 * locale/programs/locale.c (print_version): Likewise.
3732 * locale/programs/localedef.c (print_version): Likewise.
3733 * login/programs/pt_chown.c (print_version): Likewise.
3734 * malloc/memusage.sh (do_version): Likewise.
3735 * malloc/memusagestat.c (print_version): Likewise.
3736 * malloc/mtrace.pl: Likewise.
3737 * manual/libc.texinfo: Likewise.
3738 * nptl/version.c (banner): Likewise.
3739 * nscd/nscd.c (print_version): Likewise.
3740 * nss/getent.c (print_version): Likewise.
3741 * nss/makedb.c (print_version): Likewise.
3742 * posix/getconf.c (main): Likewise.
3743 * scripts/test-installation.pl: Likewise.
3744 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3745
3746 * All files with FSF copyright notices: Update copyright dates
3747 using scripts/update-copyrights.
3748 * locale/programs/charmap-kw.h: Regenerated.
3749 * locale/programs/locfile-kw.h: Likewise.
3750
3751 2018-12-31 Joseph Myers <joseph@codesourcery.com>
3752
3753 * timezone/zdump.c: Update from tzcode 2018i.
3754 * timezone/zic.c: Likewise.
3755
3756 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
3757
3758 regex: improve Gnulib port to AIX
3759 From the glibc point of view, this removes duplicate macro
3760 definitions and is obviously safe.
3761 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
3762 * posix/regex_internal.h:
3763 (__attribute__, __attribute_warn_unused_result__):
3764 Remove; already defined elsewhere.
3765
3766 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
3767
3768 [BZ #24027]
3769 * malloc/malloc.c (_int_realloc): Always call memcpy for the
3770 copying operation. (ncopies had the wrong type, resulting in an
3771 integer wraparound and too few elements being copied.)
3772
3773 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
3774
3775 [BZ #24022]
3776 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
3777 <asm/syscalls.h> exists with __has_include__ before including it.
3778
3779 2018-12-31 Joseph Myers <joseph@codesourcery.com>
3780
3781 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3782 version to 4.20.
3783
3784 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
3785
3786 * hurd/lookup-retry: Include <unistd.h>.
3787 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
3788 Release it on return. Handle "pid" magical lookup retry.
3789
3790 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
3791
3792 [BZ #10496]
3793 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
3794 (t_fmt_ampm): Likewise.
3795 * localedata/locales/aa_ER (t_fmt): Likewise.
3796 (t_fmt_ampm): Likewise.
3797 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
3798 (t_fmt_ampm): Likewise.
3799 * localedata/locales/aa_ET (t_fmt): Likewise.
3800 (t_fmt_ampm): Likewise.
3801 * localedata/locales/am_ET (t_fmt): Likewise.
3802 (t_fmt_ampm): Likewise.
3803 * localedata/locales/byn_ER (t_fmt): Likewise.
3804 (t_fmt_ampm): Likewise.
3805 * localedata/locales/om_ET (t_fmt): Likewise.
3806 (t_fmt_ampm): Likewise.
3807 * localedata/locales/sid_ET (t_fmt): Likewise.
3808 (t_fmt_ampm): Likewise.
3809 * localedata/locales/so_DJ (t_fmt): Likewise.
3810 (t_fmt_ampm): Likewise.
3811 * localedata/locales/so_ET (t_fmt): Likewise.
3812 (t_fmt_ampm): Likewise.
3813 * localedata/locales/so_SO (t_fmt): Likewise.
3814 (t_fmt_ampm): Likewise.
3815 * localedata/locales/ti_ER (t_fmt): Likewise.
3816 (t_fmt_ampm): Likewise.
3817 * localedata/locales/ti_ET (t_fmt): Likewise.
3818 (t_fmt_ampm): Likewise.
3819 * localedata/locales/tig_ER (t_fmt): Likewise.
3820 (t_fmt_ampm): Likewise.
3821 * localedata/locales/wal_ET (t_fmt): Likewise.
3822 (t_fmt_ampm): Likewise.
3823
3824 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
3825 * localedata/locales/ar_IN (t_fmt): Likewise.
3826 * localedata/locales/bhb_IN (t_fmt): Likewise.
3827 * localedata/locales/bho_IN (t_fmt): Likewise.
3828 * localedata/locales/bi_VU (t_fmt): Likewise.
3829 * localedata/locales/bn_BD (t_fmt): Likewise.
3830 * localedata/locales/bn_IN (t_fmt): Likewise.
3831 * localedata/locales/brx_IN (t_fmt): Likewise.
3832 * localedata/locales/doi_IN (t_fmt): Likewise.
3833 * localedata/locales/en_HK (t_fmt): Likewise.
3834 (t_fmt_ampm): Likewise.
3835 * localedata/locales/en_IN (t_fmt): Likewise.
3836 * localedata/locales/en_PH (t_fmt): Likewise.
3837 * localedata/locales/gu_IN (t_fmt): Likewise.
3838 * localedata/locales/hi_IN (t_fmt): Likewise.
3839 * localedata/locales/hif_FJ (t_fmt): Likewise.
3840 * localedata/locales/hne_IN (t_fmt): Likewise.
3841 * localedata/locales/kn_IN (t_fmt): Likewise.
3842 * localedata/locales/kok_IN (t_fmt): Likewise.
3843 * localedata/locales/ks_IN (t_fmt): Likewise.
3844 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
3845 * localedata/locales/mag_IN (t_fmt): Likewise.
3846 * localedata/locales/mai_IN (t_fmt): Likewise.
3847 * localedata/locales/mjw_IN (t_fmt): Likewise.
3848 * localedata/locales/ml_IN (t_fmt): Likewise.
3849 * localedata/locales/mni_IN (t_fmt): Likewise.
3850 * localedata/locales/mr_IN (t_fmt): Likewise.
3851 * localedata/locales/ms_MY (t_fmt): Likewise.
3852 * localedata/locales/pa_IN (t_fmt): Likewise.
3853 * localedata/locales/raj_IN (t_fmt): Likewise.
3854 * localedata/locales/sa_IN (t_fmt): Likewise.
3855 * localedata/locales/sat_IN (t_fmt): Likewise.
3856 * localedata/locales/sd_IN (t_fmt): Likewise.
3857 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
3858 * localedata/locales/tcy_IN (t_fmt): Likewise.
3859 * localedata/locales/the_NP (t_fmt): Likewise.
3860 * localedata/locales/to_TO (t_fmt): Likewise.
3861 * localedata/locales/ur_IN (t_fmt): Likewise.
3862
3863 * localedata/locales/hif_FJ (d_t_fmt): Set to
3864 "%A %d %b %Y %I:%M:%S %p".
3865 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
3866
3867 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
3868 * localedata/locales/ar_BH (t_fmt): Likewise.
3869 * localedata/locales/ar_DZ (t_fmt): Likewise.
3870 * localedata/locales/ar_EG (t_fmt): Likewise.
3871 * localedata/locales/ar_IQ (t_fmt): Likewise.
3872 * localedata/locales/ar_JO (t_fmt): Likewise.
3873 * localedata/locales/ar_KW (t_fmt): Likewise.
3874 * localedata/locales/ar_LB (t_fmt): Likewise.
3875 * localedata/locales/ar_LY (t_fmt): Likewise.
3876 * localedata/locales/ar_OM (t_fmt): Likewise.
3877 * localedata/locales/ar_QA (t_fmt): Likewise.
3878 * localedata/locales/ar_SD (t_fmt): Likewise.
3879 * localedata/locales/ar_SS (t_fmt): Likewise.
3880 * localedata/locales/ar_SY (t_fmt): Likewise.
3881 * localedata/locales/ar_TN (t_fmt): Likewise.
3882 * localedata/locales/ar_YE (t_fmt): Likewise.
3883
3884 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
3885 (t_fmt_ampm): Likewise.
3886 * localedata/locales/gez_ET (t_fmt): Likewise.
3887 (t_fmt_ampm): Likewise.
3888
3889 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
3890 (t_fmt_ampm): Likewise.
3891 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
3892
3893 * localedata/locales/zh_HK (t_fmt):
3894 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
3895
3896 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
3897 because this locale does not use the 12-hour clock.
3898 (t_fmt): Set to "%Z %H:%M:%S".
3899 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
3900
3901 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
3902 because this locale does not use the 12-hour clock.
3903 (t_fmt): Set to "%H:%M:%S %Z".
3904 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
3905
3906 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
3907 because this locale does not use the 12-hour clock.
3908 (t_fmt): Set to "%T".
3909 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
3910 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
3911
3912 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
3913 because this locale does not use the 12-hour clock.
3914 (t_fmt): Set to "%H:%M:%S %Z".
3915 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
3916
3917 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
3918 because this locale does not use the 12-hour clock.
3919 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
3920 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
3921
3922 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
3923
3924 [BZ #10496]
3925 [BZ #23724]
3926 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
3927 (t_fmt_ampm): Likewise.
3928 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
3929 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
3930 (d_fmt): Set to "%-d.%-m.%y".
3931
3932 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3933
3934 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
3935 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
3936 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
3937 Likewise.
3938 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
3939 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
3940 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
3941 function.
3942 * support/blob_repeat.c (check_mul_overflow_size_t,
3943 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
3944
3945 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
3946
3947 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
3948
3949 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
3950
3951 regex: simplify Gnulib port
3952 This simplifies the code, by removing stuff intended for porting
3953 to Gnulib but no longer needed there.
3954 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
3955 uses of libc_hidden_def, weak_alias.
3956 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
3957 _Restrict_ except for public-facing headers.
3958 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
3959 Remove; already defined elsewhere.
3960 * posix/regex.c, posix/regex_internal.h:
3961 Use __GNUC_PREREQ instead of rolling our own.
3962 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
3963
3964 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
3965
3966 * benchtests/bench-strlen.c (generic_strlen): New function.
3967 (memchr_strlen): New function.
3968
3969 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
3970
3971 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
3972 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
3973 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
3974
3975 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
3976
3977 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
3978
3979 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
3980
3981 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
3982 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
3983 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
3984 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
3985 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
3986 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
3987 <sysdeps/ieee754/flt-32/s_sincosf.c>.
3988
3989 2018-12-21 Joseph Myers <joseph@codesourcery.com>
3990
3991 [BZ #24023]
3992 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
3993 PLT reference in libc.so.
3994 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
3995 _Q_lltoq and _Q_qtod PLT references in libc.so.
3996
3997 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
3998
3999 * benchtests/bench-memchr.c: Cleanup defines.
4000 * benchtests/bench-memcmp.c: Likewise.
4001 * benchtests/bench-memset.c: Likewise.
4002 * benchtests/bench-memset-large.c: Likewise.
4003 * benchtests/bench-memset-walk.c: Likewise.
4004 * benchtests/bench-stpcpy.c: Likewise.
4005 * benchtests/bench-stpncpy.c: Likewise.
4006 * benchtests/bench-strcat.c: Likewise.
4007 * benchtests/bench-strchr.c: Likewise.
4008 * benchtests/bench-strcmp.c: Likewise.
4009 * benchtests/bench-strcpy.c: Likewise.
4010 * benchtests/bench-strcspn.c: Likewise.
4011 * benchtests/bench-string.h: Likewise.
4012 * benchtests/bench-strlen.c: Likewise.
4013 * benchtests/bench-strncat.c: Likewise.
4014 * benchtests/bench-strncmp.c: Likewise.
4015 * benchtests/bench-strncpy.c: Likewise.
4016 * benchtests/bench-strnlen.c: Likewise.
4017 * benchtests/bench-strpbrk.c: Likewise.
4018 * benchtests/bench-strrchr.c: Likewise.
4019 * benchtests/bench-strspn.c: Likewise.
4020
4021 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4022
4023 * stdlib/longlong.h: Update from GCC.
4024
4025 [BZ #23993]
4026 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4027 * configure: Regenerated.
4028 * manual/install.texi (Tools for Compilation): Update minimum GCC
4029 version.
4030 * INSTALL: Regenerated.
4031
4032 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4033
4034 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4035
4036 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4037
4038 * malloc/malloc.c (mremap_chunk): Additional checks.
4039
4040 2018-12-21 Mao Han <han_mao@c-sky.com>
4041
4042 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4043 * scripts/build-many-glibcs.py: Add C-SKY targets.
4044 * sysdeps/csky/Implies: New file.
4045 * sysdeps/csky/Makefile: Likewise.
4046 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4047 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4048 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4049 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4050 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4051 * sysdeps/csky/abiv2/memmove.S: Likewise.
4052 * sysdeps/csky/abiv2/memset.S: Likewise.
4053 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4054 * sysdeps/csky/abiv2/start.S: Likewise.
4055 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4056 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4057 * sysdeps/csky/abiv2/strlen.S: Likewise.
4058 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4059 * sysdeps/csky/abort-instr.h: Likewise.
4060 * sysdeps/csky/atomic-machine.h: Likewise.
4061 * sysdeps/csky/bits/endian.h: Likewise.
4062 * sysdeps/csky/bits/fenv.h: Likewise.
4063 * sysdeps/csky/bits/link.h: Likewise.
4064 * sysdeps/csky/bits/setjmp.h: Likewise.
4065 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4066 * sysdeps/csky/bsd-setjmp.S: Likewise.
4067 * sysdeps/csky/configure: Likewise.
4068 * sysdeps/csky/configure.ac: Likewise.
4069 * sysdeps/csky/dl-machine.h: Likewise.
4070 * sysdeps/csky/dl-procinfo.c: Likewise.
4071 * sysdeps/csky/dl-procinfo.h: Likewise.
4072 * sysdeps/csky/dl-sysdep.h: Likewise.
4073 * sysdeps/csky/dl-tls.h: Likewise.
4074 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4075 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4076 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4077 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4078 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4079 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4080 * sysdeps/csky/fpu/fegetround.c: Likewise.
4081 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4082 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4083 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4084 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4085 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4086 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4087 * sysdeps/csky/fpu/fesetround.c: Likewise.
4088 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4089 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4090 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4091 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4092 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4093 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4094 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4095 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4096 * sysdeps/csky/fpu_control.h: Likewise.
4097 * sysdeps/csky/gccframe.h: Likewise.
4098 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4099 * sysdeps/csky/ldsodefs.h: Likewise.
4100 * sysdeps/csky/libc-tls.c: Likewise.
4101 * sysdeps/csky/linkmap.h: Likewise.
4102 * sysdeps/csky/machine-gmon.h: Likewise.
4103 * sysdeps/csky/memusage.h: Likewise.
4104 * sysdeps/csky/nofpu/Implies: Likewise.
4105 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4106 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4107 * sysdeps/csky/nptl/Makefile: Likewise.
4108 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4109 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4110 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4111 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4112 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4113 * sysdeps/csky/nptl/tls.h: Likewise.
4114 * sysdeps/csky/preconfigure: Likewise.
4115 * sysdeps/csky/sfp-machine.h: Likewise.
4116 * sysdeps/csky/sotruss-lib.c: Likewise.
4117 * sysdeps/csky/stackinfo.h: Likewise.
4118 * sysdeps/csky/sysdep.h: Likewise.
4119 * sysdeps/csky/tininess.h: Likewise.
4120 * sysdeps/csky/tst-audit.h: Likewise.
4121 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4122 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4123 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4124 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4125 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4126 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4127 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4128 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4129 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4130 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4131 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4132 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4133 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4134 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4135 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4136 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4137 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4138 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4139 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4140 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4141 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4142 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4143 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4144 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4145 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4146 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4147 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4148 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4149 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4150 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4151 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4152 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4153 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4154 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4155 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4156 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4157 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4158 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4159 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4160 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4161 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4162 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4163 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4164 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4165
4166 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4167
4168 * include/time.h (__difftime64): Add.
4169 * time/difftime.c (subtract): convert to 64-bit time.
4170 * time/difftime.c (__difftime64): Add.
4171 * time/difftime.c (__difftime): Wrap around __difftime64.
4172
4173 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4174
4175 * manual/examples/add.c: Remove redundant "if not".
4176 * manual/examples/argp-ex1.c: Likewise.
4177 * manual/examples/argp-ex2.c: Likewise.
4178 * manual/examples/argp-ex3.c: Likewise.
4179 * manual/examples/argp-ex4.c: Likewise.
4180 * manual/examples/atexit.c: Likewise.
4181 * manual/examples/db.c: Likewise.
4182 * manual/examples/dir.c: Likewise.
4183 * manual/examples/dir2.c: Likewise.
4184 * manual/examples/execinfo.c: Likewise.
4185 * manual/examples/filecli.c: Likewise.
4186 * manual/examples/filesrv.c: Likewise.
4187 * manual/examples/fmtmsgexpl.c: Likewise.
4188 * manual/examples/genpass.c: Likewise.
4189 * manual/examples/inetcli.c: Likewise.
4190 * manual/examples/inetsrv.c: Likewise.
4191 * manual/examples/isockad.c: Likewise.
4192 * manual/examples/longopt.c: Likewise.
4193 * manual/examples/memopen.c: Likewise.
4194 * manual/examples/memstrm.c: Likewise.
4195 * manual/examples/mkdirent.c: Likewise.
4196 * manual/examples/mkfsock.c: Likewise.
4197 * manual/examples/mkisock.c: Likewise.
4198 * manual/examples/mygetpass.c: Likewise.
4199 * manual/examples/pipe.c: Likewise.
4200 * manual/examples/popen.c: Likewise.
4201 * manual/examples/rprintf.c: Likewise.
4202 * manual/examples/search.c: Likewise.
4203 * manual/examples/select.c: Likewise.
4204 * manual/examples/setjmp.c: Likewise.
4205 * manual/examples/sigh1.c: Likewise.
4206 * manual/examples/sigusr.c: Likewise.
4207 * manual/examples/stpcpy.c: Likewise.
4208 * manual/examples/strdupa.c: Likewise.
4209 * manual/examples/strftim.c: Likewise.
4210 * manual/examples/subopt.c: Likewise.
4211 * manual/examples/swapcontext.c: Likewise.
4212 * manual/examples/termios.c: Likewise.
4213 * manual/examples/testopt.c: Likewise.
4214 * manual/examples/testpass.c: Likewise.
4215 * manual/examples/timeval_subtract.c: Likewise.
4216
4217 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4218
4219 * sysdeps/x86/fpu/math_private.h: New file.
4220 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4221
4222 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4223 definition.
4224 (cosh): Likewise.
4225 (tanh): Likewise.
4226
4227 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4228
4229 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4230 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4231 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4232 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4233 fields.
4234 (_dl_show_auxv): Give a special treatment to
4235 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4236 and AT_L3_CACHEGEOMETRY.
4237 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4238 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4239 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4240 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4241
4242 2018-12-19 Andreas Schwab <schwab@suse.de>
4243
4244 * nscd/connections.c (check_use): Don't abort on invalid len.
4245
4246 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4247
4248 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4249 values in the 64bit value cases.
4250
4251 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4252
4253 * include/time.h
4254 (__ctime64_r): Add.
4255 * time/ctime_r.c
4256 (__ctime64_r): Add.
4257 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4258
4259 * include/time.h
4260 (__ctime64): Add.
4261 * time/gmtime.c
4262 (__ctime64): Add.
4263 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4264
4265 * include/time.h
4266 (__gmtime64_r): Add.
4267 * time/gmtime.c
4268 (__gmtime64_r): Add.
4269 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4270
4271 * include/time.h
4272 (__gmtime64): Add.
4273 * time/gmtime.c
4274 (__gmtime64): Add.
4275 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4276
4277 * include/time.h
4278 (__localtime64_r): Add.
4279 * time/localtime.c
4280 (__localtime64_r): Add.
4281 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4282
4283 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4284
4285 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4286 kernel_sigction definition.
4287
4288 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4289
4290 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4291
4292 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4293 __syscall_rt_sigaction.
4294 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4295 (kernel_sigaction): Use Linux generic defintion.
4296 (STUB): Define.
4297 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4298 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4299 (__syscall_rt_sigaction): Remove implementation.
4300 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4301 hidden.
4302 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4303 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4304 INTERNAL_SYSCALL): Remove definitions.
4305 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4306 action and signal set size.
4307 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4308 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4309
4310 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4311 James Clarke <jrtc27@jrtc27.com>
4312
4313 [BZ #23967]
4314 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4315 Define if SA_RESTORER is defined.
4316 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4317 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4318 already defined.
4319 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4320 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4321 definitions.
4322 (HAS_SA_RESTORER): Define.
4323 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4324 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4325 (HAS_SA_RESTORER): Define.
4326 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4327 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4328 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4329 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4330 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4331
4332 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4333
4334 * sysdeps/unix/sysv/linux/kernel-features.h
4335 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4336 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4337 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4338 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4339 (__ASSUME_ST_INO_64_BIT): Likewise.
4340 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4341 <kernel-features.h>.
4342 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4343 Remove conditional code.
4344 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4345 <kernel-features.h>.
4346 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4347 Remove conditional code.
4348 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4349 <kernel-features.h>.
4350 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4351 Remove conditional code.
4352 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4353 <kernel-features.h>.
4354 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4355 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4356
4357 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4358
4359 * sysdeps/s390/multiarch/ifunc-resolve.h
4360 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4361 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4362 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4363 Delete macro definition.
4364 (s390_libc_ifunc_init): Rename to
4365 s390_libc_ifunc_expr_stfle_init.
4366 * sysdeps/s390/bzero: Use
4367 s390_libc_ifunc_expr_stfle_init instead of
4368 s390_libc_ifunc_init.
4369 * sysdeps/s390/memcmp.c: Likewise.
4370 * sysdeps/s390/memcpy.c: Likewise.
4371 * sysdeps/s390/mempcpy.c: Likewise.
4372 * sysdeps/s390/memset.c: Likewise.
4373
4374 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4375
4376 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4377 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4378
4379 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4380
4381 * sysdeps/s390/multiarch/Makefile
4382 (sysdep_routines): Remove wmemcmp variants.
4383 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4384 * sysdeps/s390/multiarch/ifunc-impl-list.c
4385 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4386 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4387 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4388 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4389 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4390 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4391 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4392 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4393
4394 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4395
4396 * sysdeps/s390/multiarch/Makefile
4397 (sysdep_routines): Remove wmemset variants.
4398 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
4399 * sysdeps/s390/multiarch/ifunc-impl-list.c
4400 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
4401 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
4402 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
4403 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
4404 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
4405 * sysdeps/s390/multiarch/wmemset.c: Move to ...
4406 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
4407 * sysdeps/s390/ifunc-wmemset.h: New file.
4408
4409 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4410
4411 * sysdeps/s390/multiarch/Makefile
4412 (sysdep_routines): Remove wmemchr variants.
4413 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
4414 * sysdeps/s390/multiarch/ifunc-impl-list.c
4415 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
4416 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
4417 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
4418 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
4419 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
4420 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
4421 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
4422 * sysdeps/s390/ifunc-wmemchr.h: New file.
4423
4424 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4425
4426 * sysdeps/s390/multiarch/Makefile
4427 (sysdep_routines): Remove wcscspn variants.
4428 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
4429 * sysdeps/s390/multiarch/ifunc-impl-list.c
4430 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
4431 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
4432 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
4433 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
4434 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
4435 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
4436 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
4437 * sysdeps/s390/ifunc-wcscspn.h: New file.
4438
4439 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4440
4441 * sysdeps/s390/multiarch/Makefile
4442 (sysdep_routines): Remove wcspbrk variants.
4443 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
4444 * sysdeps/s390/multiarch/ifunc-impl-list.c
4445 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
4446 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
4447 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
4448 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
4449 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
4450 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
4451 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
4452 * sysdeps/s390/ifunc-wcspbrk.h: New file.
4453
4454 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4455
4456 * sysdeps/s390/multiarch/Makefile
4457 (sysdep_routines): Remove wcsspn variants.
4458 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
4459 * sysdeps/s390/multiarch/ifunc-impl-list.c
4460 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
4461 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
4462 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
4463 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
4464 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
4465 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
4466 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
4467 * sysdeps/s390/ifunc-wcsspn.h: New file.
4468
4469 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4470
4471 * sysdeps/s390/multiarch/Makefile
4472 (sysdep_routines): Remove wcsrchr variants.
4473 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
4474 * sysdeps/s390/multiarch/ifunc-impl-list.c
4475 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
4476 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
4477 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
4478 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
4479 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
4480 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
4481 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
4482 * sysdeps/s390/ifunc-wcsrchr.h: New file.
4483
4484 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4485
4486 * sysdeps/s390/multiarch/Makefile
4487 (sysdep_routines): Remove wcschrnul variants.
4488 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
4489 * sysdeps/s390/multiarch/ifunc-impl-list.c
4490 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
4491 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
4492 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
4493 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
4494 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
4495 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
4496 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
4497 * sysdeps/s390/ifunc-wcschrnul.h: New file.
4498
4499 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4500
4501 * sysdeps/s390/multiarch/Makefile
4502 (sysdep_routines): Remove wcschr variants.
4503 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
4504 * sysdeps/s390/multiarch/ifunc-impl-list.c
4505 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
4506 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
4507 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
4508 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
4509 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
4510 * sysdeps/s390/multiarch/wcschr.c: Move to ...
4511 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
4512 * sysdeps/s390/ifunc-wcschr.h: New file.
4513
4514 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4515
4516 * sysdeps/s390/multiarch/Makefile
4517 (sysdep_routines): Remove wcsncmp variants.
4518 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
4519 * sysdeps/s390/multiarch/ifunc-impl-list.c
4520 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
4521 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
4522 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
4523 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
4524 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
4525 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
4526 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
4527 * sysdeps/s390/ifunc-wcsncmp.h: New file.
4528
4529 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4530
4531 * sysdeps/s390/multiarch/Makefile
4532 (sysdep_routines): Remove wcscmp variants.
4533 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
4534 * sysdeps/s390/multiarch/ifunc-impl-list.c
4535 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
4536 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
4537 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
4538 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
4539 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
4540 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
4541 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
4542 * sysdeps/s390/ifunc-wcscmp.h: New file.
4543
4544 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4545
4546 * sysdeps/s390/multiarch/Makefile
4547 (sysdep_routines): Remove wcsncat variants.
4548 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
4549 * sysdeps/s390/multiarch/ifunc-impl-list.c
4550 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
4551 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
4552 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
4553 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
4554 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
4555 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
4556 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
4557 * sysdeps/s390/ifunc-wcsncat.h: New file.
4558
4559 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4560
4561 * sysdeps/s390/multiarch/Makefile
4562 (sysdep_routines): Remove wcscat variants.
4563 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
4564 * sysdeps/s390/multiarch/ifunc-impl-list.c
4565 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
4566 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
4567 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
4568 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
4569 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
4570 * sysdeps/s390/multiarch/wcscat.c: Move to ...
4571 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
4572 * sysdeps/s390/ifunc-wcscat.h: New file.
4573
4574 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4575
4576 * sysdeps/s390/multiarch/Makefile
4577 (sysdep_routines): Remove wcpncpy variants.
4578 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
4579 * sysdeps/s390/multiarch/ifunc-impl-list.c
4580 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
4581 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
4582 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
4583 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
4584 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
4585 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
4586 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
4587 * sysdeps/s390/ifunc-wcpncpy.h: New file.
4588
4589 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4590
4591 * sysdeps/s390/multiarch/Makefile
4592 (sysdep_routines): Remove wcsncpy variants.
4593 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
4594 * sysdeps/s390/multiarch/ifunc-impl-list.c
4595 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
4596 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
4597 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
4598 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
4599 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
4600 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
4601 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
4602 * sysdeps/s390/ifunc-wcsncpy.h: New file.
4603
4604 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4605
4606 * sysdeps/s390/multiarch/Makefile
4607 (sysdep_routines): Remove wcpcpy variants.
4608 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
4609 * sysdeps/s390/multiarch/ifunc-impl-list.c
4610 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
4611 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
4612 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
4613 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
4614 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
4615 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
4616 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
4617 * sysdeps/s390/ifunc-wcpcpy.h: New file.
4618
4619 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4620
4621 * sysdeps/s390/multiarch/Makefile
4622 (sysdep_routines): Remove wcscpy variants.
4623 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
4624 * sysdeps/s390/multiarch/ifunc-impl-list.c
4625 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
4626 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
4627 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
4628 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
4629 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
4630 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
4631 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
4632 * sysdeps/s390/ifunc-wcscpy.h: New file.
4633
4634 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4635
4636 * sysdeps/s390/multiarch/Makefile
4637 (sysdep_routines): Remove wcsnlen variants.
4638 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
4639 * sysdeps/s390/multiarch/ifunc-impl-list.c
4640 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
4641 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
4642 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
4643 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
4644 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
4645 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
4646 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
4647 * sysdeps/s390/ifunc-wcsnlen.h: New file.
4648
4649 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4650
4651 * sysdeps/s390/multiarch/Makefile
4652 (sysdep_routines): Remove wcslen variants.
4653 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
4654 * sysdeps/s390/multiarch/ifunc-impl-list.c
4655 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
4656 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
4657 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
4658 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
4659 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
4660 * sysdeps/s390/multiarch/wcslen.c: Move to ...
4661 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
4662 * sysdeps/s390/ifunc-wcslen.h: New file.
4663
4664 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4665
4666 * sysdeps/s390/multiarch/Makefile
4667 (sysdep_routines): Remove memrchr variants.
4668 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
4669 * sysdeps/s390/multiarch/ifunc-impl-list.c
4670 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
4671 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
4672 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
4673 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
4674 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
4675 * sysdeps/s390/multiarch/memrchr.c: Move to ...
4676 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
4677 * sysdeps/s390/ifunc-memrchr.h: New file.
4678
4679 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4680
4681 * sysdeps/s390/multiarch/Makefile
4682 (sysdep_routines): Remove memccpy variants.
4683 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
4684 * sysdeps/s390/multiarch/ifunc-impl-list.c
4685 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
4686 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
4687 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
4688 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
4689 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
4690 * sysdeps/s390/multiarch/memccpy.c: Move to ...
4691 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
4692 * sysdeps/s390/ifunc-memccpy.h: New file.
4693
4694 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4695
4696 * sysdeps/s390/multiarch/Makefile
4697 (sysdep_routines): Remove rawmemchr variants.
4698 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
4699 * sysdeps/s390/multiarch/ifunc-impl-list.c
4700 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
4701 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
4702 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
4703 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
4704 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
4705 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
4706 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
4707 * sysdeps/s390/ifunc-rawmemchr.h: New file.
4708
4709 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4710
4711 * sysdeps/s390/multiarch/Makefile
4712 (sysdep_routines): Remove memchr variants.
4713 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
4714 * sysdeps/s390/multiarch/ifunc-impl-list.c
4715 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
4716 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
4717 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
4718 * sysdeps/s390/multiarch/memchr.c: Move to ...
4719 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
4720 * sysdeps/s390/ifunc-memchr.h: New file.
4721 * sysdeps/s390/s390-64/memchr.S: Move to ...
4722 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
4723 for 31/64bit and ifunc handling.
4724 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
4725 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
4726 * sysdeps/s390/s390-32/memchr.S: Likewise.
4727
4728 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4729
4730 * sysdeps/s390/multiarch/Makefile
4731 (sysdep_routines): Remove strcspn variants.
4732 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
4733 * sysdeps/s390/multiarch/ifunc-impl-list.c
4734 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
4735 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
4736 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
4737 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
4738 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
4739 * sysdeps/s390/multiarch/strcspn.c: Move to ...
4740 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
4741 * sysdeps/s390/ifunc-strcspn.h: New file.
4742
4743 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4744
4745 * sysdeps/s390/multiarch/Makefile
4746 (sysdep_routines): Remove strpbrk variants.
4747 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
4748 * sysdeps/s390/multiarch/ifunc-impl-list.c
4749 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
4750 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
4751 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
4752 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
4753 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
4754 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
4755 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
4756 * sysdeps/s390/ifunc-strpbrk.h: New file.
4757
4758 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4759
4760 * sysdeps/s390/multiarch/Makefile
4761 (sysdep_routines): Remove strspn variants.
4762 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
4763 * sysdeps/s390/multiarch/ifunc-impl-list.c
4764 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
4765 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
4766 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
4767 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
4768 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
4769 * sysdeps/s390/multiarch/strspn.c: Move to ...
4770 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
4771 * sysdeps/s390/ifunc-strspn.h: New file.
4772
4773 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4774
4775 * sysdeps/s390/multiarch/Makefile
4776 (sysdep_routines): Remove strrchr variants.
4777 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
4778 * sysdeps/s390/multiarch/ifunc-impl-list.c
4779 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
4780 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
4781 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
4782 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
4783 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
4784 * sysdeps/s390/multiarch/strrchr.c: Move to ...
4785 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
4786 * sysdeps/s390/ifunc-strrchr.h: New file.
4787
4788 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4789
4790 * sysdeps/s390/multiarch/Makefile
4791 (sysdep_routines): Remove strchrnul variants.
4792 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
4793 * sysdeps/s390/multiarch/ifunc-impl-list.c
4794 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
4795 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
4796 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
4797 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
4798 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
4799 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
4800 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
4801 * sysdeps/s390/ifunc-strchrnul.h: New file.
4802
4803 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4804
4805 * sysdeps/s390/multiarch/Makefile
4806 (sysdep_routines): Remove strchr variants.
4807 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
4808 * sysdeps/s390/multiarch/ifunc-impl-list.c
4809 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
4810 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
4811 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
4812 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
4813 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
4814 * sysdeps/s390/multiarch/strchr.c: Move to ...
4815 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
4816 * sysdeps/s390/ifunc-strchr.h: New file.
4817
4818 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4819
4820 * sysdeps/s390/multiarch/Makefile
4821 (sysdep_routines): Remove strncmp variants.
4822 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
4823 * sysdeps/s390/multiarch/ifunc-impl-list.c
4824 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
4825 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
4826 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
4827 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
4828 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
4829 * sysdeps/s390/multiarch/strncmp.c: Move to ...
4830 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
4831 * sysdeps/s390/ifunc-strncmp.h: New file.
4832
4833 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4834
4835 * sysdeps/s390/multiarch/Makefile
4836 (sysdep_routines): Remove strcmp variants.
4837 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
4838 * sysdeps/s390/multiarch/ifunc-impl-list.c
4839 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
4840 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
4841 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
4842 * sysdeps/s390/multiarch/strcmp.c: Move to ...
4843 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
4844 * sysdeps/s390/ifunc-strcmp.h: New file.
4845 * sysdeps/s390/s390-64/strcmp.S: Move to ...
4846 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
4847 for 31/64bit and ifunc handling.
4848 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
4849 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
4850 * sysdeps/s390/s390-32/strcmp.S: Likewise.
4851
4852 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4853
4854 * sysdeps/s390/multiarch/Makefile
4855 (sysdep_routines): Remove strncat variants.
4856 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
4857 * sysdeps/s390/multiarch/ifunc-impl-list.c
4858 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
4859 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
4860 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
4861 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
4862 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
4863 * sysdeps/s390/multiarch/strncat.c: Move to ...
4864 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
4865 * sysdeps/s390/ifunc-strncat.h: New file.
4866
4867 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4868
4869 * sysdeps/s390/multiarch/Makefile
4870 (sysdep_routines): Remove strcat variants.
4871 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
4872 * sysdeps/s390/multiarch/ifunc-impl-list.c
4873 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
4874 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
4875 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
4876 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
4877 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
4878 * sysdeps/s390/multiarch/strcat.c: Move to ...
4879 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
4880 * sysdeps/s390/ifunc-strcat.h: New file.
4881
4882 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4883
4884 * sysdeps/s390/multiarch/Makefile
4885 (sysdep_routines): Remove stpncpy variants.
4886 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
4887 * sysdeps/s390/multiarch/ifunc-impl-list.c
4888 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
4889 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
4890 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
4891 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
4892 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
4893 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
4894 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
4895 * sysdeps/s390/ifunc-stpncpy.h: New file.
4896
4897 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4898
4899 * sysdeps/s390/multiarch/Makefile
4900 (sysdep_routines): Remove strncpy variants.
4901 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
4902 * sysdeps/s390/multiarch/ifunc-impl-list.c
4903 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
4904 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
4905 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
4906 * sysdeps/s390/multiarch/strncpy.c: Move to ...
4907 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
4908 * sysdeps/s390/ifunc-strncpy.h: New file.
4909 * sysdeps/s390/s390-64/strncpy.S: Move to ...
4910 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
4911 and adjust ifunc handling.
4912 * sysdeps/s390/s390-32/strncpy.S: Move to ...
4913 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
4914 and adjust ifunc handling.
4915 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
4916 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
4917
4918 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4919
4920 * sysdeps/s390/multiarch/Makefile
4921 (sysdep_routines): Remove stpcpy variants.
4922 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
4923 * sysdeps/s390/multiarch/ifunc-impl-list.c
4924 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
4925 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
4926 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
4927 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
4928 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
4929 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
4930 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
4931 * sysdeps/s390/ifunc-stpcpy.h: New file.
4932
4933 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4934
4935 * sysdeps/s390/multiarch/Makefile
4936 (sysdep_routines): Remove strcpy variants.
4937 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
4938 * sysdeps/s390/multiarch/ifunc-impl-list.c
4939 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
4940 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
4941 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
4942 * sysdeps/s390/multiarch/strcpy.c: Move to ...
4943 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
4944 * sysdeps/s390/ifunc-strcpy.h: New file.
4945 * sysdeps/s390/s390-64/strcpy.S: Move to ...
4946 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
4947 for 31/64bit and ifunc handling.
4948 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
4949 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
4950 * sysdeps/s390/s390-32/strcpy.S: Likewise.
4951
4952 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4953
4954 * sysdeps/s390/multiarch/Makefile
4955 (sysdep_routines): Remove strnlen variants.
4956 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
4957 * sysdeps/s390/multiarch/ifunc-impl-list.c
4958 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
4959 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
4960 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
4961 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
4962 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
4963 * sysdeps/s390/multiarch/strnlen.c: Move to ...
4964 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
4965 * sysdeps/s390/ifunc-strnlen.h: New file.
4966
4967 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4968
4969 * sysdeps/s390/multiarch/Makefile
4970 (sysdep_routines): Remove strlen variants.
4971 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
4972 * sysdeps/s390/multiarch/ifunc-impl-list.c
4973 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
4974 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
4975 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
4976 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
4977 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
4978 * sysdeps/s390/multiarch/strlen.c: Move to ...
4979 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
4980 * sysdeps/s390/ifunc-strlen.h: New file.
4981
4982 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4983
4984 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
4985 * sysdeps/s390/multiarch/ifunc-impl-list.c
4986 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
4987 * sysdeps/s390/ifunc-memmem.h: New file.
4988 * sysdeps/s390/memmem.c: Likewise.
4989 * sysdeps/s390/memmem-c.c: Likewise.
4990 * sysdeps/s390/memmem-vx.c: Likewise.
4991
4992 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4993
4994 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
4995 * sysdeps/s390/multiarch/ifunc-impl-list.c
4996 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
4997 * sysdeps/s390/ifunc-strstr.h: New file.
4998 * sysdeps/s390/strstr.c: Likewise.
4999 * sysdeps/s390/strstr-c.c: Likewise.
5000 * sysdeps/s390/strstr-vx.c: Likewise.
5001
5002 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5003
5004 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5005 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5006 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5007 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5008 New defines.
5009 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5010 * sysdeps/s390/memmove-c.c: New file.
5011 * sysdeps/s390/memmove.c: Likewise.
5012 * sysdeps/s390/multiarch/ifunc-impl-list.c
5013 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5014
5015 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5016
5017 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5018 * sysdeps/s390/configure.ac: Add check for z13 support.
5019 * sysdeps/s390/configure: Regenerated.
5020
5021 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5022
5023 * sysdeps/s390/memcopy.h: New file.
5024
5025 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5026
5027 * sysdeps/s390/s390-32/bcopy.S: Remove.
5028 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5029
5030 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5031
5032 * sysdeps/s390/ifunc-memcpy.h: New File.
5033 * sysdeps/s390/memcpy.S: Move to ...
5034 * sysdeps/s390/memcpy-z900.S ... here.
5035 Move implementations from memcpy-s390x.s to here.
5036 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5037 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5038 Remove memcpy/mempcpy variants.
5039 * sysdeps/s390/Makefile (sysdep_routines):
5040 Add memcpy/mempcpy variants.
5041 * sysdeps/s390/multiarch/ifunc-impl-list.c
5042 (__libc_ifunc_impl_list): Adjust ifunc variants for
5043 memcpy and mempcpy.
5044 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5045 to ...
5046 * sysdeps/s390/memcpy.c: ... here.
5047 Adjust ifunc variants for memcpy.
5048 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5049 * sysdeps/s390/mempcpy.c: ... here.
5050 Adjust ifunc variants for mempcpy.
5051 * sysdeps/s390/mempcpy.S: Delete file.
5052
5053 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5054
5055 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5056 * sysdeps/s390/memcpy.S: ... here.
5057 Adjust to be usable for 31/64bit.
5058 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5059 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5060 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5061 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5062 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5063 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5064 Adjust to be usable for 31/64bit.
5065 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5066 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5067 * sysdeps/s390/multiarch/memcpy.c: ... here.
5068 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5069
5070 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5071
5072 * sysdeps/s390/ifunc-memcmp.h: New File.
5073 * sysdeps/s390/memcmp.S: Move to ...
5074 * sysdeps/s390/memcmp-z900.S ... here.
5075 Move implementations from memcmp-s390x.s to here.
5076 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5077 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5078 Remove memcmp variants.
5079 * sysdeps/s390/Makefile (sysdep_routines):
5080 Add memcmp variants.
5081 * sysdeps/s390/multiarch/ifunc-impl-list.c
5082 (__libc_ifunc_impl_list): Adjust ifunc variants for
5083 memcmp.
5084 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5085 to ...
5086 * sysdeps/s390/memcmp.c: ... here.
5087 Adjust ifunc variants for memcmp.
5088
5089 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5090
5091 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5092 * sysdeps/s390/memcmp.S: ... here.
5093 Adjust to be usable for 31/64bit.
5094 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5095 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5096 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5097 Remove memcmp.
5098 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5099 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5100 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5101 Adjust to be usable for 31/64bit.
5102 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5103 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5104 * sysdeps/s390/multiarch/memcmp.c: ... here.
5105 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5106
5107 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5108
5109 * sysdeps/s390/s390-32/bzero.S: Delete file.
5110 * sysdeps/s390/s390-64/bzero.S: Likewise.
5111 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5112 * sysdeps/s390/bzero.c: New file.
5113 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5114 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5115 * sysdeps/s390/multiarch/ifunc-impl-list.c
5116 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5117
5118 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5119
5120 * sysdeps/s390/ifunc-memset.h: New File.
5121 * sysdeps/s390/memset.S: Move to ...
5122 * sysdeps/s390/memset-z900.S ... here.
5123 Move implementations from memset-s390x.s to here.
5124 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5125 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5126 Remove memset variants.
5127 * sysdeps/s390/Makefile (sysdep_routines):
5128 Add memset variants.
5129 * sysdeps/s390/multiarch/ifunc-impl-list.c
5130 (__libc_ifunc_impl_list): Adjust ifunc variants for
5131 memset.
5132 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5133 to ...
5134 * sysdeps/s390/memset.c: ... here.
5135 Adjust ifunc variants for memset.
5136
5137 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5138
5139 * sysdeps/s390/s390-64/memset.S: Move to ...
5140 * sysdeps/s390/memset.S: ... here.
5141 Adjust to be usable for 31/64bit.
5142 * sysdeps/s390/s390-32/memset.S: Delete File.
5143 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5144 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5145 Remove memset.
5146 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5147 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5148 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5149 Adjust to be usable for 31/64bit.
5150 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5151 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5152 * sysdeps/s390/multiarch/memset.c: ... here.
5153 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5154
5155 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5156
5157 * sysdeps/s390/multiarch/ifunc-resolve.h
5158 (s390_libc_ifunc_init, s390_libc_ifunc,
5159 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5160
5161 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5162
5163 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5164 * sysdeps/s390/configure.ac: Add check for z10 support.
5165 * sysdeps/s390/configure: Regenerated.
5166
5167 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5168
5169 * sysdeps/i386/atomic-machine.h: Merged with ...
5170 * sysdeps/x86_64/atomic-machine.h: To ...
5171 * sysdeps/x86/atomic-machine.h: This. New file.
5172
5173 2018-12-18 Florian Weimer <fweimer@redhat.com>
5174
5175 Rewrite locale/gen-translit.pl in Python.
5176 * locale/Makefile (generated): Add C-translit.h.
5177 (before-compile): Add $(objpfx)C-translit.h.
5178 (C-translit.h): Move to $(objpfx). Create target directory.
5179 Build using Python script.
5180 * locale/gen-translit.py: New file.
5181 * locale/gen-translit.pl: Remove file.
5182 * locale/C-translit.h.in: Change comment character to '#' for
5183 easier parsing without a C preprocessor.
5184 * locale/C-translit.h: Remove generated file.
5185 * manual/install.texi (Tools for Compilation): Do not mention
5186 C-translit.h.
5187 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5188 Remove locale/C-translit.h.
5189 * scripts/update-copyrights: Likewise.
5190 * INSTALL: Regenerate.
5191
5192 2018-12-18 Florian Weimer <fweimer@redhat.com>
5193
5194 [BZ #23995]
5195 * localedata/locales/bi_VU: Remove executable bit from file.
5196
5197 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5198
5199 * include/time.h
5200 (__localtime64): Add.
5201 * manual/maint.texi: Document Y2038 symbol handling.
5202 * time/localtime.c
5203 (__localtime64): Add.
5204 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5205
5206 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5207
5208 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5209 Do not clobber r12.
5210
5211 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5212 to allow extra macros from first or second sources.
5213 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5214 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5215 (tests-special): Add $(objpfx)tst-mman-consts.out.
5216 ($(objpfx)tst-mman-consts.out): New makefile target.
5217
5218 2018-12-17 Mao Han <han_mao@c-sky.com>
5219
5220 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5221 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5222 without stat64 system call support.
5223 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5224 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5225 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5226 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5227 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5228 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5229 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5230 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5231 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5232 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5233 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5234
5235 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5236
5237 regex: fix storage-exhaustion error
5238 [BZ #18040]
5239 * posix/regexec.c (get_subexp):
5240 Do not continue if storage is exhausted.
5241
5242 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5243
5244 regex: fix heap-use-after-free error
5245 [BZ #18040]
5246 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5247 https://debbugs.gnu.org/32592
5248 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5249 call extend_buffers which reallocates the re_string_t internal buffer.
5250 Local variable 'buf' was not updated in such case, resulting in
5251 use-after-free.
5252 * posix/regexec.c (get_subexp): Update 'buf' after call to
5253 get_subexp_sub.
5254
5255 2018-12-15 Florian Weimer <fweimer@redhat.com>
5256
5257 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5258 (minimum_stride_size): Use it.
5259 (support_blob_repeat_allocate): Likewise.
5260
5261 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5262
5263 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5264 definition.
5265 (acosh): Likewise.
5266 (atanh): Likewise.
5267
5268 2018-12-14 Florian Weimer <fweimer@redhat.com>
5269
5270 * manual/process.texi (Process Creation Concepts): Remove
5271 documentation of process (ID) lifetime. List more process
5272 creation functions. Reference Process Identification section.
5273 (Process Identification): Add information about process ID
5274 lifetime. Describe Linux thread/task IDs.
5275 * manual/signal.texi (Signaling Another Process): Mention that the
5276 signal is always sent to the process.
5277
5278 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5279
5280 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5281 and tst-ldbl-efgcvt.
5282 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5283 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5284 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5285 (fcvt_tests, output_error, output_r_error, do_test): Use the
5286 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5287 select the type of floating-point variables and arguments; to
5288 produce extra tests for double and conversion specifiers for
5289 printf; and to set the names of called functions.
5290 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5291 in tst-efgcvt-template.c.
5292 * misc/tst-ldbl-efgcvt.c: Likewise.
5293
5294 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5295
5296 * nss/Makefile (tst-nss-test3.out): New rule.
5297
5298 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5299
5300 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5301 clobber sp.
5302
5303 2018-12-13 fanjinke <fanjinke@hygon.cn>
5304
5305 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5306 "HygonGenuine".
5307
5308 2018-12-13 Andreas Schwab <schwab@suse.de>
5309
5310 [BZ #23861]
5311 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5312 (__pthread_rwlock_rdlock_full): Update expected value for
5313 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5314 * nptl/tst-rwlock-pwn.c: New file.
5315 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5316
5317 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5318
5319 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5320 definition.
5321
5322 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5323
5324 * benchtests/scripts/compare_bench.py (do_compare): write to
5325 stderr in casestat is not present.
5326 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5327 stderr in case timings field is not present. Also string showing
5328 the output filename goes into the stderr.
5329
5330 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5331
5332 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5333 and ZeroDivisorError exceptions.
5334 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5335 argument to loop through user provided statistics.
5336 * benchtests/scripts/compare_bench.py (main): Include the --stats
5337 argument.
5338
5339 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5340
5341 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5342 instead of return.
5343
5344 2018-12-12 Florian Weimer <fweimer@redhat.com>
5345
5346 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5347 clause to copyright header.
5348
5349 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5350
5351 [BZ #23614]
5352 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5353 registers saved in the stack frame.
5354 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5355 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5356
5357 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5358
5359 * include/bits/monetary-ldbl.h: New file.
5360 * include/bits/printf-ldbl.h: Likewise.
5361 * include/bits/stdio-ldbl.h: Likewise.
5362 * include/bits/stdlib-ldbl.h: Likewise.
5363 * include/bits/syslog-ldbl.h: Likewise.
5364 * include/bits/wchar-ldbl.h: Likewise.
5365
5366 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5367
5368 * libio/libio.h: Remove redirection for _IO_vfprintf.
5369
5370 2018-12-11 Andreas Schwab <schwab@suse.de>
5371
5372 * Makerules: Remove all references to abilist-pattern.
5373 (update-all-abi): Simplify find expression.
5374
5375 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5376
5377 [BZ #23961]
5378 * math/auto-libm-test-in: Add new test case.
5379 * math/auto-libm-test-out-pow: Regenerated.
5380 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5381
5382 2018-12-10 DJ Delorie <dj@redhat.com>
5383
5384 [BZ #23948]
5385 * support/test-container.c: Move postclean step to before we
5386 change namespaces.
5387
5388 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5389
5390 * scripts/gen-as-const.py (main): Handle --python option.
5391 * scripts/gen-py-const.awk: Remove.
5392 * Makerules (py-const-script): Use gen-as-const.py.
5393 ($(py-const)): Likewise.
5394 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5395 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5396 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5397 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5398 ~PTHREAD_MUTEX_NO_ELISION_NP.
5399 * manual/README.pretty-printers: Update reference to
5400 gen-py-const.awk.
5401
5402 * scripts/glibcextract.py: New file.
5403 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
5404 or tempfile. Import glibcexctract.
5405 (compute_c_consts): Remove. Moved to glibcextract.py.
5406 (gen_test): Update reference to compute_c_consts.
5407 (main): Likewise.
5408 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
5409 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
5410 * sysdeps/unix/sysv/linux/Makefile
5411 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
5412 Redirect stderr as well as stdout.
5413
5414 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
5415
5416 [BZ #19767]
5417 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
5418 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
5419 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
5420 ALWAYS_USE_VSYSCALL.
5421 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
5422 ALWAYS_USE_VSYSCALL.
5423 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
5424 ALWAYS_USE_VSYSCALL.
5425
5426 2018-12-10 Florian Weimer <fweimer@redhat.com>
5427
5428 [BZ #23972]
5429 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
5430 offset instead of count for clarity. Fix typo in comment.
5431 (__old_getdents64): Keep track of previous offset. Use it to call
5432 handle_overflow.
5433 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
5434 that d_off is never zero.
5435
5436 2018-12-10 Andreas Schwab <schwab@suse.de>
5437
5438 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
5439 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
5440 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
5441 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
5442 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
5443
5444 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5445
5446 * timezone/private.h: Update from tzcode 2018g.
5447 * timezone/tzfile.h: Likewise.
5448 * timezone/tzselect.ksh: Likewise.
5449 * timezone/zdump.c: Likewise.
5450 * timezone/zic.c: Likewise.
5451
5452 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
5453
5454 [BZ #23490]
5455 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
5456 (do_test): Adjust buffer size and fix format.
5457
5458 2018-12-07 DJ Delorie <dj@redhat.com>
5459
5460 [BZ #23907]
5461 * malloc/tst-tcfree3.c: New.
5462 * malloc/Makefile: Add it.
5463
5464 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5465
5466 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
5467
5468 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5469
5470 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
5471 used as a mask for the mode argument of __vfscanf_internal and
5472 __vfwscanf_internal.
5473 * stdio-common/vfscanf-internal.c
5474 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
5475 (__strtof128_internal): Define to __wcstof128_internal.
5476 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
5477 __strtof128_internal or __wcstof128_internal when the format of
5478 long double is the same as _Float128.
5479
5480 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5481
5482 * include/unistd.h (__confstr): Add prototype and hidden prototype.
5483 * posix/confstr.c (confstr): Rename to __confstr.
5484 (__confstr): Add hidden def.
5485 (confstr): Add weak alias for __confstr.
5486 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
5487 confstr.
5488
5489 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5490
5491 * NEWS: Mention getcpu.
5492 * include/sched.h (__getcpu): New libc_hidden_proto.
5493 * manual/resource.texi: Document getcpu.
5494 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
5495 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
5496 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
5497 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5498 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5499 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5500 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5501 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5502 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5503 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5504 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5505 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5506 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5507 Likewise.
5508 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5509 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5510 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5512 Likewise.
5513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5514 Likewise.
5515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5516 Likewise.
5517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5518 Likewise.
5519 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5520 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5521 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5522 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5523 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5524 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5525 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5526 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5527 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
5528 * sysdeps/unix/sysv/linux/getcpu.c: New file.
5529 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
5530 Also check getcpu.
5531
5532 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5533
5534 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
5535 functions.
5536 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
5537
5538 2018-12-07 Florian Weimer <fweimer@redhat.com>
5539
5540 [BZ #17405]
5541 * posix/Makefile (routines): Add spawn_faction_addfchdir.
5542 * posix/Versions (GLIBC_2.29): Export
5543 posix_spawn_file_actions_addfchdir_np.
5544 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
5545 * posix/spawn_faction_destroy.c
5546 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
5547 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
5548 and the field action.fchdir_action.
5549 * posix/tst-spawn-chdir.c (add_chdir): New function.
5550 (do_test): Add do_fchdir loop. Call add_chdir.
5551 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
5552 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5553 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5554 posix_spawn_file_actions_addfchdir_np.
5555 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5556 Likewise.
5557 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5558 Likewise.
5559 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5560 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5561 Likewise.
5562 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5563 Likewise.
5564 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5565 Likewise.
5566 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5567 Likewise.
5568 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5569 Likewise.
5570 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5571 Likewise.
5572 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5573 (GLIBC_2.29): Likewise.
5574 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5575 (GLIBC_2.29): Likewise.
5576 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5577 (GLIBC_2.29): Likewise.
5578 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5579 (GLIBC_2.29): Likewise.
5580 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5581 Likewise.
5582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5583 (GLIBC_2.29): Likewise.
5584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5585 (GLIBC_2.29): Likewise.
5586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5587 (GLIBC_2.29): Likewise.
5588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5589 (GLIBC_2.29): Likewise.
5590 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5591 Likewise.
5592 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5593 Likewise.
5594 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5595 Likewise.
5596 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5597 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5598 Likewise.
5599 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5600 Likewise.
5601 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5602 Likewise.
5603 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5604 Likewise.
5605
5606 2018-12-06 Joseph Myers <joseph@codesourcery.com>
5607
5608 * manual/texinfo.tex: Update to version 2018-09-21.20 with
5609 trailing whitespace removed.
5610 * scripts/config.guess: Update to version 2018-11-28.
5611 * scripts/config.sub: Update to version 2018-11-28.
5612 * scripts/install-sh: Update to version 2018-03-11.20.
5613 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
5614 * scripts/move-if-change: Update to version 2018-03-07 03:47.
5615
5616 2018-12-07 Florian Weimer <fweimer@redhat.com>
5617
5618 [BZ #23927]
5619 CVE-2018-19591
5620 * inet/tst-if_index-long.c: New file.
5621 * inet/Makefile (tests): Add tst-if_index-long.
5622
5623 2018-12-07 Florian Weimer <fweimer@redhat.com>
5624
5625 * support/check.h (support_record_failure_is_failed): Declare.
5626 * support/descriptors.h: New file.
5627 * support/support_descriptors.c: Likewise.
5628 * support/tst-support_descriptors.c: Likewise.
5629 * support/support_record_failure.c
5630 (support_record_failure_is_failed): New function.
5631 * support/Makefile (libsupport-routines): Add support_descriptors.
5632 (tests): Add tst-support_descriptors.
5633
5634 2018-12-05 Zack Weinberg <zackw@panix.com>
5635 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5636
5637 * stdio-common/vfprintf-internal.c
5638 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
5639 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
5640 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
5641 and __no_long_double.
5642 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
5643 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
5644 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
5645 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
5646 and __nldbl_*syslog* functions.
5647 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
5648 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
5649 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
5650 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
5651 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
5652 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
5653 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
5654 (__nldbl_vwprintf, __nldbl_wprintf):
5655 Directly call the appropriate __v*printf_internal routine, passing
5656 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
5657 variable names.
5658 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
5659 (__nldbl___printf_chk, __nldbl___snprintf_chk)
5660 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
5661 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
5662 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
5663 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5664 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
5665 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
5666 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
5667 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
5668 Likewise, and also pass PRINTF_FORTIFY when appropriate.
5669 (__nldbl_syslog, __nldbl_vsyslog):
5670 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
5671 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5672 appropriate.
5673 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5674 appropriate.
5675
5676 2018-12-05 Zack Weinberg <zackw@panix.com>
5677 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5678
5679 [BZ #11319]
5680 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
5681 Moved here from debug/vsprintf_chk.c.
5682 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
5683 and completion logic for the strfile to match exactly what
5684 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
5685 _IO_str_init_static_internal instead of maxlen-1.
5686 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5687 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
5688 __vsprintf_internal.
5689
5690 * debug/vsprintf_chk.c (__vsprintf_chk)
5691 * debug/sprintf_chk.c (__sprintf_chk):
5692 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
5693 'flags' argument is positive, and slen as maxlen. No need to lock
5694 the FILE and/or construct a temporary FILE. Minimize and normalize
5695 header inclusions and variable names. Do not libc_hidden_def anything.
5696
5697 * debug/asprintf_chk.c (__asprintf_chk)
5698 * debug/dprintf_chk.c (__dprintf_chk)
5699 * debug/fprintf_chk.c (__fprintf_chk)
5700 * debug/fwprintf_chk.c (__fwprintf_chk)
5701 * debug/printf_chk.c (__printf_chk)
5702 * debug/snprintf_chk.c (__snprintf_chk)
5703 * debug/swprintf_chk.c (__swprintf_chk)
5704 * debug/vasprintf_chk.c (__vasprintf_chk)
5705 * debug/vdprintf_chk.c (__vdprintf_chk)
5706 * debug/vfprintf_chk.c (__vfprintf_chk)
5707 * debug/vfwprintf_chk.c (__vfwprintf_chk)
5708 * debug/vprintf_chk.c (__vprintf_chk)
5709 * debug/vsnprintf_chk.c (__vsnprintf_chk)
5710 * debug/vswprintf_chk.c (__vswprintf_chk)
5711 * debug/vwprintf_chk.c (__vwprintf_chk)
5712 * debug/wprintf_chk.c (__wprintf_chk):
5713 Directly call the corresponding vxxprintf_internal function, passing
5714 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
5715 the FILE and/or construct a temporary FILE. Minimize and normalize
5716 header inclusions and variable names. Do not libc_hidden_def anything.
5717
5718 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
5719 __obstack_vprintf_internal.
5720 (__obstack_vprintf_chk): Convert into a wrapper that calls
5721 __obstack_vprintf_internal (these two functions already had the
5722 same code) and move to new file...
5723 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
5724 file.
5725 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
5726 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
5727 * debug/Makefile (routines): Add vobprintf_chk.
5728
5729 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5730 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5731 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
5732 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5733 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
5734 (__nldbl___obstack_vfprintf_chk):
5735 Directly call the corresponding vxxprintf_internal function,
5736 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
5737 duplicate comparison of slen with 0 or maxlen from the corresponding
5738 non-__nldbl function.
5739
5740 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
5741 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
5742 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
5743 Remove libc_hidden_proto.
5744
5745 * stdio-common/vfprintf-internal.c
5746 (__vfprintf_internal, __vfwprintf_internal):
5747 Do not check _IO_FLAGS2_FORTIFY.
5748 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
5749 * libio/libioP.h: Update prototype of __vsprintf_internal and add
5750 a comment explaining why it has the maxlen argument.
5751 (_IO_acquire_lock_clear_flags2_fct): Remove.
5752 (_IO_acquire_lock_clear_flags2): Remove.
5753 (_IO_release_lock): Remove conditional statement which will
5754 now never execute.
5755 (_IO_acquire_lock): Remove variable which is now unused.
5756 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
5757 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
5758
5759 * stdio-common/Makefile (tests): Add tst-bz11319 and
5760 tst-bz11319-fortify2.
5761 (CFLAGS-tst-bz11319-fortify2.c): New macro.
5762 * stdio-common/tst-bz11319-fortify2.c: New file.
5763 * stdio-common/tst-bz11319.c: Likewise.
5764
5765 2018-12-05 Zack Weinberg <zackw@panix.com>
5766 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5767
5768 * misc/syslog.c: Include libioP.h, not iolibio.h.
5769 (__vsyslog_internal): New function with the former body of
5770 __vsyslog_chk; takes mode_flags argument same as
5771 __v*printf_internal. Call __vfprintf_internal directly.
5772
5773 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
5774 Remove libc_hidden_def.
5775 (__syslog, __syslog_chk): Use __vsyslog_internal.
5776 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
5777
5778 * include/sys/syslog.h: Add multiple inclusion guard.
5779 Add prototype for __vsyslog_internal.
5780 Remove declaration and libc_hidden_proto for __vsyslog_chk.
5781
5782 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
5783 Use __vsyslog_internal.
5784
5785 2018-12-05 Zack Weinberg <zackw@panix.com>
5786 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5787
5788 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
5789 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
5790 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
5791 New functions.
5792 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
5793 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
5794
5795 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
5796 Include wctype.h here if COMPILE_WPRINTF is defined.
5797 Define __vfprintf_internal or __vfwprintf_internal, depending
5798 on COMPILE_WPRINTF.
5799 Temporarily, on entry to this function, update mode_flags
5800 according to the environmental settings corresponding to
5801 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
5802 Throughout, check mode_flags instead of __ldbl_is_dbl and
5803 _IO_FLAGS2_FORTIFY on the destination FILE.
5804 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
5805 Include vfprintf-internal.c. Don't include wctype.h.
5806 * stdio-common/vfprintf.c: New file. Just define __vfprintf
5807 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
5808 and vfprintf.
5809 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
5810 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
5811 and vfwprintf.
5812 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
5813
5814 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
5815 and add mode_flags argument; use __vfprintf_internal.
5816 (__vdprintf): New function. Alias vdprintf to this.
5817 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
5818 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
5819 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
5820 (__obstack_printf): Use __obstack_printf_internal.
5821 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
5822 public aliases __vsnprintf and vsnprintf.
5823 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
5824 called internally.
5825 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
5826 public aliases _IO_vsprintf and vsprintf.
5827 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
5828 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
5829 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
5830 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
5831 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
5832
5833 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
5834 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
5835 * stdio-common/fprintf.c, stdio-common/fxprintf.c
5836 * stdio-common/printf.c: Use __vfprintf_internal.
5837
5838 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
5839 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
5840 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
5841
5842 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
5843 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
5844 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
5845 __vfwprintf_internal.
5846
5847 * libio/libio.h: Remove libc_hidden_proto and declaration for
5848 _IO_vfprintf.
5849 Remove declaration of _IO_vfwprintf.
5850 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
5851 _IO_vsprintf.
5852 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
5853 _IO_obstack_printf.
5854 * include/stdio.h: Add prototype for __vasprintf.
5855 (__vsnprintf): Remove declaration, because there are no more
5856 internal calls.
5857 * include/wchar.h (__vfwprintf, __vswprintf): Remove
5858 declaration, because there are no more internal calls.
5859
5860 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
5861 __vsnprintf_internal, instead of _IO_vsnprintf.
5862 * argp/argp-help.c (__argp_error, __argp_failure): Use
5863 __vasprintf_internal, instead of _IO_vasprintf.
5864 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
5865 redefine, because there are no more internal calls.
5866
5867 2018-12-05 Zack Weinberg <zackw@panix.com>
5868 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5869
5870 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
5871 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
5872 Include libio/strfile.h instead of libioP.h.
5873 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
5874 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
5875 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
5876 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
5877 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
5878 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
5879 necessary. Do not set __no_long_double. Normalize variable names.
5880 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
5881 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
5882 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
5883 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
5884 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
5885 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
5886 Call __vfscanf_internal / __vfwscanf_internal directly, passing
5887 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
5888 Do not set __no_long_double. Normalize variable names.
5889
5890 2018-12-05 Zack Weinberg <zackw@panix.com>
5891 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5892
5893 * stdio-common/isoc99_scanf.c
5894 * stdio-common/isoc99_fscanf.c
5895 * stdio-common/isoc99_sscanf.c
5896 * stdio-common/isoc99_vscanf.c
5897 * stdio-common/isoc99_vfscanf.c
5898 * stdio-common/isoc99_vsscanf.c
5899 * wcsmbs/isoc99_wscanf.c
5900 * wcsmbs/isoc99_fwscanf.c
5901 * wcsmbs/isoc99_swscanf.c
5902 * wcsmbs/isoc99_vwscanf.c
5903 * wcsmbs/isoc99_vfwscanf.c
5904 * wcsmbs/isoc99_vswscanf.c:
5905 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
5906 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
5907 No need to lock and unlock the FILE passed to that function.
5908
5909 * stdio-common/vfscanf-internal.c
5910 (__vfscanf_internal, __vfwscanf_internal):
5911 Don't look at _IO_FLAGS2_SCANF_STD.
5912 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
5913 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
5914 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
5915
5916 2018-12-05 Zack Weinberg <zackw@panix.com>
5917 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5918
5919 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
5920 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
5921 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
5922 * libio/strfile.h: Add multiple inclusion guard.
5923 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
5924
5925 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
5926 consistency with the other version of this file.
5927 (ldbl_compat_symbol): New macro.
5928 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
5929 New macro.
5930
5931 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
5932 Define __vfscanf_internal or __vfwscanf_internal, depending on
5933 COMPILE_WSCANF; don't define any other public symbols.
5934 Remove errval and code to set errp.
5935 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
5936 as the mode_flags argument.
5937 (encode_error, conv_error, input_error): Don't set errval.
5938 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
5939 Include vfscanf-internal.c.
5940 * stdio-common/vfscanf.c: New file defining the public entry
5941 point vfscanf, which calls __vfscanf_internal.
5942 * stdio-common/vfwscanf.c: New file defining the public entry
5943 point vfwscanf, which calls __vfwscanf_internal.
5944
5945 * stdio-common/iovfscanf.c: New file.
5946 * stdio-common/iovfwscanf.c: Likewise.
5947
5948 * stdio-common/Makefile (routines): Add vfscanf-internal,
5949 vfwscanf-internal, iovfscanf, iovfwscanf.
5950 * stdio-common/Versions: Mention GLIBC_2.29, so that
5951 it can be used in SHLIB_COMPAT expressions.
5952 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
5953 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
5954 Call __vfscanf_internal, instead of _IO_vfscanf.
5955 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
5956 _IO_vfscanf.
5957 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
5958 _IO_vfwscanf.
5959
5960 * libio/iovsscanf.c: Clean up includes, when possible. Use
5961 _IO_strfile_read or _IO_strfile_readw, when needed. Call
5962 __vfscanf_internal or __vfwscanf_internal directly.
5963 * libio/iovswscanf.c: Likewise.
5964 * libio/swscanf.c: Likewise.
5965 * libio/vscanf.c: Likewise.
5966 * libio/vwscanf.c: Likewise.
5967 * libio/wscanf.c: Likewise.
5968 * stdio-common/isoc99_fscanf.c: Likewise.
5969 * stdio-common/isoc99_scanf.c: Likewise.
5970 * stdio-common/isoc99_sscanf.c: Likewise.
5971 * stdio-common/isoc99_vfscanf.c: Likewise.
5972 * stdio-common/isoc99_vscanf.c: Likewise.
5973 * stdio-common/isoc99_vsscanf.c: Likewise.
5974 * stdio-common/scanf.c: Likewise.
5975 * stdio-common/sscanf.c: Likewise.
5976 * wcsmbs/isoc99_fwscanf.c: Likewise.
5977 * wcsmbs/isoc99_swscanf.c: Likewise.
5978 * wcsmbs/isoc99_vfwscanf.c: Likewise.
5979 * wcsmbs/isoc99_vswscanf.c: Likewise.
5980 * wcsmbs/isoc99_vwscanf.c: Likewise.
5981 * wcsmbs/isoc99_wscanf.c: Likewise.
5982
5983 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
5984
5985 * include/time.h
5986 (__tz_compute): Replace time_t with __time64_t.
5987 (__tz_convert): Replace time_t* with __time64_t.
5988 (__offtime): Replace time_t* with __time64_t.
5989 * time/gmtime.c
5990 (__gmtime_r): Adjust call to __tz_convert.
5991 (gmtime): Likewise.
5992 * time/localtime.c
5993 (__localtime_r): Likewise.
5994 (localtime): Likewise.
5995 * time/offtime.c: Replace time_t with __time64_t.
5996 * time/tzset.c: Likewise.
5997
5998 2018-12-04 Joseph Myers <joseph@codesourcery.com>
5999
6000 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6001 dynamic linker unless [$(run-built-tests) = yes].
6002
6003 2018-12-03 DJ Delorie <dj@delorie.com>
6004
6005 * support/test-container.c (check_for_unshare_hints): New.
6006 (main): Call it if unshare fails. Add support for "su" scriptlet
6007 command.
6008
6009 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6010
6011 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6012 'START' to indicate that start text should be output.
6013 (gen_test): Likewise.
6014 (main): Generate 'START' for first symbol or '--' line, or at end
6015 of input if not previously generated.
6016
6017 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6018
6019 [BZ #19767]
6020 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6021 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6022 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6023 ALWAYS_USE_VSYSCALL.
6024
6025 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6026
6027 [BZ #23913]
6028 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6029 new_argv by one.
6030
6031 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6032
6033 [BZ #23923]
6034 * locale/programs/localedef.c: Declare boolean hard_links default true.
6035 (options): Add --no-hard-links option.
6036 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6037 * locale/programs/localedef.h: Declare prototype for hard_links.
6038 * locale/programs/locfile.c (write_locale_data): Don't use hard
6039 links if hard_links is false.
6040
6041 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6042
6043 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6044 cpu_features_basic.
6045 (__cache_sysconf): Likewise.
6046 (init_cacheinfo): Likewise.
6047 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6048 populate COMMON_CPUID_INDEX_80000007 and
6049 COMMON_CPUID_INDEX_80000008.
6050 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6051 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6052 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6053 (init_cpu_features): Use _Static_assert on
6054 index_arch_Fast_Unaligned_Load.
6055 __get_cpuid_registers and __get_arch_feature. Updated for
6056 cpu_features_basic. Set stepping in cpu_features.
6057 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6058 (FEATURE_INDEX_2): New.
6059 (FEATURE_INDEX_MAX): Changed to enum.
6060 (COMMON_CPUID_INDEX_D_ECX_1): New.
6061 (COMMON_CPUID_INDEX_80000007): Likewise.
6062 (COMMON_CPUID_INDEX_80000008): Likewise.
6063 (cpuid_registers): Likewise.
6064 (cpu_features_basic): Likewise.
6065 (CPU_FEATURE_USABLE): Likewise.
6066 (bit_arch_XXX_Usable): Likewise.
6067 (cpu_features): Use cpuid_registers and cpu_features_basic.
6068 (bit_arch_XXX): Reweritten.
6069 (bit_cpu_XXX): Likewise.
6070 (index_cpu_XXX): Likewise.
6071 (reg_XXX): Likewise.
6072 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6073 <support/check.h>.
6074 (CHECK_CPU_FEATURE): New.
6075 (CHECK_CPU_FEATURE_USABLE): Likewise.
6076 (cpu_kinds): Likewise.
6077 (do_test): Print vendor, family, model and stepping. Check
6078 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6079 (TEST_FUNCTION): Removed.
6080 Include <support/test-driver.c> instead of
6081 "../../test-skeleton.c".
6082 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6083 Check POPCNT instead of POPCOUNT.
6084 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6085
6086 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6087
6088 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6089 there is no element in `consts'.
6090
6091 2018-12-01 Florian Weimer <fweimer@redhat.com>
6092
6093 * support/support_capture_subprocess.c
6094 (support_capture_subprocess): Check that pipe descriptors have
6095 expected values. Close original pipe descriptors in subprocess.
6096
6097 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6098
6099 [BZ #23032]
6100 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6101 attr with __pthread_default_barrierattr.
6102 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6103 attr with __pthread_default_condattr.
6104 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6105 attr with __pthread_default_mutexattr.
6106 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6107 attr with __pthread_default_rwlockattr.
6108
6109 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6110
6111 * manual/tunables.texi (POSIX Thread Tunables): New node.
6112 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6113 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6114 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6115 __pthread_tunables_init.
6116 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6117 (max_adaptive_count): Define.
6118 * nptl/pthread_mutex_conf.c: New file.
6119 * nptl/pthread_mutex_conf.h: New file.
6120 * sysdeps/generic/adaptive_spin_count.h: New file.
6121 * sysdeps/nptl/dl-tunables.list: New file.
6122 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6123 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6124 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6125 Likewise.
6126
6127 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6128
6129 [BZ #20544]
6130 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6131 * stdlib/on_exit.c (__on_exit): Likewise.
6132 * stdlib/Makefile (tests): Add tst-bz20544.
6133 * stdlib/tst-bz20544.c: New test.
6134
6135 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6136
6137 [BZ #19767]
6138 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6139 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6140 New.
6141
6142 2018-11-30 Florian Weimer <fweimer@redhat.com>
6143
6144 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6145 Extend error logging.
6146 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6147 symbol.
6148
6149 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6150
6151 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6152 __sigismember instead of sigismember.
6153 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6154 cancel_handler): New definitions.
6155 (do_system): Use posix_spawn instead of fork and execl and remove
6156 reentracy code.
6157 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6158 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6159 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6160 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6161 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6162 * sysdeps/unix/sysv/linux/system.c: Likewise.
6163
6164 [BZ #22834]
6165 [BZ #17490]
6166 * NEWS: Add new semantic for atfork with popen and system.
6167 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6168 fork and execl.
6169
6170 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6171
6172 [BZ #23690]
6173 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6174 modification order when accessing reloc_result->addr.
6175 * include/link.h (reloc_result): Add field init.
6176 * nptl/Makefile (tests): Add tst-audit-threads.
6177 (modules-names): Add tst-audit-threads-mod1 and
6178 tst-audit-threads-mod2.
6179 Add rules to build tst-audit-threads.
6180 * nptl/tst-audit-threads-mod1.c: New file.
6181 * nptl/tst-audit-threads-mod2.c: Likewise.
6182 * nptl/tst-audit-threads.c: Likewise.
6183 * nptl/tst-audit-threads.h: Likewise.
6184
6185 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6186
6187 * scripts/gen-as-const.py: New file.
6188 * scripts/gen-as-const.awk: Remove.
6189 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6190 gen-as-const.py.
6191 ($(objpfx)test-as-const-%.c): Likewise.
6192
6193 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6194
6195 * elf/dl-exception.c: Include <_itoa.h>.
6196
6197 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6198
6199 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6200 returned by __f_setlk.
6201
6202 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6203 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6204
6205 * elf/Makefile (tests-internal): Add tst-create_format1.
6206 * elf/dl-exception.c (_dl_exception_create_format): Support
6207 %x, %lx and %zx.
6208 * elf/tst-create_format1.c: New file.
6209
6210 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6211
6212 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6213 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6214 gnulib.)
6215 * argp/argp-help.c (__argp_failure): Likewise.
6216
6217 2018-11-29 Mao Han <han_mao@c-sky.com>
6218
6219 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6220 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6221 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6222 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6223 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6224 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6225 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6226 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6227 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6228 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6229 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6230 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6231 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6232 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6233 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6234 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6235 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6236 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6237 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6238 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6239 (R_CKCORE_TLS_TPOFF32): New defines.
6240
6241 2018-11-29 Florian Weimer <fweimer@redhat.com>
6242
6243 * posix/Makefile (before-compile): Remove testcases.h and
6244 ptestcases.h.
6245 (generated): Add testcases.h and ptestcases.h.
6246 (testcases.h, ptestcases.h): Move to $(objpfx).
6247 (runtests.o): Add dependency on testcases.h.
6248 (runptests.o): Add dependency on ptestcases.h.
6249 * posix/testcases.h, posix/ptestcases.h: Remove files.
6250 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6251 not touch posix/testcases.h and posix/ptestcases.h.
6252
6253 2018-11-28 Florian Weimer <fweimer@redhat.com>
6254
6255 support: Add signal support to support_capture_subprocess_check.
6256 * support/capture_subprocess.h (support_capture_subprocess_check):
6257 Adjust comment and rename parameter.
6258 * support/support_capture_subprocess_check.c
6259 (print_actual_status): New function.
6260 (support_capture_subprocess_check): Support negative
6261 status_or_signal. Call print_actual_status.
6262 * support/tst-support_capture_subprocess.c (do_test): Call
6263 support_capture_subprocess_check.
6264 * libio/tst-vtables-common.c (termination_status)
6265 (init_termination_status): Remove.
6266 (check_for_termination): Adjust support_capture_subprocess_check
6267 call.
6268 (do_test): Remove call to init_termination_status.
6269
6270 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6271
6272 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6273 source directory instead of a copy.
6274 (CommandList.create_copy_dir): Remove.
6275
6276 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6277
6278 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6279
6280 2018-11-28 Florian Weimer <fweimer@redhat.com>
6281
6282 * support/support.h (support_quote_string): Do not use str
6283 parameter name.
6284
6285 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6286
6287 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6288 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6289
6290 2018-11-27 Florian Weimer <fweimer@redhat.com>
6291
6292 * support/support.h (support_quote_string): Declare.
6293 * support/support_quote_string.c: New file.
6294 * support/tst-support_quote_string.c: Likewise.
6295 * support/Makefile (libsupport-routines): Add
6296 support_quote_string.
6297 (tests): Add tst-support_quote_string.
6298
6299 2018-11-27 Florian Weimer <fweimer@redhat.com>
6300
6301 [BZ #23927]
6302 CVE-2018-19591
6303 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6304 descriptor leak in case of ENODEV error.
6305
6306 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6307
6308 [BZ #19767]
6309 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6310 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6311 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6312
6313 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6314
6315 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6316 Error for unknown lines.
6317
6318 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6319
6320 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6321 Touch additional files.
6322
6323 2018-11-26 Florian Weimer <fweimer@redhat.com>
6324
6325 [BZ #23907]
6326 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6327 double-frees.
6328
6329 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6330
6331 [BZ #19767]
6332 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6333 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6334 SHARED. Include sysdep.h.
6335 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6336 ALWAYS_USE_VSYSCALL.
6337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6338 ALWAYS_USE_VSYSCALL.
6339
6340 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6341
6342 [BZ #19767]
6343 * nptl/Makefile (tests-static): Add tst-cond11-static.
6344 (tests): Likewise.
6345 * nptl/tst-cond11-static.c: New File.
6346 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6347 tst-affinity-static.
6348 (tests): Likewise.
6349 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6350 instead of SHARED.
6351 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6352 (USE_VSYSCALL): Likewise.
6353 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6354 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6355 instead of SHARED.
6356 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6357 SHARED.
6358 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6359 New.
6360
6361 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6362
6363 [BZ #23915]
6364 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6365 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6366 Undefine.
6367
6368 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6369
6370 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6371 (tst-cet-legacy-1a-ARGS): New.
6372 ($(objpfx)tst-cet-legacy-1a): New target.
6373 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6374
6375 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6376
6377 * conform/conformtest.py (CompileSubTest.__init__): Set
6378 self.run_early to False.
6379 (ExecuteSubTest.__init__): Likewise.
6380 (HeaderTests.run): Try running all non-optional, non-XFAILed
6381 compilation tests in a single execution of the compiler.
6382
6383 * conform/conformtest.py (CompileSubTest): New class.
6384 (ExecuteSubTest): Likewise.
6385 (ElementTest.run): Rename to gen_subtests. Append tests to
6386 self.subtests instead of running them.
6387 (ConstantTest.run): Likewise.
6388 (SymbolTest.run): Likewise.
6389 (TypeTest.run): Likewise.
6390 (TagTest.run): Likewise.
6391 (FunctionTest.run): Likewise.
6392 (VariableTest.run): Likewise.
6393 (MacroFunctionTest.run): Likewise.
6394 (MacroStrTest.run): Likewise.
6395 (HeaderTests.handle_test_line): Generate subtests for tests.
6396 (HeaderTests.run): Run subtests for tests.
6397
6398 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6399
6400 * math/Versions (GLIBC_2.29): Add pow.
6401 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
6402 symbol.
6403 * math/w_pow.c: New file.
6404 * sysdeps/i386/fpu/w_pow.c: New file.
6405 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
6406 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
6407 and add necessary aliases.
6408 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
6409 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
6410 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6411 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6412 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6413 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6414 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6415 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6416 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6417 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6418 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6419 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6420 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6421 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6422 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6427 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6428 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6429 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6430 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6431 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6432 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6433 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6434 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
6435 __pow.
6436 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
6437 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
6438 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
6439
6440 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6441
6442 * math/Versions (GLIBC_2.29): Add log2.
6443 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
6444 symbol.
6445 * math/w_log2.c: New file.
6446 * sysdeps/i386/fpu/w_log2.c: New file.
6447 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
6448 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
6449 and add necessary aliases.
6450 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
6451 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
6452 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6453 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6454 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6455 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6456 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6457 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6458 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6459 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6460 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6461 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6462 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6463 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6464 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6465 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6466 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6467 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6468 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6469 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6470 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6471 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6472 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6473 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6474 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6475 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6476
6477 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6478
6479 * math/Versions (GLIBC_2.29): Add log.
6480 * math/w_log_compat.c (__log_compat): Change to versioned compat
6481 symbol.
6482 * math/w_log.c: New file.
6483 * sysdeps/i386/fpu/w_log.c: New file.
6484 * sysdeps/ia64/fpu/e_log.S: Update.
6485 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
6486 and add necessary aliases.
6487 * sysdeps/ieee754/dbl-64/w_log.c: New file.
6488 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
6489 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6490 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6491 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6492 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6493 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6494 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6495 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6496 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6497 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6498 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6499 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6500 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6501 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6504 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6506 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6507 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6508 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6509 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6510 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6511 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6512 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6513 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
6514 __log.
6515 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
6516 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
6517 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
6518 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
6519
6520 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6521
6522 * math/Versions (GLIBC_2.29): Add exp and exp2.
6523 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
6524 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
6525 * math/w_exp_compat.c (__exp_compat): Likewise.
6526 * math/w_exp.c: New file.
6527 * math/w_exp2.c: New file.
6528 * sysdeps/i386/fpu/w_exp.c: New file.
6529 * sysdeps/i386/fpu/w_exp2.c: New file.
6530 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
6531 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6532 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
6533 and add necessary aliases.
6534 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
6535 and add necessary aliases.
6536 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
6537 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
6538 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
6539 * sysdeps/m68k/m680x0/fpu/w_exp2.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_exp-avx.c (__exp1): Remove.
6565 (__ieee754_exp): Rename to __exp.
6566 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
6567 (__ieee754_exp): Rename to __exp.
6568 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
6569 (__ieee754_exp): Rename to __exp.
6570 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
6571 __exp.
6572 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
6573
6574 2018-11-20 DJ Delorie <dj@redhat.com>
6575
6576 * malloc/malloc.c (tcache_entry): Add key field.
6577 (tcache_put): Set it.
6578 (tcache_get): Likewise.
6579 (_int_free): Check for double free in tcache.
6580 * malloc/tst-tcfree1.c: New.
6581 * malloc/tst-tcfree2.c: New.
6582 * malloc/Makefile: Run the new tests.
6583 * manual/probes.texi: Document memory_tcache_double_free probe.
6584
6585 * dlfcn/dlerror.c (check_free): Prevent double frees.
6586
6587 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
6588
6589 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
6590
6591 2018-11-20 Joseph Myers <joseph@codesourcery.com>
6592
6593 * conform/conformtest.py (ElementTest.run): Use unique identifiers
6594 in tests. Use names for format arguments.
6595 (ConstantTest.run): Likewise.
6596 (SymbolTest.run): Likewise.
6597 (TypeTest.run): Likewise.
6598 (TagTest.run): Likewise.
6599 (FunctionTest.run): Likewise.
6600 (VariableTest.run): Likewise.
6601 (MacroFunctionTest.run): Likewise.
6602 (MacroStrTest.run): Likewise.
6603 (HeaderTests.__init__): Set self.num_tests.
6604 (HeaderTests.handle_test_line): Set test.num. Increment
6605 self.num_tests.
6606
6607 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6608
6609 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
6610 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
6611 SEEK_SET.
6612
6613 2018-11-19 Mao Han <han_mao@c-sky.com>
6614
6615 * scripts/config.guess: Update to version 2018-08-29.
6616 * scripts/config.sub: Update to version 2018-08-29.
6617
6618 2018-11-19 Florian Weimer <fweimer@redhat.com>
6619
6620 support: Print timestamps in timeout handler.
6621 * support/support_test_main.c (print_timestamp): New function.
6622 (signal_handler): Use it to print the termination time and the
6623 time of the last write to standard output.
6624
6625 2018-11-16 Zack Weinberg <zackw@panix.com>
6626 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6627
6628 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
6629 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
6630 argument.
6631 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
6632 and add flags argument. Check flags instead of __ldbl_is_dbl when
6633 deciding whether to set is_long_double.
6634 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
6635 passing zero for flags argument.
6636 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
6637
6638 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6639 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
6640 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
6641 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
6642 variable names. Remove libc_hidden_def/libc_hidden_proto from
6643 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
6644 longer called from within the library.
6645 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
6646 for __nldbl___vstrfmon_l, declare it explicitly.
6647
6648 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
6649
6650 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
6651
6652 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
6653 macros
6654 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
6655 F_SETLK64, F_SETLKW64, respectively.
6656 * sysdeps/mach/hurd/f_setlk.c: New file.
6657 * sysdeps/mach/hurd/f_setlk.h: New file.
6658 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
6659 f_setlk.
6660 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
6661 (__libc_fcntl): Move non-flock operations to...
6662 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
6663 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
6664
6665 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
6666
6667 mktime: DEBUG_MKTIME cleanup
6668 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
6669 And it’s no longer needed now that glibc and Gnulib both have
6670 their own testing mechanisms for mktime.
6671 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
6672
6673 mktime: fix non-EOVERFLOW errno handling
6674 [BZ#23789]
6675 mktime was not properly reporting failures when the underlying
6676 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
6677 them like EOVERFLOW failures, and set errno to EOVERFLOW.
6678 The problem could happen on non-glibc platforms, with Gnulib.
6679 * time/mktime.c (guess_time_tm): Remove, replacing with ...
6680 (tm_diff): ... this simpler function, which does not change errno.
6681 All callers changed to deal with errno themselves.
6682 (ranged_convert, __mktime_internal): Return failure immediately if
6683 the underlying function reports any failure other than EOVERFLOW.
6684 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
6685 gap code fails.
6686
6687 mktime: fix bug with Y2038 DST transition
6688 [BZ#23789]
6689 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
6690 mishandle a DST transition that jumps over the Y2038 boundary.
6691 No such DST transitions are known so this is only a theoretical
6692 bug, but we might as well do things right.
6693
6694 mktime: make more room for overflow
6695 [BZ#23789]
6696 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
6697 This is so that we can add tm_diff results to a previous guess,
6698 which will be useful in a later patch.
6699
6700 mktime: simplify offset guess
6701 [BZ#23789]
6702 * time/mktime.c (__mktime_internal): Omit excess precision.
6703
6704 mktime: new test for mktime failure
6705 [BZ#23789]
6706 Based on a test suggested by Albert Aribaud in:
6707 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
6708 * time/Makefile (tests): Add bug-mktime4.
6709 * time/bug-mktime4.c: New file.
6710
6711 mktime: fix EOVERFLOW bug
6712 [BZ#23789]
6713 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
6714 Include libc-config.h, not config.h, for __set_errno.
6715 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
6716
6717 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6718
6719 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
6720 __attribute_copy__ to copy attributes from name. Drop static qualifier
6721 to avoid warnings about leaf attribute not having effect on static
6722 functions.
6723
6724 2018-11-13 Florian Weimer <fweimer@redhat.com>
6725
6726 * malloc/malloc.c (fastbin_push_entry): New function.
6727 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
6728 (REMOVE_FB): Remove macro.
6729 (_int_malloc): Use fastbin_pop_entry and reindent.
6730 (_int_free): Use fastbin_push_entry.
6731 (malloc_consolidate): Use atomic_exchange_acquire.
6732
6733 2018-11-13 Joseph Myers <joseph@codesourcery.com>
6734
6735 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
6736 alias attribute, not with strong_alias.
6737
6738 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
6739 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
6740 with additional parameter thread.
6741 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
6742 in terms of __hidden_ver2.
6743 (hidden_tls_def): New macro.
6744 (libc_hidden_tls_def): Likewise.
6745 (rtld_hidden_tls_def): Likewise.
6746 (libm_hidden_tls_def): Likewise.
6747 (libmvec_hidden_tls_def): Likewise.
6748 (libresolv_hidden_tls_def): Likewise.
6749 (librt_hidden_tls_def): Likewise.
6750 (libdl_hidden_tls_def): Likewise.
6751 (libnss_files_hidden_tls_def): Likewise.
6752 (libnsl_hidden_tls_def): Likewise.
6753 (libnss_nisplus_hidden_tls_def): Likewise.
6754 (libutil_hidden_tls_def): Likewise.
6755 (libutil_hidden_tls_def): Likweise.
6756 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
6757 libc_hidden_tls_def.
6758 (__sim_disabled_exceptions_thread): Likewise.
6759 (__sim_round_mode_thread): Likewise.
6760
6761 * sysdeps/sparc/sparc-ifunc.h [SHARED]
6762 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
6763 copy attributes from name.
6764
6765 2018-11-12 Joseph Myers <joseph@codesourcery.com>
6766
6767 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
6768 Use __attribute_copy__ to copy attributes from name.
6769
6770 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
6771 with __hidden_ver1 call.
6772 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
6773 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
6774 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
6775 (__cosf): Do not declare here.
6776 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
6777 (__sincosf): Do not declare here.
6778 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
6779 (__sinf): Do not declare here.
6780
6781 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
6782 (__BIG_ENDIAN): Likewise.
6783 (__BYTE_ORDER): Likewise.
6784 (strong_alias): Likewise.
6785 (_strong_alias): Likewise.
6786
6787 2018-11-12 Florian Weimer <fweimer@redhat.com>
6788
6789 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
6790 function. Move after the definition of in_smallbin_range. Do not
6791 use __builtin_expect for paths that lead to a noreturn function.
6792 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
6793 because it is unclear whether this is in fact an unlikely
6794 condition.
6795 (_int_malloc, _int_free): Adjust.
6796 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
6797 variables.
6798 * malloc/arena.c (heap_trim): Likewise.
6799
6800 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
6801
6802 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
6803 it, free it if needed.
6804 (reauthenticate): Test and use ccwdir.
6805 (child_init_port): In non-resetids case, test and use ccwdir.
6806 (child_chdir): New nested function to set ccwdir.
6807 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
6808 * hurd/hurd/port.h (_hurd_port_move): New function.
6809 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
6810 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
6811 * hurd/Versions (_hurd_port_move): Export function.
6812 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
6813 symbol.
6814 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
6815 of dtablesize for allocating dtable_cloexec.
6816
6817 2018-11-09 Martin Sebor <msebor@redhat.com>
6818
6819 * include/libc-symbols.h (__attribute_copy__): Define macro unless
6820 it's already defined.
6821 (_strong_alias): Use __attribute_copy__.
6822 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
6823 * misc/sys/cdefs.h (__attribute_copy__): New macro.
6824 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
6825 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
6826 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
6827 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
6828 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
6829 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
6830 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
6831 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
6832 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
6833 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
6834 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
6835 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
6836 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
6837 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
6838 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
6839 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
6840 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
6841
6842 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6843
6844 * misc/tst-efgcvt.c: Include support/check.h and
6845 support/test-driver.c. Do not include test-skeleton.c.
6846 (error_count): Remove.
6847 (output_error): Replace increments to error_count with calls to
6848 support_record_failure.
6849 (output_r_error): Likewise.
6850 (special): Likewise.
6851 (do_test): Unconditionally return zero.
6852 (TEST_FUNCTION): Remove.
6853
6854 2018-11-09 Joseph Myers <joseph@codesourcery.com>
6855
6856 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
6857 not $(@D)/scratch.
6858 ($(linknamespace-header-tests)): Likewise.
6859
6860 * conform/conformtest.py: New file.
6861 * conform/conformtest.pl: Remove.
6862 * conform/GlibcConform.pm: Likewise.
6863 * conform/glibcconform.py (KEYWORDS_C90): New constant.
6864 (KEYWORDS_C99): Likewise.
6865 (KEYWORDS): Likewise.
6866 * conform/Makefile ($(conformtest-header-tests)): Use
6867 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
6868 option. Use --header instead of --headers.
6869 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
6870 function entries.
6871 * conform/data/spawn.h-data: Likewise.
6872 * conform/data/fcntl.h-data (openat): Add space after function
6873 name.
6874 * conform/data/wchar.h-data (wcscasecmp): Likewise.
6875 (wcscasecmp_l): Likewise.
6876 * conform/data/termios.h-data (c_cc): Add space after element
6877 name.
6878
6879 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6880
6881 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
6882 instead of manually comparing and reporting mismatching strings.
6883 * misc/tst-ldbl-error.c (do_one_test): Likewise.
6884 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
6885
6886 2018-11-08 Joseph Myers <joseph@codesourcery.com>
6887
6888 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
6889 __ASSUME_SOCKETCALL.
6890 * sysdeps/unix/sysv/linux/i386/kernel-features.h
6891 (__ASSUME_SOCKETCALL): Remove.
6892 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6893 (__ASSUME_SOCKETCALL): Likewise.
6894 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6895 (__ASSUME_SOCKETCALL): Likewise.
6896 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
6897 (__ASSUME_SOCKETCALL): Likewise.
6898 * sysdeps/unix/sysv/linux/s390/kernel-features.h
6899 (__ASSUME_SOCKETCALL): Likewise.
6900 * sysdeps/unix/sysv/linux/sh/kernel-features.h
6901 (__ASSUME_SOCKETCALL): Likewise.
6902 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6903 (__ASSUME_SOCKETCALL): Likewise.
6904
6905 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
6906
6907 [BZ #23509]
6908 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
6909 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
6910 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
6911 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
6912 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
6913 lc_unknown.
6914
6915 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
6916
6917 [BZ #17630]
6918 * resolv/tst-resolv-network.c: Add test for getnetbyname.
6919
6920 2018-11-07 Joseph Myers <joseph@codesourcery.com>
6921
6922 [BZ #23867]
6923 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6924 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
6925 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6926 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
6927
6928 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6929
6930 * support/support_test_compare_string.c
6931 (support_test_compare_string): Fix printf format.
6932
6933 2018-11-07 Florian Weimer <fweimer@redhat.com>
6934
6935 Implement TEST_COMPARE_STRING.
6936 * support/check.h (TEST_COMPARE_STRING): Define.
6937 (support_test_compare_string): Declare.
6938 * support/Makefile (libsupport-routines): Add
6939 support_test_compare_string.
6940 (tests): Add tst-test_compare_string.
6941 * support/support_test_compare_string.c: New file.
6942 * support/tst-test_compare_string.c: Likewise.
6943
6944 2018-11-07 Andreas Schwab <schwab@suse.de>
6945
6946 [BZ #23864]
6947 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
6948 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
6949 Undef.
6950
6951 2018-11-06 Joseph Myers <joseph@codesourcery.com>
6952
6953 [BZ #23862]
6954 * sysdeps/unix/sysv/linux/sh/kernel-features.h
6955 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
6956 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
6957 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
6958 Likewise.
6959
6960 2018-11-06 Florian Weimer <fweimer@redhat.com>
6961
6962 [BZ #17405]
6963 * posix/Makefile (routines): Add spawn_faction_addchdir.
6964 (tests): Add tst-spawn-chdir.
6965 * posix/Versions (GLIBC_2.29): Add
6966 posix_spawn_file_actions_addchdir_np.
6967 * posix/spawn_faction_addchdir.c: New file.
6968 * posix/spawn_faction_destroy.c
6969 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
6970 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
6971 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
6972 chdir_action.
6973 * posix/tst-spawn-chdir.c: New file.
6974 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
6975 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6976 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6977 posix_spawn_file_actions_addchdir_np.
6978 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6979 Likewise.
6980 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6981 Likewise.
6982 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6983 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6984 Likewise.
6985 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6986 Likewise.
6987 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6988 Likewise.
6989 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6990 Likewise.
6991 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6992 Likewise.
6993 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6994 Likewise.
6995 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6996 (GLIBC_2.29): Likewise.
6997 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6998 (GLIBC_2.29): Likewise.
6999 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7000 (GLIBC_2.29): Likewise.
7001 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7002 (GLIBC_2.29): Likewise.
7003 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7004 Likewise.
7005 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7006 (GLIBC_2.29): Likewise.
7007 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7008 (GLIBC_2.29): Likewise.
7009 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7010 (GLIBC_2.29): Likewise.
7011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7012 (GLIBC_2.29): Likewise.
7013 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7014 Likewise.
7015 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7016 Likewise.
7017 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7018 Likewise.
7019 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7020 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7021 Likewise.
7022 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7023 Likewise.
7024 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7025 Likewise.
7026 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7027 Likewise.
7028
7029 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7030
7031 * misc/Makefile (tests): Add tst-ldbl-error.
7032 * misc/tst-ldbl-error.c: New file.
7033
7034 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7035
7036 * misc/Makefile (tests): Add tst-ldbl-warn.
7037 * misc/tst-ldbl-warn.c: New file.
7038
7039 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7040
7041 * argp/Makefile (tests): Add tst-ldbl-argp.
7042 * argp/tst-ldbl-argp.c: New file.
7043
7044 2018-11-05 Arjun Shankar <arjun@redhat.com>
7045
7046 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7047 __gconv_path_elem and call __gconv_get_path unconditionally.
7048
7049 2018-11-05 Andreas Schwab <schwab@suse.de>
7050
7051 [BZ #22927]
7052 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7053 creating the first helper thread failed.
7054
7055 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7056
7057 * sysdeps/mach/hurd/msync.c: New file.
7058
7059 2018-11-02 Florian Weimer <fweimer@redhat.com>
7060
7061 * support/shell-container.c (copy_func): Call
7062 support_copy_file_range instead of copy_file_range to support
7063 cross-device copies.
7064
7065 2018-11-02 Florian Weimer <fweimer@redhat.com>
7066
7067 * support/test-container.c: Include <libc-pointer-arith.h> for
7068 ALIGN_UP.
7069
7070 2018-11-01 Zong Li <zong@andestech.com>
7071
7072 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7073 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7074 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7075 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7076
7077 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7078 variable to avoid overlap arguments.
7079
7080 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7081
7082 * posix/bug-regex22.c (main): Use puts with distinct error
7083 messages for unexpected success of re_compile_pattern, not printf
7084 with NULL argument to %s.
7085
7086 * stdio-common/bug22.c: Include <libc-diag.h>.
7087 (do_test): Disable -Wformat-overflow= warnings around fprintf
7088 calls outputting more than INT_MAX characters.
7089 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7090 around printf call with NULL %s argument.
7091
7092 [BZ #23848]
7093 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7094 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7095 Undefine.
7096 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7097 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7098 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7099 (__ASSUME_SENDTO_SYSCALL): Likewise.
7100 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7101 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7102 [!__arch64__].
7103 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7104 (__ASSUME_CONNECT_SYSCALL): Likewise.
7105 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7106 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7107 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7108 Define.
7109 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7110 Likewise.
7111 [__LINUX_KERNEL_VERSION >= 0x040400]
7112 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7113 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7114 Remove.
7115 (listen): Likewise.
7116 (setsockopt): Likewise.
7117
7118 2018-11-01 Fredrik Noring <noring@nocrew.org>
7119
7120 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7121 with the ISA override.
7122
7123 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7124
7125 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7126 #endif.
7127
7128 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7129
7130 * manual/errno.texi (EIEIO): Document how translators should
7131 translate the error message.
7132 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7133 printing trailing whitespaces refused by git.
7134 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7135 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7136 * hurd/Makefile (user-interfaces): Add pci.
7137
7138 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7139
7140 * conform/linknamespace.py: New file.
7141 * conform/linknamespace.pl: Remove file.
7142 * conform/Makefile ($(linknamespace-header-tests)): Use
7143 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7144 option.
7145
7146 2018-10-30 Florian Weimer <fweimer@redhat.com>
7147
7148 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7149 memory leaks.
7150
7151 2018-10-30 Florian Weimer <fweimer@redhat.com>
7152
7153 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7154
7155 2018-10-30 Florian Weimer <fweimer@redhat.com>
7156
7157 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7158 support_blob_repeat.
7159
7160 2018-10-30 Florian Weimer <fweimer@redhat.com>
7161
7162 Avoid spurious test failures in stdlib/test-bz22786.
7163 * support/Makefile (libsupport-routines): Add blob_repeat.
7164 (tests): Add tst-support_blob_repeat.
7165 * support/blob_repeat.h: New file.
7166 * support/blob_repeat.c: Likewise.
7167 * support/tst-support_blob_repeat.c: Likewise.
7168 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7169 support_blob_repeat_allocate.
7170
7171 2018-10-30 Andreas Schwab <schwab@suse.de>
7172
7173 [BZ #23125]
7174 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7175 Don't use tail call.
7176 * elf/tst-unwind-main.c: New file.
7177 * elf/Makefile (tests): Add tst-unwind-main.
7178 (CFLAGS-tst-unwind-main.c): Define.
7179
7180 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7181
7182 [BZ #23791]
7183 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7184 n_cs_precedes to 0.
7185 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7186
7187 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7188
7189 * conform/glibcconform.py: Do not import shutil.
7190 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7191 of mkdtemp.
7192
7193 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7194 critic_missing for versions before 3.4.
7195 * configure: Regenerated.
7196 * manual/install.texi (Tools for Compilation): Document
7197 requirement for Python to build glibc.
7198 * INSTALL: Regenerated.
7199 * Rules [PYTHON]: Make code unconditional.
7200 * benchtests/Makefile [PYTHON]: Likewise.
7201 * conform/Makefile [PYTHON]: Likewise.
7202 * manual/Makefile [PYTHON]: Likewise.
7203 * math/Makefile [PYTHON]: Likewise.
7204
7205 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7206
7207 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7208 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7209 answer to interrupt_operation, return EIEIO instead of EINTR.
7210 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7211 _hurd_intr_rpc_msg_about_to global point to start of controlled
7212 assembly snippet. Make it check canceled flag.
7213 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7214 the _hurd_intr_rpc_msg_about_to point.
7215 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7216 issue, remove cancel flag check.
7217
7218 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7219
7220 * scripts/build-many-glibcs.py: Remove compatibility for missing
7221 os.cpu_count and re.fullmatch.
7222
7223 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7224
7225 [BZ #23822]
7226 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7227 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7228 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7229
7230 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7231
7232 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7233 macro.
7234
7235 2018-10-25 Florian Weimer <fweimer@redhat.com>
7236
7237 [BZ #23562]
7238 [BZ #23821]
7239 XFAIL siginfo_t si_band conform test on sparc64.
7240 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7241 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7242 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7243 (conformtest-xfail-conds): Add sparc64-linux.
7244 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7245 sparc64.
7246 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7247
7248 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7249
7250 * elf/elf.h (NT_MIPS_DSP): New macro.
7251 (NT_MIPS_FP_MODE): Likewise.
7252
7253 2018-10-25 Zong Li <zong@andestech.com>
7254
7255 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7256 name by adding the file extension (.so).
7257
7258 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7259
7260 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7261 (test-xfail-ISO11/threads.h/linknamespace,
7262 test-xfail-ISO11/threads.h/conform): Add.
7263
7264 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7265
7266 * math/gen-libm-test.py: Import os.
7267 (ALL_FLOATS_MANUAL): New constant.
7268 (ALL_FLOATS_SUFFIX): Likewise.
7269 (Ulps.all_functions): New function.
7270 (real_all_ulps): Likewise.
7271 (generate_err_table_sub): Likewise.
7272 (generate_err_table): Likewise.
7273 (main): Handle -s and -m options.
7274 * manual/libm-err-tab.pl: Remove.
7275 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7276 instead of libm-err-tab.pl.
7277 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7278 != no].
7279 * manual/install.texi (Tools for Compilation): Document
7280 requirement for Python to build manual.
7281 * INSTALL: Regenerated.
7282
7283 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7284
7285 * bits/time64.h: New file.
7286 * include/time.h: Replace internal_time_t with __time64_t.
7287 * posix/bits/types (__time64_t): Add.
7288 * stdlib/Makefile: Add bits/time64.h to includes.
7289 * time/tzfile.c: Replace internal_time_t with __time64_t.
7290
7291 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7292
7293 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7294 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7295 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7296 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7297 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7298 prototype.
7299 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7300 * posix/spawn_faction_addclose.c
7301 (__posix_spawn_file_actions_addclose): Add hidden definition.
7302 * posix/spawn_faction_adddup2.c
7303 (__posix_spawn_file_actions_adddup2): Likewise.
7304 * posix/spawn_faction_destroy.c
7305 (__posix_spawn_file_actions_destroy): Likewise.
7306 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7307 Likewise.
7308 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7309 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7310 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7311 Likewise.
7312 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7313 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7314 Likewise.
7315
7316 2018-10-24 Andreas Schwab <schwab@suse.de>
7317
7318 [BZ #18093]
7319 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7320 format cache.
7321 * elf/cache.c (print_cache): Likewise.
7322
7323 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7324
7325 * bits/timesize.h: New file.
7326 * stdlib/Makefile (headers): Add bits/timesize.h.
7327 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7328 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7329 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7330 (__SEM_PAD_AFTER_TIME): Likewise.
7331 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7332 (__SHM_PAD_AFTER_TIME): Likewise.
7333 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7334 (__MSQ_PAD_BEFORE_TIME): Likewise.
7335 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7336 (__SEM_PAD_BEFORE_TIME): Likewise.
7337 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7338 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7339 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7340 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7341 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7342 (__MSQ_PAD_BEFORE_TIME): Likewise.
7343 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7344 (__SEM_PAD_BEFORE_TIME): Likewise.
7345 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7346 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7347 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7348 (__MSQ_PAD_BEFORE_TIME): Likewise.
7349 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7350 (__SEM_PAD_BEFORE_TIME): Likewise.
7351 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7352 (__SHM_PAD_BEFORE_TIME): Likewise.
7353 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7354 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7355 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7356
7357 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7358
7359 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7360 USE_RDTSCP is defined.
7361 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7362 USE_RDTSCP is defined.
7363
7364 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7365
7366 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7367 defined.
7368
7369 [BZ #23709]
7370 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7371 independently of other flags.
7372
7373 2018-10-23 Florian Weimer <fweimer@redhat.com>
7374
7375 * time/tst-mktime2.c (N_STRINGS): Remove.
7376 (set_timezone): New function.
7377 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7378 (mktime_test1): Report localtime failure and check errno value.
7379 Use TEST_COMPARE.
7380 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7381 (do_test): Remove alarm call. Use set_timezone and array_length.
7382
7383 2018-10-23 Andreas Schwab <schwab@suse.de>
7384
7385 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7386 (__start_context): Use END instead of PSEUDO_END.
7387
7388 2018-10-22 Joseph Myers <joseph@codesourcery.com>
7389
7390 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7391 version to 4.19.
7392
7393 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7394 version to 4.19.
7395
7396 [BZ #23793]
7397 * wcsmbs/c32rtomb.c: New file.
7398 * wcsmbs/mbrtoc32.c: Likewise.
7399 * wcsmbs/tst-c32-state.c: Likewise.
7400 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
7401 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
7402 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
7403 (tests): Add tst-c32-state.
7404 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
7405 $(gen-locales).
7406
7407 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
7408
7409 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
7410 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
7411
7412 2018-10-19 Joseph Myers <joseph@codesourcery.com>
7413
7414 [BZ #23794]
7415 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
7416 pair and return 0 in that case, and use saved character to
7417 interpret following character.
7418 * wcsmbs/tst-c16-surrogate.c: New file.
7419 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
7420 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
7421 Depend on $(gen-locales)
7422
7423 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7424
7425 [BZ #23562]
7426 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
7427 (struct siginfo_t): Use correct type for si_band.
7428
7429 2018-10-19 Florian Weimer <fweimer@redhat.com>
7430
7431 [BZ #23689]
7432 * resource/bits/types/struct_rusage.h (struct rusage): Update
7433 comment on struct. Remove extraneous field comment.
7434
7435 2018-10-18 David S. Miller <davem@davemloft.net>
7436
7437 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
7438 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
7439 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
7440 sysdep_routines in subdir elf.
7441 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
7442 version for __vdso_clock_gettime.
7443 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
7444 Define.
7445 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7446 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7447
7448 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
7449
7450 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
7451
7452 * sysdeps/i386/init-arch.h: Removed.
7453 * sysdeps/i386/i586/init-arch.h: Likewise.
7454 * sysdeps/i386/i686/init-arch.h: Likewise.
7455 * sysdeps/i386/i686/hp-timing.h: Likewise.
7456 * sysdeps/x86_64/hp-timing.h: Likewise.
7457 * sysdeps/i386/isa.h: New file.
7458 * sysdeps/i386/i586/isa.h: Likewise.
7459 * sysdeps/i386/i686/isa.h: Likewise.
7460 * sysdeps/x86_64/isa.h: Likewise.
7461 * sysdeps/x86/hp-timing.h: New file.
7462 * sysdeps/x86/init-arch.h: Include <isa.h>.
7463
7464 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7465
7466 * math/libm-test-pow.inc (pow_test_data): Do not allow
7467 divide-by-zero exception for pow(+/- 0, -Inf).
7468
7469 2018-10-17 Zack Weinberg <zackw@panix.com>
7470
7471 * manual/job.texi (Job Control is Optional): Remove node, as
7472 job control has not been optional in quite some time.
7473 (Job Control): Mention briefly that systems older than
7474 POSIX.1-2001 might not support job control.
7475 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
7476 defined on systems conforming to POSIX.1-2001.
7477
7478 2018-10-17 Arjun Shankar <arjun@redhat.com>
7479
7480 [BZ #22062]
7481 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
7482 indentation.
7483 * (__gconv_read_conf): Mark function static.
7484 * (once): New static variable.
7485 * (__gconv_load_conf): New function.
7486 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
7487 * iconv/gconv_db.c (once): Remove static variable.
7488 * (__gconv_compare_alias): Use __gconv_load_conf instead of
7489 __gconv_read_conf.
7490 * (__gconv_find_transform): Likewise.
7491 * iconv/tst-iconv-mt.c: New test.
7492 * iconv/Makefile: Add tst-iconv_mt.
7493
7494 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7495
7496 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7497 bits/shm-pad.h.
7498 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
7499 (shmatt_t): Define as __syscall_ulong_t.
7500 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
7501 and [__SHM_PAD_AFTER_TIME].
7502 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
7503 Define shm_segsz and associated padding based on
7504 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
7505 Use __syscall_ulong_t instead of unsigned long int.
7506 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
7507 unsigned long int.
7508 [__USE_MISC] (struct shm_info): Likewise.
7509 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
7510 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
7511 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
7512 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
7513 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
7514 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7515 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
7516 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7517 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7518 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7519 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
7520
7521 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7522 bits/shmlba.h.
7523 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
7524 (SHMLBA): Remove macro.
7525 (__getpagesize): Remove function declaration.
7526 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
7527 <bits/shmlba.h>.
7528 (SHMLBA): Remove macro.
7529 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
7530 <bits/shmlba.h>.
7531 (SHMLBA): Remove macro.
7532 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
7533 <bits/shmlba.h>.
7534 (SHMLBA): Remove macro.
7535 (__getpagesize): Remove function declaration.
7536 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
7537 <bits/shmlba.h>.
7538 (SHMLBA): Remove macro.
7539 (__getshmlba): Remove function declaration.
7540 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
7541 (SHMLBA): Remove macro.
7542 (__getpagesize): Remove function declaration.
7543 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
7544 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7545 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7546 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
7547 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
7548 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
7549 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
7550 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
7551 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
7552 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
7553
7554 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
7555
7556 [BZ #23275]
7557 * nptl/tst-mutex10.c: New File.
7558 * nptl/Makefile (tests): Add tst-mutex10.
7559 (tst-mutex10-ENV): New variable.
7560 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
7561 Ensure that elision path is used if elision is available.
7562 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
7563 Likewise.
7564 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
7565 Likewise.
7566 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
7567 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
7568 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
7569 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
7570 Likewise.
7571 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
7572 (__pthread_mutex_cond_lock_adjust): Likewise.
7573 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
7574 Likewise.
7575 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
7576 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
7577 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
7578 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
7579 Add comments.
7580 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
7581 Use atomic_load_relaxed and atomic_store_relaxed.
7582 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
7583 Use atomic_store_relaxed.
7584
7585 2018-10-17 Andreas Schwab <schwab@suse.de>
7586
7587 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
7588 * crypt/badsalttest.c (TIMEOUT): Likewise.
7589 * crypt/sha256c-test.c (TIMEOUT): Likewise.
7590 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
7591 * io/test-lfs.c (TIMEOUT): Likewise.
7592 * libio/tst-atime.c (TIMEOUT): Likewise.
7593 * localedata/tst-leaks.c (TIMEOUT): Likewise.
7594 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
7595 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
7596 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
7597 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
7598 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
7599 * nptl/tst-cond11.c (TIMEOUT): Likewise.
7600 * nptl/tst-cond14.c (TIMEOUT): Likewise.
7601 * nptl/tst-cond15.c (TIMEOUT): Likewise.
7602 * nptl/tst-cond24.c (TIMEOUT): Likewise.
7603 * nptl/tst-cond25.c (TIMEOUT): Likewise.
7604 * nptl/tst-kill2.c (TIMEOUT): Likewise.
7605 * nptl/tst-kill3.c (TIMEOUT): Likewise.
7606 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
7607 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
7608 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
7609 * nptl/tst-once2.c (TIMEOUT): Likewise.
7610 * nptl/tst-once3.c (TIMEOUT): Likewise.
7611 * nptl/tst-once4.c (TIMEOUT): Likewise.
7612 * nptl/tst-robust8.c (TIMEOUT): Likewise.
7613 * nptl/tst-robust9.c (TIMEOUT): Likewise.
7614 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
7615 * nptl/tst-sem14.c (TIMEOUT): Likewise.
7616 * nptl/tst-sem6.c (TIMEOUT): Likewise.
7617 * nptl/tst-signal3.c (TIMEOUT): Likewise.
7618 * nptl/tst-spin4.c (TIMEOUT): Likewise.
7619 * nptl/tst-tls3.c (TIMEOUT): Likewise.
7620 * nptl/tst-tls4.c (TIMEOUT): Likewise.
7621 * posix/tst-chmod.c (TIMEOUT): Likewise.
7622 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
7623 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
7624 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
7625 * posix/tst-regex2.c (TIMEOUT): Likewise.
7626 * posix/tst-waitid.c (TIMEOUT): Likewise.
7627 * rt/tst-aio.c (TIMEOUT): Likewise.
7628 * rt/tst-aio10.c (TIMEOUT): Likewise.
7629 * rt/tst-aio4.c (TIMEOUT): Likewise.
7630 * rt/tst-aio5.c (TIMEOUT): Likewise.
7631 * rt/tst-aio6.c (TIMEOUT): Likewise.
7632 * rt/tst-aio64.c (TIMEOUT): Likewise.
7633 * rt/tst-aio7.c (TIMEOUT): Likewise.
7634 * rt/tst-aio9.c (TIMEOUT): Likewise.
7635 * rt/tst-clock.c (TIMEOUT): Likewise.
7636 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
7637 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
7638 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
7639 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
7640 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
7641 * rt/tst-timer4.c (TIMEOUT): Likewise.
7642 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
7643 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
7644 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
7645 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
7646 * time/tst-ftime.c (TIMEOUT): Likewise.
7647 * timezone/tst-tzset.c (TIMEOUT): Likewise.
7648
7649 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
7650
7651 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
7652 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
7653 for thunderX2.
7654
7655 2018-10-15 Joseph Myers <joseph@codesourcery.com>
7656
7657 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7658 bits/sem-pad.h.
7659 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
7660 instead of <bits/wordsize.h>.
7661 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
7662 and [__SEM_PAD_AFTER_TIME].
7663 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
7664 __syscall_ulong_t instead of unsigned long int.
7665 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
7666 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
7667 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
7668 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
7669 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
7670 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
7671 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
7672 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
7673 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
7674 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
7675 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
7676
7677 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
7678
7679 regex: simplify by using intprops.h
7680 [BZ#23744]
7681 * posix/regex_internal.h [_LIBC]: Include intprops.h.
7682 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
7683 intprops.h defines them.
7684
7685 regex: __builtin_expect → __glibc_unlikely
7686 [BZ#23744]
7687 This refactoring was prompted by a problem when the regex code is
7688 used as part of Gnulib and when the builder’s compiler does not grok
7689 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
7690 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
7691 Although this refactoring does not fix the problem directly,
7692 we might as well have Gawk use the now-preferred glibc style for when
7693 __builtin_expect is unavailable.
7694 * posix/regex_internal.h (BE): Remove.
7695 All uses replaced by __glibc_unlikely or __glibc_likely.
7696
7697 2018-10-11 Joseph Myers <joseph@codesourcery.com>
7698
7699 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7700 bits/msq-pad.h.
7701 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
7702 instead of <bits/wordsize.h>.
7703 (msgqnum_t): Define as __syscall_ulong_t.
7704 (msglen_t): Likewise.
7705 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
7706 and [__MSQ_PAD_AFTER_TIME].
7707 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
7708 __syscall_ulong_t instead of unsigned long int.
7709 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
7710 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
7711 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
7712 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
7713 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
7714 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
7715 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
7716 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
7717 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
7718 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
7719 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
7720
7721 2018-10-10 Joseph Myers <joseph@codesourcery.com>
7722
7723 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
7724 (struct shmid_ds): Condition padding after time fields on
7725 [__WORDSIZE == 32].
7726 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
7727 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
7728 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7729
7730 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
7731 (struct semid_ds): Condition padding after time fields on
7732 [__WORDSIZE == 32].
7733 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
7734 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
7735 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
7736 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
7737
7738 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
7739 (struct msqid_ds): Condition padding after time fields on
7740 [__WORDSIZE == 32].
7741 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
7742 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
7743 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
7744 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
7745
7746 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
7747
7748 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
7749
7750 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
7751
7752 * libio/tst-readline.c (TIMEOUT): Define.
7753
7754 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
7755
7756 mktime fix for Gnulib + coreutils
7757 [BZ#23745]
7758 This fix affects only Gnulib. Problem discovered when
7759 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
7760 * time/mktime.c:
7761 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
7762 Do not define since it is not used. Defining an unused static
7763 function prompts a warning from GCC when Coreutils is configured
7764 with --enable-gcc-warnings.
7765
7766 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7767
7768 * benchtests/scripts/compare_bench.py (main): set float type on
7769 threshold argument.
7770
7771 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
7772
7773 [BZ #23740]
7774 * localedata/locales/kl_GL (mon): Update, the relative case.
7775 (alt_mon): Add, fill with month names in the nominative case.
7776 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
7777 (d_fmt): Set to "%b %d %Y".
7778
7779 2018-10-04 Joseph Myers <joseph@codesourcery.com>
7780
7781 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
7782 <bits/mman-linux.h>.
7783 (PROT_READ): Don't define here.
7784 (PROT_WRITE): Likewise.
7785 (PROT_EXEC): Likewise.
7786 (PROT_NONE): Likewise.
7787 (PROT_GROWSDOWN): Likewise.
7788 (PROT_GROWSUP): Likewise.
7789 (MAP_SHARED): Likewise.
7790 (MAP_PRIVATE): Likewise.
7791 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
7792 [__USE_MISC] (MAP_FILE): Likewise.
7793 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
7794 [__USE_MISC] (MAP_ANON): Likewise.
7795 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
7796 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
7797 (MCL_CURRENT): Likewise.
7798 (MCL_FUTURE): Likewise.
7799 (MCL_ONFAULT): Likewise.
7800 [__USE_MISC] (MADV_NORMAL): Likewise.
7801 [__USE_MISC] (MADV_RANDOM): Likewise.
7802 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
7803 [__USE_MISC] (MADV_WILLNEED): Likewise.
7804 [__USE_MISC] (MADV_DONTNEED): Likewise.
7805 [__USE_MISC] (MADV_FREE): Likewise.
7806 [__USE_MISC] (MADV_REMOVE): Likewise.
7807 [__USE_MISC] (MADV_DONTFORK): Likewise.
7808 [__USE_MISC] (MADV_DOFORK): Likewise.
7809 [__USE_MISC] (MADV_HWPOISON): Likewise.
7810 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
7811 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
7812 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
7813 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
7814 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
7815 (__MAP_ANONYMOUS): New macro.
7816 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
7817 <bits/mman-linux.h> inclusion.
7818 (MAP_FIXED): Likewise.
7819 (MS_SYNC): Likewise.
7820 (MS_ASYNC): Likewise.
7821 (MS_INVALIDATE): Likewise.
7822 [__USE_MISC] (MADV_MERGEABLE): Likewise.
7823 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
7824 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
7825 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
7826 [__USE_MISC] (MADV_DONTDUMP): Likewise.
7827 [__USE_MISC] (MADV_DODUMP): Likewise.
7828 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
7829 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
7830
7831 [BZ #23735]
7832 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
7833 Define.
7834 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
7835 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
7836 Add test-nldbl-redirect.
7837 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
7838 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
7839 $(objpfx)libnldbl_nonshared.a.
7840
7841 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
7842
7843 * support/support.h (support_objdir_elf_ldso): New variable.
7844 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
7845 * support/Makefile (CFLAGS-support_paths.c): Add definition
7846 for OBJDIR_ELF_LDSO_PATH.
7847 * support/test-container.c (main): Search for the ld.so
7848 which is also used by the testsuite.
7849
7850 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
7851
7852 [BZ #20209]
7853 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
7854 should be "sap" rather than "sab".
7855 (day): Fix spelling of Sunday, should be "sapaat" rather than
7856 "sabaat".
7857
7858 2018-10-02 Joseph Myers <joseph@codesourcery.com>
7859
7860 * math/libm-test-fma.inc (fma_test_data): Add more tests.
7861
7862 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
7863
7864 [BZ #19444]
7865 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
7866 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
7867 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
7868
7869 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7870
7871 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
7872
7873 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
7874
7875 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
7876 Add -mrtm.
7877 (CFLAGS-elision-unlock.c): Likewise.
7878 (CFLAGS-elision-timed.c): Likewise.
7879 (CFLAGS-elision-trylock.c): Likewise.
7880 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
7881
7882 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7883
7884 [BZ #21037]
7885 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
7886 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
7887 new fd_to_filename interface.
7888 * libio/freopen64.c (freopen64): Likewise.
7889 * libio/tst-memstream.h: New file.
7890 * libio/tst-memstream4.c: Likewise.
7891 * libio/tst-wmemstream4.c: Likewise.
7892 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
7893 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
7894 and remove internal dynamic allocation.
7895
7896 2018-10-01 Joseph Myers <joseph@codesourcery.com>
7897
7898 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
7899 (MREMAP_MAYMOVE): Do not define here.
7900 [__USE_GNU] (MREMAP_FIXED): Likewise.
7901 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
7902 (MREMAP_MAYMOVE): Define here instead.
7903 [__USE_GNU] (MREMAP_FIXED): Likewise.
7904 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
7905 (MREMAP_MAYMOVE): Remove.
7906 [__USE_GNU] (MREMAP_FIXED): Likewise.
7907
7908 2018-09-28 Joseph Myers <joseph@codesourcery.com>
7909
7910 * math/fromfp.h: Do not include <math_private.h>.
7911 * math/s_cacosh_template.c: Likewise.
7912 * math/s_casin_template.c: Likewise.
7913 * math/s_casinh_template.c: Likewise.
7914 * math/s_ccos_template.c: Likewise.
7915 * math/s_cproj_template.c: Likewise.
7916 * math/s_fdim_template.c: Likewise.
7917 * math/s_fmaxmag_template.c: Likewise.
7918 * math/s_fminmag_template.c: Likewise.
7919 * math/s_iseqsig_template.c: Likewise.
7920 * math/s_ldexp_template.c: Likewise.
7921 * math/s_nextdown_template.c: Likewise.
7922 * math/w_log1p_template.c: Likewise.
7923 * math/w_scalbln_template.c: Likewise.
7924 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7925 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7926 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7927 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7928 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
7929 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
7930 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
7931 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
7932 * sysdeps/i386/fpu/s_atanl.c: Likewise.
7933 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
7934 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
7935 * sysdeps/i386/fpu/s_fdim.c: Likewise.
7936 * sysdeps/i386/fpu/s_logbl.c: Likewise.
7937 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7938 * sysdeps/i386/fpu/s_significandl.c: Likewise.
7939 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
7940 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
7941 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7942 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
7943 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7944 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7945 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
7946 * sysdeps/ieee754/k_standardf.c: Likewise.
7947 * sysdeps/ieee754/k_standardl.c: Likewise.
7948 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7949 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
7950 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
7951 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
7952 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
7953 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
7954 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
7955 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7956 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7957 * sysdeps/ieee754/s_signgam.c: Likewise.
7958 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
7959 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
7960 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
7961 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7962 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7963 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7964 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7965 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7966 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7967 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7968 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7969 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7970 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7971 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7972 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7973 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7974 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7975 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7976 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7977 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7978 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7979 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7980 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7981 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7982 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7983 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7984 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7985 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7986 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7987 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7988 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7989 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7990 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7991 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7992 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7993 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7994 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
7995 <math_private.h>.
7996 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7997
7998 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
7999
8000 [BZ #23716]
8001 * sysdeps/i386/dl-cet.c: Removed.
8002 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8003 prototype.
8004 (_dl_runtime_profile_shstk): Likewise.
8005 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8006 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8007
8008 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8009
8010 [BZ #23579]
8011 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8012 do_test_with_invalid_iov): New tests.
8013 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8014 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8015 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8016 errno is ENOSYS.
8017 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8018 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8019 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8020
8021 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8022
8023 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8024 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8025 (MATH_REDIRECT_BINARY_ARGS): New macro.
8026 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8027 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8028 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8029 header inclusion.
8030 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8031 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8032 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8033 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8034 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8035 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8036 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8037 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8038 Likewise.
8039 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8040 Likewise.
8041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8043 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8044 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8046 Likewise.
8047 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8048 Likewise.
8049 * sysdeps/generic/math_private_calls.h
8050 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8051 Do not declare and define as an inline function.
8052 * math/divtc3.c (__divtc3): Use copysign functions instead of
8053 __copysign variants.
8054 * math/multc3.c (__multc3): Likewise.
8055 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8056 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8057 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8058 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8059 Likewise.
8060 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8061 (__ieee754_yn): Likewise.
8062 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8063 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8064 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8065 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8066 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8067 (__sin): Likewise.
8068 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8069 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8070 Likewise.
8071 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8072 Likewise.
8073 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8074 Likewise.
8075 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8076 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8077 Likewise.
8078 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8079 (__ieee754_ynf): Likewise.
8080 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8081 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8082 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8083 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8084 Likewise.
8085 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8086 (__ieee754_ynl): Likewise.
8087 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8088 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8089 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8090 Likewise.
8091 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8092 (__ieee754_ynl): Likewise.
8093 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8094 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8095 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8096 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8097 Likewise.
8098 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8099 (__ieee754_ynl)
8100 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8101 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8102 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8103 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8104 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8105
8106 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8107 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8108 using MATH_REDIRECT.
8109 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8110 header inclusion.
8111 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8112 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8113 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8114 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8115 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8116 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8117 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8118 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8119 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8122 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8123 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8124 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8125 (round): Redirect to __round.
8126 (__roundl): Call round instead of __round.
8127 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8128 Remove macro.
8129 [_ARCH_PWR5X] (__roundf): Likewise.
8130 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8131 functions instead of __round variants.
8132 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8133 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8134 Likewise.
8135 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8136 Likewise.
8137 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8138 Likewise.
8139 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8140 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8141 __lroundl.
8142 (__ieee754_expl): Call roundl instead of __roundl.
8143
8144 2018-09-27 Andreas Schwab <schwab@suse.de>
8145
8146 [BZ #23717]
8147 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8148 (do_test): Make st1 static.
8149
8150 2018-09-26 Andreas Schwab <schwab@suse.de>
8151
8152 [BZ #23707]
8153 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8154 * elf/Makefile (tests): Add tst-unwind-ctor.
8155 (modules-names): Add tst-unwind-ctor-lib.
8156 ($(objpfx)tst-unwind-ctor): Depend on
8157 $(objpfx)tst-unwind-ctor-lib.so.
8158
8159 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8160
8161 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8162 file. Most contents moved from ....
8163 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8164 and include <bits/mman-map-flags-generic.h>.
8165 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8166 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8167 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8168 <bits/mman-map-flags-generic.h>.
8169 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8170 macros defined in <bits/mman-map-flags-generic.h>.
8171 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8172 <bits/mman-map-flags-generic.h>.
8173 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8174 defined in <bits/mman-map-flags-generic.h>.
8175
8176 2018-09-26 Andreas Schwab <schwab@suse.de>
8177
8178 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8179 output.
8180
8181 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8182 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8183 Fangrui Song <maskray@google.com>
8184
8185 [BZ #20480]
8186 * config.make.in (have-textrel_ifunc): New define.
8187 * configure.ac: Add check if linker supports textrel relocation with
8188 ifunc.
8189 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8190 tst-ifunc-textrel.
8191 (CFLAGS-tst-ifunc-textrel.c): New rule.
8192 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8193 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8194 * elf/tst-ifunc-textrel.c: New file.
8195
8196 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8197
8198 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8199 <bits/procfs-prregset.h>.
8200 (prgregset_t): Define using __prgregset_t.
8201 (prfpregset_t): Define using __prfpregset_t.
8202 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8203 (sysdep_headers): Add bits/procfs-prregset.h.
8204 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8205 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8206 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8207 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8208
8209 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8210 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8211 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8212 pr_uid and pr_gid.
8213 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8214 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8215 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8216 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8217 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8218 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8219 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8220 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8221 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8222 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8223 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8224 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8225 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8226 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8227 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8228 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8229 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8230 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8231 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8232 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8233 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8234 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8235 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8236 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8237
8238 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8239 AArch64 version. Include <bits/procfs.h>.
8240 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8241 (sysdep_headers): Add bits/procfs.h.
8242 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8243 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8244 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8245 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8246 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8247 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8248 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8249 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8250 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8251 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8252 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8253 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8254 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8255 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8256 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8257 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8258 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8259
8260 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8261
8262 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8263 Use libsupport.
8264
8265 2018-09-25 Arjun Shankar <arjun@redhat.com>
8266
8267 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8268 (__gconv_max_path_elem_len): Likewise.
8269 (__gconv_nmodules): Likewise.
8270 (__gconv_get_path): Likewise.
8271 (path_elem): Move to ...
8272 * iconv/gconv_conf.c: ... here.
8273 (__gconv_get_path): Mark function static.
8274 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8275 * iconv/gconv_open.c: ... here.
8276
8277 2018-09-24 Andreas Schwab <schwab@suse.de>
8278
8279 * scripts/haveversions.awk: New file.
8280 * Makerules ($(common-objpfx)Versions.def)
8281 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8282 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8283 Move rules ...
8284 * Makeconfig ($(common-objpfx)Versions.def)
8285 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8286 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8287 ... here.
8288 ($(common-objpfx)Versions.mk): New rule. Include it.
8289 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8290 Emit error if build-obsolete-nsl = yes.
8291 * manual/install.texi (Configuring and compiling): Describe
8292 --enable-obsolete-nsl as unavaiable after version 2.28.
8293 * INSTALL: Regenerate.
8294
8295 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8296
8297 * NEWS: Add note about new TLE support on powerpc64le.
8298 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8299 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8300 __ununsed1.
8301 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8302 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8303 * sysdeps/powerpc/powerpc32/sysdep.h,
8304 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8305 ABORT_TRANSACTION): Remove macros.
8306 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8307 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8308 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8310 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8311 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8312 usage.
8313 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8314
8315 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8316
8317 [BZ #10425]
8318 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8319 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8320 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8321 which is the same as in it_IT.
8322 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8323 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8324
8325 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8326
8327 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8328 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8329 using MATH_REDIRECT.
8330 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8331 header inclusion.
8332 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8333 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8334 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8335 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8336 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8337 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8338 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8339 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8340 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8341 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8342 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8343 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8344 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8345 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8346 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8347 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8348 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8349 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8350 (ceil): Redirect to __ceil.
8351 (floor): Redirect to __floor.
8352 (trunc): Redirect to __trunc.
8353 (__truncl): Call trunc instead of __trunc.
8354 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8355 Remove macro.
8356 [_ARCH_PWR5X] (__truncf): Likewise.
8357 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8358 trunc functions instead of __trunc variants.
8359 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8360 Likewise.
8361 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8362 Likewise.
8363 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8364 Likewise.
8365 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8366 Likewise.
8367
8368 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8369 [__i586__ || __pentium__].
8370 [__i486__]: Handle explicitly.
8371 (HAS_CPUID): Define to 1 if above macros are undefined.
8372 (HAS_I586): Likewise.
8373 (HAS_I686): Likewise.
8374
8375 2018-09-20 Florian Weimer <fweimer@redhat.com>
8376
8377 * misc/tst-gethostid.c: New file.
8378 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8379 (tst-gethostid): Link with -ldl.
8380
8381 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8382
8383 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8384 value from gethostbyname_r.
8385
8386 2018-09-19 Carlos O'Donell <carlos@redhat.com>
8387
8388 * stdlib/tst-setcontext9.c (f1): Rename to...
8389 (f1a): ... this.
8390 (f1b): New function implementing lower half of f1 in alternate stack.
8391
8392 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8393
8394 Fix mktime localtime offset confusion
8395 [BZ #23603]
8396 * include/time.h (__mktime_internal): The localtime offset is now
8397 of type long int instead of time_t. This is the longstanding type
8398 in glibc, and it is more than enough to represent difference
8399 between localtime and gmtime even if it is 32 bits and time_t is
8400 64. Changing it now will let us avoid an unnecessary change when
8401 time_t is widened to 64 bits on 32-bit platforms.
8402 * time/mktime-internal.h (mktime_offset_t): Now long int.
8403
8404 Merge mktime, timegm from upstream Gnulib
8405 [BZ #23603][BZ #16346]
8406 This fixes some obscure problems with integer overflow.
8407 Although it looks scary, it is almost all a byte-for-byte copy
8408 from Gnulib, and the Gnulib code has been tested reasonably well.
8409 * include/intprops.h: New file, copied from Gnulib.
8410 * include/verify.h, time/mktime-internal.h:
8411 New tiny files, simplified from Gnulib.
8412 * time/mktime.c: Copy from Gnulib. This has the following changes:
8413 Do not include config.h if DEBUG_MKTIME is nonzero.
8414 Include stdbool.h, intprops.h, verify.h.
8415 Include string.h only if needed.
8416 Include stdlib.h on MS-Windows.
8417 Include mktime-internal.h.
8418 (DEBUG_MKTIME): Default to 0, and simplify later uses.
8419 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8420 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8421 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8422 simplify later conditionals; default the others to zero. Use
8423 these conditionals to express only the code needed on the current
8424 platform. In uses of these conditionals, explicitly spell out how
8425 _LIBC affects things, so it’s easier to review from a glibc
8426 viewpoint.
8427 (WRAPV): Remove; no longer needed now that we have
8428 systematic overflow checking.
8429 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8430 compartmentalize tzset issues. Move system-dependent tzsettish
8431 code here from mktime.
8432 (verify): Remove; now done by verify.h. All uses changed.
8433 (long_int): Use a more-conservative definition, to avoid
8434 integer overflow.
8435 (SHR): Remove, replacing with ...
8436 (shr): New function, which means we needn’t worry about side
8437 effects in args, and conversion analysis is simpler.
8438 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
8439 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
8440 (time_t_avg, time_t_add_ok): Remove.
8441 (mktime_min, mktime_max): New constants.
8442 (leapyear, isdst_differ): Use bool for booleans.
8443 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8444 Use long_int, not time_t, for mktime differences.
8445 (long_int_avg): New function, replacing time_t_avg.
8446 INT_ADD_WRAPV replaces time_t_add_ok.
8447 (guess_time_tm): 6th arg is now long_int, not time_t const *.
8448 All uses changed.
8449 (convert_time): New function.
8450 (ranged_convert): Use it.
8451 (__mktime_internal): Last arg now points to mktime_offset_t, not
8452 time_t. All uses changed. This is a no-op on glibc, where
8453 mktime_offset_t is always time_t. Use int, not time_t, for UTC
8454 offset guess. Directly check for integer overflow instead of
8455 using a heuristic that works only 99.9...% of the time.
8456 Access *OFFSET only once, to avoid an unlikely race if the
8457 compiler delays a load and if this cascades into a signed integer
8458 overflow.
8459 (mktime): Move tzsettish code to my_tzset, and move
8460 localtime_offset to within mktime so that it doesn’t
8461 need a separate ifdef.
8462 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
8463 instead of localtime.
8464 * time/timegm.c: Copy from Gnulib. This has the following changes:
8465 Include mktime-internal.h.
8466 [!_LIBC]: Include config.h and time.h. Do not include
8467 timegm.h or time_r.h. Make __mktime_internal a macro,
8468 and include mktime-internal.h to get its declaration.
8469 (timegm): Temporary is now mktime_offset_t, not time_t.
8470 This affects only Gnulib.
8471
8472 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8473
8474 [BZ #23637]
8475 * string/test-strstr.c (pr23637): New function.
8476 (test_main): Add tests with longer needles.
8477 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
8478 * string/strstr.c (AVAILABLE): Likewise.
8479
8480 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8481
8482 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
8483
8484 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8485
8486 * NEWS: Mention pow improvements.
8487 * math/Makefile (type-double-routines): Add e_pow_log_data.
8488 * sysdeps/generic/math_private.h (__exp1): Remove.
8489 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
8490 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
8491 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
8492 contraction.
8493 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
8494 (exp_inline): Remove.
8495 (__ieee754_exp): Only single double input is handled.
8496 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
8497 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
8498 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
8499 (__pow_log_data): Define.
8500 * sysdeps/ieee754/dbl-64/upow.h: Remove.
8501 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
8502 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
8503 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
8504 contraction.
8505 (CFLAGS-e_pow-fma4.c): Likewise.
8506
8507 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
8508
8509 Simplify tzfile fstat failure code
8510 [BZ #21716]
8511 * time/tzfile.c (__tzfile_read): Simplify slightly.
8512
8513 Fix tzfile low-memory assertion failure
8514 [BZ #21716]
8515 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
8516 when registering time zone abbreviations.
8517
8518 2018-09-18 Joseph Myers <joseph@codesourcery.com>
8519
8520 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
8521 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
8522 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8523 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8524 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
8525 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
8526 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
8527 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8528 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8529
8530 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
8531 __ceil.
8532 (__ceill): Call ceil instead of __ceil.
8533 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
8534 __floor.
8535 (__floorl): Call floor instead of __floor.
8536
8537 2018-09-17 Joseph Myers <joseph@codesourcery.com>
8538
8539 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8540 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
8541 using MATH_REDIRECT.
8542 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
8543 header inclusion.
8544 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
8545 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8546 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8547 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
8548 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8549 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8550 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8551 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
8552 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
8553 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
8554 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
8555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
8556 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8557 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8558 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
8559 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
8560 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8561 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8562 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
8563 Remove macro.
8564 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
8565 functions instead of __ceil variants.
8566 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8567 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8568 Likewise.
8569 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8570 Likewise.
8571 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8572 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8573 Likewise.
8574 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8575 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8576
8577 [BZ #21286]
8578 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
8579 constant.
8580 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
8581 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
8582 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
8583 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
8584 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
8585 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
8586 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
8587 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
8588 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
8589 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
8590 (ILL_BADIADDR): Remove constant.
8591 (TRAP_BRANCH): Likewise.
8592 (TRAP_HWBKPT): Likewise.
8593
8594 2018-09-14 Joseph Myers <joseph@codesourcery.com>
8595
8596 [BZ #23656]
8597 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
8598 Remove [_MIPS_SIM = _ABIN32] conditional case.
8599 (struct elf_prpsinfo): Likewise.
8600
8601 [BZ #23649]
8602 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
8603 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
8604 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
8605 Likewise.
8606 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
8607 elf_prpsinfo): Likewise.
8608 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
8609 elf_prpsinfo): Likewise.
8610 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
8611 Likewise.
8612
8613 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8614 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
8615 using MATH_REDIRECT.
8616 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
8617 header inclusion.
8618 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
8619 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8620 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8621 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8622 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8623 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8624 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
8625 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8626 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8627 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8628 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
8629 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
8630 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
8631 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
8632 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
8633 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8634 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8635 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
8636 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
8638 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
8639 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
8640 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
8641 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
8642 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
8643 * sysdeps/x86_64/fpu/math_private.h: Remove file.
8644 * math/e_scalb.c (invalid_fn): Use rint functions instead of
8645 __rint variants.
8646 * math/e_scalbf.c (invalid_fn): Likewise.
8647 * math/e_scalbl.c (invalid_fn): Likewise.
8648 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8649 Likewise.
8650 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8651 Likewise.
8652 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8653 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
8654 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8655 Likewise.
8656 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8657 Likewise.
8658 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8659 Likewise.
8660 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
8661 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
8662
8663 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8664 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
8665 New macro.
8666 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8667 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
8668 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8669 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
8670 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8671 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
8672 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8673 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
8674 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8675 && !NO_MATH_REDIRECT] (floor): Likewise.
8676 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
8677 header inclusion.
8678 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
8679 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8680 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8681 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
8682 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8683 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8684 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8685 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
8686 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
8687 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
8688 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
8689 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
8690 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8691 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8692 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
8693 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
8694 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
8695 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
8696 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
8697 Remove macro.
8698 [_ARCH_PWR5X] (__floorf): Likewise.
8699 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
8700 inline function.
8701 [__SSE4_1__] (__floorf): Likewise.
8702 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
8703 instead of __floor variants.
8704 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
8705 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
8706 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
8707 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
8708 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
8709 * math/w_tgamma_compat.c (__tgamma): Likewise.
8710 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
8711 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
8712 * math/w_tgammal_compat.c (__tgammal): Likewise.
8713 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
8714 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
8715 Likewise.
8716 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
8717 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
8718 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
8719 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8720 Likewise.
8721 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
8722 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
8723 Likewise.
8724 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
8725 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
8726 Likewise.
8727 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
8728 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
8729 Likewise.
8730 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
8731 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8732 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
8733 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
8734 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8735 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8736
8737 2018-09-12 Joseph Myers <joseph@codesourcery.com>
8738
8739 * elf/Makefile (modules-names-tests): New variable.
8740
8741 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8742
8743 * NEWS: Mention log2 improvements.
8744 * math/Makefile (type-double-routines): Add e_log2_data.
8745 * sysdeps/i386/fpu/e_log2_data.c: New file.
8746 * sysdeps/ia64/fpu/e_log2_data.c: New file.
8747 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
8748 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
8749 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
8750 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
8751 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
8752
8753 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8754
8755 * NEWS: Mention log improvement.
8756 * math/Makefile (type-double-routines): Add e_log_data.
8757 * sysdeps/i386/fpu/e_log_data.c: New file.
8758 * sysdeps/ia64/fpu/e_log_data.c: New file.
8759 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
8760 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
8761 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
8762 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
8763 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
8764 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
8765
8766 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
8767 Xuepeng Guo <xuepeng.guo@intel.com>
8768
8769 [BZ #23606]
8770 * sysdeps/i386/start.S: Include <sysdep.h>
8771 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
8772 enabled. Add cfi_undefined (eip).
8773
8774 2018-09-11 Joseph Myers <joseph@codesourcery.com>
8775
8776 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
8777 (MOVQ): Likewise.
8778 (EXTRACT_WORDS64): Likewise.
8779 (INSERT_WORDS64): Likewise.
8780 (GET_FLOAT_WORD): Likewise.
8781 (SET_FLOAT_WORD): Likewise.
8782
8783 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
8784 argument.
8785 (Config.build_gcc): Use --disable-libsanitizer for first GCC
8786 build, but not for second build if --full-gcc. Use
8787 --enable-languages=all for second build if --full-gcc.
8788 (get_parser): Add --full-gcc option.
8789 (main): Update call to Context.
8790
8791 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
8792
8793 [BZ #10797]
8794 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
8795 Single Quotation Mark).
8796 (thousands_sep): Likewise.
8797 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
8798 * localedata/locales/it_IT (thousands_sep): Use ".".
8799 (grouping): Use "3;3".
8800
8801 2018-09-10 Joseph Myers <joseph@codesourcery.com>
8802
8803 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
8804 x86_64 and i686 configs using --enable-obsolete-rpc
8805 --enable-obsolete-nsl.
8806
8807 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
8808
8809 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8810
8811 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
8812
8813 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
8814 Increment size of new_argv by one.
8815
8816 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
8817
8818 [BZ #17426]
8819 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
8820 * localedata/locales/ar_IN (d_fmt): Likewise.
8821 * localedata/locales/bhb_IN (d_fmt): Likewise.
8822 * localedata/locales/bho_IN (d_fmt): Likewise.
8823 * localedata/locales/bn_BD (d_fmt): Likewise.
8824 * localedata/locales/bn_IN (d_fmt): Likewise.
8825 * localedata/locales/doi_IN (d_fmt): Likewise.
8826 * localedata/locales/gu_IN (d_fmt): Likewise.
8827 * localedata/locales/hi_IN (d_fmt): Likewise.
8828 * localedata/locales/hne_IN (d_fmt): Likewise.
8829 * localedata/locales/kn_IN (d_fmt): Likewise.
8830 * localedata/locales/mag_IN (d_fmt): Likewise.
8831 * localedata/locales/mai_IN (d_fmt): Likewise.
8832 * localedata/locales/mjw_IN (d_fmt): Likewise.
8833 * localedata/locales/ml_IN (d_fmt): Likewise.
8834 * localedata/locales/mni_IN (d_fmt): Likewise.
8835 * localedata/locales/mr_IN (d_fmt): Likewise.
8836 * localedata/locales/pa_IN (d_fmt): Likewise.
8837 * localedata/locales/raj_IN (d_fmt): Likewise.
8838 * localedata/locales/sat_IN (d_fmt): Likewise.
8839 * localedata/locales/sd_IN (d_fmt): Likewise.
8840 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
8841 * localedata/locales/ta_IN (d_fmt): Likewise.
8842 * localedata/locales/ta_LK (d_fmt): Likewise.
8843 * localedata/locales/tcy_IN (d_fmt): Likewise.
8844 * localedata/locales/ur_IN (d_fmt): Likewise.
8845
8846 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
8847 * localedata/locales/ks_IN (d_fmt): Likewise.
8848 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
8849
8850 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
8851 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
8852 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
8853 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
8854
8855 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
8856
8857 * NEWS: Mention exp and exp2 improvements.
8858 * math/Makefile (libm-support): Remove t_exp.
8859 (type-double-routines): Add math_err and e_exp_data.
8860 * sysdeps/aarch64/libm-test-ulps: Update.
8861 * sysdeps/arm/libm-test-ulps: Update.
8862 * sysdeps/i386/fpu/e_exp_data.c: New file.
8863 * sysdeps/i386/fpu/math_err.c: New file.
8864 * sysdeps/i386/fpu/t_exp.c: Remove.
8865 * sysdeps/ia64/fpu/e_exp_data.c: New file.
8866 * sysdeps/ia64/fpu/math_err.c: New file.
8867 * sysdeps/ia64/fpu/t_exp.c: Remove.
8868 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
8869 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
8870 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
8871 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
8872 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
8873 * sysdeps/ieee754/dbl-64/math_config.h: New file.
8874 * sysdeps/ieee754/dbl-64/math_err.c: New file.
8875 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
8876 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
8877 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
8878 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
8879 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
8880 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
8881 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
8882 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8883 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8884
8885 2018-09-05 Joseph Myers <joseph@codesourcery.com>
8886
8887 * sysdeps/alpha/fpu/math_private.h: Remove.
8888
8889 * sysdeps/generic/math_private.h
8890 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
8891 Move this inline function ....
8892 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
8893 * include/math.h [!_ISOMAC]: To here....
8894
8895 2018-09-04 Joseph Myers <joseph@codesourcery.com>
8896
8897 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
8898 code ....
8899 [!FE_HAVE_ROUNDING_MODES]: And this code ....
8900 * include/fenv.h [!_ISOMAC]: ... to here.
8901 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
8902 (feraiseexcept): Likewise.
8903 * math/fromfp.h: Do not include <fenv_private.h>.
8904 * math/s_cexp_template.c: Likewise.
8905 * math/s_csin_template.c: Likewise.
8906 * math/s_csinh_template.c: Likewise.
8907 * math/s_ctan_template.c: Likewise.
8908 * math/s_ctanh_template.c: Likewise.
8909 * math/s_iseqsig_template.c: Likewise.
8910 * math/w_acos_compat.c: Likewise.
8911 * math/w_acosf_compat.c: Likewise.
8912 * math/w_acosl_compat.c: Likewise.
8913 * math/w_asin_compat.c: Likewise.
8914 * math/w_asinf_compat.c: Likewise.
8915 * math/w_asinl_compat.c: Likewise.
8916 * math/w_j0_compat.c: Likewise.
8917 * math/w_j0f_compat.c: Likewise.
8918 * math/w_j0l_compat.c: Likewise.
8919 * math/w_j1_compat.c: Likewise.
8920 * math/w_j1f_compat.c: Likewise.
8921 * math/w_j1l_compat.c: Likewise.
8922 * math/w_jn_compat.c: Likewise.
8923 * math/w_jnf_compat.c: Likewise.
8924 * math/w_log10_compat.c: Likewise.
8925 * math/w_log10f_compat.c: Likewise.
8926 * math/w_log10l_compat.c: Likewise.
8927 * math/w_log2_compat.c: Likewise.
8928 * math/w_log2f_compat.c: Likewise.
8929 * math/w_log2l_compat.c: Likewise.
8930 * math/w_log_compat.c: Likewise.
8931 * math/w_logf_compat.c: Likewise.
8932 * math/w_logl_compat.c: Likewise.
8933 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8934 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8935 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8936 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8937 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8938 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8939 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8940 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8941 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8942 * sysdeps/ieee754/k_standardl.c: Likewise.
8943 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8944 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8945 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8946 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8947 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8948 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8949 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8950 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8951 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8952 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8953 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8954 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8955 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8956 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8957 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8958 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8959 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8960 * math/w_ilogb_template.c: Include <fenv.h> instead of
8961 <fenv_private.h>.
8962 * math/w_llogb_template.c: Likewise.
8963 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8964 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8965
8966 2018-09-03 Joseph Myers <joseph@codesourcery.com>
8967
8968 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
8969 * math/fromfp.h: Include <fenv_private.h>.
8970 * math/math-narrow.h: Likewise.
8971 * math/s_cexp_template.c: Likewise.
8972 * math/s_csin_template.c: Likewise.
8973 * math/s_csinh_template.c: Likewise.
8974 * math/s_ctan_template.c: Likewise.
8975 * math/s_ctanh_template.c: Likewise.
8976 * math/s_iseqsig_template.c: Likewise.
8977 * math/w_acos_compat.c: Likewise.
8978 * math/w_acosf_compat.c: Likewise.
8979 * math/w_acosl_compat.c: Likewise.
8980 * math/w_asin_compat.c: Likewise.
8981 * math/w_asinf_compat.c: Likewise.
8982 * math/w_asinl_compat.c: Likewise.
8983 * math/w_ilogb_template.c: Likewise.
8984 * math/w_j0_compat.c: Likewise.
8985 * math/w_j0f_compat.c: Likewise.
8986 * math/w_j0l_compat.c: Likewise.
8987 * math/w_j1_compat.c: Likewise.
8988 * math/w_j1f_compat.c: Likewise.
8989 * math/w_j1l_compat.c: Likewise.
8990 * math/w_jn_compat.c: Likewise.
8991 * math/w_jnf_compat.c: Likewise.
8992 * math/w_llogb_template.c: Likewise.
8993 * math/w_log10_compat.c: Likewise.
8994 * math/w_log10f_compat.c: Likewise.
8995 * math/w_log10l_compat.c: Likewise.
8996 * math/w_log2_compat.c: Likewise.
8997 * math/w_log2f_compat.c: Likewise.
8998 * math/w_log2l_compat.c: Likewise.
8999 * math/w_log_compat.c: Likewise.
9000 * math/w_logf_compat.c: Likewise.
9001 * math/w_logl_compat.c: Likewise.
9002 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9003 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9004 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9005 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9006 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9007 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9008 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9009 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9010 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9011 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9012 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9013 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9014 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9015 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9016 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9017 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9018 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9019 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9020 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9021 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9022 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9023 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9024 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9025 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9026 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9027 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9028 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9029 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9030 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9031 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9032 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9033 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9034 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9035 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9036 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9037 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9038 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9039 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9040 * sysdeps/ieee754/k_standardl.c: Likewise.
9041 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9042 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9043 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9044 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9045 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9046 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9047 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9048 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9049 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9050 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9051 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9052 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9053 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9054 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9055 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9056 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9057 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9058 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9059 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9060 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9061 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9062 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9063 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9064 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9065 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9066 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9067 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9068 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9069 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9070 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9071 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9072 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9073 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9074 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9075 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9076 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9077 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9078 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9079 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9080 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9081 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9082 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9083 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9084 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9085 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9086 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9087 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9088 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9089 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9090 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9091 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9092 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9093 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9094 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9095 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9096 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9097 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9098 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9099 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9100 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9101 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9102 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9103 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9104 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9105 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9106 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9107 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9108 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9109 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9110 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9111 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9112
9113 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9114
9115 [BZ #20271]
9116 * include/stdio.h (__libc_fatal): Mention newline in comment.
9117 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9118 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9119 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9120 * nss/nsswitch.c (__nss_next2): Likewise.
9121 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9122 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9123 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9124 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9125 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9126 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9127 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9128 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9129 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9130 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9131 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9132 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9133 (__netlink_assert_response): Likewise.
9134
9135 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9136
9137 * conform/glibcconform.py: New file.
9138 * conform/list-header-symbols.py: Likewise.
9139 * conform/list-header-symbols.pl: Remove.
9140 * conform/Makefile (tests-special): Only add linknamespace tests
9141 if [PYTHON].
9142 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9143
9144 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9145
9146 [BZ #23597]
9147 * support/Makefile (libsupport-routines): Add
9148 support_copy_file_range and xcopy_file_range.
9149 * support/support.h: Include <sys/types.h>.
9150 (support_copy_file_range): New prototype.
9151 * support/support_copy_file_range.c: New file. Copied and
9152 modified from io/copy_file_range-compat.c.
9153 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9154 instead of copy_file_range.
9155 * support/xcopy_file_range.c: New file.
9156 * support/xunistd.h (xcopy_file_range): New prototype.
9157
9158 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9159
9160 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9161 xpthread_create and xpthread_join.
9162
9163 2018-08-30 Florian Weimer <fweimer@redhat.com>
9164
9165 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9166
9167 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9168
9169 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9170 if malloc fails.
9171
9172 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9173
9174 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9175 and minus_oflow as non-finite.
9176
9177 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9178
9179 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9180 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9181 moved to fenv_private.h except for ...
9182 (TOINT_INTRINSICS): Kept in math_private.h.
9183 (roundtoint): Likewise.
9184 (converttoint): Likewise.
9185 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9186 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9187 * sysdeps/arm/math_private.h: Remove.
9188 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9189 ....
9190 * sysdeps/generic/math_private.h: ... this file. Include
9191 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9192 Include <fenv_private.h>. Remove functions and macros moved to
9193 fenv_private.h.
9194 * sysdeps/i386/fpu/math_private.h: Remove.
9195 * sysdeps/mips/math_private.h: Move to ....
9196 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9197 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9198 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9199 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9200 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9201 * sysdeps/powerpc/fpu/math_private.h: Do not include
9202 <fenv_private.h>.
9203 * sysdeps/riscv/rvf/math_private.h: Move to ....
9204 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9205 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9206 <fenv_private.h>.
9207 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9208 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9209 * sysdeps/sparc/fpu/math_private.h: Remove.
9210 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9211 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9212 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9213 <fenv_private.h>.
9214 * sysdeps/x86_64/fpu/math_private.h: Do not include
9215 <sysdeps/i386/fpu/fenv_private.h>.
9216
9217 2018-08-28 Florian Weimer <fweimer@redhat.com>
9218
9219 [BZ #23578]
9220 * posix/tst-regcomp-truncated.c: New file.
9221 * posix/Makefile (tests): Add it.
9222 (tst-regcomp-truncated.out): Depend on generated locales.
9223
9224 2018-08-28 Florian Weimer <fweimer@redhat.com>
9225
9226 * support/test-container.c (main): Treat unshare failure with
9227 EPERM as an unsupported test.
9228
9229 2018-08-28 Florian Weimer <fweimer@redhat.com>
9230
9231 [BZ #23520]
9232 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9233 * nscd/netgroupcache.c
9234 (addgetnetgrentX): Add tofreep parameter. Do not free
9235 heap-allocated buffer.
9236 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9237 (addgetnetgrentX_ignore): New function.
9238 (addgetnetgrent): Call it.
9239 (readdgetnetgrent): Likewise.
9240
9241 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9242
9243 * string/memmem.c: Use memcmp for first match.
9244
9245 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9246
9247 [BZ #17426]
9248 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9249
9250 2018-08-27 DJ Delorie <dj@redhat.com>
9251
9252 * support/Makefile (others): Don't list programs explicitly as a
9253 dependency of "others".
9254
9255 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9256
9257 * sysdeps/generic/math-tests-trap-force.h: New file.
9258 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9259 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9260 * sysdeps/powerpc/math-tests.h: Remove file.
9261 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9262
9263 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9264 Torvald Riegel <triegel@redhat.com>
9265
9266 [BZ #23538]
9267 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9268 Update r to include the set wake-request flag if waiters are
9269 remaining after spinning.
9270
9271 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9272
9273 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9274
9275 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9276
9277 [BZ #23578]
9278 regex: fix uninitialized memory access
9279 I introduced this bug into gnulib in commit
9280 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9281 eventually it was merged into glibc. The bug was found by
9282 project-repo <bugs@feusi.co> and reported here:
9283 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9284 Diagnosis and draft fix reported by Assaf Gordon here:
9285 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9286 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9287 * posix/regex_internal.c (build_wcs_upper_buffer):
9288 Fix bug when mbrtowc returns 0.
9289
9290 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9291
9292 * po/be.po: Update translation.
9293
9294 2018-08-24 DJ Delorie <dj@delorie.com>
9295
9296 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9297 $(libunwind).
9298
9299 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9300
9301 [BZ #23400]
9302 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9303 create temporary files in source tree.
9304
9305 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9306
9307 * sysdeps/generic/math-tests-trap.h: New file.
9308 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9309 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9310 * sysdeps/aarch64/math-tests.h: Remove file.
9311 * sysdeps/arm/math-tests.h: Likewise.
9312 * sysdeps/riscv/math-tests.h: Likewise.
9313 * sysdeps/aarch64/math-tests-trap.h: New file.
9314 * sysdeps/arm/math-tests-trap.h: Likewise.
9315 * sysdeps/riscv/math-tests-trap.h: Likewise.
9316
9317 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9318
9319 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9320 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9321 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9322 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9323 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9324 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9325 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9326 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9327 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9328 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9329 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9330 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9331 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9332 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9333 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9334 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9335 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9336 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9337
9338 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9339
9340 * sysdeps/generic/math-tests-exceptions.h: New file.
9341 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9342 (EXCEPTION_TESTS_float): Do not define here.
9343 (EXCEPTION_TESTS_double): Likewise.
9344 (EXCEPTION_TESTS_long_double): Likewise.
9345 (EXCEPTION_TESTS_float128): Likewise.
9346 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9347 Likewise.
9348 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9349 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9350 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9351 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9352 * sysdeps/mips/math-tests.h: Likewise.
9353 * sysdeps/nios2/math-tests.h: Likewise.
9354 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9355 (EXCEPTION_TESTS_float): Do not define here.
9356 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9357 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9358 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9359
9360 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9361
9362 * NEWS: Move optimized sinf entry to 2.29.
9363
9364 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9365
9366 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9367
9368 2018-08-22 DJ Delorie <dj@redhat.com>
9369
9370 * Makefile (testroot.pristine): New rules to initialize the
9371 test-in-container "testroot".
9372 * Makerules (all-testsuite): Add tests-container.
9373 * Rules (tests-expected): Add tests-container.
9374 (binaries-all-tests): Likewise.
9375 (tests-container): New, run these tests in the testroot container.
9376 * support/Makefile (others): Add *-container, support_paths.c,
9377 xmkdirp, and links-dso-program.
9378 * support/links-dso-program-c.c: New.
9379 * support/links-dso-program.cc: New.
9380 * support/test-container.c: New.
9381 * support/shell-container.c: New.
9382 * support/echo-container.c: New.
9383 * support/true-container.c: New.
9384 * support/xmkdirp.c: New.
9385 * support/xsymlink.c: New.
9386 * support/support_paths.c: New.
9387 * support/support.h: Add support paths prototypes.
9388 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9389
9390 * nss/tst-nss-test3.c: Convert to test-in-container.
9391 * nss/tst-nss-test3.root/: New.
9392
9393 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9394
9395 regex: port Gnulib code to z/OS POSIX environment
9396 Problem reported by Arnold Robbins in:
9397 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9398 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
9399 Undef.
9400
9401 2018-08-22 Joseph Myers <joseph@codesourcery.com>
9402
9403 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
9404 (ROUNDING_TESTS_double): Remove.
9405 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
9406 (ROUNDING_TESTS_double): Remove.
9407 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
9408 (ROUNDING_TESTS_double): Remove.
9409 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
9410 (ROUNDING_TESTS_float): Remove.
9411 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
9412 (ROUNDING_TESTS_float): Remove.
9413 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
9414 (ROUNDING_TESTS_float): Remove.
9415 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
9416 !TEST_MATHVEC here.
9417 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9418 (IF_ROUND_INIT_FE_UPWARD): Likewise.
9419
9420 * sysdeps/generic/math-tests-rounding.h: New file.
9421 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
9422 (ROUNDING_TESTS_float): Do not define here.
9423 (ROUNDING_TESTS_double): Likewise.
9424 (ROUNDING_TESTS_long_double): Likewise.
9425 (ROUNDING_TESTS_float128): Likewise.
9426 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
9427 (ROUNDING_TESTS_double): Undefine before defining.
9428 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
9429 (ROUNDING_TESTS_double): Undefine before defining.
9430 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
9431 (ROUNDING_TESTS_double): Undefine before defining.
9432 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
9433 (ROUNDING_TESTS_float): Undefine before defining.
9434 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
9435 (ROUNDING_TESTS_float): Undefine before defining.
9436 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
9437 (ROUNDING_TESTS_float): Undefine before defining.
9438 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
9439 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
9440 not define here.
9441 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
9442 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
9443 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
9444 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9445 (ROUNDING_TESTS_float): Do not define here.
9446 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
9447 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
9448 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
9449 (ROUNDING_TESTS_float): Likewise.
9450 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
9451 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
9452 * sysdeps/mips/math-tests.h [__mips_soft_float]
9453 (ROUNDING_TESTS_float): Likewise.
9454 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
9455 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
9456 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
9457 (ROUNDING_TESTS_double): Likewise.
9458 (ROUNDING_TESTS_long_double): Likewise.
9459
9460 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
9461
9462 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
9463 (PF_XDP): New macro.
9464 (AF_XDP): New macro.
9465 (SOL_XDP): New macro.
9466
9467 2018-08-21 Joseph Myers <joseph@codesourcery.com>
9468
9469 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
9470 (TCP_INQ): Likewise.
9471 (TCP_CM_INQ): Likewise.
9472 (TCP_REPAIR_ON): Likewise.
9473 (TCP_REPAIR_OFF): Likewise.
9474 (TCP_REPAIR_OFF_NO_WP): Likewise.
9475 (struct tcp_zerocopy_receive): New type.
9476
9477 2018-08-21 Florian Weimer <fweimer@redhat.com>
9478
9479 * support/support.h (support_descriptor_supports_holes): Declare.
9480 * support/Makefile (libsupport-routines): Add
9481 support_descriptor_supports_holes.
9482 * support/support_descriptor_supports_holes.c: New file.
9483 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
9484 and stop testing if holes are not supported.
9485 * io/test-lfs.c (do_prepare): Likewise.
9486 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
9487 Likewise.
9488 * timezone/tst-tzset.c (create_tz_file): Likewise.
9489 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
9490 variable.
9491 (do_prepare): Set it.
9492 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
9493
9494 2018-08-21 Florian Weimer <fweimer@redhat.com>
9495
9496 [BZ #17248]
9497 * Makeconfig (+cflags): Do not sort (and deduplicate).
9498
9499 2018-08-21 Florian Weimer <fweimer@redhat.com>
9500
9501 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
9502 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
9503
9504 2018-08-20 Florian Weimer <fweimer@redhat.com>
9505
9506 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
9507 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
9508
9509 2018-08-20 Joseph Myers <joseph@codesourcery.com>
9510
9511 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
9512 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
9513 and ssi_arch members.
9514
9515 * elf/elf.c (NT_VMCOREDD): New macro.
9516 (AT_MINSIGSTKSZ): Likewise.
9517
9518 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9519
9520 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
9521 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
9522 s_cosf-ppc64 and s_cosf-power8.
9523 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
9524 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9525 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9526 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9527 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
9528 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
9529 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
9530 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
9531 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
9532 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
9533 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
9534 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
9535
9536 2018-08-17 Florian Weimer <fweimer@redhat.com>
9537
9538 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9539
9540 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
9541
9542 * malloc/malloc.c (_int_malloc): Additional binning code checks.
9543
9544 2018-08-16 Florian Weimer <fweimer@redhat.com>
9545
9546 * configure.ac: Add --with-nonshared-cflags option.
9547 * config.make.in (extra-nonshared-cflags): Set variable.
9548 * Makeconfig (CFLAGS-.oS): Use it.
9549 * manual/install.texi (Configuring and compiling): Document
9550 --with-nonshared-cflags.
9551 * configure: Regenerate.
9552 * INSTALL: Likewise.
9553
9554 2018-08-16 Florian Weimer <fweimer@redhat.com>
9555
9556 * Makeconfig (ASFLAGS): Always append required assembler flags.
9557
9558 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
9559
9560 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
9561 (malloc_consolidate): Likewise.
9562
9563 2018-08-16 Pochang Chen <johnchen902@gmail.com>
9564
9565 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
9566
9567 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
9568
9569 * benchtests/bench-strlen.c (do_test): Allocate buffers before
9570 every strlen call.
9571
9572 * benchtests/bench-strlen.c: Print performance numbers in json.
9573
9574 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9575
9576 * sysdeps/powerpc/powerpc64/multiarch/Makefile
9577 (sysdep_routines): Build strcmp-power9 and strncmp-power9
9578 only for little endian.
9579 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9580 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
9581 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
9582 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
9583 Add check for little endian.
9584 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
9585 (__strcmp_power9): Add check for little endian.
9586 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
9587 Add check for little endian.
9588 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
9589 (__strncmp_power9): Add check for little endian.
9590 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
9591 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
9592 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
9593 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
9594 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
9595
9596 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
9597
9598 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
9599 [!STRLEN](STRLEN): Set to __strlen.
9600 * sysdeps/aarch64/multiarch/strlen.c: New file.
9601 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
9602 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
9603 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
9604 (__libc_ifunc_impl_list): Add strlen.
9605 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9606 strlen_generic and strlen_asimd.
9607
9608 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9609
9610 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
9611 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
9612 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
9613
9614 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9615
9616 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
9617
9618 2018-08-14 Florian Weimer <fweimer@redhat.com>
9619
9620 [BZ #23519]
9621 * include/stdio.h (__vfxprintf): Declare.
9622 * stdio-common/fxprintf.c (__vfxprintf): New function.
9623 (__fxprintf): Call it.
9624 * misc/err.c (convert_and_print): Remove function.
9625 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
9626 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
9627 * misc/Makefile (tests): Add tst-warn-wide.
9628 * misc/tst-warn-wide.c: New file.
9629
9630 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
9631 Szabolcs Nagy <szabolcs.nagy@arm.com>
9632
9633 * NEWS: Mention sinf, cosf, sincosf.
9634 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
9635 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
9636 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
9637 constants rather than including generic sincosf.h.
9638 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
9639 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
9640 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
9641 (reduced_cos): Remove.
9642 (sinf_poly): New function.
9643 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
9644
9645 2018-08-14 Florian Weimer <fweimer@redhat.com>
9646
9647 [BZ #23521]
9648 [BZ #23522]
9649 * nss/nss_files/files-alias.c (get_next_alias): During :include:
9650 processing, bail out if no room, and close the stream before
9651 returning ERANGE.
9652 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
9653 (tst-nss-files-alias-leak): Link with libdl.
9654 (tst-nss-files-alias-leak.out): Depend on nss_files.
9655
9656 * nss/tst-nss-files-alias-leak.c: New file.
9657
9658 2018-08-14 Florian Weimer <fweimer@redhat.com>
9659
9660 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
9661 server_user, stat_user.
9662
9663 2018-08-13 Joseph Myers <joseph@codesourcery.com>
9664
9665 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9666 version to 4.18.
9667 (io_pgetevents): New syscall.
9668 (rseq): Likewise.
9669
9670 * manual/install.texi (Configuring and compiling): Do not list
9671 tools used for testing pretty printers here.
9672 (Tools for Compilation): List Python, PExpect and GDB here.
9673 Update descriptions of uses of Perl and Python.
9674 * INSTALL: Regenerate.
9675
9676 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9677 version to 4.18.
9678
9679 2018-08-13 Florian Weimer <fweimer@redhat.com>
9680
9681 * misc/error.c (error): Add missing va_end call.
9682 (error_at_line): Likewise.
9683
9684 2018-08-13 Florian Weimer <fweimer@redhat.com>
9685
9686 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
9687
9688 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
9689
9690 * benchtests/scripts/benchout.schema.json (properties): Add
9691 new properties.
9692
9693 * benchtests/bench-skeleton.c (main): Add duration and
9694 iterations attributes.
9695
9696 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
9697
9698 regex: Gnulib unibyte RRI uses bytes not chars
9699 Adjust the non-glibc code to agree with what Gawk needs for
9700 rational range interpretation (RRI) for regular expression ranges.
9701 In unibyte locales, Gawk wants ranges to use the underlying byte
9702 rather than the character code point. This change does not affect
9703 glibc proper.
9704 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
9705 In unibyte locales, use the byte value rather than
9706 running it through btowc.
9707
9708 2018-08-10 Joseph Myers <joseph@codesourcery.com>
9709
9710 * sysdeps/generic/math-tests-snan.h: New file.
9711 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
9712 (SNAN_TESTS_float): Do not define here.
9713 (SNAN_TESTS_double): Likewise.
9714 (SNAN_TESTS_long_double): Likewise.
9715 (SNAN_TESTS_float128): Likewise.
9716 * sysdeps/i386/fpu/math-tests-snan.h: New file.
9717 * sysdeps/i386/fpu/math-tests.h: Remove file.
9718 * sysdeps/ia64/math-tests-snan.h: New file.
9719 * sysdeps/ia64/math-tests.h: Remove file.
9720 * sysdeps/x86/math-tests.h: Likewise.
9721 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
9722
9723 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
9724 Szabolcs Nagy <szabolcs.nagy@arm.com>
9725
9726 * math/Makefile: Add s_sincosf_data.c.
9727 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
9728 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
9729 (sincosf_poly): Likewise.
9730 (reduce_small): Likewise.
9731 (reduce_large): Likewise.
9732 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
9733 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
9734 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
9735 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
9736
9737 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
9738 Szabolcs Nagy <szabolcs.nagy@arm.com>
9739
9740 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
9741 (converttoint): Use lround.
9742 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
9743 document the semantics when TOINT_INTRINSICS is set.
9744 (converttoint): Likewise.
9745 (TOINT_RINT): Remove.
9746 (TOINT_SHIFT): Remove.
9747 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
9748 path.
9749
9750 2018-08-10 Florian Weimer <fweimer@redhat.com>
9751
9752 [BZ #23497]
9753 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
9754 function.
9755 (__old_getdents64): Use getdents64. Convert entries without
9756 moving them.
9757 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
9758 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
9759 tst-readdir64-compat.
9760
9761 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9762
9763 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
9764 Fix unwind.
9765
9766 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9767
9768 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
9769 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
9770 code to s390x-mcount.h and #include it.
9771 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
9772 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
9773 (__fentry__): Add.
9774
9775 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9776
9777 * stdlib/Versions: Remove __fentry__.
9778 * sysdeps/i386/Versions: Add __fentry__.
9779 * sysdeps/x86_64/Versions: Add __fentry__.
9780
9781 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9782
9783 * sysdeps/s390/Makefile: Register the new tests.
9784 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
9785 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
9786 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
9787 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
9788 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
9789 * sysdeps/s390/tst-dl-runtime.c: New file.
9790
9791 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9792
9793 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
9794 Do not clobber R0.
9795
9796 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9797
9798 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
9799 Do not clobber R0.
9800
9801 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9802
9803 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
9804 Do not clobber R0.
9805
9806 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9807
9808 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
9809 Do not clobber R0.
9810
9811 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9812
9813 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
9814 Use symbolic offsets for stack variables.
9815
9816 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9817
9818 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
9819 Use symbolic offsets for stack variables.
9820
9821 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9822
9823 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
9824 Use symbolic offsets for stack variables.
9825
9826 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9827
9828 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
9829 Use symbolic offsets for stack variables.
9830
9831 2018-08-09 Joseph Myers <joseph@codesourcery.com>
9832
9833 * math/gen-libm-test.py: New file.
9834 * math/gen-libm-test.pl: Remove.
9835 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
9836 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
9837 gen-libm-test.pl.
9838 ($(libm-test-c-noauto-obj)): Likewise.
9839 ($(libm-test-c-auto-obj)): Likewise.
9840 ($(libm-test-c-narrow-obj)): Likewise.
9841 (regen-ulps): Likewise.
9842 * math/README.libm-test: Update references to gen-libm-test.pl.
9843 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
9844 referencing gen-libm-test.pl.
9845 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
9846 * math/libm-test-support.c: Likewise.
9847 * math/libm-test-support.h: Likewise.
9848 * sysdeps/generic/libm-test-ulps: Likewise.
9849
9850 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
9851
9852 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
9853 Fix value.
9854
9855 2018-08-08 Joseph Myers <joseph@codesourcery.com>
9856
9857 * math/libm-test-nextdown.inc (do_test): Move comment to ....
9858 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
9859
9860 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9861
9862 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
9863 symbols.
9864 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
9865 __pthread_setspecific): Add hidden proto.
9866 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
9867 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
9868
9869 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
9870
9871 * benchtests/bench-string.h (buf1_size, buf2_size): New
9872 variables.
9873 (init_sizes): New function.
9874 (test_init): Use it.
9875 (alloc_buf, exit_error): New functions.
9876 (alloc_bufs): Use ALLOC_BUF.
9877 (realloc_bufs): Remove.
9878 * benchtests/bench-memcmp.c (do_test): Adjust.
9879 * benchtests/bench-memset-large.c (do_test): Likewise.
9880 * benchtests/bench-memset-walk.c (do_test): Likewise.
9881 * benchtests/bench-memset.c (do_test): Likewise.
9882 * benchtests/bench-strncmp.c (do_test): Likewise.
9883
9884 2018-08-06 Andreas Schwab <schwab@suse.de>
9885
9886 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
9887 of CONST_THREAD_AREA.
9888
9889 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
9890
9891 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
9892 (STATE_SAVE_MASK): Likewise.
9893 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
9894 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
9895 (STATE_SAVE_MASK): Likewise.
9896 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
9897 instead of <cpu-features.h>.
9898
9899 2018-08-03 DJ Delorie <dj@redhat.com>
9900
9901 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
9902 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
9903
9904 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
9905
9906 2018-08-03 Joseph Myers <joseph@codesourcery.com>
9907
9908 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
9909 after TEST_* calls.
9910 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
9911 * math/libm-test-logb.inc (logb_test_data): Likewise.
9912
9913 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
9914
9915 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
9916 * string/strstr.c (AVAILABLE): Likewise.
9917
9918 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
9919
9920 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
9921 <init-arch.h>.
9922 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
9923 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
9924 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
9925
9926 2018-08-03 Carlos O'Donell <carlos@redhat.com>
9927
9928 * po/be.po: Update translation.
9929
9930 * po/be.po: Update translation.
9931
9932 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
9933
9934 * sysdeps/x86/cpu-features-offsets.sym
9935 (rtld_global_ro_offsetof): Removed.
9936 (CPU_FEATURES_SIZE): Likewise.
9937 (CPUID_OFFSET): Likewise.
9938 (CPUID_SIZE): Likewise.
9939 (CPUID_EAX_OFFSET): Likewise.
9940 (CPUID_EBX_OFFSET): Likewise.
9941 (CPUID_ECX_OFFSET): Likewise.
9942 (CPUID_EDX_OFFSET): Likewise.
9943 (FAMILY_OFFSET): Likewise.
9944 (MODEL_OFFSET): Likewise.
9945 (FEATURE_OFFSET): Likewise.
9946 (FEATURE_SIZ): Likewise.
9947 (COMMON_CPUID_INDEX_1): Likewise.
9948 (COMMON_CPUID_INDEX_7): Likewise.
9949 (FEATURE_INDEX_1): Likewise.
9950 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
9951
9952 2018-08-02 Carlos O'Donell <carlos@redhat.com>
9953
9954 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
9955 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
9956 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
9957 (install-locales): Depend on install-locale-archive.
9958 (install-locale-archive): Define.
9959 (install-locale-files): Define.
9960 (build-one-locale): Define macro.
9961 * manual/install.texi (Running make install): Document.
9962 * manual/INSTALL: Regenerate.
9963
9964 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
9965
9966 * benchtests/scripts/compare_strings.py: Import traceback.
9967 (parse_file): Pretty-print error.
9968
9969 * NEWS: Mention the change.
9970 * elf/dl-tunables.list: Rename tune namespace to cpu.
9971 * sysdeps/powerpc/dl-tunables.list: Likewise.
9972 * sysdeps/x86/dl-tunables.list: Likewise.
9973 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
9974 cpu.name.
9975 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
9976 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
9977 * manual/README.tunables: Likewise.
9978 * manual/tunables.texi: Likewise.
9979 * sysdeps/powerpc/cpu-features.c: Likewise.
9980 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
9981 (init_cpu_features): Likewise.
9982 * sysdeps/x86/cpu-features.c: Likewise.
9983 * sysdeps/x86/cpu-features.h: Likewise.
9984 * sysdeps/x86/cpu-tunables.c: Likewise.
9985 * sysdeps/x86_64/Makefile: Likewise.
9986 * sysdeps/x86/dl-cet.c: Likewise.
9987
9988 2018-08-02 Joseph Myers <joseph@codesourcery.com>
9989
9990 [BZ #23479]
9991 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
9992 [__mips_hard_float].
9993 (FE_UNDERFLOW): Likewise.
9994 (FE_OVERFLOW): Likewise.
9995 (FE_DIVBYZERO): Likewise.
9996 (FE_INVALID): Likewise.
9997 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
9998 (FE_TOWARDZERO): Define only if [__mips_hard_float].
9999 (FE_UPWARD): Likewise.
10000 (FE_DOWNWARD): Likewise.
10001 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10002 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10003 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10004 [__mips_hard_float].
10005 (FP_ROUNDMODE): Likewise.
10006 (FP_RND_NEAREST): Likewise.
10007 (FP_RND_ZERO): Likewise.
10008 (FP_RND_PINF): Likewise.
10009 (FP_RND_MINF): Likewise.
10010 (FP_EX_INVALID): Likewise.
10011 (FP_EX_OVERFLOW): Likewise.
10012 (FP_EX_UNDERFLOW): Likewise.
10013 (FP_EX_DIVZERO): Likewise.
10014 (FP_EX_INEXACT): Likewise.
10015 (FP_INIT_ROUNDMODE): Likewise.
10016 * sysdeps/mips/nofpu/fesetenv.c: New file.
10017 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10018
10019 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10020
10021 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10022 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10023 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10024 conditional on [FE_UPWARD].
10025
10026 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10027
10028 regex: fix memory leak in Gnulib
10029 Problem and fix reported by Assaf Gordon in:
10030 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10031 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10032 range_ends members too, as they are defined in 'struct
10033 re_charset_t' even if not _LIBC. This affects only Gnulib.
10034
10035 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10036
10037 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10038 ...
10039 (get_common_indices): This.
10040 (init_cpu_features): Updated.
10041
10042 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10043
10044 * sysdeps/generic/math-tests-snan-payload.h: New file.
10045 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10046 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10047 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10048 * sysdeps/generic/math-tests.h: Include
10049 <math-tests-snan-payload.h>.
10050 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10051 * sysdeps/hppa/math-tests.h: Remove file.
10052 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10053 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10054 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10055 Likewise.
10056
10057 * sysdeps/generic/math-tests-snan-cast.h: New file.
10058 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10059 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10060 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10061 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10062
10063 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10064
10065 * version.h (RELEASE): Set to "development".
10066 (VERSION): Set to "2.28.9000".
10067 * NEWS (2.29): New section.
10068
10069 * version.h (RELEASE): Set to "stable".
10070 (VERSION): Set to "2.28".
10071 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10072 * NEWS: Add the list of bugs fixed in 2.28.
10073
10074 * po/ca.po: Update to latest version.
10075 * po/cs.po: Likewise
10076 * po/da.po: Likewise
10077 * po/el.po: Likewise
10078 * po/eo.po: Likewise
10079 * po/es.po: Likewise
10080 * po/fi.po: Likewise
10081 * po/fr.po: Likewise
10082 * po/gl.po: Likewise
10083 * po/hu.po: Likewise
10084 * po/ia.po: Likewise
10085 * po/id.po: Likewise
10086 * po/it.po: Likewise
10087 * po/ja.po: Likewise
10088 * po/ko.po: Likewise
10089 * po/lt.po: Likewise
10090 * po/nb.po: Likewise
10091 * po/nl.po: Likewise
10092 * po/pt_BR.po: Likewise
10093 * po/ru.po: Likewise
10094 * po/rw.po: Likewise
10095 * po/sk.po: Likewise
10096 * po/sl.po: Likewise
10097 * po/tr.po: Likewise
10098 * po/zh_CN.po: Likewise
10099 * po/zh_TW.po: Likewise
10100
10101 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10102
10103 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10104 initialization...
10105 (init): ... before initializing libpthread.
10106
10107 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10108 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10109 (__mach_setup_tls): ... new function.
10110 (mach_setup_tls): New alias.
10111 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10112 __mach_setup_thread.
10113 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10114 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10115 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10116 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10117
10118 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10119
10120 * manual/install.texi: Update versions.
10121 * INSTALL: Regenerate.
10122
10123 * manual/contrib.texi (Contributors): Update contributions.
10124
10125 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10126
10127 * po/be.po: Update translations.
10128
10129 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10130
10131 * sysdeps/sh/libm-test-ulps: Update.
10132
10133 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10134
10135 * po/bg.po: Update translations.
10136 * po/de.po: Likewise.
10137 * po/hr.po: Likewise.
10138 * po/pt_BR.po: Likewise.
10139 * po/sv.po: Likewise.
10140 * po/vi.po: Likewise.
10141
10142 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10143
10144 [BZ #23467]
10145 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10146 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10147 (CFLAGS-tst-cet-property-1.o): New.
10148 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10149 ($(objpfx)tst-cet-property-2): Likewise.
10150 ($(objpfx)tst-cet-property-2.out): Likewise.
10151 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10152 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10153 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10154 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10155 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10156
10157 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10158
10159 [BZ #23458]
10160 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10161
10162 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10163
10164 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10165 __sbrk): Do not set attribute_hidden.
10166 * sysdeps/mach/hurd/not-errno.h: New file.
10167 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10168 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10169
10170 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10171
10172 * po/uk.po: Update translations.
10173 * po/cs.po: Likewise.
10174 * po/pl.po: Likewise.
10175
10176 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10177
10178 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10179 parse beyond the note end.
10180
10181 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10182
10183 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10184 kernel does not support OFD locks.
10185 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10186
10187 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10188
10189 * sysdeps/mach/hurd/Versions (libc): Make __access and
10190 __access_noerrno external so they can override the ld symbols.
10191 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10192 __writev, __open64, __access_noerrno extern so they can be overrided.
10193 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10194 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10195
10196 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10197
10198 * po/libc.pot: Regenerate.
10199
10200 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10201
10202 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10203
10204 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10205
10206 [BZ #23459]
10207 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10208 function.
10209 (init_cpu_features): Call get_extended_indices for both Intel
10210 and AMD CPUs.
10211 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10212 Remove "for AMD" comment.
10213
10214 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10215
10216 [BZ # 23456]
10217 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10218 COMMON_CPUID_INDEX_80000001.
10219
10220 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10221
10222 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10223 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10224
10225 2018-07-26 Florian Weimer <fweimer@redhat.com>
10226
10227 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10228 aliases for symbols not in the implementation namespace.
10229
10230 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10231
10232 [BZ #23393]
10233 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10234 lowercase in LATIN script.
10235 * localedata/Makefile (test-input): Add en_US.UTF-8.
10236 * localedata/en_US.UTF-8.in: New file.
10237 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10238 and restore old tests.
10239 * posix/tst-regexloc.c (do_test): Add back range expression test.
10240
10241 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10242
10243 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10244
10245 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10246
10247 * nptl/threads.h: Move to ...
10248 * sysdeps/nptl/threads.h: ... here.
10249 * sysdeps/hurd/stdc-predef.h: New file.
10250
10251 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10252
10253 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10254 tst-cet-setcontext-1 if CET is enabled.
10255 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10256 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10257
10258 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10259
10260 * include/threads.h: Move to ...
10261 * sysdeps/nptl/threads.h: ... here.
10262 * sysdeps/htl/threads.h: New file.
10263 * conform/Makefile (linknamespace-libs-ISO11): Use
10264 static-thread-library instead of linking libpthread.
10265 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10266
10267 2018-07-25 Florian Weimer <fweimer@redhat.com>
10268
10269 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10270 nanoseconds into seconds.
10271 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10272 (do_test): Likewise.
10273 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10274 (do_test): Likewise. Avoid nanosecond overflow and spurious
10275 timeouts due to system load.
10276 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10277 (child_wait): Increment it.
10278 (do_test): Wait as long as necessary until all expected threads
10279 have arrived.
10280
10281 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10282 H.J. Lu <hongjiu.lu@intel.com>
10283
10284 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10285 __ssp.
10286 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10287 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10288 (__push___start_context): New.
10289 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10290 <asm/prctl.h>.
10291 (__getcontext): Record the current shadow stack base. Save the
10292 caller's shadow stack pointer and base.
10293 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10294 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10295 (__push___start_context): New prototype.
10296 (__makecontext): Call __push___start_context to allocate a new
10297 shadow stack, push __start_context onto the new stack as well
10298 as the new shadow stack.
10299 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10300 <asm/prctl.h>.
10301 (__setcontext): Restore the target shadow stack.
10302 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10303 <asm/prctl.h>.
10304 (__swapcontext): Record the current shadow stack base. Save
10305 the caller's shadow stack pointer and base. Restore the target
10306 shadow stack.
10307 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10308 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10309 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10310
10311 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10312
10313 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10314 tst-setcontext8 and tst-setcontext9.
10315 * stdlib/tst-setcontext6.c: New file.
10316 * stdlib/tst-setcontext7.c: Likewise.
10317 * stdlib/tst-setcontext8.c: Likewise.
10318 * stdlib/tst-setcontext9.c: Likewise.
10319
10320 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10321
10322 * stdlib/Makefile ((tests): Add tst-setcontext5.
10323 * stdlib/tst-setcontext5.c: New file.
10324
10325 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10326
10327 * stdlib/Makefile (tests): Add tst-setcontext4.
10328 * stdlib/tst-setcontext4.c: New file.
10329
10330 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10331
10332 * stdlib/Makefile (tests): Add tst-swapcontext1.
10333 * stdlib/tst-swapcontext1.c: New test.
10334
10335 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10336
10337 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10338 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10339 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10340 and tst-cet-legacy-4c.
10341 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10342 and tst-cet-legacy-mod-4.
10343 (CFLAGS-tst-cet-legacy-2.c): New.
10344 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10345 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10346 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10347 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10348 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10349 ($(objpfx)tst-cet-legacy-1): Likewise.
10350 ($(objpfx)tst-cet-legacy-2): Likewise.
10351 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10352 ($(objpfx)tst-cet-legacy-2a): Likewise.
10353 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10354 ($(objpfx)tst-cet-legacy-4): Likewise.
10355 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10356 ($(objpfx)tst-cet-legacy-4a): Likewise.
10357 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10358 (tst-cet-legacy-4a-ENV): Likewise.
10359 ($(objpfx)tst-cet-legacy-4b): Likewise.
10360 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10361 (tst-cet-legacy-4b-ENV): Likewise.
10362 ($(objpfx)tst-cet-legacy-4c): Likewise.
10363 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10364 (tst-cet-legacy-4c-ENV): Likewise.
10365 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10366 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10367 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10368 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10369 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10370 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10371 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10372 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10373 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10374 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10375 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10376
10377 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10378
10379 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10380 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10381 with ssp_base.
10382 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10383 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10384 with ssp_base.
10385
10386 2018-07-25 Andreas Schwab <schwab@suse.de>
10387
10388 [BZ #23442]
10389 * locale/weightwc.h (findidx): Handle the case where usrc is a
10390 prefix of cp but one character too short.
10391
10392 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10393
10394 * NEWS: Add ISO C threads addition.
10395
10396 2018-07-24 Florian Weimer <fweimer@redhat.com>
10397
10398 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10399 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
10400 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
10401 4.13.
10402
10403 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10404
10405 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
10406 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
10407 <sys/prctl.h> and <asm/prctl.h>.
10408 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
10409 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
10410 and <asm/prctl.h>.
10411 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
10412 ARCH_CET_LEGACY_BITMAP.
10413 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
10414 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
10415 * sysdeps/x86/libc-start.c: Include <startup.h>.
10416
10417 2018-07-24 Florian Weimer <fweimer@redhat.com>
10418
10419 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
10420 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
10421
10422 2018-07-24 Rical Jasan <rj@2c3t.io>
10423 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10424 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10425
10426 [BZ #14092]
10427 * manual/debug.texi: Update adjacent chapter name.
10428 * manual/probes.texi: Likewise.
10429 * manual/threads.texi (ISO C Threads): New section.
10430 (POSIX Threads): Convert to a section.
10431
10432 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10433 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10434
10435 [BZ# 14092]
10436 * nptl/Makefile (tests): Add new test files.
10437 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
10438 * nptl/tst-cnd-basic.c: Likewise.
10439 * nptl/tst-cnd-broadcast.c: Likewise.
10440 * nptl/tst-cnd-timedwait.c: Likewise.
10441 * nptl/tst-mtx-basic.c: Likewise.
10442 * nptl/tst-mtx-recursive.c: Likewise.
10443 * nptl/tst-mtx-timedlock.c: Likewise.
10444 * nptl/tst-mtx-trylock.c: Likewise.
10445 * nptl/tst-thrd-basic.c: Likewise.
10446 * nptl/tst-thrd-detach.c: Likewise.
10447 * nptl/tst-thrd-sleep.c: Likewise.
10448 * nptl/tst-tss-basic.c: Likewise.
10449
10450 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10451
10452 [BZ #14092]
10453 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10454 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
10455 symbols.
10456 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10457 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10458 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10459 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10460 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10461 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10462 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10463 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10464 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10465 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10466 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10467 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10468 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10469 Likewise.
10470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10471 Likewise.
10472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10473 Likewise.
10474 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10475 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10476 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10477 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10478 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10479 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10480 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10481 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10482 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10483 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
10484 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
10485 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
10486 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
10487 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
10488 Likewise.
10489 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
10490 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
10491 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
10492 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
10493 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
10494 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
10495 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
10496 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
10497 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
10498 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
10499 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
10500 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
10501 ikewise.
10502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
10503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
10504 Likewise.
10505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
10506 Likewise.
10507 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
10508 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
10509 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
10510 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
10511 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
10512 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
10513 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
10514 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
10515
10516 [BZ #14092]
10517 * conform/data/threads.h-data (thread_local): New macro.
10518 (TSS_DTOR_ITERATIONS): Likewise.
10519 (tss_t): New type.
10520 (tss_dtor_t): Likewise.
10521 (tss_create): New function.
10522 (tss_get): Likewise.
10523 (tss_set): Likewise.
10524 (tss_delete): Likewise.
10525 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
10526 tss_get, and tss_set objects.
10527 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10528 * nptl/tss_create.c: New file.
10529 * nptl/tss_delete.c: Likewise.
10530 * nptl/tss_get.c: Likewise.
10531 * nptl/tss_set.c: Likewise.
10532 * sysdeps/nptl/threads.h (thread_local): New define.
10533 (TSS_DTOR_ITERATIONS): Likewise.
10534 (tss_t): New typedef.
10535 (tss_dtor_t): Likewise.
10536 (tss_create): New prototype.
10537 (tss_get): Likewise.
10538 (tss_set): Likewise.
10539 (tss_delete): Likewise.
10540
10541 [BZ #14092]
10542 * conform/data/threads.h-data (cnd_t): New type.
10543 (cnd_init): New function.
10544 (cnd_signal): Likewise.
10545 (cnd_broadcast): Likewise.
10546 (cnd_wait): Likewise.
10547 (cnd_timedwait): Likewise.
10548 (cnd_destroy): Likewise.
10549 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
10550 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
10551 object.
10552 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10553 * nptl/cnd_broadcast.c: New file.
10554 * nptl/cnd_destroy.c: Likewise.
10555 * nptl/cnd_init.c: Likewise.
10556 * nptl/cnd_signal.c: Likewise.
10557 * nptl/cnd_timedwait.c: Likewise.
10558 * nptl/cnd_wait.c: Likewise.
10559 * sysdeps/nptl/threads.h (cnd_t): New type.
10560 (cnd_init): New prototype.
10561 (cnd_signa): Likewise.
10562 (cnd_broadcast): Likewise.
10563 (cnd_wait): Likewise.
10564 (cnd_timedwait): Likewise.
10565 (cnd_destroy): Likewise.
10566
10567 [BZ #14092]
10568 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
10569 (once_flag): New type.
10570 (call_once): New function.
10571 * nptl/Makefile (libpthread-routines): Add call_once object.
10572 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
10573 * nptl/call_once.c: New file.
10574 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
10575 (once_flag): New type.
10576 (call_once): New prototype.
10577
10578 [BZ #14092]
10579 * conform/data/threads.h-data (mtx_plain): New constant.
10580 (mtx_recursive): Likewise.
10581 (mtx_timed): Likewise.
10582 (mtx_t): New type.
10583 (mtx_init): New function.
10584 (mtx_lock): Likewise.
10585 (mtx_timedlock): Likewise.
10586 (mtx_trylock): Likewise.
10587 (mtx_unlock): Likewise.
10588 (mtx_destroy): Likewise.
10589 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
10590 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
10591 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
10592 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
10593 * nptl/mtx_destroy.c: New file.
10594 * nptl/mtx_init.c: Likewise.
10595 * nptl/mtx_lock.c: Likewise.
10596 * nptl/mtx_timedlock.c: Likewise.
10597 * nptl/mtx_trylock.c: Likewise.
10598 * nptl/mtx_unlock.c: Likewise.
10599 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
10600 (mtx_recursive): Likewise.
10601 (mtx_timed): Likewise.
10602 (mtx_t): New type.
10603 (mtx_init): New prototype.
10604 (mtx_lock): Likewise.
10605 (mtx_timedlock): Likewise.
10606 (mtx_trylock): Likewise.
10607 (mtx_unlock): Likewise.
10608 (mtx_destroy): Likewise.
10609
10610 [BZ #14092]
10611 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
10612 (linknamespace-libs-ISO11): Add libpthread.a.
10613 * conform/data/threads.h-data: New file: add C11 thrd_* types and
10614 functions.
10615 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
10616 * nptl/Makefile (headers): Add threads.h.
10617 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
10618 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
10619 thrd_yield.
10620 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
10621 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
10622 thrd_join, thrd_sleep, and thrd_yield symbols.
10623 * nptl/descr.h (struct pthread): Add c11 field.
10624 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
10625 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
10626 routine with expected function prototype.
10627 (__pthread_create_2_1): Add C11 threads check based on attribute
10628 value.
10629 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
10630 * nptl/thrd_create.c: New file.
10631 * nptl/thrd_current.c: Likewise.
10632 * nptl/thrd_detach.c: Likewise.
10633 * nptl/thrd_equal.c: Likewise.
10634 * nptl/thrd_exit.c: Likewise.
10635 * nptl/thrd_join.c: Likewise.
10636 * nptl/thrd_priv.h: Likewise.
10637 * nptl/thrd_sleep.c: Likewise.
10638 * nptl/thrd_yield.c: Likewise.
10639 * include/threads.h: Likewise.
10640
10641 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10642
10643 * bits/indirect-return.h: New file.
10644 * misc/sys/cdefs.h (__glibc_has_attribute): New.
10645 * sysdeps/x86/bits/indirect-return.h: Likewise.
10646 * stdlib/Makefile (headers): Add bits/indirect-return.h.
10647 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
10648 (swapcontext): Add __INDIRECT_RETURN.
10649 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
10650 (prepare_test_buffer): Use it.
10651
10652 2018-07-24 Andreas Schwab <schwab@suse.de>
10653
10654 [BZ #23448]
10655 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
10656 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
10657
10658 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10659
10660 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
10661 Redefine if shadow stack is enabled.
10662 (SYSCALL_ERROR_LABEL): Likewise.
10663 (__vfork): Pop shadow stack and jump back to to caller directly
10664 when shadow stack is in use.
10665 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
10666 Redefine if shadow stack is enabled.
10667 (SYSCALL_ERROR_LABEL): Likewise.
10668 (__vfork): Pop shadow stack and jump back to to caller directly
10669 when shadow stack is in use.
10670
10671 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10672
10673 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
10674 enabled.
10675 (foo): Likewise.
10676 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
10677 (foo): Likewise.
10678
10679 2018-07-20 Joseph Myers <joseph@codesourcery.com>
10680
10681 * scripts/build-many-glibcs.py (Context.checkout): Default
10682 binutils version to 2.31 branch.
10683
10684 2018-07-20 Zong Li <zong@andestech.com>
10685
10686 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
10687 URL of gcc's tarball.
10688
10689 2018-07-20 Florian Weimer <fweimer@redhat.com>
10690
10691 [BZ #23396]
10692 * posix/regcomp.c (build_equiv_class): When comparing weights, do
10693 not compare an extra byte after the end of the weights.
10694
10695 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
10696
10697 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
10698 to 1.
10699 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
10700 hidden prototypes.
10701 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
10702 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
10703 * scripts/check-execstack.awk: Consider `xfail' variable containing a
10704 list of libraries whose stack executability is expected.
10705 * elf/Makefile ($(objpfx)check-execstack.out): Pass
10706 $(check-execstack-xfail) to check-execstack.awk through `xfail'
10707 variable.
10708 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
10709 libc.so libpthread.so.
10710
10711 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
10712
10713 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
10714 SOCK_NONBLOCK.
10715 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
10716 and SOCK_NONBLOCK.
10717 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
10718 implement __pipe2.
10719 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
10720
10721 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10722
10723 * benchtests/scripts/compare_bench.py (__main__): use the argparse
10724 library to improve command line parsing.
10725 (__main__): make schema file as optional parameter (--schema),
10726 defaulting to benchtests/scripts/benchout.schema.json.
10727 (main): move out of the parsing stuff to __main_  and leave it
10728 only as caller of main comparison functions.
10729
10730 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
10731
10732 * NEWS: Add a note for Intel CET status.
10733 * manual/install.texi: Likewise.
10734 * INSTALL: Regenerated.
10735
10736 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
10737
10738 [BZ #23140]
10739 * localedata/locales/oc_FR (mon): Rename to...
10740 (alt_mon): This, then update October (typo fix).
10741 (mon): New content (genitive case, month names preceded by
10742 "de" or "d’").
10743
10744 [BZ #23422]
10745 * localedata/locales/oc_FR (abday): Update all items.
10746 (day): Update Wednesday and Saturday (typo fixes).
10747 (abmon): Update all items, except May.
10748 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
10749 (LC_IDENTIFICATION): Bump the revision number and date.
10750 Keep the "category" entries in alphabetic order.
10751 (LC_ADDRESS): Remove no longer needed comment.
10752 (LC_COLLATE): Use “copy "ca_ES"”.
10753 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
10754 "name_mrs".
10755
10756 2018-07-18 Joseph Myers <joseph@codesourcery.com>
10757
10758 * grp/tst_fgetgrent.c: Include <unistd.h>.
10759 (main): Use mkstemp instead of tmpnam.
10760 * io/test-utime.c (main): Likewise.
10761 * posix/annexc.c (macrofile): Change to modifiable array.
10762 (main): Remove macrofile here.
10763 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
10764 macrofile here.
10765 (check_header): Do not remove macrofile here.
10766 * posix/bug-getopt1.c: Include <stdlib.h>.
10767 (do_test): Use mkstemp instead of tmpnam.
10768 * posix/bug-getopt2.c: Include <stdlib.h>.
10769 (do_test): Use mkstemp instead of tmpnam.
10770 * posix/bug-getopt3.c: Include <stdlib.h>.
10771 (do_test): Use mkstemp instead of tmpnam.
10772 * posix/bug-getopt4.c: Include <stdlib.h>.
10773 (do_test): Use mkstemp instead of tmpnam.
10774 * posix/bug-getopt5.c: Include <stdlib.h>.
10775 (do_test): Use mkstemp instead of tmpnam.
10776 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
10777 (main): Use mkstemp instead of tmpnam.
10778 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
10779 (main): Use mkstemp instead of tmpnam.
10780 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
10781 (main): use mkstemp instead of tmpnam.
10782 * stdlib/isomac.c (macrofile): Change to modifiable array.
10783 (main): Remove macrofile here.
10784 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
10785 macrofile here.
10786 (check_header): Do not remove macrofile here.
10787
10788 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10789
10790 * manual/tunables.texi: Document glibc.tune.x86_ibt and
10791 glibc.tune.x86_shstk.
10792
10793 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10794
10795 * NEWS: Mention --enable-cet.
10796 * manual/install.texi: Document --enable-cet.
10797 * INSTALL: Regenerated.
10798
10799 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10800
10801 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
10802 Add _CET_NOTRACK before indirect jump to jump table.
10803
10804 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10805
10806 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
10807 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10808 to jump table.
10809
10810 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10811
10812 * sysdeps/i386/i686/multiarch/strcat-sse2.S
10813 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10814 to jump table.
10815
10816 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10817
10818 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
10819 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10820 to jump table.
10821
10822 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10823
10824 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
10825 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10826 to jump table.
10827
10828 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10829
10830 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
10831 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10832 to jump table.
10833 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
10834
10835 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10836
10837 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
10838 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10839 to jump table.
10840
10841 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10842
10843 * sysdeps/i386/i686/multiarch/memset-sse2.S
10844 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10845 to jump table.
10846
10847 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10848
10849 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
10850 indirect jump to jump table.
10851
10852 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10853
10854 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
10855 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10856 to jump table.
10857 (MEMCPY): Likewise.
10858
10859 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10860
10861 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
10862 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10863 to jump table.
10864 (MEMCPY): Likewise.
10865
10866 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10867
10868 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
10869 _CET_NOTRACK before indirect jump to jump table.
10870
10871 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10872
10873 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
10874 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10875 to jump table.
10876
10877 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10878
10879 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
10880 indirect jump to jump table.
10881
10882 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
10883
10884 [BZ #22241]
10885 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
10886 (LOCALES): Likewise.
10887 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
10888 * localedata/locales/sah_RU: New file.
10889 * localedata/sah_RU.UTF-8.in: New file.
10890
10891 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10892
10893 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
10894 "sysdep.h".
10895 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
10896 _CET_ENDBR to indirect jump targets and adjust jump destination
10897 for _CET_ENDBR.
10898 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
10899 "sysdep.h".
10900 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
10901 _CET_ENDBR to indirect jump targets and adjust jump destination
10902 for _CET_ENDBR.
10903 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
10904 "sysdep.h".
10905 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
10906 _CET_ENDBR to indirect jump targets and adjust jump destination
10907 for _CET_ENDBR.
10908
10909 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10910
10911 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
10912 _CET_ENDBR.
10913
10914 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10915
10916 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
10917 _CET_ENDBR.
10918 (_dl_tlsdesc_undefweak): Likewise.
10919 (_dl_tlsdesc_dynamic): Likewise.
10920 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
10921 (_dl_tlsdesc_resolve_rel): Likewise.
10922 (_dl_tlsdesc_resolve_rela): Likewise.
10923 (_dl_tlsdesc_resolve_hold): Likewise.
10924 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
10925 (_dl_tlsdesc_undefweak): Likewise.
10926 (_dl_tlsdesc_dynamic): Likewise.
10927 (_dl_tlsdesc_resolve_rela): Likewise.
10928 (_dl_tlsdesc_resolve_hold): Likewise.
10929
10930 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10931
10932 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
10933 (_fini): Likewise.
10934 * sysdeps/x86_64/crti.S (_init): Likewise.
10935 (_fini): Likewise.
10936
10937 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
10938
10939 [BZ #23140]
10940 * localedata/locales/os_RU (mon): Rename to...
10941 (alt_mon): This.
10942 (mon): Import from CLDR (genitive case).
10943
10944 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10945
10946 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
10947 cet-tunables.h> when CET is enabled.
10948
10949 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
10950
10951 [BZ #21598]
10952 * configure.ac: Add --enable-cet.
10953 * configure: Regenerated.
10954 * elf/Makefille (all-built-dso): Add a comment.
10955 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
10956 Include <dl-prop.h>.
10957 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
10958 segment.
10959 * elf/dl-open.c: Include <dl-prop.h>.
10960 (dl_open_worker): Call _dl_open_check.
10961 * elf/rtld.c: Include <dl-prop.h>.
10962 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
10963 _rtld_main_check.
10964 * sysdeps/generic/dl-prop.h: New file.
10965 * sysdeps/i386/dl-cet.c: Likewise.
10966 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
10967 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
10968 * sysdeps/x86/cet-tunables.h: Likewise.
10969 * sysdeps/x86/check-cet.awk: Likewise.
10970 * sysdeps/x86/configure: Likewise.
10971 * sysdeps/x86/configure.ac: Likewise.
10972 * sysdeps/x86/dl-cet.c: Likewise.
10973 * sysdeps/x86/dl-procruntime.c: Likewise.
10974 * sysdeps/x86/dl-prop.h: Likewise.
10975 * sysdeps/x86/libc-start.h: Likewise.
10976 * sysdeps/x86/link_map.h: Likewise.
10977 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
10978 _CET_ENDBR.
10979 (_dl_runtime_profile): Likewise.
10980 (_dl_runtime_resolve_shstk): New.
10981 (_dl_runtime_profile_shstk): Likewise.
10982 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
10983 if CET is enabled.
10984 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
10985 (CFLAGS-.os): Likewise.
10986 (CFLAGS-.op): Likewise.
10987 (CFLAGS-.oS): Likewise.
10988 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
10989 is enabled.
10990 (tests-special): Add $(objpfx)check-cet.out.
10991 (cet-built-dso): New.
10992 (+$(cet-built-dso:=.note)): Likewise.
10993 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
10994 ($(objpfx)check-cet.out): New.
10995 (generated): Add check-cet.out.
10996 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
10997 <cet-tunables.h>.
10998 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
10999 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11000 (init_cpu_features): Call get_cet_status to check CET status
11001 and update dl_x86_feature_1 with CET status. Call
11002 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11003 (set_x86_shstk). Disable and lock CET in libc.a.
11004 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11005 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11006 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11007 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11008 (_CET_ENDBR): Define if not defined.
11009 (ENTRY): Add _CET_ENDBR.
11010 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11011 x86_shstk.
11012 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11013 _CET_ENDBR.
11014 (_dl_runtime_profile): Likewise.
11015
11016 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11017
11018 [BZ #21895]
11019 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11020 restore r2 on longjmp.
11021 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11022 test list.
11023 Added rules to build test tst-setjmp-bug21895-static.
11024 Added module setjmp-bug21895 and rules to build a shared object from it.
11025 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11026 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11027
11028 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11029
11030 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11031 * benchtests/bench-strstr.c: Likewise.
11032 * string/memmem.c (FASTSEARCH): Define.
11033 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11034 Add support for FASTSEARCH.
11035 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11036 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11037 (FASTSEARCH): Define.
11038 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11039 * string/test-strstr.c: Likewise.
11040
11041 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11042
11043 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11044 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11045
11046 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11047 H.J. Lu <hongjiu.lu@intel.com>
11048
11049 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11050 (__longjmp): Restore shadow stack pointer if shadow stack is
11051 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11052 isn't defined for __longjmp_cancel.
11053 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11054 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11055 and SHADOW_STACK_POINTER_OFFSET is defined.
11056 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11057 (setjmp): Save shadow stack pointer if shadow stack is enabled
11058 and SHADOW_STACK_POINTER_OFFSET is defined.
11059 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11060 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11061 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11062 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11063 <jmp_buf-ssp.h>.
11064 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11065 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11066 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11067 Remove jmp_buf-ssp.sym.
11068 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11069 <jmp_buf-ssp.h>.
11070 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11071 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11072 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11073 jmp_buf-ssp.sym.
11074 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11075 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11076 (__longjmp): Restore shadow stack pointer if shadow stack is
11077 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11078 isn't defined for __longjmp_cancel.
11079 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11080 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11081 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11082
11083 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11084
11085 [BZ #22563]
11086 * nptl/pthread_create.c: Include <tls-setup.h>.
11087 (__pthread_create_2_1): Call tls_setup_tcbhead.
11088 * sysdeps/generic/tls-setup.h: New file.
11089 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11090 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11091 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11092 Likewise.
11093 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11094 to feature_1.
11095 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11096 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11097 (X86_FEATURE_1_SHSTK): Likewise.
11098 (CET_ENABLED): Likewise.
11099 (IBT_ENABLED): Likewise.
11100 (SHSTK_ENABLED): Likewise.
11101
11102 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11103
11104 [BZ #23208]
11105 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11106 (LOCALES): Likewise.
11107 * localedata/dsb_DE.UTF-8.in: New file.
11108 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11109
11110 2018-07-12 Florian Weimer <fweimer@redhat.com>
11111
11112 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11113 __mprotect, not mprotect.
11114
11115 2018-07-11 Florian Weimer <fweimer@redhat.com>
11116
11117 * io/Makefile (headers): Add bits/statx.h.
11118
11119 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11120
11121 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11122 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11123 and headers.
11124 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11125 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11126 for utf8_gen.py
11127
11128 2018-07-10 Florian Weimer <fweimer@redhat.com>
11129
11130 * io/Makefile (routines): Add statx.
11131 (tests-internal): Add tst-statx.
11132 * io/Versions (GLIBC_2.28): Export statx.
11133 * io/bits/statx.h: New file.
11134 * io/sys/stat.h [__USE_GNU]: Include it.
11135 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11136 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11137 Define.
11138 * io/statx.c: New file.
11139 * io/statx_generic.: Likewise.
11140 * io/tst-statx.: Likewise.
11141 * include/bits/statx.h: Likewise.
11142 * sysdeps/unix/sysv/linux/kernel-features.h
11143 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11144 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11145 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11146 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11147 Undefine.
11148 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11149 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11150 * sysdeps/unix/sysv/linux/statx.c: New file.
11151 * manual/filesys.texi: Note that statx is undocumented.
11152 * sysdeps/**/libc*.abilist: Update.
11153
11154 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11155
11156 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11157 a kernel issue which lead to test failure in some cases.
11158
11159 2018-07-10 Florian Weimer <fweimer@redhat.com>
11160
11161 [BZ #23036]
11162 * posix/regexec.c (check_node_accept_bytes): When comparing
11163 weights, do not compare an extra byte after the end of the
11164 weights.
11165
11166 2018-07-10 Florian Weimer <fweimer@redhat.com>
11167
11168 * libio/readline.c: Fix copyright year.
11169 * libio/tst-readline.c Likewise.
11170 * nss/tst-nss-files-hosts-getent.c: Likewise.
11171
11172 2018-07-06 Florian Weimer <fweimer@redhat.com>
11173
11174 [BZ #18991]
11175 * nss/nss_files/files-XXX.c (internal_getent): Use
11176 __libc_readline_unlocked. Seek back to the start of the line if
11177 parsing failes with ERANGE.
11178 (get_contents_ret, get_contents): Remove.
11179 * nss/tst-nss-files-hosts-getent.c: New file.
11180 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11181 (tst-nss-files-hosts-getent): Link with -ldl.
11182
11183 2018-07-06 Florian Weimer <fweimer@redhat.com>
11184
11185 * include/stdio.h (__libc_readline_unlocked): Declare.
11186 (__ftello64, __fseeko64): Declare aliases.
11187 * libio/readline.c: New file.
11188 * libio/tst-readline.c: Likewise.
11189 (routines): Add readline.
11190 (tests-internal): Add tst-readlime.
11191 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11192 __libc_readline_unlocked.
11193 * libio/fseeko.c (__fseeko): Rename from fseeko.
11194 (fseeko): Add alias.
11195 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11196 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11197 (fseeko64): Add alias.
11198 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11199 * libio/ftello64.c (__ftello64): Rename from ftello64.
11200 (ftello64): Add alias.
11201
11202 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11203
11204 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11205 HWCAP_ATOMICS.
11206
11207 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11208
11209 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11210 Use dl_hwcap without masking.
11211 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11212 Remove HWCAP_CPUID.
11213
11214 2018-07-06 Florian Weimer <fweimer@redhat.com>
11215
11216 * conform/conformtest.pl (checknamespace): Escape literal braces
11217 in regular expressions.
11218
11219 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11220
11221 * sysdeps/x86/cpu-features.c (get_common_indeces):
11222 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11223 * sysdeps/x86/cpu-features.c (init_cpu_features):
11224 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11225
11226 2018-07-05 Florian Weimer <fweimer@redhat.com>
11227
11228 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11229 protector.
11230 (CFLAGS-elf-init.oS): Likewise.
11231
11232 2018-07-05 Florian Weimer <fweimer@redhat.com>
11233 Carlos O'Donell <carlos@redhat.com>
11234
11235 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11236 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11237 with stack protector enabled because there is no risk of infinite
11238 recursion.
11239
11240 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11241
11242 [BZ #19818]
11243 [BZ #23307]
11244 * libc-abis (ABSOLUTE): New ABI.
11245 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11246 * NEWS: Mention the new ABI.
11247
11248 2018-07-05 Florian Weimer <fweimer@redhat.com>
11249
11250 [BZ # 17662]
11251 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11252 (RENAME_WHITEOUT): Define.
11253 [__USE_GNU] (renameat2): Declare.
11254 * stdio-common/Makefile (routines): Add renameat2.
11255 (tests): Add tst-renameat2.
11256 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11257 * stdio-common/renameat2.c: New file.
11258 * stdio-common/tst-renameat2.c: Likewise.
11259 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11260 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11261 undocumented.
11262 * sysdeps/unix/sysv/linux/kernel-features.h
11263 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11264 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11265 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11266 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11267 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11268 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11269 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11270 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11271 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11272 * include/stdio.h (__renameat): Add alias for renameat.
11273 * stdio-common/renameat.c (__renameat): Rename from renameat.
11274 Add hidden definition and alias.
11275 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11276 * sysdeps/mach/hurd/renameat.c: Likewise.
11277 * sysdeps/**/libc*.abilist: Add renameat2.
11278
11279 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11280
11281 * posix/bug-regex33.c: Fix build after regex sync.
11282
11283 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11284
11285 [BZ #23164]
11286 * localedata/tst-langinfo-setlocale.c: New file.
11287 * localedata/tst-langinfo-setlocale-static.c: New file.
11288 * localedata/tst-langinfo-newlocale.c: New file.
11289 * localedata/tst-langinfo-newlocale-static.c: New file.
11290 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11291 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11292 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11293 (tests-static): Remove tst-langinfo-static. Add
11294 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11295 (tests-special): Remove $(objpfx)tst-langinfo.out,
11296 $(objpfx)tst-langinfo-static.out. Add
11297 $(objpfx)tst-langinfo-setlocale.out,
11298 $(objpfx)tst-langinfo-newlocale.out,
11299 $(objpfx)tst-langinfo-setlocale-static.out,
11300 $(objpfx)tst-langinfo-newlocale-static.out.
11301 ($(objpfx)tst-langinfo.out): Remove.
11302 ($(objpfx)tst-langinfo-static.out): Remove.
11303 ($(objpfx)tst-langinfo-newlocale.out): New target.
11304 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11305 (test-xfail-tst-langinfo-newlocale-static): Add.
11306 ($(objpfx)tst-langinfo-setlocale.out): New target.
11307 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11308 * localedata/tst-langinfo.c: Call test_locale.
11309 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11310 data.
11311
11312 2018-07-04 Florian Weimer <fweimer@redhat.com>
11313
11314 testrun.sh: Implement --tool=strace, --tool=valgrind
11315 * Makefile (testrun-script): Define variable.
11316 (testrun.sh): Use variable.
11317 * manual/install.texi (Tools for Compilation): make 4.0 or later
11318 is required.
11319 * configure.ac: Check for make 4.0 or later.
11320 * INSTALL: Regenerate.
11321 * configure: Likewise.
11322
11323 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11324
11325 [BZ #23233]
11326 [BZ #21163]
11327 [BZ #18986]
11328 [BZ #13762]
11329 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11330 * posix/PCRE.tests: Remove invalid test.
11331 * posix/bug-regex28.c: Fix expected values for used syntax.
11332 * posix/bug-regex37.c: New file.
11333 * posix/bug-regex38.c: Likewise.
11334 * posix/regcomp.c: Sync with gnulib.
11335 * posix/regex.c: Likewise.
11336 * posix/regex.h: Likewise.
11337 * posix/regex_internal.c: Likewise.
11338 * posix/regex_internal.h: Likewise.
11339 * posix/regexec.c: Likewise.
11340
11341 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11342
11343 [BZ #23308]
11344 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11345 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11346 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11347 * localedata/unicode-gen/PropList.txt: likewise.
11348 * localedata/unicode-gen/UnicodeData.txt: likewise.
11349 * localedata/charmaps/UTF-8: Regenerate.
11350 * localedata/locales/i18n_ctype: likewise.
11351 * localedata/locales/tr_TR: likewise.
11352 * localedata/locales/translit_circle: likewise.
11353 * localedata/locales/translit_cjk_compat: likewise.
11354 * localedata/locales/translit_combining: likewise.
11355 * localedata/locales/translit_compat: likewise.
11356 * localedata/locales/translit_font: likewise.
11357 * localedata/locales/translit_fraction: likewise.
11358
11359 2018-07-03 Florian Weimer <fweimer@redhat.com>
11360
11361 [BZ #23363]
11362 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11363 * stdio-common/tst-printf.sh: Adjust expected output.
11364 * LICENSES: Update.
11365
11366 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11367
11368 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11369 symbol.
11370
11371 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11372
11373 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11374 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11375 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11376 * stdio-common/tst-printfsz-islongdouble.c: New file.
11377 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11378 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11379 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11380 [subdir == stdio-common] (tests-internal): Add
11381 test-printf-size-ieee128, and test-printf-size-ibm128.
11382 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11383 (CFLAGS-test-printf-size-ibm128.c): New variables.
11384 [subdir == stdio-common] (tests-special): Add
11385 $(objpfx)test-printf-size-ieee128.out and
11386 $(objpfx)test-printf-size-ibm128.out.
11387 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11388 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11389 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11390 __printf_sizeieee128.
11391 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11392 New file.
11393 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11394 Likewise.
11395 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11396 Likewise.
11397
11398 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
11399
11400 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
11401 (exp2f_inline): Likewise.
11402 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
11403 (__math_uflowf): Likewise.
11404 (__math_may_uflowf): Likewise.
11405 (__math_divzerof): Likewise.
11406 (__math_invalidf): Likewise.
11407 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
11408 (__math_oflowf): Likewise.
11409 (__math_uflowf): Likewise.
11410 (__math_may_uflowf): Likewise.
11411 (__math_divzerof): Likewise.
11412 (__math_invalidf): Likewise.
11413
11414 2018-06-29 DJ Delorie <dj@redhat.com>
11415 Carlos O'Donell <carlos@redhat.com>
11416
11417 [BZ #23329]
11418 * include/libc-symbols.h: Comment the freeres framework.
11419 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
11420 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
11421 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
11422 * dlfcn/dlerror.c: Include libc-symbols.h
11423 (__dlerror_main_freeres): New function.
11424 * dlfcn/dlfreeres.c: New file.
11425 * dlfcn/sdlfreeres.c: New file.
11426 * include/dlfcn.h: Declare __dlerror_main_freeres.
11427 * malloc/set-freeres.c: Declare __libdl_freeres, and
11428 __libpthread_freeres.
11429 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
11430 the releavant libraries are loaded.
11431 * malloc/thread-freeres.c: Add comments.
11432 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
11433 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
11434 * nptl/allocatestack.c (__nptl_free_stacks): New function.
11435 (__free_stacks): Rename to...
11436 (free_stacks): ...this. Mark static.
11437 (queue_stack): Call free_stacks.
11438 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
11439 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
11440 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
11441 ptr_freeres element from struct.
11442 (pthread_functions): Remove .ptr_freeres from struct initializer.
11443 [SHARED] (nptl_freeres): Remove.
11444 * nptl/nptlfreeres.c: New file.
11445 * nptl/pthreadP.h
11446 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
11447 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
11448 attribute_hidden.
11449 (__free_stacks): Rename to...
11450 (__nptl_stacks_freeres): ...this.
11451 (__shm_directory_freeres): Declare.
11452 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
11453 (__nptl_unwind_freeres): ...this.
11454 * resolv/res-close.c: Add comment.
11455 * resolv/resolv_conf.c: Include libc-symbols.h.
11456 * string/strerror_l.c: Include libc-symbols.h.
11457 * sunrpc/rpc_thread.c: Include libc-symbols.h.
11458 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
11459 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
11460 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
11461
11462 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11463
11464 * stdlib/tst-strfmon_l.c: Add tests for long double.
11465
11466 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
11467
11468 [BZ #23208]
11469 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
11470 * localedata/locales/dsb_DE: New file.
11471
11472 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11473
11474 [BZ #23140]
11475 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
11476 genitive case).
11477 (alt_mon): New entry, import from CLDR (nominative case).
11478
11479 2018-06-29 Sylvain Lesage <severo@rednegra.net>
11480
11481 [BZ #22996]
11482 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
11483
11484 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
11485
11486 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11487 Use vector registers.
11488
11489 * sysdeps/aarch64/multiarch/memmove_falkor.S
11490 (__memcpy_falkor): Use vector registers.
11491
11492 2018-06-29 Martin Sebor <msebor@redhat.com>
11493
11494 * manual/stdio.texi (Customizing Printf): Mention interaction
11495 with GCC built-ins.
11496
11497 2018-06-29 Maciej W. Rozycki <macro@mips.com>
11498
11499 [BZ #23307]
11500 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
11501 `st_value' is 0 if `st_shndx' is SHN_ABS.
11502 * elf/tst-absolute-zero.c: New file.
11503 * elf/tst-absolute-zero-lib.c: New file.
11504 * elf/tst-absolute-zero-lib.lds: New file.
11505 * elf/Makefile (tests): Add `tst-absolute-zero'.
11506 (modules-names): Add `tst-absolute-zero-lib'.
11507 (LDLIBS-tst-absolute-zero-lib.so): New variable.
11508 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
11509 ($(objpfx)tst-absolute-zero: New dependency.
11510
11511 2018-06-29 Zack Weinberg <zackw@panix.com>
11512
11513 * configure.ac: New command-line option --disable-crypt.
11514 Force --disable-nss-crypt when --disable-crypt is given, with a
11515 warning if it was explicitly enabled.
11516 * configure: Regenerate.
11517 * config.make.in: New boolean substitution variable $(build-crypt).
11518 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
11519 when $(build-crypt).
11520 * manual/install.texi: Document --disable-crypt.
11521 * INSTALL: Regenerate.
11522
11523 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
11524 which is never set.
11525 * conform/Makefile: Only include libcrypt.a in
11526 linknamespace-libs-xsi and linknamespace-libs-XPG4
11527 when $(build-crypt).
11528 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
11529 USE_CRYPT to 1 when $(build-crypt).
11530 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
11531 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
11532 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
11533
11534 2018-06-29 Zack Weinberg <zackw@panix.com>
11535
11536 * crypt/crypt.h, posix/unistd.h: Update comments and
11537 prototypes for crypt and crypt_r.
11538
11539 * manual/crypt.texi (Cryptographic Functions): New initial
11540 exposition.
11541 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
11542 (Unpredictable Bytes): Improve initial exposition. Clarify error
11543 behavior of getentropy and getrandom.
11544 * manual/examples/genpass.c: Generate a salt using getentropy
11545 instead of the current time. Use hash $5$ (SHA-2-256).
11546 * manual/examples/testpass.c: Demonstrate validation against
11547 hashes generated with three different one-way functions.
11548
11549 * manual/intro.texi: crypt.texi does not need an overview
11550 anymore.
11551
11552 * manual/nss.texi, manual/memory.texi, manual/socket.texi
11553 * manual/terminal.texi: Consistently refer to "passphrases"
11554 * instead of "passwords", and to the "user database" instead
11555 * of the "password database".
11556 * manual/users.texi: Similarly. Add notes about how actual
11557 passphrase hashes are now stored in the shadow database.
11558 Remove 20-year-old junk todo note.
11559
11560 2018-06-29 Zack Weinberg <zackw@panix.com>
11561
11562 * manual/crypt.texi: Use a normal top-level @node declaration.
11563 Move most of the introductory text to the 'crypt' section.
11564 Move the example programs below the @deftypefun for 'crypt_r'.
11565 Move the 'getpass' section...
11566 * manual/terminal.texi: ...here.
11567
11568 2018-06-29 Zack Weinberg <zackw@panix.com>
11569 Florian Weimer <fweimer@redhat.com>
11570
11571 * posix/unistd.h: Do not declare encrypt.
11572 (_XOPEN_CRYPT): Remove macro definition.
11573 (crypt): Declare only for _USE_MISC.
11574 * stdlib/stdlib.h: Do not declare setkey.
11575 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
11576 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
11577
11578 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
11579 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
11580 into compat symbols. Don't define initial_perm if it's not
11581 going to be used.
11582 * crypt/cert.c: Link explicitly with the expected versions for
11583 setkey and encrypt. If they are not available at all, mark
11584 the test as unsupported.
11585
11586 * sunrpc/des_crypt.c: Unconditionally block linkage with
11587 cbc_crypt and ecb_crypt for new binaries.
11588 * sunrpc/des_soft.c: Unconditionally block linkage with
11589 des_setparity for new binaries.
11590
11591 * manual/crypt.texi: Remove the entire "DES Encryption"
11592 section. Also remove the paragraph talking about FIPS 140-2
11593 from the introduction.
11594 * manual/string.texi (strfry, memfrob): Revise. Recommend use
11595 of libgcrypt for "real" encryption, not DES.
11596 * manual/conf.texi (Constants for Sysconf): Mention that
11597 _XOPEN_CRYPT is no longer impelemented.
11598
11599 * conform/data/unistd.h-data: Remove crypt function declaration.
11600
11601 2018-06-29 Florian Weimer <fweimer@redhat.com>
11602
11603 [BZ #23351]
11604 * malloc/hooks.c: Update comments on restoring of dumped heaps.
11605 (disallow_malloc_check): Remove variable.
11606 (__malloc_check_init): Adjust.
11607 (malloc_set_state): Update comment.
11608 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
11609 declarations.
11610
11611 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11612
11613 [BZ #23140]
11614 * localedata/locales/ast_ES (mon): Rename to...
11615 (alt_mon): This.
11616 (mon): Import from CLDR (genitive case).
11617
11618 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
11619 Jakub Sitnicki <jkbs@redhat.com>
11620
11621 [BZ #21812]
11622 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
11623 on NLM_F_DUMP_INTR.
11624
11625 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
11626
11627 * manual/llio.texi: Remove spurious space.
11628
11629 2018-06-28 Florian Weimer <fweimer@redhat.com>
11630
11631 [BZ #23349]
11632 * time/bits/types/struct_timespec.h: Change header inclusion guard to
11633 _STRUCT_TIMESPEC.
11634
11635 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11636
11637 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
11638 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
11639 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
11640 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
11641 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
11642 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
11643 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
11644
11645 2018-06-27 Maciej W. Rozycki <macro@mips.com>
11646
11647 [BZ #23266]
11648 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
11649 Copy and null-terminate entries that are not terminated, in
11650 addition to empty ones.
11651
11652 2018-06-27 Florian Weimer <fweimer@redhat.com>
11653
11654 [BZ #18023]
11655 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
11656 (extend_alloca_account): Remove.
11657 * manual/stdio.texi (Variable Arguments Output): Update comment.
11658
11659 2018-06-27 Joseph Myers <joseph@codesourcery.com>
11660
11661 * nptl/sockperf.c: Remove file.
11662
11663 2018-06-27 Florian Weimer <fweimer@redhat.com>
11664
11665 [BZ #18023]
11666 * elf/dl-deps.c (_dl_map_object_deps): Use struct
11667 scratch_buffer instead of extend_alloca.
11668
11669 2018-06-27 Florian Weimer <fweimer@redhat.com>
11670
11671 [BZ #18023]
11672 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
11673 scratch_buffer instead of extend_alloca. Update comments.
11674
11675 2018-06-27 Florian Weimer <fweimer@redhat.com>
11676
11677 [BZ #18023]
11678 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
11679 instead of extend_alloca.
11680
11681 2018-06-26 Joseph Myers <joseph@codesourcery.com>
11682
11683 [BZ #13888]
11684 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
11685 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
11686 /tmp.
11687 * scripts/test-installation.pl: Put temporary files in build
11688 directory, not /tmp.
11689 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
11690 (CFLAGS-bug4.c): Likewise.
11691 (CFLAGS-bug5.c): Likewise.
11692 (CFLAGS-test-fseek.c): Likewise.
11693 (CFLAGS-test-popen.c): Likewise.
11694 (CFLAGS-test_rdwr.c): Likewise.
11695 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
11696 /tmp.
11697 * stdio-common/bug4.c (main): Likewise.
11698 * stdio-common/bug5.c (main): Likewise.
11699 * stdio-common/test-fseek.c (TESTFILE): Likewise.
11700 * stdio-common/test-popen.c (do_test): Likewise.
11701 * stdio-common/test_rdwr.c (main): Likewise.
11702
11703 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
11704
11705 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
11706 (sem_open): Set sem.newsem.pad to zero for valgrind.
11707
11708 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11709
11710 [BZ #20251]
11711 * NEWS: Mention fcntl64 addition.
11712 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
11713 * login/utmp_file.c: Likewise.
11714 * sysdeps/posix/fdopendir.c: Likewise.
11715 * sysdeps/posix/opendir.c: Likewise.
11716 * sysdeps/unix/pt-fcntl.c: Likewise.
11717 * include/fcntl.h (__libc_fcntl64, __fcntl64,
11718 __fcntl64_nocancel_adjusted): New prototype.
11719 (__fcntl_nocancel_adjusted): Remove prototype.
11720 * io/Makefile (routines): Add fcntl64.
11721 (CFLAGS-fcntl64.c): New rule.
11722 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
11723 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
11724 * io/fcntl.h (fcntl64): Add prototype and redirect if
11725 __USE_FILE_OFFSET64 is defined.
11726 * io/fcntl64.c: New file.
11727 * manual/llio.text: Add a note for which commands fcntl acts a
11728 cancellation point.
11729 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
11730 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
11731 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
11732 New symbols.
11733 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
11734 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
11735 non-LFS case.
11736 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
11737 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
11738 to __fcntl64_nocancel.
11739 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
11740 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
11741 to __fcntl64_nocancel.
11742 * sysdeps/generic/not-cancel.h: Likewise.
11743 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
11744 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
11745 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11746 (fcntl64): New symbol.
11747 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
11758 fcntl64): Likewise.
11759 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
11761 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11769 Likewise.
11770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11771 Likewise.
11772 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11775
11776 2018-06-26 Florian Weimer <fweimer@redhat.com>
11777
11778 Run thread shutdown functions in an explicit order.
11779 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
11780 definition.
11781 (__libc_thread_freeres): Call thread shutdown functions
11782 explicitly.
11783 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
11784 * include/string.h (__strerror_thread_freeres): Declare.
11785 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
11786 arena_thread_freeres. No longer static. Remove thread shutdown
11787 hook registration.
11788 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
11789 Declare.
11790 * resolv/res-close.c (__res_thread_freeres): Renamed from
11791 res_thread_freeres. No longer static. Remove thread shutdown
11792 hook registration.
11793 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
11794 * resolv/resolv_conf.c (freeres): Remove incorrect section
11795 attribute and use libc_freeres_fn.
11796 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
11797 strerror_thread_freeres. No longer static. Remove thread
11798 shutdown hook registration.
11799 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
11800 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
11801 shutdown hook registration.
11802 * Makerules (shlib.lds): Do not provide section boundary symbols
11803 for __libc_thread_subfreeres.
11804 * manual/memory.texi (Basic Allocation): Update comment.
11805
11806 2018-06-26 Florian Weimer <fweimer@redhat.com>
11807
11808 Remove always-defined _RPC_THREAD_SAFE_ macro.
11809 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
11810 Do not define _RPC_THREAD_SAFE_.
11811 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
11812 conditional.
11813 * sunrpc/clnt_perr.c: Likewise.
11814 * sunrpc/clnt_raw.c: Likewise.
11815 * sunrpc/clnt_simp.c: Likewise.
11816 * sunrpc/key_call.c: Likewise.
11817 * sunrpc/rpc_common.c: Likewise.
11818 * sunrpc/rpc_main.c: Likewise.
11819 * sunrpc/rpc_thread.c: Likewise.
11820 * sunrpc/svc.c: Likewise.
11821 * sunrpc/svc_raw.c: Likewise.
11822 * sunrpc/svc_simple.c: Likewise.
11823 * sumrpc/svcauth_des.c: Likewise.
11824
11825 2018-06-26 Florian Weimer <fweimer@redhat.com>
11826
11827 * libio/Makefile (tests-internal): Add tst-vtables,
11828 tst-vtables-interposed.
11829 * libio/tst-vtables.c: New file.
11830 * libio/tst-vtables-common.c: Likewise.
11831 * libio/tst-vtables-interposed.c: Likewise.
11832
11833 2018-06-26 Florian Weimer <fweimer@redhat.com>
11834
11835 * support/support_test_main.c (support_test_main): Only call
11836 setvbuf if not disables.
11837 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
11838 * support/test-driver.h (struct test_config): Add no_setvbuf member.
11839
11840 2018-06-26 Florian Weimer <fweimer@redhat.com>
11841
11842 [BZ #23313]
11843 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
11844
11845 2018-06-25 Florian Weimer <fweimer@redhat.com>
11846
11847 [BZ #18023]
11848 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11849 Use struct scratch_buffer instead of extend_alloca.
11850
11851 2018-06-25 Florian Weimer <fweimer@redhat.com>
11852
11853 [BZ #18023]
11854 * nss/getent.c (initgroups_keys): Use dynarray instead of
11855 extend_alloca.
11856
11857 2018-06-25 Florian Weimer <fweimer@redhat.com>
11858
11859 [BZ #18023]
11860 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
11861 Use struct scratch_buffer instead of extend_alloca.
11862
11863 2018-06-25 Florian Weimer <fweimer@redhat.com>
11864
11865 [BZ #18023]
11866 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
11867 back to malloc directly, without stack allocations.
11868
11869 2018-06-25 Florian Weimer <fweimer@redhat.com>
11870
11871 [BZ #18023]
11872 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
11873 of extend_alloca.
11874
11875 2018-06-25 Florian Weimer <fweimer@redhat.com>
11876
11877 [BZ #18023]
11878 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
11879 of extend_alloca.
11880 * nscd/hstcache.c (addhstbyX): Likewise.
11881 * nscd/pwdcache.c (addpwbyX): Likewise.
11882 * nscd/servicescache.c (addservbyX): Likewise.
11883
11884 2018-06-25 Florian Weimer <fweimer@redhat.com>
11885
11886 [BZ #18023]
11887 * nscd/connections.c (read_cmdline): New function.
11888 (restart): Use it. Update comment.
11889
11890 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
11891
11892 [BZ #23140]
11893 * localedata/locales/csb_PL (mon): Rename to...
11894 (alt_mon): This.
11895 (abmon): Rename to...
11896 (ab_alt_mon): This.
11897 (mon): Add with proper genitive forms, copy from Wikipedia.
11898 (abmon): Likewise.
11899
11900 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
11901
11902 [BZ #19485]
11903 * localedata/locales/csb_PL (mon): Fix typos:
11904 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
11905 (yesstr): Add, value is "jo".
11906 (nostr): Add, value is "nié".
11907
11908 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11909
11910 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
11911 all log1p and significand functions on m680x0.
11912 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
11913 of s_significand.c..
11914 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
11915 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
11916 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
11917 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
11918 s_log1p.c and include it..
11919
11920 2018-06-21 Vincent Chen <vincentc@andestech.com>
11921
11922 * elf/elf.h (R_NDS32_NONE): New define.
11923 (R_NDS32_32_RELA): Likewise.
11924 (R_NDS32_COPY): Likewise.
11925 (R_NDS32_GLOB_DAT): Likewise.
11926 (R_NDS32_JUMP_SLOT): Likewise.
11927 (R_NDS32_RELATIVE): Likewise.
11928 (R_NDS32_TLS_TPOFF): Likewise.
11929 (R_NDS32_TLS_DESC): Likewise.
11930
11931 2018-06-21 Mark Wielaard <mark@klomp.org>
11932
11933 * elf/elf.h (R_BPF_MAP_FD): Removed.
11934 (R_BPF_64_64, R_BPF_64_32): New.
11935
11936 2018-06-21 Florian Weimer <fweimer@redhat.com>
11937
11938 [BZ #23253]
11939 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
11940 Renamed from libc_feholdsetround_ctx.
11941 (default_libc_feresetround_ctx): Renamed from
11942 libc_feresetround_ctx.
11943 (default_libc_feholdsetround_noex_ctx): Renamed from
11944 libc_feholdsetround_noex_ctx.
11945 (default_libc_feresetround_noex_ctx): Renamed from
11946 libc_feresetround_noex_ctx.
11947 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
11948 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
11949 forwardning to the old implementations under the new names.
11950 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
11951 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
11952 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
11953 (libc_feresetround_ctx): Forward to default implements for i386
11954 and MATH_SET_BOTH_ROUNDING_MODES.
11955 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
11956 Add -DMATH_SET_BOTH_ROUNDING_MODES.
11957
11958 2018-06-20 Joseph Myers <joseph@codesourcery.com>
11959
11960 * string/tst-cmp.c: Include <libc-diag.h>.
11961 (strncmp_max): Disable -Wstringop-overflow= around call to
11962 strncmp.
11963 (strncasecmp_max): Disable -Wstringop-overflow= around call to
11964 strncasecmp.
11965
11966 * string/bug-strpbrk1.c: Include <libc-diag.h>.
11967 (main): Disable -Wunused-value around call to strpbrk.
11968 * string/bug-strspn1.c: Include <libc-diag.h>.
11969 (main): Disable -Wunused-value around call to strspn.
11970
11971 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11972 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11973
11974 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
11975 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
11976
11977 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11978
11979 * math/Makefile (libm-calls): Move s_significandF to...
11980 (gen-libm-calls): ... here.
11981 * math/s_significand_template.c: New file.
11982 * math/s_significand.c: Removed.
11983 * math/s_significandf.c: Removed.
11984 * math/s_significandl.c: Removed.
11985 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
11986 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
11987
11988 * math/e_exp2_template.c (declare_mgen_finite_alias,
11989 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
11990 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
11991 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
11992
11993 2018-06-20 Florian Weimer <fweimer@redhat.com>
11994
11995 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
11996
11997 2018-06-19 Joseph Myers <joseph@codesourcery.com>
11998
11999 [BZ #23280]
12000 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12001 floating-point number to strtod functions rather than possibly
12002 negating result of those functions.
12003 * stdio-common/tst-scanf-round.c: New file.
12004 * stdio-common/Makefile (tests): Add tst-scanf-round.
12005 ($(objpfx)tst-scanf-round): Depend on $(libm).
12006
12007 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12008
12009 * sysdeps/mach/hurd/localplt.data: Move to...
12010 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12011 R_386_GLOB_DAT like on Linux i386.
12012
12013 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12014
12015 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12016 (SHM_STAT_ANY): New macro.
12017 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12018 (SHM_STAT_ANY): Likewise.
12019 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12020 (SHM_STAT_ANY): Likewise.
12021 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12022 (SHM_STAT_ANY): Likewise.
12023 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12024 (SHM_STAT_ANY): Likewise.
12025 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12026 (SHM_STAT_ANY): Likewise.
12027 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12028 (SHM_STAT_ANY): Likewise.
12029 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12030 (SHM_STAT_ANY): Likewise.
12031 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12032 (SHM_STAT_ANY): Likewise.
12033 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12034 (SHM_STAT_ANY): Likewise.
12035 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12036 (SHM_STAT_ANY): Likewise.
12037 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12038 (SHM_STAT_ANY): Likewise.
12039
12040 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12041 (SEM_STAT_ANY): New macro.
12042 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12043 (SEM_STAT_ANY): Likewise.
12044 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12045 (SEM_STAT_ANY): Likewise.
12046 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12047 (SEM_STAT_ANY): Likewise.
12048 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12049 (SEM_STAT_ANY): Likewise.
12050 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12051 (SEM_STAT_ANY): Likewise.
12052 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12053 (SEM_STAT_ANY): Likewise.
12054 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12055 (SEM_STAT_ANY): Likewise.
12056 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12057 (SEM_STAT_ANY): Likewise.
12058 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12059 (SEM_STAT_ANY): Likewise.
12060
12061 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12062 (MSG_STAT_ANY): New macro.
12063 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12064 (MSG_STAT_ANY): Likewise.
12065 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12066 (MSG_STAT_ANY): Likewise.
12067 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12068 (MSG_STAT_ANY): Likewise.
12069 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12070 (MSG_STAT_ANY): Likewise.
12071 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12072 (MSG_STAT_ANY): Likewise.
12073 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12074 (MSG_STAT_ANY): Likewise.
12075 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12076 (MSG_STAT_ANY): Likewise.
12077 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12078 (MSG_STAT_ANY): Likewise.
12079 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12080 (MSG_STAT_ANY): Likewise.
12081
12082 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12083 (MAP_TYPE): Change value to 0x2b.
12084
12085 2018-06-18 Florian Weimer <fweimer@redhat.com>
12086
12087 [BZ #15722]
12088 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12089 socket with SOCK_CLOEXEC.
12090
12091 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12092
12093 [BZ #23303]
12094 * sysdeps/powerpc/powerpc64/le/Makefile
12095 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12096 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12097 (gnulib-tests): Also add $(f128-loader-link) for
12098 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12099
12100 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12101
12102 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12103 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12104 of sendfile.
12105 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12106 (sendfile64): New strong alias.
12107 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12108 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12109 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12110 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12111 attribute.
12112 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12113 ___pthread_get_cleanup_stack.
12114 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12115 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12116 * mach/shortcut.awk: Make syscall stubs include
12117 <mach-shortcuts-hidden.h> and add hidden definition.
12118 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12119 (__mach_msg): Add hidden prototype.
12120 * mach/msg.c: Include <mach.h>.
12121 (__mach_msg): Add hidden definition.
12122 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12123 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12124 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12125 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12126 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12127 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12128 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12129 prototype and definition.
12130 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12131 hidden target for _hurd_self_sigstate.
12132
12133 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12134
12135 [BZ #23007]
12136 * stdlib/tst-strtod-nan-sign-main.c: New file.
12137 * stdlib/tst-strtod-nan-sign.c: Likewise.
12138 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12139 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12140 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12141 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12142 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12143
12144 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12145
12146 [BZ #23007]
12147 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12148 appropriate sign.
12149
12150 2018-06-14 Florian Weimer <fweimer@redhat.com>
12151
12152 [BZ #23290]
12153 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12154 that the result stays within the ISO-8859-1 range.
12155 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12156 characters are defined in IBM273.
12157
12158 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12159
12160 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12161 __mach_task_self): Remove attribute_hidden.
12162
12163 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12164
12165 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12166 ignore -Wrestrict for one test.
12167
12168 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12169 Szabolcs Nagy <szabolcs.nagy@arm.com>
12170
12171 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12172
12173 2018-06-14 Florian Weimer <fweimer@redhat.com>
12174
12175 * scripts/update-abilist.sh: Accept empty list of files to patch.
12176
12177 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12178
12179 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12180 test-xfail-check-abi-libmachuser): Add.
12181 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12182 __libc_read and __libc_write to __read and __write.
12183 * sysdeps/hurd/include/hurd/port.h: New file.
12184 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12185 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12186 __thread_switch, __evc_wait): Move declarations to...
12187 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12188 attribute_hidden.
12189 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12190 use PLT to call _hurd_self_sigstate.
12191
12192 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12193
12194 [BZ #23279]
12195 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12196 MAX_EXP as overflowing.
12197 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12198 overflow flag.
12199 (round_str): Output also whether result overflows in each rounding
12200 mode.
12201 * stdlib/tst-strtod-round-data: Add more tests.
12202 * stdlib/tst-strtod-round-data.h: Regenerated.
12203 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12204 (TEST): Handle extra arguments for overflow flags.
12205 (struct test_overflow): New type.
12206 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12207 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12208 (test_in_one_mode): Take argument with overflow information.
12209 (do_test): Update calls to test_in_one_mode.
12210
12211 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12212
12213 * elf/dl-load (_dl_dst_substitute): Correct comment.
12214 (_dl_dst_count): Likewise.
12215
12216 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12217 lll_futex_timed_wait.
12218
12219 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12220
12221 [BZ #23277]
12222 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12223 attribute.
12224 * math/test-nan-const.c: New file.
12225 * math/Makefile (tests): Add test-nan-const.
12226 (CFLAGS-test-nan-const.c): New variable.
12227
12228 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12229
12230 * benchtests/scripts/compare_strings.py (process_results): Add
12231 funcs argument. Compare only functions which are selected.
12232 (main): Check if base function is among selected functions.
12233 Pass selected functions to process_results.
12234 (__main__): Add -f/--functions argument.
12235
12236 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12237 Hongbo Zhang <hongbo.zhang@linaro.org>
12238
12239 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12240 __memcpy_falkor for phecda core.
12241 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12242 __memmove_falkor for phecda core.
12243 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12244 __memset_falkor for phecda core.
12245 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12246 for phecda core.
12247 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12248 macro to identify phecda core.
12249
12250 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12251 Andreas Schwab <schwab@suse.de>
12252 Dmitry V. Levin <ldv@altlinux.org>
12253 Florian Weimer <fweimer@redhat.com>
12254
12255 [BZ #23102]
12256 [BZ #21942]
12257 [BZ #18018]
12258 [BZ #23259]
12259 CVE-2011-0536
12260 * elf/dl-dst.h: Remove DL_DST_COUNT.
12261 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12262 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12263 (is_dst): Comment. Support ELF gABI.
12264 (_dl_dst_count): Comment. Simplify and count DSTs.
12265 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12266 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12267 locals.
12268
12269 2018-06-12 Zack Weinberg <zackw@panix.com>
12270
12271 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12272 * sysdeps/unix/sysv/linux/dl-sysdep.c
12273 Include not-cancel.h. Use __close_nocancel instead of __close,
12274 __open64_nocancel instead of __open, __read_nocancel instead of
12275 __libc_read, and __write_nocancel instead of __libc_write.
12276
12277 * csu/check_fds.c (check_one_fd)
12278 * sysdeps/posix/fdopendir.c (__fdopendir)
12279 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12280 instead of __fcntl and/or __libc_fcntl.
12281
12282 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12283 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12284 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12285 Use __open64_nocancel instead of __open_nocancel.
12286
12287 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12288 hidden_proto declarations to the end and issue them if either
12289 IS_IN(libc) or IS_IN(rtld).
12290 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12291 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12292 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12293 read_nocancel, waitpid_nocancel, write_nocancel.
12294
12295 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12296 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12297 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12298
12299 * nptl/pt-fcntl.c: New file.
12300 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12301 (libpthread-routines): Add pt-fcntl.
12302 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12303 (__libc_fcntl): Remove attribute_hidden.
12304 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12305 __fcntl_nocancel_adjusted, not fcntl_common.
12306 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12307 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12308 to fcntl_nocancel.c.
12309 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12312 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12313
12314 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12315 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12316 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12317 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12318 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12319 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12320 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12321 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12322 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12323 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12324 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12325 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12326 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12327 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12328 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12329 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12330 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12331 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12332 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12333 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12334
12335 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12336 libpthread-routines.
12337 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12338 defines nothing.
12339
12340 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12341 __libc_read, and __write instead of __libc_write. Define
12342 __open64 in addition to __open.
12343
12344 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12345
12346 [BZ #23250]
12347 [BZ #10686]
12348 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12349 to _private_tm[3] and add __glibc_reserved2.
12350 Add _Static_assert of offset of __private_ss == 0x30.
12351 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12352 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12353
12354 2018-06-12 Florian Weimer <fweimer@redhat.com>
12355
12356 x86: Make strncmp usable from rtld.
12357 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12358 __strncmp_ia32 if in libc (and not in rtld).
12359 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12360 strncmp if not in libc (and not to __strncmp_sse2).
12361
12362 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12363
12364 [BZ #23140]
12365 * localedata/locales/gd_GB (mon): Rename to...
12366 (alt_mon): This.
12367 (mon): Import from CLDR (genitive case).
12368 * localedata/locales/hsb_DE (mon): Rename to...
12369 (alt_mon): This.
12370 (mon): Import from CLDR (genitive case).
12371 * localedata/locales/wa_BE (mon): Rename to...
12372 (alt_mon): This.
12373 (mon): Add, fill with the proper genitive forms, but CLDR data
12374 is incomplete; completed according to the comments in this file.
12375 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12376
12377 * localedata/locales/wa_BE (country_name): Reword
12378 "Beljike" -> "Beldjike".
12379
12380 2018-06-11 Joseph Myers <joseph@codesourcery.com>
12381
12382 [BZ #23272]
12383 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12384 cases of non-finite arguments.
12385 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12386
12387 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
12388
12389 [BZ #23174]
12390 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12391
12392 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12393
12394 [BZ #23264]
12395 * include/unistd.h (__execvpex): New prototype.
12396 * posix/Makefile (tests): Add tst-spawn4.
12397 (tests-internal): Add tst-spawn4-compat.
12398 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
12399 * posix/tst-spawn4-compat.c: New file.
12400 * posix/tst-spawn4.c: Likewise.
12401 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
12402 binaries as shell scripts.
12403 * sysdeps/posix/spawni.c (__spawni): Likewise.
12404
12405 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
12406
12407 [BZ #23145]
12408 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
12409 ($(all-built-dso:=.dynsym): New target.
12410 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
12411 ($(objpfx)check-initfini.out): New target.
12412 (generated): Add check-initfini.out.
12413 * scripts/check-initfini.awk: New file.
12414 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
12415 (_fini): Likewise.
12416 * sysdeps/alpha/crti.S (_init): Mark as hidden.
12417 (_fini): Likewise.
12418 * sysdeps/arm/crti.S (_init): Mark as hidden.
12419 (_fini): Likewise.
12420 * sysdeps/hppa/crti.S (_init): Mark as hidden.
12421 (_fini): Likewise.
12422 * sysdeps/i386/crti.S (_init): Mark as hidden.
12423 (_fini): Likewise.
12424 * sysdeps/ia64/crti.S (_init): Mark as hidden.
12425 (_fini): Likewise.
12426 * sysdeps/m68k/crti.S (_init): Mark as hidden.
12427 (_fini): Likewise.
12428 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
12429 (_fini): Likewise.
12430 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
12431 (_fini): Likewise.
12432 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
12433 (_fini): Likewise.
12434 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
12435 (_fini): Likewise.
12436 * sysdeps/nios2/crti.S (_init): Mark as hidden.
12437 (_fini): Likewise.
12438 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
12439 (_fini): Likewise.
12440 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
12441 (_fini): Likewise.
12442 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
12443 (_fini): Likewise.
12444 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
12445 (_fini): Likewise.
12446 * sysdeps/sh/crti.S (_init): Mark as hidden.
12447 (_fini): Likewise.
12448 * sysdeps/sparc/crti.S (_init): Mark as hidden.
12449 (_fini): Likewise.
12450 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
12451 (_fini): Likewise.
12452
12453 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12454
12455 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
12456 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
12457 and TF redirection to KFtype and KF only when the default
12458 long double type is not the IEEE 128-bit floating point type.
12459
12460 2018-06-05 Joseph Myers <joseph@codesourcery.com>
12461
12462 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
12463 macro.
12464 (HWCAP_USCAT): Likewise.
12465 (HWCAP_ILRCPC): Likewise.
12466 (HWCAP_FLAGM): Likewise.
12467 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12468 Increase to 28.
12469 (_dl_aarch64_cap_flags): Add new flag names.
12470
12471 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12472 (MAP_FIXED_NOREPLACE): New macro.
12473 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
12474 (MAP_FIXED_NOREPLACE): Likewise.
12475 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
12476 (MAP_FIXED_NOREPLACE): Likewise.
12477 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12478 (MAP_FIXED_NOREPLACE): Likewise.
12479 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12480 (MAP_FIXED_NOREPLACE): Likewise.
12481 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12482 (MAP_FIXED_NOREPLACE): Likewise.
12483 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12484 (MAP_FIXED_NOREPLACE): Likewise.
12485 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
12486 (MAP_FIXED_NOREPLACE): Likewise.
12487 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12488 (MAP_FIXED_NOREPLACE): Likewise.
12489 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
12490 (MAP_FIXED_NOREPLACE): Likewise.
12491 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12492 (MAP_FIXED_NOREPLACE): Likewise.
12493 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12494 (MAP_FIXED_NOREPLACE): Likewise.
12495 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
12496 (MAP_FIXED_NOREPLACE): Likewise.
12497 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
12498 (MAP_FIXED_NOREPLACE): Likewise.
12499 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
12500 (MAP_FIXED_NOREPLACE): Likewise.
12501
12502 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12503 version to 4.17.
12504
12505 2018-06-04 Joseph Myers <joseph@codesourcery.com>
12506
12507 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12508 version to 4.17
12509
12510 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12511
12512 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
12513 int.
12514 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
12515
12516 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12517
12518 * benchtests/scripts/compare_string.py: (process_results) Catch
12519 exception in non-existent base_func and catch exception in
12520 non-existent attribute.
12521 (parse_file) Catch exception if input file does not exist.
12522
12523 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12524
12525 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
12526 options to avoid diff calculation and omit header, respectively.
12527 (main): process --no-diff and --no-header
12528
12529 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12530 H.J. Lu <hongjiu.lu@intel.com>
12531
12532 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12533 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
12534 wcsncmp-sse2.
12535 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12536 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
12537 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
12538 and __wcsncmp_sse2.
12539 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
12540 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
12541 AVX unaligned load is fast and vzeroupper is preferred.
12542 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
12543 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
12544 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
12545 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
12546 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
12547 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
12548 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
12549 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
12550 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
12551 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
12552 is undefined.
12553
12554 2018-06-01 Florian Weimer <fweimer@redhat.com>
12555
12556 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
12557 configuring with --disable-multi-arch, building with
12558 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
12559 Haswell-era CPU.
12560
12561 2018-06-01 Florian Weimer <fweimer@redhat.com>
12562
12563 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
12564 results from building with “-march=x86-64 -mtune=generic
12565 -mfpmath=sse” and running on a Haswell-era CPU.
12566
12567 2018-06-01 Joseph Myers <joseph@codesourcery.com>
12568
12569 [BZ #18473]
12570 * soft-fp/sqrttf2.c: Remove file.
12571 * soft-fp/sqrtdf2.c: Move to ....
12572 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
12573 <shlib-compat.h>.
12574 (__sqrtdf2): Make conditional on
12575 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12576 symbol.
12577 * soft-fp/sqrtsf2.c: Move to ....
12578 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
12579 <shlib-compat.h>.
12580 (__sqrtsf2): Make conditional on
12581 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12582 symbol.
12583 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
12584 (gcc-double-routines): Remove sqrtdf2.
12585 (gcc-quad-routines): Remove sqrttf2.
12586 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12587 Do not filter out sqrtsf2 and sqrtdf2.
12588 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
12589 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
12590
12591 2018-06-01 Florian Weimer <fweimer@redhat.com>
12592
12593 * sysdeps/generic/libcidn.abilist: Remove file.
12594
12595 2018-06-01 Florian Weimer <fweimer@redhat.com>
12596
12597 [BZ #23236]
12598 * libio/strfile.h (struct _IO_str_fields): Rename members to
12599 discourage their use and add comment.
12600 (_IO_STR_DYNAMIC): Remove unused macro.
12601 * libio/strops.c (_IO_str_init_static_internal): Do not use
12602 callback pointers. Call malloc and free.
12603 (_IO_str_overflow): Do not use callback pointers. Call malloc
12604 and free.
12605 (enlarge_userbuf): Likewise.
12606 (_IO_str_finish): Call free.
12607 * libio/wstrops.c (_IO_wstr_init_static): Initialize
12608 _allocate_buffer_unused.
12609 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
12610 and free.
12611 (enlarge_userbuf): Likewise.
12612 (_IO_wstr_finish): Call free.
12613 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
12614 _allocate_buffer_unused, _free_buffer_unused.
12615 * libio/memstream.c (__open_memstream): Likewise.
12616 * libio/vasprintf.c (_IO_vasprintf): Likewise.
12617 * libio/wmemstream.c (open_wmemstream): Likewise.
12618
12619 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
12620
12621 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
12622 AMD Ryzen 7 1800X.
12623
12624 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12625
12626 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
12627 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
12628 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
12629 New file.
12630 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
12631 Likewise.
12632 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
12633
12634 2018-05-29 Florian Weimer <fweimer@redhat.com>
12635
12636 * support/Makefile (libsupport-routines): Add
12637 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
12638 xpthread_barrierattr_setpshared.
12639 * support/xpthread_barrierattr_destroy.c: New file.
12640 * support/xpthread_barrierattr_init.c: Likewise.
12641 * support/xpthread_barrierattr_setpshared.c: Likewise.
12642
12643 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
12644
12645 [BZ #23206]
12646 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
12647 _r_debug and update DT_DEBUG for debugger.
12648
12649 2018-05-29 Florian Weimer <fweimer@redhat.com>
12650
12651 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
12652 (tst-strtod5i.out): Likewise.
12653
12654 2018-05-25 Joseph Myers <joseph@codesourcery.com>
12655
12656 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
12657 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
12658 (sparc64-quad-routines): New variable. Moved from ....
12659 [$(subdir) = soft-fp] (sysdep_routines): Add
12660 $(sparc64-quad-routines). Moved from ....
12661 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
12662 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
12663 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
12664 moved from ....
12665 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
12666 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
12667 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
12668 * sysdeps/sparc/sparc64/qp_add.c: ... here.
12669 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
12670 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
12671 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
12672 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
12673 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
12674 * sysdeps/sparc/sparc64/qp_div.c: ... here.
12675 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
12676 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
12677 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
12678 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
12679 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
12680 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
12681 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
12682 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
12683 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
12684 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
12685 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
12686 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
12687 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
12688 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
12689 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
12690 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
12691 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
12692 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
12693 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
12694 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
12695 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
12696 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
12697 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
12698 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
12699 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
12700 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
12701 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
12702 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
12703 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
12704 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
12705 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
12706 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
12707 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
12708 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
12709 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
12710 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
12711 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
12712 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
12713 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
12714 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
12715 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
12716 * sysdeps/sparc/sparc64/qp_util.c: ... here.
12717 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
12718 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
12719 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
12720 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
12721 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
12722 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
12723
12724 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
12725 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
12726 (sparc32-quad-routines): New variable. Moved from ....
12727 [$(subdir) = soft-fp] (sysdep_routines): Add
12728 $(sparc32-quad-routines). Moved from ....
12729 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
12730 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
12731 moved from ....
12732 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
12733 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
12734 * sysdeps/sparc/sparc32/q_add.c: ... here.
12735 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
12736 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
12737 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
12738 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
12739 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
12740 * sysdeps/sparc/sparc32/q_div.c: ... here.
12741 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
12742 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
12743 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
12744 * sysdeps/sparc/sparc32/q_feq.c: ... here.
12745 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
12746 * sysdeps/sparc/sparc32/q_fge.c: ... here.
12747 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
12748 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
12749 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
12750 * sysdeps/sparc/sparc32/q_fle.c: ... here.
12751 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
12752 * sysdeps/sparc/sparc32/q_flt.c: ... here.
12753 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
12754 * sysdeps/sparc/sparc32/q_fne.c: ... here.
12755 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
12756 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
12757 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
12758 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
12759 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
12760 * sysdeps/sparc/sparc32/q_mul.c: ... here.
12761 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
12762 * sysdeps/sparc/sparc32/q_neg.c: ... here.
12763 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
12764 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
12765 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
12766 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
12767 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
12768 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
12769 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
12770 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
12771 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
12772 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
12773 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
12774 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
12775 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
12776 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
12777 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
12778 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
12779 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
12780 * sysdeps/sparc/sparc32/q_sub.c: ... here.
12781 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
12782 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
12783 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
12784 * sysdeps/sparc/sparc32/q_util.c: ... here.
12785 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
12786 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
12787 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
12788 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
12789
12790 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12791 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12792
12793 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
12794 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
12795 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
12796 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
12797
12798 2018-05-24 Joseph Myers <joseph@codesourcery.com>
12799
12800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
12801 powerpc/soft-fp.
12802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12803 Likewise.
12804 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
12805 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
12806
12807 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12808
12809 [BZ #23171]
12810 * math/math.h [C++] (iseqsig): Fix parameter type for the long
12811 double version.
12812
12813 2018-05-23 Joseph Myers <joseph@codesourcery.com>
12814
12815 * sysdeps/sh/Implies: Remove sh/soft-fp.
12816 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
12817 * sysdeps/sh/sfp-machine.h: ... here.
12818
12819 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
12820
12821 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12822 (__mempcpy_erms): Skip zero length.
12823 (__memmove_erms): Likewise.
12824 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12825 (__memset_erms): Likewise.
12826
12827 2018-05-23 Joseph Myers <joseph@codesourcery.com>
12828
12829 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
12830 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12831 Add functions moved from ....
12832 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
12833 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
12834 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
12835 from ....
12836 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
12837 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
12838 * sysdeps/alpha/e_sqrtl.c: ... here.
12839 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
12840 * sysdeps/alpha/local-soft-fp.h: ... here.
12841 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
12842 * sysdeps/alpha/ots_add.c: ... here.
12843 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
12844 * sysdeps/alpha/ots_cmp.c: ... here.
12845 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
12846 * sysdeps/alpha/ots_cmpe.c: ... here.
12847 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
12848 * sysdeps/alpha/ots_cvtqux.c: ... here.
12849 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
12850 * sysdeps/alpha/ots_cvtqx.c: ... here.
12851 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
12852 * sysdeps/alpha/ots_cvttx.c: ... here.
12853 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
12854 * sysdeps/alpha/ots_cvtxq.c: ... here.
12855 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
12856 * sysdeps/alpha/ots_cvtxt.c: ... here.
12857 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
12858 * sysdeps/alpha/ots_div.c: ... here.
12859 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
12860 * sysdeps/alpha/ots_mul.c: ... here.
12861 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
12862 * sysdeps/alpha/ots_nintxq.c: ... here.
12863 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
12864 * sysdeps/alpha/ots_sub.c: ... here.
12865 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
12866 * sysdeps/alpha/sfp-machine.h: ... here.
12867
12868 2018-05-23 Florian Weimer <fweimer@redhat.com>
12869
12870 [BZ #19728]
12871 [BZ #19729]
12872 [BZ #22247]
12873 CVE-2016-6261
12874 CVE-2016-6263
12875 CVE-2017-14062
12876 Switch to extern IDNA implementation (libidn2).
12877 * libidn: Remove subdirectory.
12878 * LICENSES: Do not mention licensing conditions for the removed
12879 libidn code.
12880 * config.h.in (HAVE_LIBIDN): Remove.
12881 * include/dlfcn.h (__libc_dlopen): Update comment.
12882 * include/idna.h: Remove file.
12883 * inet/Makefile (routines): Add idna.
12884 (tests-static, tests-internal): Add tst-idna_name_classify.
12885 (LOCALES): Generate locales for tests.
12886 (tst-idna_name_classify.out): Depend on generated locales.
12887 * inet/idna_name_classify.c: New file.
12888 * inet/tst-idna_name_classify.c: Likewise.
12889 * inet/net-internal.h (__idna_to_dns_encoding)
12890 (__idna_from_dns_encoding): Declare.
12891 * inet/net-internal.h (enum idna_name_classification): Define.
12892 (__idna_name_classify): Declare.
12893 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
12894 __idna_from_dns_encoding.
12895 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
12896 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
12897 name as a fallback in case of encoding errors.
12898 (getnameinfo): Use DEPRECATED_NI_IDN.
12899 * inet/idna.c: New file.
12900 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
12901 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
12902 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
12903 (modules-names): Add tst-no-libidn2.
12904 (extra-test-objs): Add tst-no-libidn2.os.
12905 (LDFLAGS-tst-no-libidn2.so): Set soname.
12906 (LOCALES): Set, and generate locales.
12907 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
12908 (tst-resolv-ai_idn-latin1): Likewise.
12909 (tst-resolv-ai_idn-nolibidn2): Likewise.
12910 (tst-resolv-ai_idn.out): Depend on locales.
12911 (tst-resolv-ai_idn-latin1.out): Depend on locales.
12912 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
12913 tst-no-libidn2.so.
12914 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
12915 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
12916 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
12917 * resolv/tst-resolv-ai_idn.c: New file.
12918 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
12919 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
12920 * resolv/tst-no-libidn2.c: Likewise.
12921 * support/support_format_addrinfo.c (format_ai_flags): Do not
12922 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
12923 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
12924 (gaih_inet): Call __idna_to_dns_encoding and
12925 __idna_from_dns_encoding, and use the original (punycode) name if
12926 __idna_from_dns_encoding fails due to an encoding error.
12927 (getaddrinfo): Use DEPRECATED_AI_IDN.
12928 * sysdeps/unix/inet/Subdirs (libidn): Remove.
12929 * sysdeps/unix/inet/configure: Remove file.
12930 * sysdeps/unix/inet/configure.ac: Likewise.
12931
12932 2018-05-23 Florian Weimer <fweimer@redhat.com>
12933
12934 Implement allocate_once.
12935 * include/allocate_once.h: New file.
12936 * misc/allocate_once.c: Likewise.
12937 * misc/tst-allocate_once.c: Likewise.
12938 * misc/Makefile (routines): Add allocate_once.
12939 (tests-internal): Add tst-allocate_once.
12940 (generated): Add tst-allocate_once.mtrace,
12941 tst-allocate_once-mem.out.
12942 (tests-special): Add tst-allocate_once-mem.out.
12943 (tst-allocate_once-ENV): Set MALLOC_TRACE.
12944 (tst-allocate_once-mem.out): Call mtrace.
12945 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
12946
12947 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
12948
12949 [BZ #23196]
12950 * string/test-memcpy.c (do_test1): New function.
12951 (test_main): Call it.
12952
12953 2018-05-23 Andreas Schwab <schwab@suse.de>
12954
12955 [BZ #23196]
12956 CVE-2018-11237
12957 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
12958 (L(preloop_large)): Save initial destination pointer in %r11 and
12959 use it instead of %rax after the loop.
12960 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
12961
12962 2018-05-22 Joseph Myers <joseph@codesourcery.com>
12963
12964 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
12965 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
12966 -I../soft-fp. Moved from ....
12967 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
12968 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
12969 * sysdeps/aarch64/e_sqrtl.c: ... here.
12970 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
12971 * sysdeps/aarch64/sfp-machine.h: ... here.
12972
12973 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
12974 -Wmaybe-uninitialized around access to fq[0].
12975 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12976 Likewise.
12977
12978 [BZ #18471]
12979 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
12980 aliases for non-libc case of versioned symbols.
12981 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
12982 (llseek): Define as compat symbol if
12983 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
12984 with link warning.
12985 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
12986 Make into a compat symbol, disabled for minimum symbol version
12987 GLIBC_2.28 and later.
12988 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
12989
12990 2018-05-22 Florian Weimer <fweimer@redhat.com>
12991
12992 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
12993 not add -mpreferred-stack-boundary=4.
12994 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
12995 (stack-align-test-flags): Likewise.
12996 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
12997 Likewise.
12998 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
12999 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13000 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13001 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13002 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13003 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13004 (CFLAGS-tst-align2.c): Likewise.
13005
13006 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13007
13008 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13009 (index_arch_Prefer_FSRM): Likewise.
13010 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13011 Also check Prefer_FSRM.
13012 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13013 Also return OPTIMIZE (erms) for Prefer_FSRM.
13014
13015 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13016
13017 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13018 (index_cpu_FSRM): Likewise.
13019 (reg_FSRM): Likewise.
13020
13021 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13022
13023 * math/gen-tgmath-tests.py: Import sys.
13024 (Tests.__init__): Initialize macros_seen.
13025 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13026 if requested to do so for this macro.
13027 (Tests.add_all_tests): Take argument for macro for which to
13028 generate tests.
13029 (Tests.check_macro_list): New function.
13030 (main): Handle check-list argument and argument specifying macro
13031 for which to generate tests.
13032 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13033 [PYTHON] (tgmath3-macro-tests): Likewise.
13034 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13035 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13036 not test-tgmath3.c.
13037 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13038 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13039 to CFLAGS.
13040 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13041 [PYTHON] ($(foreach
13042 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13043 rule.
13044 [PYTHON] (tests-special): Add
13045 $(objpfx)test-tgmath3-macro-list.out.
13046 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13047
13048 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13049 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13050 later.
13051
13052 [BZ #22639]
13053 * time/tzset.c (SECSPERDAY): Cast to time_t.
13054 * time/tst-y2039.c: New file.
13055 * time/Makefile (tests): Add tst-y2039.
13056
13057 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13058
13059 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13060 (PREFETCH_ONE_SET): Remove duplicate line.
13061
13062 2018-05-17 Florian Weimer <fweimer@redhat.com>
13063
13064 * sysdeps/generic/math-type-macros-double.h: Include
13065 <math-nan-payload-double.h> after <libm-alias-double.h>.
13066 * sysdeps/generic/math-type-macros-float.h: Include
13067 <math-nan-payload-float.h> after <libm-alias-float.h>.
13068 * sysdeps/generic/math-type-macros-float128.h: Include
13069 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13070 * sysdeps/generic/math-type-macros-ldouble.h: Include
13071 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13072
13073 2018-05-17 Andreas Schwab <schwab@suse.de>
13074
13075 * resolv/res_send.c (__res_context_send): Don't set errno when
13076 returing error after malloc failure.
13077
13078 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13079
13080 * nptl/allocatestack.c (allocate_stack): Remove the
13081 !__ASSUME_PRIVATE_FUTEX paths.
13082 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13083 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13084 Likewise.
13085 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13086 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13087 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13088 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13089 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13090 !__ASSUME_PRIVATE_FUTEX path.
13091 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13092 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13093 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13094 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13095 !__ASSUME_PRIVATE_FUTEX macros.
13096 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13097 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13098 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13099 * sysdeps/unix/sysv/linux/kernel-features.h
13100 (__ASSUME_PRIVATE_FUTEX): Removed.
13101
13102 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13103
13104 * math/Makefile (libm-narrow-fns): Add div.
13105 (libm-test-funcs-narrow): Likewise.
13106 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13107 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13108 * math/gen-auto-libm-tests.c (test_functions): Add div.
13109 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13110 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13111 (NARROW_DIV_TRIVIAL): Likewise.
13112 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13113 macro.
13114 (__ddivl): Likewise.
13115 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13116 ddiv.
13117 (CFLAGS-nldbl-ddiv.c): New variable.
13118 (CFLAGS-nldbl-fdiv.c): Likewise.
13119 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13120 __nldbl_ddivl.
13121 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13122 prototype.
13123 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13124 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13125 * math/auto-libm-test-in: Add tests of div.
13126 * math/auto-libm-test-out-narrow-div: New generated file.
13127 * math/libm-test-narrow-div.inc: New file.
13128 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13129 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13130 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13131 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13132 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13133 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13134 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13135 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13136 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13137 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13138 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13139 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13140 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13141 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13142 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13143 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13144 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13145 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13146 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13147 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13148 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13149 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13150 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13151 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13152 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13153 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13154 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13155 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13156 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13157 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13158 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13159 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13160 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13161 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13164 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13165 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13166 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13167 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13168 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13169 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13170 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13171 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13172
13173 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13174
13175 [BZ #23178]
13176 * nscd/nscd-client.h (sendfileall): Remove prototype.
13177 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13178 (handle_request): Use writeall instead of sendfileall.
13179 * nscd/aicache.c (addhstaiX): Likewise.
13180 * nscd/grpcache.c (cache_addgr): Likewise.
13181 * nscd/hstcache.c (cache_addhst): Likewise.
13182 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13183 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13184 * nscd/pwdcache.c (cache_addpw): Likewise.
13185 * nscd/servicescache.c (cache_addserv): Likewise.
13186 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13187 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13188 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13189 Remove define.
13190
13191 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13192
13193 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13194 Include <string/strncat.c>.
13195 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13196 alias.
13197 (__GI___strncat): New hidden alias.
13198
13199 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13200
13201 * sysdeps/mips/mips32/libm-test-ulps: Update.
13202 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13203
13204 2018-05-16 Florian Weimer <fweimer@redhat.com>
13205
13206 * support/Makefile (libsupport-routines): Add support_quote_blob,
13207 support_test_compare_blob.
13208 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13209 * support/check.h (TEST_COMPARE_BLOB): Define.
13210 (support_test_compare_blob): Declare.
13211 * support/support.h (support_quote_blob): Declare.
13212 * support/support_quote_blob.c: New file.
13213 * support/support_test_compare_blob.c: Likewise.
13214 * support/tst-support_quote_blob.c: Likewise.
13215 * support/tst-test_compare_blob.c: Likewise.
13216
13217 2018-05-16 Florian Weimer <fweimer@redhat.com>
13218
13219 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13220 of <strtod_nan_double.h>.
13221 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13222 instead of SET_MANTISSA.
13223 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13224 of include <strtod_nan_float.h>.
13225 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13226 instead of <strtod_nan_ldouble.h>.
13227 * stdlib/strtod_nan_double.h: Move to ...
13228 * sysdeps/generic/math-nan-payload-double.h: ... here.
13229 (FLOAT): Remove definition.
13230 (SET_MANTISSA): Rename to ...
13231 (SET_NAN_PAYLOAD): ... this.
13232 * stdlib/strtod_nan_float.h: Move to ...
13233 * sysdeps/generic/math-nan-payload-float.h: ... here.
13234 (FLOAT): Remove definition.
13235 (SET_MANTISSA): Rename to ...
13236 (SET_NAN_PAYLOAD): ... this.
13237 * sysdeps/generic/math-type-macros-double.h: Include
13238 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13239 instead of <math-svid-compat.h>.
13240 * sysdeps/generic/math-type-macros-float.h: Include
13241 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13242 instead of <math-svid-compat.h>.
13243 * sysdeps/generic/math-type-macros-float128.h: Include
13244 <math-nan-payload-float128.h>.
13245 * sysdeps/generic/math-type-macros-ldouble.h: Include
13246 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13247 instead of <math-svid-compat.h>.
13248 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13249 check for definition.
13250 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13251 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13252 Include <ieee754_float128.h>.
13253 (FLOAT): Remove definition.
13254 (SET_MANTISSA): Rename to ...
13255 (SET_NAN_PAYLOAD): ... this.
13256 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13257 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13258 Do not include <float128_private.h>.
13259 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13260 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13261 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13262 (FLOAT): Remove definition.
13263 (SET_MANTISSA): Rename to ...
13264 (SET_NAN_PAYLOAD): ... this.
13265 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13266 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13267 (FLOAT): Remove definition.
13268 (SET_MANTISSA): Rename to ...
13269 (SET_NAN_PAYLOAD): ... this.
13270 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13271 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13272 (FLOAT): Remove definition.
13273 (SET_MANTISSA): Rename to ...
13274 (SET_NAN_PAYLOAD): ... this.
13275 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13276 of "../stdlib/strtod_nan_double.h".
13277 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13278 of "../stdlib/strtod_nan_float.h".
13279 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13280 instead of "../stdlib/strtod_nan_ldouble.h".
13281 * manual/arith.texi (Parsing of Floats): Adjust comment.
13282
13283 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13284
13285 * math/Makefile (libm-narrow-fns): Add mul.
13286 (libm-test-funcs-narrow): Likewise.
13287 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13288 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13289 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13290 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13291 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13292 (NARROW_MUL_TRIVIAL): Likewise.
13293 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13294 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13295 macro.
13296 (__dmull): Likewise.
13297 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13298 dmul.
13299 (CFLAGS-nldbl-dmul.c): New variable.
13300 (CFLAGS-nldbl-fmul.c): Likewise.
13301 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13302 __nldbl_dmull.
13303 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13304 prototype.
13305 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13306 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13307 * math/auto-libm-test-in: Add tests of mul.
13308 * math/auto-libm-test-out-narrow-mul: New generated file.
13309 * math/libm-test-narrow-mul.inc: New file.
13310 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13311 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13312 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13313 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13314 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13315 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13316 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13317 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13318 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13319 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13320 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13321 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13322 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13323 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13324 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13325 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13326 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13327 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13328 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13329 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13330 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13331 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13332 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13333 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13334 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13335 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13336 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13337 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13338 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13339 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13340 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13341 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13342 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13346 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13347 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13348 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13349 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13350 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13351 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13352 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13353 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13354
13355 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13356
13357 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13358 with *%eax in call.
13359
13360 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13361
13362 * sysdeps/i386/ldsodefs.h: Removed.
13363 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13364 * sysdeps/x86/ldsodefs.h: This.
13365 (La_i86_regs): New.
13366 (La_i86_retval): Likewise.
13367 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13368 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13369
13370 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13371
13372 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13373 unnecessary testl.
13374
13375 2018-05-13 Alan Modra <amodra@gmail.com>
13376
13377 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13378 R_PARISC_TLS_DTPOFF32 reloc addend.
13379
13380 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13381
13382 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13383 * math/math.h: Restrict the prototype definition for the functions
13384 issignaling(_Float128) and iszero(_Float128); and template
13385 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13386 __HAVE_FLOAT128_UNLIKE_LDBL.
13387 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13388 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13389 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13390 __f128() constants; define the type _Float128 as long double;
13391 and reuse long double in __CFLOAT128.
13392
13393 2018-05-11 Joseph Myers <joseph@codesourcery.com>
13394
13395 * sysdeps/generic/math_private.h: Do not include
13396 <math-barriers.h>.
13397 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13398 <math_private.h>.
13399 * math/fromfp.h: Include <math-barriers.h>.
13400 * math/math-narrow.h: Likewise.
13401 * math/s_nextafter.c: Likewise.
13402 * math/s_nexttowardf.c: Likewise.
13403 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
13404 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
13405 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
13406 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
13407 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13408 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13409 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13410 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13411 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13412 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13413 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13414 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13415 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13416 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13417 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13418 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13419 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13420 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13421 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13422 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13423 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13424 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13425 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13426 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13427 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13428 * sysdeps/ieee754/k_standardl.c: Likewise.
13429 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13430 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13431 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13432 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13433 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13434 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13435 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13436 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13437 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13438 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13439 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13440 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13441 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13442 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13443 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13444 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13445 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13446 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13447 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13448 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13449 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
13450 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
13451
13452 2018-05-11 Florian Weimer <fweimer@redhat.com>
13453
13454 Use 64-bit epoch values in the time zone file parser.
13455 * include/time.h (internal_time_t): Define.
13456 (__tzfile_compute): Use it.
13457 * time/tzfile.c (struct leap): Use internal_time_t for epoch
13458 member.
13459 (transitions): Switch to internal_time_t.
13460 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
13461 types.
13462 (__tzfile_compute): Use internal_time_t for timer argument. Check
13463 for truncation before calling __offtime.
13464
13465 2018-05-11 Florian Weimer <fweimer@redhat.com>
13466
13467 [BZ #23166]
13468 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
13469 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
13470 Likewise.
13471 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
13472 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
13473 export without --enable-obsolete-rpc.
13474 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
13475 symbol. This should not have been exported, ever.
13476
13477 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
13478
13479 [BZ #23152]
13480 * localedata/locales/gd_GB (abmon): Fix typo in May:
13481 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
13482
13483 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13484
13485 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13486 Use multiple registers to copy data in loop tail.
13487
13488 * sysdeps/aarch64/multiarch/memmove_falkor.S
13489 (__memmove_falkor): Use multiple registers to move data in
13490 loop tail.
13491
13492 2018-05-10 Joseph Myers <joseph@codesourcery.com>
13493
13494 * math/math-underflow.h: New file.
13495 * sysdeps/generic/math_private.h: Do not include <float.h>.
13496 (fabs_tg): Remove macro. Moved to math-underflow.h.
13497 (min_of_type_f): Likewise.
13498 (min_of_type_): Likewise.
13499 (min_of_type_l): Likewise.
13500 (min_of_type_f128): Likewise.
13501 (min_of_type): Likewise.
13502 (math_check_force_underflow): Likewise.
13503 (math_check_force_underflow_nonneg): Likewise.
13504 (math_check_force_underflow_complex): Likewise.
13505 * math/e_exp2_template.c: Include <math-underflow.h>.
13506 * math/k_casinh_template.c: Likewise.
13507 * math/s_catan_template.c: Likewise.
13508 * math/s_catanh_template.c: Likewise.
13509 * math/s_ccosh_template.c: Likewise.
13510 * math/s_cexp_template.c: Likewise.
13511 * math/s_clog10_template.c: Likewise.
13512 * math/s_clog_template.c: Likewise.
13513 * math/s_csin_template.c: Likewise.
13514 * math/s_csinh_template.c: Likewise.
13515 * math/s_csqrt_template.c: Likewise.
13516 * math/s_ctan_template.c: Likewise.
13517 * math/s_ctanh_template.c: Likewise.
13518 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13519 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13520 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13521 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13522 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13523 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13524 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13525 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13526 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13527 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13528 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13529 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13530 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13531 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13532 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13533 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13534 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13535 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13536 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13537 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13538 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13539 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13540 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13541 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13542 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13543 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13544 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13545 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13546 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13547 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13548 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13549 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13550 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13551 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13552 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13553 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13554 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13555 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13556 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13557 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13558 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13559 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13560 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13561 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13562 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13563 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13564 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13565 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13566 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13567 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13568 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13569 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13570 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13571 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13572 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13573 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13574 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13575 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13576 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13577 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13578 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13579 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13580 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13581 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13582 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13583 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13584 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13585 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13586 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13587 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13588 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13589 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13590 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
13591 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
13592 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13593 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13594 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13595 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13596 * sysdeps/x86/fpu/powl_helper.c: Likewise.
13597 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
13598 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
13599 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
13600 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
13601 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
13602
13603 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13604
13605 * sysdeps/generic/math-barriers.h: New file.
13606 * sysdeps/generic/math_private.h [!math_opt_barrier]
13607 (math_opt_barrier): Move to math-barriers.h.
13608 [!math_opt_barrier] (math_force_eval): Likewise.
13609 * sysdeps/aarch64/fpu/math-barriers.h: New file.
13610 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
13611 math-barriers.h.
13612 (math_force_eval): Likewise.
13613 * sysdeps/alpha/fpu/math-barriers.h: New file.
13614 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
13615 math-barriers.h.
13616 (math_force_eval): Likewise.
13617 * sysdeps/x86/fpu/math-barriers.h: New file.
13618 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
13619 math-barriers.h.
13620 (math_force_eval): Likewise.
13621 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
13622 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
13623 multiple-include guard for rename.
13624 * sysdeps/powerpc/fpu/math-barriers.h: New file.
13625 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
13626 math-barriers.h.
13627 (math_force_eval): Likewise.
13628
13629 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
13630
13631 [BZ #22786]
13632 CVE-2018-11236
13633 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
13634 computation.
13635 * stdlib/Makefile (test-bz22786): New test.
13636 * stdlib/test-bz22786.c: New test.
13637
13638 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13639
13640 * include/math-narrow-eval.h: New file. Contents moved from ....
13641 * sysdeps/generic/math_private.h: ... here.
13642 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
13643 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
13644 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
13645 * stdlib/strtod_l.c: Likewise.
13646 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
13647 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13648 * sysdeps/i386/fpu/s_fdim.c: Likewise.
13649 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13650 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13651 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13652 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13653 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13654 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13655 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
13656 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13657 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13658 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13659 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13660 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13661 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13662 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13663 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13664 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13665 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13666 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13667 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13668 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13669 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13670 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13671 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13672 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13673 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13674 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
13675
13676 2018-05-08 Andreas Schwab <schwab@suse.de>
13677
13678 * sysdeps/nptl/internaltypes.h: Fix comment.
13679
13680 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
13681
13682 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13683 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
13684 hidden.
13685
13686 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13687
13688 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
13689 of I into loop header.
13690 * benchtests/bench-memmove-walk.c
13691 (test_main): Likewise.
13692
13693 2018-05-07 Alexandre Oliva <oliva@gnu.org>
13694
13695 Revert:
13696 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13697 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13698
13699 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
13700
13701 [BZ #20419]
13702 * elf/dl-load.c (open_verify): Fix stack overflow.
13703 * elf/Makefile (tst-big-note): New test.
13704 * elf/tst-big-note-lib.S: New.
13705 * elf/tst-big-note.c: New.
13706
13707 2018-05-04 Joseph Myers <joseph@codesourcery.com>
13708
13709 * scripts/abilist.awk: Ignore absolute symbols.
13710 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
13711 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
13712 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
13713 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
13714 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
13715 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
13716 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13717 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
13718 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
13719 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
13720 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
13721 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
13722 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
13723 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
13724 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
13725 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
13726 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
13727 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
13728 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13729 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
13730 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
13731 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
13732 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
13733 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
13734 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
13735 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
13736 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
13737 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
13738 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13739 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
13740 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
13741 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13742 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
13743 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
13744 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
13745 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
13746 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
13747 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
13748 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
13749 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
13750 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
13751 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13752 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
13753 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
13754 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13755 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
13756 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
13757 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
13758 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
13759 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
13760 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
13761 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
13762 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
13763 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
13764 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13765 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
13766 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
13767 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13768 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
13769 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
13770 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
13771 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
13772 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
13773 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
13774 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
13775 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
13776 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
13777 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13778 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
13779 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
13780 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13781 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
13782 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
13783 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
13784 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
13785 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
13786 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
13787 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
13788 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
13789 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
13790 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13791 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
13792 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
13793 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13794 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
13795 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
13796 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
13797 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
13798 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
13799 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
13800 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
13801 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
13802 Likewise.
13803 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
13804 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13805 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
13806 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
13807 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13808 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
13809 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
13810 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
13811 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
13812 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
13813 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
13814 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
13815 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
13816 Likewise.
13817 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
13818 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13819 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
13820 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
13821 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13822 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
13823 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
13824 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
13825 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
13826 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
13827 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
13828 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
13829 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
13830 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
13831 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13832 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
13833 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
13834 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13835 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
13836 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
13837 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
13838 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
13839 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
13840 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
13841 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13842 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
13843 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
13844 Likewise.
13845 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
13846 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
13847 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
13848 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
13849 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13850 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
13851 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
13852 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
13853 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
13854 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
13855 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
13856 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
13857 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
13858 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
13859 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
13860 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
13861 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
13862 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
13863 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13864 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
13865 Likewise.
13866 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
13867 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
13868 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
13869 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13870 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
13871 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
13872 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
13873 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
13874 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
13875 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
13876 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13877 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
13878 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
13879 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13880 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
13881 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
13882 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
13883 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
13884 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13885 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
13886 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
13887 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13888 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
13889 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
13890 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
13891 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
13892 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
13893 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
13894 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
13895 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13896 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
13897 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
13898 Likewise.
13899 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
13900 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
13901 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
13902 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
13903 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
13904 Likewise.
13905 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
13906 Likewise.
13907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
13908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
13909 Likewise.
13910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
13911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13912 Likewise.
13913 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13914 Likewise.
13915 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
13916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
13917 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
13918 Likewise.
13919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
13920 Likewise.
13921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
13922 Likewise.
13923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
13924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
13927 Likewise.
13928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
13929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
13930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
13931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
13934 Likewise.
13935 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
13936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
13937 Likewise.
13938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
13939 Likewise.
13940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
13941 Likewise.
13942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
13943 Likewise.
13944 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
13945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
13946 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
13947 Likewise.
13948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
13949 Likewise.
13950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
13951 Likewise.
13952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
13953 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
13954 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
13955 Likewise.
13956 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
13957 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13958 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
13959 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
13960 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13961 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
13962 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
13963 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
13964 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
13965 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
13966 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
13967 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
13968 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
13969 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
13970 Likewise.
13971 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13972 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
13973 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
13974 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13975 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
13976 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
13977 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
13978 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
13979 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
13980 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
13981 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
13982 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
13983 Likewise.
13984 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13985 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
13986 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
13987 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13988 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
13989 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
13990 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
13991 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
13992 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
13993 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
13994 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
13995 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
13996 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
13997 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13998 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
13999 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14000 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14001 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14002 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14003 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14004 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14005 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14006 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14007 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14008 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14009 Likewise.
14010 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14011 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14012 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14013 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14014 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14015 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14016 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14017 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14018 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14019 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14020 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14021 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14022 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14023 Likewise.
14024 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14025 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14026 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14027 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14028 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14029 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14030 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14031 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14032 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14033 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14034 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14035 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14036 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14037 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14038 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14039 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14040 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14041 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14042 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14043 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14044 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14045 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14046 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14047 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14048 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14049 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14050 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14051 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14052 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14053 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14054 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14055 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14056 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14057 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14058 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14059 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14060 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14061 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14062
14063 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14064
14065 [BZ #23137]
14066 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14067 Use atomic_load_acquire to load __tid.
14068
14069 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14070
14071 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14072 Restore the pointer into %rdx, after syscall and use %rdx,
14073 instead of %rsi, to restore context.
14074
14075 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14076
14077 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14078 Pop the pointer into %rdx after syscall and use %rdx, instead
14079 of %rsi, to restore context.
14080
14081 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14082
14083 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14084 handlers after setjmp.
14085 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14086 defined.
14087 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14088 <libc-pointer-arith.h>.
14089 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14090 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14091 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14092 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14093 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14094 * sysdeps/x86/__longjmp_cancel.S: New file.
14095 * sysdeps/x86/longjmp.c: Likewise.
14096 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14097
14098 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14099
14100 * NEWS: Add ustat.h deprecation entry.
14101 * bits/ustat.h: Remove file.
14102 * misc/sys/ustat.h: Likewise.
14103 * misc/ustat.h: Likewise.
14104 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14105 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14106 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14107 compatibility mode.
14108 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14109 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14110 generic Linux implementation.
14111
14112 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14113
14114 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14115 * math/w_expl_compat.c: Likewise.
14116 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14117
14118 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14119
14120 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14121
14122 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14123
14124 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14125 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14126 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14127 Remove.
14128 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14129 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14130 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14131 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14132 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14133 and SYSCALL_LL64.
14134
14135 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14136
14137 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14138
14139 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14140 * math/w_asin_template.c: Likewise.
14141 * math/w_atanh_template.c: Likewise.
14142
14143 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14144
14145 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14146 to powerpc/powerpc64/be for big-endian.
14147 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14148 little-endian.
14149
14150 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14151 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14152 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14153 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14154 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14155 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14156 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14157 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14158 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14159 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14160 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14161 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14162 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14163 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14164 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14165 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14166 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14167 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14168 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14169 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14170 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14171 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14172 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14173 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14174 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14175 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14176 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14177 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14178 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14179 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14180 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14181 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14182
14183 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14184 adjusted to imply powerpc64 and older processors on powerpc64/be.
14185 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14186 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14187 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14188 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14189 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14190 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14191 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14192 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14193 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14194 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14195 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14196 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14197 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14198 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14199 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14200 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14201 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14202 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14203 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14204 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14205 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14206 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14207 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14208 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14209 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14210 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14211 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14212 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14213 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14214 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14215 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14216
14217 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14218 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14219 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14220 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14221
14222 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14223 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14224 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14225 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14226
14227 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14228 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14229 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14230 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14231 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14232 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14233 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14234 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14235 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14236 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14237 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14238
14239 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14240 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14241 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14242 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14243 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14244 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14245 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14246 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14247 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14248 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14249 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14250
14251 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14252 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14253 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14254 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14255 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14256 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14257 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14258 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14259 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14260 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14261 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14262 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14263
14264 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14265 and adjusted to imply olders processors.
14266 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14267 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14268 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14269 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14270 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14271 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14272 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14273 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14274 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14275 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14276 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14277
14278 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14279 powerpc64/le.
14280 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14281 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14282
14283 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14284 powerpc64le.
14285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14287
14288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14289 powerpc64/be.
14290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14293
14294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14295 powerpc64 and adjusted.
14296 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14298 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14299 Likewise.
14300
14301 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14302
14303 * sysdeps/tile: Remove.
14304 * sysdeps/unix/sysv/linux/tile: Likewise.
14305 * README (tilegx-*-linux-gnu): Remove from list of supported
14306 configurations.
14307 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14308 contribution of support for generic Linux kernel syscall
14309 interface.
14310 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14311 tilegx configurations.
14312 (Config.install_linux_headers): Do not handle tile.
14313 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14314 in comment.
14315 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14316 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14317 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14318 conditional undefine and redefine.
14319 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14320 in comment.
14321 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14322 conditional undefine and redefine.
14323
14324 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14325
14326 * signal/tst-sigaction.c: New file to test BZ #23069.
14327 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14328
14329 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14330
14331 [BZ #22766]
14332 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14333 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14334 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14335 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14336
14337 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14338
14339 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14340 _DIRENT_MATCHES_DIRENT64 is not defined.
14341 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14342 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14343 is defined.
14344 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14345 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14346
14347 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14348
14349 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14350 version to GCC 8 branch.
14351
14352 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14353
14354 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14355 (check_no_hidden): Use type of original function when declaring
14356 alias.
14357
14358 * sysdeps/unix/sysv/linux/sys/ptrace.h
14359 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14360 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14361 (struct __ptrace_seccomp_metadata): New type.
14362 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14363 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14364 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14365 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14366 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14367 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14368 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14369 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14370 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14371 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14372 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14373 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14374 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14375 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14376 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14377 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14378
14379 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14380
14381 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14382 defined.
14383 * dirent/versionsort.c (versionsort): Likewise.
14384 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14385 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14386 * dirent/versionsort64.c (versionsort64): Likewise.
14387 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14388 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14389 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14390 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14391 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14392 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14393 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14394 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14395 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14396 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
14399 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
14400 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
14401
14402 2018-04-23 Joseph Myers <joseph@codesourcery.com>
14403
14404 * elf/elf.h (NT_PPC_PKEY): New macro.
14405
14406 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
14407
14408 [BZ #23094]
14409 * localedata/locales/hr_HR: fix thousands_sep and
14410 mon_thousands_sep
14411
14412 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14413
14414 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
14415 (XTABS): Define to TAB3.
14416
14417 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14418
14419 * sysdeps/hppa/fpu/libm-test-ulps: Update.
14420
14421 * dirent/scandir-tail-common.c: New file.
14422 * dirent/scandir-tail.c: Use scandir-tail-common.c.
14423 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
14424 * dirent/scandir.c: Use scandir-tail-common.c.
14425 * dirent/scandirat.c: Likewise.
14426 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
14427 * dirent/scandir64.c (scandir64): Always build and alias to scandir
14428 if _DIRENT_MATCHES_DIRENT64 is defined.
14429 * dirent/scandirat64.c (scandirat64): Likewise.
14430 * include/dirent.h (__scandir_tail): Only define iff
14431 _DIRENT_MATCHES_DIRENT64 is not defined.
14432 (__scandir64_tail): Define regardless.
14433 (__scandirat, scandirat64): Remove libc_hidden_proto.
14434 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
14435 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
14436 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
14437 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
14438 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14439 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
14440 * sysdeps/unix/sysv/linux/scandir64.c: New file.
14441
14442 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14443
14444 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
14445 New macro.
14446 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14447 Increase to 24.
14448 (_dl_aarch64_cap_flags): Add asimdfhm.
14449
14450 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
14451
14452 * sysdeps/nios2/libm-test-ulps: Update.
14453
14454 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14455
14456 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
14457 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
14458
14459 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
14460 requirements.
14461 (_DIRENT_MATCHES_DIRENT64): Undef
14462 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
14463 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
14464 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
14465 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
14466 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
14467 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
14468 use getdents64 syscalls as base.
14469 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
14470 symbol if required.
14471 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
14472 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14473 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
14474 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
14475 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
14476 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
14477 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
14478 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
14479 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14480 (__get_clockfreq_via_proc_openprom): Use __getdents64.
14481 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
14482
14483 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14484
14485 * scripts/test_printers_common.py (init_test): Disable lock elision.
14486
14487 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14488
14489 * math/test-tgmath.c (count_double, count_float,
14490 count_ldouble, count_cdouble, count_cfloat,
14491 count_cldouble): Use volatile int.
14492
14493 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
14494
14495 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
14496 (conformtest-xfail-conds): Add i386-gnu.
14497 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
14498 i386-gnu.
14499 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
14500 ipc_perm.cuid, ipc_perm.cgid): Likewise.
14501 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
14502 msqid_ds.msg_lrpid): Likewise.
14503 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
14504 Likewise.
14505 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
14506 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
14507 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
14508 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
14509 unsigned int.
14510 (struct statvfs64): Likewise.
14511 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
14512 Likewise.
14513 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
14514 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
14515 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
14516 instead of wait_queue.
14517 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
14518 instead of vm_area_struct.
14519 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
14520 struct sched_param definition to it.
14521 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14522 * bits/types/struct_sched_param.h: New file.
14523 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
14524 <bits/types/struct_sched_param.h> instead of <sched.h>.
14525 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
14526 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
14527 generic version but include <bits/pthreadtypes.h> to make struct
14528 sigevent's sigev_notify_attributes field a pthread_attr_t*.
14529 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
14530 non-compliant.
14531 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
14532 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
14533 [__USE_XOPEN] (OFDEL): New macro.
14534 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
14535 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
14536 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
14537 prototypes.
14538 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
14539 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
14540 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
14541 non-compliant.
14542 * sysdeps/i386/sys/ucontext.h: Likewise.
14543 * sysdeps/m68k/sys/ucontext.h: Likewise.
14544 * sysdeps/mips/sys/ucontext.h: Likewise.
14545 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
14546 * sysdeps/mach/hurd/i386/Makefile
14547 (test-xfail-POSIX/fcntl.h/conform): Add.
14548 (test-xfail-POSIX/signal.h/conform): Add.
14549 (test-xfail-POSIX/semaphore.h/conform): Add.
14550 (test-xfail-POSIX/regex.h/conform): Add.
14551 (test-xfail-POSIX/aio.h/conform): Add.
14552 (test-xfail-POSIX/mqueue.h/conform): Add.
14553 (test-xfail-POSIX/sys/types.h/conform): Add.
14554 (test-xfail-UNIX98/fcntl.h/conform): Add.
14555 (test-xfail-UNIX98/netdb.h/conform): Add.
14556 (test-xfail-UNIX98/signal.h/conform): Add.
14557 (test-xfail-UNIX98/semaphore.h/conform): Add.
14558 (test-xfail-UNIX98/regex.h/conform): Add.
14559 (test-xfail-UNIX98/aio.h/conform): Add.
14560 (test-xfail-UNIX98/ftw.h/conform): Add.
14561 (test-xfail-UNIX98/mqueue.h/conform): Add.
14562 (test-xfail-UNIX98/netinet/in.h/conform): Add.
14563 (test-xfail-UNIX98/sys/wait.h/conform): Add.
14564 (test-xfail-UNIX98/sys/sem.h/conform): Add.
14565 (test-xfail-UNIX98/sys/uio.h/conform): Add.
14566 (test-xfail-UNIX98/sys/socket.h/conform): Add.
14567 (test-xfail-UNIX98/sys/types.h/conform): Add.
14568 (test-xfail-UNIX98/stdlib.h/conform): Add.
14569 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
14570 (test-xfail-POSIX2008/fcntl.h/conform): Add.
14571 (test-xfail-POSIX2008/netdb.h/conform): Add.
14572 (test-xfail-POSIX2008/signal.h/conform): Add.
14573 (test-xfail-POSIX2008/semaphore.h/conform): Add.
14574 (test-xfail-POSIX2008/regex.h/conform): Add.
14575 (test-xfail-POSIX2008/aio.h/conform): Add.
14576 (test-xfail-POSIX2008/mqueue.h/conform): Add.
14577 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
14578 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
14579 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
14580 (test-xfail-POSIX2008/sys/types.h/conform): Add.
14581 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
14582 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
14583 (test-xfail-XOPEN2K/netdb.h/conform): Add.
14584 (test-xfail-XOPEN2K/signal.h/conform): Add.
14585 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
14586 (test-xfail-XOPEN2K/regex.h/conform): Add.
14587 (test-xfail-XOPEN2K/aio.h/conform): Add.
14588 (test-xfail-XOPEN2K/ftw.h/conform): Add.
14589 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
14590 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
14591 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
14592 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
14593 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
14594 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
14595 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
14596 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
14597 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
14598 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
14599 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
14600 (test-xfail-XOPEN2K8/signal.h/conform): Add.
14601 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
14602 (test-xfail-XOPEN2K8/regex.h/conform): Add.
14603 (test-xfail-XOPEN2K8/aio.h/conform): Add.
14604 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
14605 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
14606 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
14607 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
14608 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
14609 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
14610 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
14611 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
14612 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
14613 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
14614 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
14615 i386-gnu.
14616 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
14617 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
14618
14619 2018-04-18 Joseph Myers <joseph@codesourcery.com>
14620
14621 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14622 --enable-obsolete for powerpc-linux-gnuspe.
14623
14624 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14625
14626 * conform/data/sys/un.h-data: Allow sun_ prefix.
14627 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
14628 prototypes.
14629 * sysdeps/mach/include/mach.h: Likewise.
14630 * sysdeps/mach/include/mach/mig_support.h: Likewise.
14631 * sysdeps/mach/include/mach_error.h: Likewise.
14632
14633 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14634
14635 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
14636 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
14637 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
14638 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
14639
14640 2018-04-16 Andreas Schwab <schwab@suse.de>
14641
14642 [BZ #19527]
14643 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
14644
14645 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14646
14647 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
14648 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
14649
14650 2018-04-12 DJ Delorie <dj@redhat.com>
14651
14652 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14653 version to 4.16.
14654
14655 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
14656
14657 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
14658 (struct kernel_sigaction): Use the same definition on 31bit as is used
14659 on 64bit.
14660
14661 2018-04-09 Florian Weimer <fweimer@redhat.com>
14662
14663 [BZ #23037]
14664 * resolv/res_send.c (send_dg): Use designated initializers instead
14665 of assignment to zero-initialize other fields of struct mmsghdr.
14666
14667 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14668
14669 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
14670 __READDIR_ALIAS): Undefine after usage.
14671 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
14672 __READDIR_R_ALIAS): Likewise.
14673 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
14674 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
14675 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
14676 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
14677 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
14678 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
14679 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14680 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14681 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
14682 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
14683 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
14684 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
14685 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
14686 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
14687 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
14688 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
14689 * sysdeps/unix/sysv/linux/readdir.c: New file.
14690 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
14691 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
14692 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
14693
14694 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
14695
14696 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
14697
14698 * manual/charset.texi (Converting a Character): Fix typo.
14699
14700 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14701
14702 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14703
14704 * sysdeps/arm/libm-test-ulps: Update.
14705
14706 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
14707 as base implementation.
14708 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
14709 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
14710 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14711 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14712 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
14713 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
14714 remove unrequired definitions and update comments.
14715 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
14716 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
14717 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
14718 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
14719 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
14720 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
14721 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
14722 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
14723 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
14724 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
14725 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
14726 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
14727 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
14728 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
14729 and RESET_SA_RESTORER hooks.
14730
14731 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
14732
14733 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14734
14735 2018-04-05 Florian Weimer <fweimer@redhat.com>
14736
14737 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
14738 integer overflow, memory leak on error, and indeterminate errno
14739 value. Add a null wide character to terminate the result string.
14740 * manual/charset.texi (Converting a Character): Mention embedded
14741 null bytes in the mbrtowc input string. Explain what happens in
14742 the -2 result case. Do not claim that mbrtowc is simple or
14743 obvious to use. Adjust the description of the code example. Use
14744 @code, not @var, for concrete variables.
14745
14746 2018-04-05 Florian Weimer <fweimer@redhat.com>
14747
14748 * manual/examples/mbstouwcs.c: New file.
14749 * manual/charset.texi (Converting a Character): Include it.
14750
14751 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14752
14753 * include/dirent.h (dirfd): Add hidden proto.
14754 * dirent/dirfd.c (dirfd): Add hidden def.
14755 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
14756 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
14757
14758 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14759
14760 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
14761 sin, cos and sincos to 1 ULP.
14762
14763 2018-04-04 Maciej W. Rozycki <macro@mips.com>
14764
14765 [BZ #19818]
14766 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
14767 symbols.
14768 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
14769 * elf/tst-absolute-sym.c: New file.
14770 * elf/tst-absolute-sym-lib.c: New file.
14771 * elf/tst-absolute-sym-lib.lds: New file.
14772 * elf/Makefile (tests): Add `tst-absolute-sym'.
14773 (modules-names): Add `tst-absolute-sym-lib'.
14774 (LDLIBS-tst-absolute-sym-lib.so): New variable.
14775 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
14776 ($(objpfx)tst-absolute-sym): New dependency.
14777
14778 [BZ #19818]
14779 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
14780 parameter.
14781 (SYMBOL_ADDRESS): New macro.
14782 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
14783 SYMBOL_ADDRESS for symbol address calculation.
14784 * elf/dl-runtime.c (_dl_fixup): Likewise.
14785 (_dl_profile_fixup): Likewise.
14786 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
14787 * elf/rtld.c (dl_main): Likewise.
14788 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
14789 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
14790 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
14791 (elf_machine_rela): Likewise.
14792 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
14793 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
14794 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
14795 (elf_machine_rela): Likewise.
14796 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14797 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
14798 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
14799 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
14800 Likewise.
14801 (elf_machine_reloc): Likewise.
14802 (elf_machine_got_rel): Likewise.
14803 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
14804 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
14805 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14806 Likewise.
14807 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14808 Likewise.
14809 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
14810 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
14811 Likewise.
14812 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
14813 Likewise.
14814 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14815 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
14816 Likewise.
14817 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
14818 Likewise.
14819 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
14820 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14821
14822 2018-04-04 Zack Weinberg <zackw@panix.com>
14823
14824 * sysdeps/generic/internal-signals.h: Include signal.h,
14825 sigsetops.h, and stdbool.h.
14826 (__libc_signal_block_all): Actually block all signals.
14827 (__libc_signal_block_app): Likewise.
14828 (__libc_signal_restore_set): Actually restore the signal mask.
14829
14830 2018-04-04 Florian Weimer <fweimer@redhat.com>
14831
14832 inet: Actually build and run tst-deadline.
14833 * inet/Makefile (tests-internal): Add tst-deadline and do not
14834 overwrite the variable.
14835 (tests-static-internal): Remove variable.
14836
14837 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
14838
14839 [BZ #22947]
14840 * bits/uio-ext.h (RWF_APPEND): New.
14841 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
14842 * manual/llio.texi: Document RWF_APPEND.
14843 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
14844 (RWF_SUPPORTED): Add RWF_APPEND.
14845
14846 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14847
14848 [BZ #22391]
14849 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
14850 check for internal nptl signals.
14851 * nptl/sigaction.c (__sigaction): Likewise.
14852 * signal/sigaddset.c (sigaddset): Likewise.
14853 * signal/sigdelset.c (sigdelset): Likewise.
14854 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
14855 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
14856 value.
14857 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
14858 to filter out internal nptl signals.
14859 * signal/tst-sigset.c (do_test): Check ech signal indidually and
14860 also check realtime signals using standard macros.
14861 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
14862 __is_internal_signal, __libc_signal_block_all,
14863 __libc_signal_block_app, __libc_signal_restore_set): New functions.
14864 * sysdeps/nptl/sigfillset.c: Remove file.
14865 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
14866 Change return to bool.
14867 (__clear_internal_signals): Remove SIGTIMER clean since it is
14868 equal to SIGCANEL on Linux.
14869 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
14870 signal set was constructed using standard functions.
14871
14872 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14873
14874 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
14875 ifname is too long.
14876 * hurd/hurdsig.c (interrupted_reply_port_location): Use
14877 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
14878 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
14879 hidden def.
14880 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
14881 * signal/sigaddset.c: Include <sigsetopts.h>.
14882 * signal/sigdelset.c: Likewise.
14883
14884 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14885
14886 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
14887 (__cos): Likewise.
14888 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
14889 logic as sin and cos.
14890
14891 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14892
14893 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
14894 inputs. Return correct sign.
14895 (do_sincos): Remove small input check before do_sin, let do_sin set
14896 the sign.
14897 (__sin): Likewise.
14898 (__cos): Likewise.
14899
14900 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14901
14902 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
14903 (do_cos_slow): Likewise.
14904 (do_sin_slow): Likewise.
14905 (reduce_and_compute): Likewise.
14906 (slow): Likewise.
14907 (slow1): Likewise.
14908 (slow2): Likewise.
14909 (sloww): Likewise.
14910 (sloww1): Likewise.
14911 (sloww2): Likewise.
14912 (bslow): Likewise.
14913 (bslow1): Likewise.
14914 (bslow2): Likewise.
14915 (cslow2): Likewise.
14916
14917 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14918
14919 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
14920 (do_cos): Remove corp parameter and calculations.
14921 (do_sin): Likewise.
14922 (do_sincos): Remove cor variable.
14923 (__sin): Use do_sincos for huge inputs.
14924 (__cos): Likewise.
14925 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
14926 (reduce_and_compute_sincos): Remove unused function.
14927
14928 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14929
14930 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
14931 reduce_sincos, improve accuracy to 136 bits.
14932 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
14933 (__sin): Use improved reduction and simplified do_sincos calculation.
14934 (__cos): Likewise.
14935 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
14936
14937 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14938
14939 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
14940 (do_sincos_2): Likewise.
14941 (__sin): Remove middle range reduction case.
14942 (__cos): Likewise.
14943 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
14944 reduction case.
14945
14946 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14947
14948 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
14949 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
14950 inputs.
14951 (__cos): Likewise.
14952 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
14953
14954 2018-04-03 Joseph Myers <joseph@codesourcery.com>
14955
14956 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
14957 version to 4.16
14958
14959 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14960
14961 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
14962 Remove definitions.
14963 (opendir_oflags): Use O_DIRECTORY regardless.
14964 (__opendir, __opendirat): Remove need_isdir_precheck usage.
14965 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
14966
14967 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14968
14969 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
14970 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
14971 macros.
14972 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
14973 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
14974 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
14975 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
14976 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
14977 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
14978
14979 * htl/Makefile: Bump licence to LGPL 2.1+.
14980 * htl/alloca_cutoff.c: Likewise.
14981 * htl/cthreads-compat.c: Likewise.
14982 * htl/lockfile.c: Likewise.
14983 * htl/pt-alloc.c: Likewise.
14984 * htl/pt-cancel.c: Likewise.
14985 * htl/pt-cleanup.c: Likewise.
14986 * htl/pt-create.c: Likewise.
14987 * htl/pt-dealloc.c: Likewise.
14988 * htl/pt-detach.c: Likewise.
14989 * htl/pt-exit.c: Likewise.
14990 * htl/pt-getattr.c: Likewise.
14991 * htl/pt-initialize.c: Likewise.
14992 * htl/pt-internal.h: Likewise.
14993 * htl/pt-join.c: Likewise.
14994 * htl/pt-self.c: Likewise.
14995 * htl/pt-setcancelstate.c: Likewise.
14996 * htl/pt-setcanceltype.c: Likewise.
14997 * htl/pt-sigmask.c: Likewise.
14998 * htl/pt-spin-inlines.c: Likewise.
14999 * htl/pt-testcancel.c: Likewise.
15000 * htl/pt-yield.c: Likewise.
15001 * htl/tests/test-1.c: Likewise.
15002 * htl/tests/test-10.c: Likewise.
15003 * htl/tests/test-11.c: Likewise.
15004 * htl/tests/test-12.c: Likewise.
15005 * htl/tests/test-13.c: Likewise.
15006 * htl/tests/test-14.c: Likewise.
15007 * htl/tests/test-15.c: Likewise.
15008 * htl/tests/test-16.c: Likewise.
15009 * htl/tests/test-17.c: Likewise.
15010 * htl/tests/test-2.c: Likewise.
15011 * htl/tests/test-3.c: Likewise.
15012 * htl/tests/test-4.c: Likewise.
15013 * htl/tests/test-5.c: Likewise.
15014 * htl/tests/test-6.c: Likewise.
15015 * htl/tests/test-7.c: Likewise.
15016 * htl/tests/test-8.c: Likewise.
15017 * htl/tests/test-9.c: Likewise.
15018 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15019 * sysdeps/htl/bits/cancelation.h: Likewise.
15020 * sysdeps/htl/bits/pthread-np.h: Likewise.
15021 * sysdeps/htl/bits/pthread.h: Likewise.
15022 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15023 * sysdeps/htl/bits/semaphore.h: Likewise.
15024 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15025 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15026 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15027 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15028 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15029 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15030 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15031 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15032 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15033 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15034 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15035 * sysdeps/htl/old_pt-atfork.c: Likewise.
15036 * sysdeps/htl/pt-atfork.c: Likewise.
15037 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15038 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15039 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15040 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15041 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15042 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15043 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15044 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15045 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15046 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15047 * sysdeps/htl/pt-attr-init.c: Likewise.
15048 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15049 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15050 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15051 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15052 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15053 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15054 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15055 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15056 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15057 * sysdeps/htl/pt-attr.c: Likewise.
15058 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15059 * sysdeps/htl/pt-barrier-init.c: Likewise.
15060 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15061 * sysdeps/htl/pt-barrier.c: Likewise.
15062 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15063 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15064 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15065 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15066 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15067 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15068 * sysdeps/htl/pt-cond-init.c: Likewise.
15069 * sysdeps/htl/pt-cond-signal.c: Likewise.
15070 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15071 * sysdeps/htl/pt-cond-wait.c: Likewise.
15072 * sysdeps/htl/pt-cond.c: Likewise.
15073 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15074 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15075 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15076 * sysdeps/htl/pt-condattr-init.c: Likewise.
15077 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15078 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15079 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15080 * sysdeps/htl/pt-equal.c: Likewise.
15081 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15082 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15083 * sysdeps/htl/pt-getschedparam.c: Likewise.
15084 * sysdeps/htl/pt-getspecific.c: Likewise.
15085 * sysdeps/htl/pt-init-specific.c: Likewise.
15086 * sysdeps/htl/pt-key-create.c: Likewise.
15087 * sysdeps/htl/pt-key-delete.c: Likewise.
15088 * sysdeps/htl/pt-key.h: Likewise.
15089 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15090 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15091 * sysdeps/htl/pt-mutex-init.c: Likewise.
15092 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15093 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15094 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15095 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15096 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15097 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15098 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15099 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15100 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15101 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15102 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15103 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15104 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15105 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15106 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15107 * sysdeps/htl/pt-mutexattr.c: Likewise.
15108 * sysdeps/htl/pt-once.c: Likewise.
15109 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15110 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15111 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15112 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15113 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15114 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15115 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15116 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15117 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15118 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15119 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15120 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15121 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15122 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15123 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15124 * sysdeps/htl/pt-setschedparam.c: Likewise.
15125 * sysdeps/htl/pt-setschedprio.c: Likewise.
15126 * sysdeps/htl/pt-setspecific.c: Likewise.
15127 * sysdeps/htl/pt-spin.c: Likewise.
15128 * sysdeps/htl/pt-startup.c: Likewise.
15129 * sysdeps/htl/pthread.h: Likewise.
15130 * sysdeps/htl/sem-close.c: Likewise.
15131 * sysdeps/htl/sem-destroy.c: Likewise.
15132 * sysdeps/htl/sem-getvalue.c: Likewise.
15133 * sysdeps/htl/sem-init.c: Likewise.
15134 * sysdeps/htl/sem-open.c: Likewise.
15135 * sysdeps/htl/sem-post.c: Likewise.
15136 * sysdeps/htl/sem-timedwait.c: Likewise.
15137 * sysdeps/htl/sem-trywait.c: Likewise.
15138 * sysdeps/htl/sem-unlink.c: Likewise.
15139 * sysdeps/htl/sem-wait.c: Likewise.
15140 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15141 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15142 * sysdeps/mach/htl/pt-block.c: Likewise.
15143 * sysdeps/mach/htl/pt-spin.c: Likewise.
15144 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15145 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15146 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15147 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15148 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15149 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15150 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15151 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15152 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15153 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15154 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15155 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15156 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15157 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15158 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15159 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15160 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15161 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15162 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15163 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15164 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15165 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15166 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15167 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15168 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15169 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15170 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15171 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15172 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15173 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15174 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15175 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15176 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15177 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15178 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15179 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15180 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15181 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15182 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15183 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15184 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15185 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15186 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15187
15188 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15189 * README: Remove the mention of out-of-tree patches needed for
15190 GNU/Hurd.
15191
15192 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15193 (UTIME_NOW, UTIME_OMIT): Define macros.
15194
15195 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15196 instead of pthread_detach.
15197 (__cthread_fork): Call __pthread_create instead of pthread_create.
15198 (__cthread_keycreate): Call __pthread_key_create instead of
15199 pthread_key_create.
15200 (__cthread_getspecific): Call __pthread_getspecific instead of
15201 pthread_getspecific.
15202 (__cthread_setspecific): Call __pthread_setspecific instead of
15203 pthread_setspecific.
15204 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15205 __pthread_mutex_unlock instead of pthread_mutex_lock and
15206 pthread_mutex_unlock.
15207 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15208 ___pthread_get_cleanup_stack.
15209 (__pthread_get_cleanup_stack): New strong alias.
15210 * htl/pt-create.c: Include <pthreadP.h>.
15211 (entry_point): Call __pthread_exit instead of pthread_exit.
15212 (pthread_create): Rename to __pthread_create.
15213 (pthread_create): New strong alias.
15214 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15215 (pthread_detach): New strong alias.
15216 (__pthread_detach): Call __pthread_cond_broadcast instead of
15217 pthread_cond_broadcast.
15218 * htl/pt-exit.c: Include <pthreadP.h>.
15219 (__pthread_exit): Call __pthread_setcancelstate and
15220 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15221 __pthread_get_cleanup_stack.
15222 * htl/pt-testcancel.c: Include <pthreadP.h>.
15223 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15224 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15225 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15226 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15227 pthread_attr_getstacksize.
15228 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15229 Rename to __pthread_attr_getstackaddr.
15230 (pthread_attr_getstackaddr): New strong alias.
15231 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15232 Rename to __pthread_attr_getstacksize.
15233 (pthread_attr_getstacksize): New strong alias.
15234 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15235 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15236 (pthread_attr_setstack): New strong alias.
15237 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15238 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15239 pthread_attr_getstacksize, pthread_attr_setstacksize and
15240 pthread_attr_setstackaddr.
15241 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15242 Rename to __pthread_attr_setstackaddr.
15243 (pthread_attr_setstackaddr): New strong alias.
15244 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15245 Rename to __pthread_attr_setstacksize.
15246 (pthread_attr_setstacksize): New strong alias.
15247 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15248 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15249 pthread_exit.
15250 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15251 (__pthread_key_create): New hidden def.
15252 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15253 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15254 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15255 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15256 __pthread_setspecific, __pthread_setcancelstate,
15257 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15258 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15259 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15260 declarations.
15261 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15262 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15263 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15264 (pthread_attr_setstackaddr): New strong alias.
15265 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15266 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15267 (pthread_attr_setstacksize): New strong alias.
15268 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15269 (call_exit): Call __pthread_exit instead of pthread_exit.
15270 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15271 (_pthread_mutex_init): New hidden definition.
15272 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15273 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15274 instead of pthread_attr_init and pthread_attr_setstack.
15275
15276 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15277 __vm_deallocate instead of vm_allocate and vm_deallocate.
15278 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15279 setenv.
15280 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15281 of geteuid.
15282 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15283 strdup.
15284 * hurd/siginfo.c: Include <libioP.h>.
15285 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15286 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15287 munmap.
15288 * mach/devstream.c: Include <libioP.h>.
15289 (dealloc_ref): Call __mach_port_deallocate instead of
15290 mach_port_deallocate.
15291 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15292 Call __mach_port_deallocate instead of mach_port_deallocate.
15293 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15294 pathconf.
15295 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15296 munmap.
15297 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15298 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15299 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15300 of munmap.
15301 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15302 of close.
15303 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15304 instead of sysconf.
15305 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15306 __clock_gettime instead of clock_gettime.
15307 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15308 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15309 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15310 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15311 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15312 tcgetattr.
15313 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15314 __clock_gettime and __nanosleep instead of clock_gettime and
15315 nanosleep.
15316 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15317 __hurd_catch_signal.
15318 (hurd_catch_signal): New strong alias.
15319 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15320 __hurd_catch_signal instead of hurd_catch_signal.
15321 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15322 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15323 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15324 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15325 (_hurd_thread_sigstate): Add hidden def.
15326 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15327 mutex_unlock.
15328 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15329 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15330 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15331 __hurd_file_name_path_lookup.
15332 (hurd_file_name_path_lookup): New strong alias.
15333 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15334 hurd_file_name_path_lookup.
15335 * mach/errstring.c (mach_error_type): Add hidden def.
15336 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15337 * mach/mutex-init.c (__mutex_init): Add hidden def.
15338 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15339 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15340 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15341 * sysdeps/mach/hurd/getcwd.c
15342 (_hurd_canonicalize_directory_name_internal): Rename to
15343 __hurd_canonicalize_directory_name_internal.
15344 (_hurd_canonicalize_directory_name_internal): New strong alias.
15345 (__canonicalize_directory_name_internal, __getcwd): Call
15346 __hurd_canonicalize_directory_name_internal instead of
15347 _hurd_canonicalize_directory_name_internal.
15348 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15349 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15350 hidden defs.
15351 * sysdeps/hurd/include/hurd.h: New file.
15352 * sysdeps/hurd/include/hurd/fd.h: New file.
15353 * sysdeps/hurd/include/hurd/signal.h: New file.
15354 * sysdeps/mach/include/lock-intern.h: New file.
15355 * sysdeps/mach/include/mach.h: New file.
15356 * sysdeps/mach/include/mach/mig_support.h: New file.
15357 * sysdeps/mach/include/mach_error.h: New file.
15358 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15359 prototype.
15360 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15361 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15362 _HEADER_H_HIDDEN_DEF macro.
15363 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15364 _hurd_fd_error_signal): Add hidden prototype.
15365 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15366 hidden def.
15367 * libio/iolibio.h (_IO_puts): New hidden prototype.
15368 * libio/ioputs.c (_IO_puts): New hidden def.
15369 * sysdeps/mach/hurd/localplt.data: New file.
15370
15371 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15372 Amos Jeffries <squid3@treenet.co.nz>
15373 David Michael <fedora.dm0@gmail.com>
15374 Marco Gerards <marco@gnu.org>
15375 Marcus Brinkmann <marcus@gnu.org>
15376 Neal H. Walfield <neal@gnu.org>
15377 Pino Toscano <toscano.pino@tiscali.it>
15378 Richard Braun <rbraun@sceen.net>
15379 Roland McGrath <roland@gnu.org>
15380 Samuel Thibault <samuel.thibault@ens-lyon.org>
15381 Thomas DiModica <ricinwich@yahoo.com>
15382 Thomas Schwinge <tschwinge@gnu.org>
15383
15384 * htl: New directory.
15385 * sysdeps/htl: New directory.
15386 * sysdeps/hurd/htl: New directory.
15387 * sysdeps/i386/htl: New directory.
15388 * sysdeps/mach/htl: New directory.
15389 * sysdeps/mach/hurd/htl: New directory.
15390 * sysdeps/mach/hurd/i386/htl: New directory.
15391 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15392 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15393 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15394
15395 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15396
15397 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15398 signals in thread created for runing timers.
15399
15400 2018-04-01 Florian Weimer <fweimer@redhat.com>
15401
15402 * support/support_format_addrinfo.c (support_format_addrinfo):
15403 Include unknown error number in formatted result.
15404
15405 2018-03-29 Florian Weimer <fweimer@redhat.com>
15406
15407 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
15408 capture SIGBUS.
15409
15410 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15411
15412 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
15413 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
15414 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15415 (__ASSUME_CLONE_BACKWARDS): Define.
15416
15417 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
15418
15419 [BZ #23024]
15420 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
15421 early when linux sentinel value is set.
15422
15423 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15424
15425 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
15426
15427 2018-03-27 Andreas Schwab <schwab@suse.de>
15428
15429 [BZ #23005]
15430 * resolv/res_send.c (__res_context_send): Return ENOMEM if
15431 allocation of private copy of nsaddr_list fails.
15432
15433 2018-03-26 Joseph Myers <joseph@codesourcery.com>
15434
15435 [BZ #16552]
15436 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
15437 * sysdeps/unix/sysv/linux/umount.c: ... here.
15438 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
15439 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
15440 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
15441 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
15442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
15443 * sysdeps/unix/sysv/linux/umount.S: Likewise.
15444 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
15445
15446 2018-03-26 Andreas Schwab <schwab@suse.de>
15447
15448 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
15449 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
15450 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
15451 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
15452 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
15453 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
15454 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
15455 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
15456 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
15457 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
15458 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
15459 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
15460 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
15461 (R_RISCV_NUM): Define.
15462
15463 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
15464
15465 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
15466 TLS declaration of errno.
15467 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
15468 __libc_setup_tls.
15469 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
15470 (ARCH_SETUP_TLS): Likewise.
15471 * sysdeps/mach/hurd/libc-start.h: New file copied from
15472 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
15473 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
15474 instead of __libc_setup_tls.
15475 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
15476 __libc_setup_tls before initializing libpthread and running _hurd_init
15477 which starts the signal thread.
15478 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
15479 Declare function.
15480 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15481
15482 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
15483
15484 [BZ #22998]
15485 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
15486 after it is defined.
15487
15488 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
15489 Max Horn <max@quendi.de>
15490
15491 [BZ #22644]
15492 CVE-2017-18269
15493 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
15494 branch conditions.
15495 * string/test-memmove.c (do_test2): New testcase.
15496
15497 2018-03-22 Joseph Myers <joseph@codesourcery.com>
15498
15499 * sysdeps/generic/frame.h: Remove file.
15500 * sysdeps/arm/frame.h: Likewise.
15501 * sysdeps/hppa/frame.h: Likewise.
15502 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
15503 macro.
15504 (GET_FRAME): Likewise.
15505 (GET_STACK): Likewise.
15506 (CALL_SIGHANDLER): Likewise.
15507 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
15508 Likewise.
15509 (GET_FRAME): Likewise.
15510 (GET_STACK): Likewise.
15511 (CALL_SIGHANDLER): Likewise.
15512 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
15513 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15514 (GET_FRAME): Likewise.
15515 (GET_STACK): Likewise.
15516 (CALL_SIGHANDLER): Likewise.
15517 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
15518 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15519 (GET_FRAME): Likewise.
15520 (GET_STACK): Likewise.
15521 (ADVANCE_STACK_FRAME): Likewise.
15522 (CALL_SIGHANDLER): Likewise.
15523 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
15524 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15525 (GET_FRAME): Likewise.
15526 (GET_STACK): Likewise.
15527 (CALL_SIGHANDLER): Likewise.
15528 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
15529 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15530 (GET_FRAME): Likewise.
15531 (GET_STACK): Likewise.
15532 (CALL_SIGHANDLER): Likewise.
15533 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
15534 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15535 (GET_FRAME): Likewise.
15536 (GET_STACK): Likewise.
15537 (CALL_SIGHANDLER): Likewise.
15538 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
15539 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15540 (GET_FRAME): Likewise.
15541 (GET_STACK): Likewise.
15542 (CALL_SIGHANDLER): Likewise.
15543 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
15544 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15545 (GET_FRAME): Likewise.
15546 (GET_STACK): Likewise.
15547 (CALL_SIGHANDLER): Likewise.
15548 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
15549 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15550 (GET_FRAME): Likewise.
15551 (GET_STACK): Likewise.
15552 (CALL_SIGHANDLER): Likewise.
15553 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
15554 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15555 (GET_FRAME): Likewise.
15556 (GET_STACK): Likewise.
15557 (CALL_SIGHANDLER): Likewise.
15558 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
15559 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15560 (GET_FRAME): Likewise.
15561 (GET_STACK): Likewise.
15562 (CALL_SIGHANDLER): Likewise.
15563 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
15564 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15565 (GET_FRAME): Likewise.
15566 (GET_STACK): Likewise.
15567 (CALL_SIGHANDLER): Likewise.
15568 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
15569 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15570 (FIRST_FRAME_POINTER): Likewise.
15571 (ADVANCE_STACK_FRAME): Likewise.
15572 (GET_STACK): Likewise.
15573 (GET_FRAME): Likewise.
15574 (CALL_SIGHANDLER): Likewise.
15575 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
15576 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15577 (ADVANCE_STACK_FRAME): Likewise.
15578 (GET_STACK): Likewise.
15579 (GET_FRAME): Likewise.
15580 (CALL_SIGHANDLER): Likewise.
15581 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
15582 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15583 (GET_FRAME): Likewise.
15584 (GET_STACK): Likewise.
15585 (CALL_SIGHANDLER): Likewise.
15586 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
15587 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15588 (GET_FRAME): Likewise.
15589 (GET_STACK): Likewise.
15590 (CALL_SIGHANDLER): Likewise.
15591
15592 2018-03-21 Joseph Myers <joseph@codesourcery.com>
15593
15594 * sysdeps/x86_64/backtrace.c: Move to ....
15595 * debug/backtrace.c: ... here.
15596 * sysdeps/aarch64/backtrace.c: Remove file.
15597 * sysdeps/alpha/backtrace.c: Likewise.
15598 * sysdeps/hppa/backtrace.c: Likewise.
15599 * sysdeps/ia64/backtrace.c: Likewise.
15600 * sysdeps/mips/backtrace.c: Likewise.
15601 * sysdeps/nios2/backtrace.c: Likewise.
15602 * sysdeps/riscv/backtrace.c: Likewise.
15603 * sysdeps/sh/backtrace.c: Likewise.
15604 * sysdeps/tile/backtrace.c: Likewise.
15605
15606 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15607
15608 [BZ #22987]
15609 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
15610 function.
15611 (fdimf): Likewise.
15612 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
15613
15614 [BZ #17343]
15615 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
15616 possibly overflowing computations.
15617
15618 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15619
15620 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
15621 values from Linux-specific section now that it is in the GNU section.
15622 * sysdeps/gnu/errlist.c: Regenerate.
15623
15624 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15625
15626 * math/Makefile (libm-narrow-fns): Add sub.
15627 (libm-test-funcs-narrow): Likewise.
15628 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
15629 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
15630 * math/gen-auto-libm-tests.c (test_functions): Add sub.
15631 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
15632 (NARROW_SUB_ROUND_TO_ODD): Likewise.
15633 (NARROW_SUB_TRIVIAL): Likewise.
15634 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
15635 macro.
15636 (__dsubl): Likewise.
15637 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
15638 dsub.
15639 (CFLAGS-nldbl-dsub.c): New variable.
15640 (CFLAGS-nldbl-fsub.c): Likewise.
15641 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15642 __nldbl_dsubl.
15643 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
15644 prototype.
15645 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
15646 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
15647 * math/auto-libm-test-in: Add tests of sub.
15648 * math/auto-libm-test-out-narrow-sub: New generated file.
15649 * math/libm-test-narrow-sub.inc: New file.
15650 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15651 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
15652 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
15653 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
15654 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
15655 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
15656 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
15657 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
15658 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
15659 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
15660 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
15661 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
15662 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
15663 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
15664 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
15665 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
15666 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
15667 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
15668 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15669 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15670 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15671 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15672 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15673 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15674 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15675 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15676 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15677 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15678 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15679 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15680 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15681 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15684 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15686 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15687 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15688 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15689 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15690 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15691 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15692 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15693 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15694 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15695 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15696
15697 2018-03-19 Joseph Myers <joseph@codesourcery.com>
15698
15699 [BZ #20079]
15700 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
15701
15702 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
15703
15704 * benchtests/bench-timing.h (attribute_hidden): Undefine.
15705
15706 2018-03-18 Richard Braun <rbraun@sceen.net>
15707
15708 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
15709 thread reference.
15710
15711 2018-03-18 Agustina Arzille <avarzille@riseup.net>
15712
15713 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
15714 (__libc_cleanup_fct): Define function.
15715 (__libc_cleanup_region_start, __libc_cleanup_region_end,
15716 __libc_cleanup_end): Rewrite implementation using
15717 __attribute__ ((__cleanup__)).
15718 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
15719 * hurd/Makefile (routines): Add hurdlock.
15720 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
15721 interface.
15722 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
15723 * hurd/hurdpid.c: Include <lowlevellock.h>
15724 (_S_msg_proc_newids): Use lll_wait to synchronize.
15725 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
15726 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
15727 * mach/Makefile (lock-headers): Remove machine-lock.h.
15728 * mach/lock-intern.h: Include <lowlevellock.h> instead of
15729 <machine-lock.h>.
15730 (__spin_lock_t): New type.
15731 (__SPIN_LOCK_INITIALIZER): New macro.
15732 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
15733 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
15734 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
15735 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
15736 (__mutex_init): Initialize with lll.
15737 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
15738 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
15739 needing lll.
15740 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15741 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
15742 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
15743 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
15744 (__setpgid): Use lll for synchronization.
15745 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
15746 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
15747 instead of <cthreads.h>.
15748 (_IO_lock_inexpensive): New macro
15749 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
15750 (__libc_lock_self0): New declaration.
15751 (__libc_lock_owner_self): New macro.
15752 (__libc_key_t): Remove type.
15753 (_LIBC_LOCK_INITIALIZER): New macro.
15754 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
15755 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
15756 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
15757 __libc_lock_define_initialized_recursive,
15758 __rtld_lock_define_initialized_recursive,
15759 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
15760 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
15761 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
15762 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
15763 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
15764 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
15765 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
15766 New macros.
15767 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
15768 * hurd/hurdlock.c: New file.
15769 * hurd/hurdlock.h: New file.
15770 * mach/lowlevellock.h: New file
15771
15772 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15773
15774 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
15775 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
15776 when opening a symlink with O_NOFOLLOW.
15777 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
15778 path when flags contains O_NOFOLLOW.
15779 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
15780 if flags contains O_DIRECTORY and the result is a directory.
15781 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
15782 oneself when the pointer given in D is nul (as set by ext2fs).
15783 * sysdeps/mach/hurd/mlockall.c: New file.
15784 * sysdeps/mach/hurd/munlockall.c: New file.
15785
15786 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15787
15788 * hurd/hurdsig.c: Include <pthread.h>.
15789 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
15790 get the signal thread stack layout.
15791 * hurd/Makefile (headers): Remove threadvar.h.
15792 (inline-headers): Remove threadvar.h.
15793 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
15794 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
15795 __hurd_threadvar_max, __hurd_errno_location.
15796 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
15797 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
15798 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
15799 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
15800 unless TLS is not initialized yet, in which case we do not need a
15801 critical section yet anyway.
15802 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
15803 <machine-sp.h>.
15804 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
15805 declarations.
15806 (__hurd_threadvar_index): Remove enum.
15807 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
15808 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
15809 inlines.
15810 (__hurd_reply_port0): New variable declaration.
15811 (__hurd_local_reply_port): New macro.
15812 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
15813 (interrupted_reply_port_location): Add thread_t parameter. Use it
15814 with THREAD_TCB to access thread-local variables.
15815 (_hurdsig_abort_rpcs): Pass ss->thread to
15816 interrupted_reply_port_location.
15817 (_hurd_internal_post_signal): Likewise.
15818 (_hurdsig_init): Use presence of cthread_fork instead of
15819 __hurd_threadvar_stack_mask to start signal thread by hand.
15820 Remove signal thread threadvar initialization.
15821 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
15822 * hurd/sigunwind.c: Include <hurd/threadvar.h>
15823 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
15824 of threadvar.
15825 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
15826 __libc_lock_self0.
15827 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
15828 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
15829 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
15830 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
15831 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
15832 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
15833 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
15834 define variables.
15835 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
15836 <hurd/threadvar.h>.
15837 [IS_IN(rtld)] (rtld_errno): New variable.
15838 [IS_IN(rtld)] (__errno_location): New weak function.
15839 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
15840 * sysdeps/mach/hurd/errno.c: Remove file.
15841 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
15842 (__fork): Remove THREADVAR_SPACE macro and its use.
15843 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
15844 variable.
15845 (init): Do not initialize threadvar.
15846 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
15847 symbol.
15848 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
15849 __hurd_local_reply_port instead of threadvar.
15850 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
15851 _hurd_sigstate fields.
15852 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
15853 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
15854 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
15855 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
15856 instead of threadvar.
15857 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
15858 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
15859 (use_threadvar, global_reply_port): Remove variables.
15860 (__hurd_reply_port0): New variable.
15861 (__mig_get_reply_port): Use __hurd_local_reply_port and
15862 __hurd_reply_port0 instead of threadvar.
15863 (__mig_dealloc_reply_port): Likewise.
15864 (__mig_init): Do not initialize threadvar.
15865 * sysdeps/mach/hurd/profil.c: Fix comment.
15866 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
15867 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
15868 cthread_keycreate, cthread_getspecific, cthread_setspecific to
15869 __cthread_fork, __cthread_detach, __pthread_getattr_np,
15870 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
15871 __cthread_setspecific.
15872 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
15873 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
15874 __cthread_t instead of cthread_fork, cthread_detach,
15875 pthread_getattr_np, pthread_attr_getstack.
15876 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
15877 __cthread_keycreate.
15878 (cthread_getspecific): Rename to __cthread_getspecific.
15879 (cthread_setspecific): Rename to __cthread_setspecific.
15880 (__libc_getspecific): Use __cthread_getspecific instead of
15881 cthread_getspecific.
15882 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
15883 __cthread_keycreate instead of cthread_keycreate.
15884 (__libc_setspecific): Use __cthread_setspecific instead of
15885 cthread_setspecific.
15886 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
15887 Likewise.
15888 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
15889 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
15890 testing whether it is defined.
15891
15892 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
15893
15894 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
15895 Define macro.
15896 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
15897 * sysdeps/mach/i386/thread_state.h
15898 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
15899 i386_THREAD_STATE.
15900 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
15901 i386_THREAD_STATE.
15902 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
15903
15904 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
15905 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
15906
15907 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
15908 macros.
15909 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
15910 descriptor instead of creating a new one.
15911 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
15912
15913 * mach/setup-thread.c: Include <ldsodefs.h>.
15914 (__mach_setup_thread): Call _dl_allocate_tls, pass
15915 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
15916 MACHINE_THREAD_STATE_FLAVOR, before getting
15917 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
15918 MACHINE_THREAD_STATE_FLAVOR with the result.
15919 * hurd/hurdfault.c (_hurdsig_fault_init): Call
15920 MACHINE_THREAD_STATE_FIX_NEW.
15921 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
15922 too. Add original thread parameter.
15923
15924 2018-03-16 Joseph Myers <joseph@codesourcery.com>
15925
15926 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
15927 Remove inline function.
15928
15929 * sysdeps/i386/fpu/libm-test-ulps: Update.
15930 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15931
15932 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
15933
15934 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
15935 commit.
15936
15937 2018-03-15 Joseph Myers <joseph@codesourcery.com>
15938
15939 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
15940 (__sincos_code): Remove define and undefine.
15941 [__FAST_MATH__] (__sincos): Remove inline function.
15942 [__FAST_MATH__] (__sincosf): Remove inline function.
15943 [__FAST_MATH__] (__sincosl): Remove inline function.
15944 (__atan2l): Remove inline functions.
15945 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
15946 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
15947 function.
15948 (floor): Remove inline function.
15949 (ceil): Likewise.
15950 [__FAST_MATH__] (__ldexp_code): Remove macro.
15951 [__FAST_MATH__] (ldexp): Remove inline function.
15952 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
15953 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
15954 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
15955 [__USE_ISOC99] (__lrint_code): Remove macro.
15956 [__USE_ISOC99] (__llrint_code): Likewise.
15957 [__USE_ISOC99] (lrintf): Remove inline function.
15958 [__USE_ISOC99] (lrint): Likewise.
15959 [__USE_ISOC99] (lrintl): Likewise.
15960 [__USE_ISOC99] (llrint): Likewise.
15961 [__USE_ISOC99] (llrintf): Likewise.
15962 [__USE_ISOC99] (llrintl): Likewise.
15963
15964 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15965
15966 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
15967 (__ieee754_sqrtf): Remove.
15968 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
15969 (__ieee754_sqrtf): Remove.
15970 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
15971 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
15972 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
15973 (__ieee754_sqrtf): Remove.
15974 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
15975 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
15976 (sqrtf): Remove.
15977 (sqrtl): Remove.
15978 (__ieee754_sqrt): Remove.
15979 (__ieee754_sqrtf): Remove.
15980 (__ieee754_sqrtl): Remove.
15981 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
15982 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
15983 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
15984 (__ieee754_sqrtf): Remove.
15985 (__ieee754_sqrtl): Remove.
15986
15987 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15988
15989 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
15990 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
15991 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
15992 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
15993 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
15994 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15995 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
15996 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
15997 Likewise.
15998 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
15999 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16000 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16001 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16002 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16003 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16004 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16005 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16006 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16007 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16008 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16009 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16010 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16011 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16012 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16013 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16014 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16015 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16016 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16017 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16018 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16019 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16020 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16021 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16022 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16023 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16024 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16025 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16026 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16027 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16028 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16029 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16030 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16031 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16032 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16033 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16034 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16035 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16036 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16037 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16038
16039 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16040
16041 * include/math.h (sqrt): Declare with asm redirect.
16042 (sqrtf): Likewise.
16043 (sqrtl): Likewise.
16044 (sqrtf128): Likewise.
16045 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16046 nonlib and libnldbl with -fmath-errno.
16047 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16048 * math/w_sqrt_template.c: Likewise.
16049 * math/w_sqrtf_compat.c: Likewise.
16050 * math/w_sqrtl_compat.c: Likewise.
16051 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16052 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16053 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16054 complex.h.
16055
16056 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16057
16058 * benchtests/Makefile: Define _ISOMAC.
16059 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16060 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16061 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16062 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16063 * benchtests/bench-timing.h: Define attribute_hidden.
16064
16065 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16066
16067 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16068 mov + lsr.
16069
16070 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16071
16072 [BZ #22963]
16073 * localedata/locales/cs_CZ (mon): Rename to...
16074 (alt_mon): This.
16075 (mon): Import from CLDR (genitive case).
16076
16077 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16078
16079 [BZ #22937]
16080 * localedata/locales/el_CY (abmon): Rename to...
16081 (ab_alt_mon): This.
16082 (abmon): Import from CLDR (abbreviated genitive case).
16083 * localedata/locales/el_GR (abmon): Rename to...
16084 (ab_alt_mon): This.
16085 (abmon): Import from CLDR (abbreviated genitive case).
16086
16087 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16088
16089 [BZ #22932]
16090 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16091
16092 2018-03-15 Robert Buj <robert.buj@gmail.com>
16093
16094 [BZ #22848]
16095 * localedata/locales/ca_ES (abmon): Rename to...
16096 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16097 (mon): Rename to...
16098 (alt_mon): This.
16099 (abmon): Import from CLDR (genitive case, month names preceded by
16100 "de" or "d’").
16101 (mon): Likewise.
16102 (abday): Synchronize with CLDR.
16103 (d_t_fmt): Likewise.
16104 (d_fmt): Likewise.
16105 (am_pm): Likewise.
16106
16107 (LC_TIME): Improve indentation.
16108 (LC_TELEPHONE): Likewise.
16109 (LC_NAME): Likewise.
16110 (LC_ADDRESS): Likewise.
16111
16112 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16113
16114 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16115 (lrintf): Remove definitions used only with old GCC.
16116 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16117 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16118 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16119 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16120 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16121 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16122 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16123 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16124 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16125 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16126 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16127 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16128 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16129 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16130 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16131 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16132 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16133 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16134 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16135 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16136 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16137 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16138 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16139 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16140 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16141 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16142 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16143 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16144
16145 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16146
16147 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16148 instruction to unbreak builds with binutils 2.26 and older.
16149
16150 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16151
16152 * sysdeps/aarch64/strncmp.S (count): New macro.
16153 (strncmp): Store misaligned length in SRC1 in COUNT.
16154 (mutual_align): Adjust.
16155 (misaligned8): Load dword at a time when it is safe.
16156
16157 2018-03-12 Zack Weinberg <zackw@panix.com>
16158
16159 [BZ #1190]
16160 [BZ #19476]
16161 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16162 if the _IO_EOF_SEEN bit is already set; update commentary.
16163 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16164 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16165
16166 * support/support_openpty.c, support/tty.h: New files.
16167 * support/Makefile (libsupport-routines): Add support_openpty.
16168
16169 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16170 New test cases.
16171 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16172 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16173
16174 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16175
16176 * po/pt_BR.po: Update translations.
16177
16178 2018-03-12 David Michael <fedora.dm0@gmail.com>
16179
16180 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16181 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16182 get a port to the startup server.
16183
16184 2018-03-11 Zack Weinberg <zackw@panix.com>
16185
16186 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16187 before nldbl-compat.h.
16188
16189 2018-03-10 Zack Weinberg <zackw@panix.com>
16190
16191 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16192 math.h or math_private.h.
16193
16194 * sysdeps/alpha/fpu/s_isnan.c
16195 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16196 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16197 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16198 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16199 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16200 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16201 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16202 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16203 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16204 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16205 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16206 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16207 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16208 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16209 Include math_private.h.
16210
16211 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16212 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16213 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16214 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16215 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16216 * sysdeps/powerpc/power7/fpu/s_logb.c:
16217 Include math.h and math_private.h.
16218
16219 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16220 uses of $at in .set noat / .set at.
16221
16222 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16223
16224 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16225 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16226 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16227 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16228 Likewise.
16229
16230 2018-03-09 Florian Weimer <fweimer@redhat.com>
16231
16232 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16233 in comment.
16234
16235 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16236
16237 [BZ #22919]
16238 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16239 Add nop before __startcontext, add explaining comments.
16240
16241 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16242
16243 [BZ #22926]
16244 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16245 empty for __SPE__.
16246 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16247 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16248 Do not build hardware transactional code for __SPE__.
16249 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16250 (__lll_trylock_elision): Likewise.
16251 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16252 (__lll_unlock_elision): Likewise.
16253
16254 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16255 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16256 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16257 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16258 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16259 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16260 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16261 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16262 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16263 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16264 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16265 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16266 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16267 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16268 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16269 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16270 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16271 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16272 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16273 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16274 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16275 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16276 (__ASSUME_CLONE_BACKWARDS): Define.
16277 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16278 __clone2 if __NR_clone2 is defined.
16279 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16280 (__ASSUME_CLONE_BACKWARDS): Likewise.
16281 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16282 (__ASSUME_CLONE_BACKWARDS): Likewise.
16283 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16284 (__ASSUME_CLONE2): Likewise.
16285 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16286 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16287 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16288 variants and the define architecture can use.
16289 (__ASSUME_CLONE_DEFAULT): Define as default.
16290 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16291 (__ASSUME_CLONE_BACKWARDS): Likewise.
16292 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16293 (__ASSUME_CLONE_BACKWARDS): Likewise.
16294 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16295 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16296
16297 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16298
16299 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16300
16301 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16302 time.
16303
16304 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16305 (do_test_limit): Likewise.
16306
16307 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16308 for every implementation.
16309 (do_test): Likewise.
16310
16311 * benchtests/bench-strncmp.c: Convert output to json.
16312
16313 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16314
16315 * io/futimens.c: Add missing start-of-file descriptive comment.
16316 * io/utime.c: Likewise.
16317 * misc/futimesat.c: Likewise.
16318 * misc/utimes.c: Likewise.
16319 * sysdeps/mach/hurd/futimesat.c: Likewise.
16320 * sysdeps/mach/hurd/utimes.c: Likewise.
16321 * sysdeps/posix/utime.c: Likewise.
16322 * sysdeps/posix/utimes.c: Likewise.
16323 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16324 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16325 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16326 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16327
16328 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16329
16330 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16331 hurd_futimes.
16332 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16333 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16334 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16335 (__futimens): Move implementation to...
16336 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16337 utime_tvalue_from_tspec): ... new helper functions.
16338 (hurd_futimens): New function.
16339 * sysdeps/mach/hurd/futimesat.c: New file.
16340 * sysdeps/mach/hurd/utimensat.c: New file.
16341
16342 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16343
16344 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16345 UTIME_OMIT): New macros.
16346 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16347 before reverting to converting time spec to time value and calling
16348 __file_utimes.
16349 * sysdeps/mach/hurd/utime-helper.c: New file.
16350 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16351 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16352 reverting to utime_tvalue_from_tval and __file_utimes.
16353 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16354 (__lutimes): Just call hurd_futimens after lookup.
16355 * sysdeps/mach/hurd/utimes.c: Likewise.
16356
16357 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16358
16359 * bits/sigaction.h: Add include guard.
16360 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16361 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16362 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16363 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16364 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16365 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16366 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16367 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16368 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16369
16370 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16371
16372 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16373 -Wmaybe-uninitialized for -Os.
16374 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16375 this disabling.
16376
16377 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16378
16379 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16380 __INO_T_MATCHES_INO64_T is defined.
16381 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16382 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16383 of definition.
16384 * dirent/alphasort64.c: Likewise.
16385 * dirent/scandir.c: Likewise.
16386 * dirent/scandir64-tail.c: Likewise.
16387 * dirent/scandir64.c: Likewise.
16388 * dirent/scandirat.c: Likewise.
16389 * dirent/scandirat64.c: Likewise.
16390 * dirent/versionsort.c: Likewise.
16391 * dirent/versionsort64.c: Likewise.
16392 * include/dirent.h: Likewise.
16393
16394 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16395 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16396 for socketpair endpoint.
16397 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16398 WRITE_BUFFER_SIZE as buffer size for sending socket.
16399 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
16400 issue on system where send is implemented with sendto syscall.
16401 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
16402 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
16403 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
16404 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
16405
16406 [BZ #21269]
16407 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
16408 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
16409 sa_restorer for vDSO case.
16410 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
16411
16412 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16413
16414 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
16415 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
16416 * hurd/hurd/ioctl.h: Include <mach/port.h>
16417 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
16418 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
16419 <mach/mach_types.h> and <mach/message.h>.
16420 (headers): Move mach/param.h to bits/mach/param.h.
16421 * sysdeps/mach/i386/mach/param.h: Move file to ...
16422 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
16423 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
16424 of <mach/param.h>.
16425 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
16426 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
16427 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
16428 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
16429 trivial, for C++ conformity.
16430 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
16431 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
16432 Process mig output through $(migheadersed).
16433 * hurd/Makefile (migheadersed): Define variable.
16434 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
16435 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
16436 headers.
16437 * hurd/hurd.h: Include <bits/types/sigset_t.h>
16438 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
16439 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
16440 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
16441 <bits/types/sigset_t.h>.
16442 [!defined __USE_GNU]: Do not #error out.
16443 (struct hurd_sigstate): Use _NSIG instead of NSIG.
16444 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
16445 Include <stddef.h> and <bits/types/sigset_t.h>
16446 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
16447 instead of sighandler_t.
16448 * stdlib/errno.h (error_t): Move definition to...
16449 * bits/types/error_t.h: ... new header.
16450 * stdlib/Makefile (headers): Add bits/types/error_t.h.
16451 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
16452 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
16453 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
16454 * hurd/hurd.h: Include <bits/types/error_t.h>
16455 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
16456 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
16457 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
16458 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
16459 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
16460 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
16461 * sysdeps/mach/hurd/futimens.c: New file.
16462
16463 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
16464
16465 [BZ #22918]
16466 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
16467 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
16468 * nscd/gai.c (__nss_hosts_database): Readd definition.
16469 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16470 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16471 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16472
16473 2018-03-02 Joseph Myers <joseph@codesourcery.com>
16474
16475 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
16476 (ifunc_one): Likewise.
16477
16478 2018-03-01 DJ Delorie <dj@delorie.com>
16479
16480 [BZ #22342]
16481 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
16482 key value.
16483
16484 2018-03-01 Maciej W. Rozycki <macro@mips.com>
16485
16486 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
16487 `match_pid' parameter.
16488 (td_ta_thr_iter): Update accordingly.
16489
16490 2018-03-01 Florian Weimer <fweimer@redhat.com>
16491
16492 * nptl/Makefile (install-lib-ldscripts): Remove.
16493 (install): Remove rule.
16494 ($(inst_libdir)/libpthread.so): Likewise.
16495
16496 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16497
16498 [BZ #22896]
16499 * localedata/locales/an_ES: update month and day names,
16500 improve d_fmt, improve postal_fmt, add country_post,
16501 add country_isbn
16502
16503 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16504
16505 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
16506 Ukrainian instead of Bulgarian.
16507
16508 2018-03-01 Florian Weimer <fweimer@redhat.com>
16509
16510 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
16511 reference.
16512
16513 2018-03-01 Florian Weimer <fweimer@redhat.com>
16514
16515 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
16516 * nptl/Makefile (routines): Add pthread_atfork.
16517 (static-only-routines): Set to pthread_atfork.
16518 (libpthread-routines): Remove pthread_atfork.
16519 (libpthread-static-only-routines): Remove.
16520 (install): Update comment.
16521 (libpthread.so): Do not install libpthread_nonshared.a.
16522 (tests): Do not link with libpthread_nonshared.a.
16523 (generated): Remove libpthread_nonshared.a.
16524 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
16525 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
16526 with libpthread_nonshared.a.
16527
16528 2018-02-28 Joseph Myers <joseph@codesourcery.com>
16529
16530 [BZ #22902]
16531 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
16532 (libc_feholdexcept_setroundf128): New macro.
16533 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
16534
16535 [BZ #15105]
16536 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
16537 libc_hidden_def.
16538 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
16539 * include/inttypes.h: New file.
16540
16541 2018-02-27 Joseph Myers <joseph@codesourcery.com>
16542
16543 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
16544 -Os in two more places.
16545
16546 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16547
16548 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
16549 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
16550 be sorted correctly at the moment because of a bug.
16551
16552 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16553
16554 [BZ #22550] - es_ES locale (and other es_* locales): collation should
16555 treat ñ as a primary different character, sync the collation
16556 for Spanish with CLDR.
16557 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
16558 * localedata/Makefile: Add new test files.
16559 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
16560 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
16561 collation order.
16562 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
16563 * localedata/am_ET.UTF-8.in: New test file.
16564 * localedata/az_AZ.UTF-8.in: Likewise.
16565 * localedata/be_BY.UTF-8.in: Likewise.
16566 * localedata/ber_DZ.UTF-8.in: Likewise.
16567 * localedata/ber_MA.UTF-8.in: Likewise.
16568 * localedata/bg_BG.UTF-8.in: Likewise.
16569 * localedata/br_FR.UTF-8.in: Likewise.
16570 * localedata/cmn_TW.UTF-8.in: Likewise.
16571 * localedata/crh_UA.UTF-8.in: Likewise.
16572 * localedata/csb_PL.UTF-8.in: Likewise.
16573 * localedata/cv_RU.UTF-8.in: Likewise.
16574 * localedata/cy_GB.UTF-8.in: Likewise.
16575 * localedata/dz_BT.UTF-8.in: Likewise.
16576 * localedata/eo.UTF-8.in: Likewise.
16577 * localedata/es_ES.UTF-8.in: Likewise.
16578 * localedata/fa_IR.UTF-8.in: Likewise.
16579 * localedata/fi_FI.UTF-8.in: Likewise.
16580 * localedata/fil_PH.UTF-8.in: Likewise.
16581 * localedata/fur_IT.UTF-8.in: Likewise.
16582 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
16583 * localedata/ha_NG.UTF-8.in: Likewise.
16584 * localedata/ig_NG.UTF-8.in: Likewise.
16585 * localedata/ik_CA.UTF-8.in: Likewise.
16586 * localedata/kk_KZ.UTF-8.in: Likewise.
16587 * localedata/ku_TR.UTF-8.in: Likewise.
16588 * localedata/ky_KG.UTF-8.in: Likewise.
16589 * localedata/ln_CD.UTF-8.in: Likewise.
16590 * localedata/mi_NZ.UTF-8.in: Likewise.
16591 * localedata/ml_IN.UTF-8.in: Likewise.
16592 * localedata/mn_MN.UTF-8.in: Likewise.
16593 * localedata/mr_IN.UTF-8.in: Likewise.
16594 * localedata/mt_MT.UTF-8.in: Likewise.
16595 * localedata/nb_NO.UTF-8.in: Likewise.
16596 * localedata/om_KE.UTF-8.in: Likewise.
16597 * localedata/os_RU.UTF-8.in: Likewise.
16598 * localedata/ps_AF.UTF-8.in: Likewise.
16599 * localedata/ro_RO.UTF-8.in: Likewise.
16600 * localedata/ru_RU.UTF-8.in: Likewise.
16601 * localedata/sc_IT.UTF-8.in: Likewise.
16602 * localedata/se_NO.UTF-8.in: Likewise.
16603 * localedata/sq_AL.UTF-8.in: Likewise.
16604 * localedata/sv_SE.UTF-8.in: Likewise.
16605 * localedata/szl_PL.UTF-8.in: Likewise.
16606 * localedata/tg_TJ.UTF-8.in: Likewise.
16607 * localedata/tk_TM.UTF-8.in: Likewise.
16608 * localedata/tt_RU.UTF-8.in: Likewise.
16609 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
16610 * localedata/ug_CN.UTF-8.in: Likewise.
16611 * localedata/uz_UZ.UTF-8.in: Likewise.
16612 * localedata/vi_VN.UTF-8.in: Likewise.
16613 * localedata/yi_US.UTF-8.in: Likewise.
16614 * localedata/yo_NG.UTF-8.in: Likewise.
16615 * localedata/zh_CN.UTF-8.in: Likewise.
16616 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
16617 file and fix bugs in the collation.
16618 * localedata/locales/az_AZ: Likewise.
16619 * localedata/locales/be_BY: Likewise.
16620 * localedata/locales/ber_DZ: Likewise.
16621 * localedata/locales/ber_MA: Likewise.
16622 * localedata/locales/bg_BG: Likewise.
16623 * localedata/locales/br_FR: Likewise.
16624 * localedata/locales/br_FR@euro: Likewise.
16625 * localedata/locales/ca_ES: Likewise.
16626 * localedata/locales/cns11643_stroke: Likewise.
16627 * localedata/locales/crh_UA: Likewise.
16628 * localedata/locales/cs_CZ: Likewise.
16629 * localedata/locales/csb_PL: Likewise.
16630 * localedata/locales/cv_RU: Likewise.
16631 * localedata/locales/cy_GB: Likewise.
16632 * localedata/locales/da_DK: Likewise.
16633 * localedata/locales/dz_BT: Likewise.
16634 * localedata/locales/en_CA: Likewise.
16635 * localedata/locales/eo: Likewise.
16636 * localedata/locales/es_CU: Likewise.
16637 * localedata/locales/es_EC: Likewise.
16638 * localedata/locales/es_ES: Likewise.
16639 * localedata/locales/es_US: Likewise.
16640 * localedata/locales/et_EE: Likewise.
16641 * localedata/locales/fa_IR: Likewise.
16642 * localedata/locales/fi_FI: Likewise.
16643 * localedata/locales/fil_PH: Likewise.
16644 * localedata/locales/fur_IT: Likewise.
16645 * localedata/locales/gez_ER@abegede: Likewise.
16646 * localedata/locales/ha_NG: Likewise.
16647 * localedata/locales/hr_HR: Likewise.
16648 * localedata/locales/hsb_DE: Likewise.
16649 * localedata/locales/hu_HU: Likewise.
16650 * localedata/locales/ig_NG: Likewise.
16651 * localedata/locales/ik_CA: Likewise.
16652 * localedata/locales/is_IS: Likewise.
16653 * localedata/locales/iso14651_t1_pinyin: Likewise.
16654 * localedata/locales/kk_KZ: Likewise.
16655 * localedata/locales/ku_TR: Likewise.
16656 * localedata/locales/ky_KG: Likewise.
16657 * localedata/locales/ln_CD: Likewise.
16658 * localedata/locales/lt_LT: Likewise.
16659 * localedata/locales/lv_LV: Likewise.
16660 * localedata/locales/mi_NZ: Likewise.
16661 * localedata/locales/ml_IN: Likewise.
16662 * localedata/locales/mn_MN: Likewise.
16663 * localedata/locales/mr_IN: Likewise.
16664 * localedata/locales/mt_MT: Likewise.
16665 * localedata/locales/nb_NO: Likewise.
16666 * localedata/locales/om_KE: Likewise.
16667 * localedata/locales/os_RU: Likewise.
16668 * localedata/locales/pl_PL: Likewise.
16669 * localedata/locales/ps_AF: Likewise.
16670 * localedata/locales/ro_RO: Likewise.
16671 * localedata/locales/ru_RU: Likewise.
16672 * localedata/locales/ru_UA: Likewise.
16673 * localedata/locales/sc_IT: Likewise.
16674 * localedata/locales/se_NO: Likewise.
16675 * localedata/locales/si_LK: Likewise.
16676 * localedata/locales/sq_AL: Likewise.
16677 * localedata/locales/sv_FI: Likewise.
16678 * localedata/locales/sv_FI@euro: Likewise.
16679 * localedata/locales/sv_SE: Likewise.
16680 * localedata/locales/szl_PL: Likewise.
16681 * localedata/locales/tg_TJ: Likewise.
16682 * localedata/locales/ti_ER: Likewise.
16683 * localedata/locales/tk_TM: Likewise.
16684 * localedata/locales/tl_PH: Likewise.
16685 * localedata/locales/tr_TR: Likewise.
16686 * localedata/locales/tt_RU: Likewise.
16687 * localedata/locales/tt_RU@iqtelif: Likewise.
16688 * localedata/locales/ug_CN: Likewise.
16689 * localedata/locales/uk_UA: Likewise.
16690 * localedata/locales/uz_UZ: Likewise.
16691 * localedata/locales/uz_UZ@cyrillic: Likewise.
16692 * localedata/locales/vi_VN: Likewise.
16693 * localedata/locales/yi_US: Likewise.
16694 * localedata/locales/yo_NG: Likewise.
16695
16696 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16697
16698 * gen-locales.mk: Make test files which contain @ modifiers in their
16699 name work.
16700 * localedata/gen-locale.sh: Likewise.
16701
16702 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16703
16704 * posix/tst-fnmatch.input: Fix results for range expressions
16705 for non C locales.
16706 * posix/tst-regexloc.c: Do not use a range expression for
16707 de_DE.ISO-8859-1 locale.
16708
16709 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16710
16711 * posix/bug-regex5.c: Fix test case because with the new
16712 iso14651_t1_common file, the da_DK locale now has 6 collating elements
16713 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
16714 file.
16715
16716 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16717
16718 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
16719 downloaded from ISO, the collation order of @-. and space has changed.
16720 Therefore, this test file needed to be adapted.
16721 * localedata/fr_CA.UTF-8.in: Likewise.
16722 * localedata/fr_FR.UTF-8.in: Likewise.
16723 * localedata/uk_UA.UTF-8.in: Likewise.
16724
16725 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16726
16727 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
16728 order of ȥ in the new iso14651_t1_common file.
16729 * localedata/pl_PL.UTF-8.in: Likewise.
16730
16731 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16732
16733 * localedata/locales/iso14651_t1_common: Add sections for various
16734 scripts to the iso14651_t1_common file.
16735
16736 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16737
16738 * localedata/locales/iso14651_t1_common: Use the code point of a
16739 character in the fourth collation level instead of IGNORE for all
16740 entries which have IGNORE on all 4 levels.
16741
16742 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16743
16744 * localedata/locales/iso14651_t1_common: Add some convenient collation
16745 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
16746 rules similar to those in CLDR.
16747
16748 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16749
16750 * localedata/locales/iso14651_t1_common: The new version of this
16751 file downloaded from ISO contained several syntax errors which
16752 are fixed by this patch.
16753
16754 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16755
16756 * localedata/locales/iso14651_t1_common: replace all <U.....>
16757 with <U000.....> because glibc understands only 4 digit or 8 digit
16758
16759 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16760
16761 * localedata/locales/iso14651_t1_common: Necessary changes
16762 to make the file downloaded from ISO usable by glibc.
16763
16764 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16765
16766 [BZ #14095]
16767 * localedata/locales/iso14651_t1_common: Update file to
16768 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
16769
16770 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16771
16772 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
16773 of <nptl/pthreadP.h>
16774 (thread_attr_compare): Move function to...
16775 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
16776 * sysdeps/nptl/timer_routines.h: ... new header.
16777 * sysdeps/mach/hurd/gai_misc.h: New file.
16778
16779 2018-02-26 Joseph Myers <joseph@codesourcery.com>
16780
16781 * string/strcoll_l.c: Include <libc-diag.h>.
16782 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
16783 declarations of seq1 and seq2.
16784
16785 [BZ #15105]
16786 * stdlib/atoi.c (atoi): Use libc_hidden_def.
16787 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
16788
16789 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
16790
16791 [BZ #22433]
16792 [BZ #22807]
16793 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
16794 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
16795 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
16796 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
16797 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
16798 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
16799
16800 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16801
16802 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
16803 macros used in __ptrace_request.
16804
16805 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
16806
16807 [BZ #22792]
16808 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
16809 to $(CC).
16810 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
16811 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
16812 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
16813 <tcb-offsets.h>.
16814
16815 2018-02-23 Joseph Myers <joseph@codesourcery.com>
16816
16817 [BZ #15105]
16818 * ctype/ctype.c (tolower): Use libc_hidden_def.
16819 (toupper): Likewise.
16820 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
16821 [!_ISOMAC] (toupper): Likewise.
16822
16823 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16824
16825 * localedata/Makefile: Remove --quiet argument when
16826 installing locales
16827
16828 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16829
16830 [BZ #17438]
16831 * localedata/locales/pt_BR (LC_TIME): use / instead of -
16832 in d_fmt.
16833 * localedata/locales/pt_PT (LC_TIME): likewise
16834
16835 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16836
16837 [BZ #22646]
16838 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
16839 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
16840 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
16841
16842 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16843
16844 * sysdeps/sparc/fpu/libm-test-ulps: Update.
16845
16846 * nptl/Makefile (routines): Remove unregister-atfork.
16847 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
16848 (fork_handler_alloc): Remove function.
16849 (fork_handlers, fork_handler_init): New variables.
16850 (__fork_lock): Rename to atfork_lock.
16851 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
16852 to use a dynamic array to add/remove atfork handlers.
16853 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
16854 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
16855 Remove declaration.
16856 (fork_handler): Remove next, refcntr, and need_signal member.
16857 (__run_fork_handler_type): New enum.
16858 (__run_fork_handlers): New prototype.
16859 * nptl/register-atfork.c: Remove file.
16860 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
16861
16862 * sysdeps/nptl/nptl-signals.h: Move to ...
16863 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
16864 comments.
16865 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
16866 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
16867 unnecessary check for SIGTIMER.
16868 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
16869 remove unnecessary removal of SIGTIMER.
16870 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
16871 include-signals.h rename.
16872 * nptl/pthreadP.h: Likewise.
16873 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
16874 __is_internal_signal instead of __nptl_is_internal_signal.
16875
16876 2018-02-22 Andrew Waterman <andrew@sifive.com>
16877
16878 [BZ # 22884]
16879 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
16880 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
16881 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
16882 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
16883
16884 2018-02-22 DJ Delorie <dj@delorie.com>
16885
16886 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
16887
16888 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
16889
16890 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
16891 do_misaligned, not misaligned8.
16892
16893 2018-02-22 Steve Ellcey <sellcey@cavium.com>
16894
16895 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
16896 Add memcpy_thunderx2.
16897 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
16898 Increment to 4.
16899 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
16900 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
16901 and IS_THUNDERX2PA checks.
16902 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
16903 Use macro to set name appropriately.
16904 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
16905 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
16906 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
16907 New macro.
16908 (IS_THUNDERX2): New macro.
16909
16910 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
16911
16912 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16913
16914 2018-02-21 Zack Weinberg <zackw@panix.com>
16915
16916 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
16917 Define here, unconditionally.
16918 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
16919 * libio/libioP.h: Remove #if 0 blocks.
16920 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
16921 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
16922 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
16923
16924 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
16925 Assume weak_alias is always defined.
16926
16927 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
16928 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
16929 Remove #if 0 and #ifdef TODO blocks.
16930 Assume text_set_element is always defined.
16931
16932 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
16933 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
16934 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
16935
16936 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
16937 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
16938 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
16939 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
16940 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
16941 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
16942 Reformat bit flags for _flags field to make occupancy clearer.
16943 Update commentary.
16944 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
16945 Keep definitions consistent with those in libio/libio.h.
16946
16947 * libio/libio.h (_IO_file_flags): Remove macro.
16948 All uses changed to _flags.
16949
16950 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
16951 (__HAVE_COLUMN, _IO_BE): Don't define.
16952 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
16953 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
16954 * libio/libioP.h (EOF): Don't define.
16955 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
16956 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
16957 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
16958 testing _IO_UNIFIED_JUMPTABLES.
16959
16960 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
16961 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
16962 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
16963 (_IO_size_t): Delete; all uses changed to size_t.
16964 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
16965 (_IO_off_t): Delete; all uses changed to off_t.
16966 (_IO_off64_t): Delete; all uses changed to off64_t.
16967 (_IO_pid_t): Delete; all uses changed to pid_t.
16968 (_IO_uid_t): Delete; all uses changed to uid_t.
16969 (_IO_wint_t): Delete; all uses changed to wint_t.
16970 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
16971 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
16972 (_IO_cookie_io_functions_t): Delete; all uses changed to
16973 cookie_io_functions_t.
16974 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
16975 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
16976 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
16977 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
16978
16979 * libio/iofopncook.c: Remove unnecessary forward declarations.
16980 * libio/iolibio.h: Correct outdated commentary.
16981 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
16982 * stdio-common/fxprintf.c (__fxprintf_nocancel):
16983 Remove unnecessary casts.
16984 * stdio-common/getline.c: Use _IO_getdelim directly.
16985 Don't redefine ssize_t.
16986 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
16987 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
16988 Remove outdated comments.
16989 * stdio-common/vfscanf.c: Don't redefine va_list.
16990
16991 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
16992 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
16993 Remove preprocessor conditionals on _LIBC and __USE_GNU,
16994 which are always true, and __cplusplus, which is always false.
16995
16996 2018-02-21 Joseph Myers <joseph@codesourcery.com>
16997
16998 [BZ #15105]
16999 [BZ #19463]
17000 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17001 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17002 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17003 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17004 libc_hidden_proto.
17005 [!_ISOMAC] (putc_unlocked): Likewise.
17006 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17007 define inline if [__USE_EXTERN_INLINES].
17008 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17009 putc_unlocked.
17010
17011 [BZ #15105]
17012 [BZ #19463]
17013 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17014 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17015 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17016 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17017 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17018 getc_unlocked.
17019 * time/tzfile.c (__tzfile_read): Likewise.
17020
17021 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17022
17023 [BZ #22517]
17024 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17025
17026 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17027
17028 * io/fcntl.h: Fix a typo in a comment.
17029
17030 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17031
17032 [BZ #22862]
17033 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17034 define _DEFAULT_SOURCE.
17035 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17036
17037 2018-02-21 Florian Weimer <fweimer@redhat.com>
17038
17039 [BZ #20890]
17040 * elf/cache.c (save_cache): Call fsync on temporary file before
17041 renaming it.
17042 (save_aux_cache): Call fdatasync on temporary file before renaming
17043 it.
17044
17045 2018-02-21 Florian Weimer <fweimer@redhat.com>
17046
17047 [BZ #22787]
17048 * include/caller.h: Remove file.
17049 * elf/dl-caller.c: Likewise.
17050 * elf/Makefile (dl-routines): Remove dl-caller.
17051 (shared-only-routines): Do not add dl-caller.
17052 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17053 __check_caller.
17054 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17055 member.
17056 (dl_open_worker): Do not call __check_caller.
17057 (_dl_open): Do not set caller_dl_open member.
17058 * elf/rtld.c (_rtld_global_ro): Do not initialize
17059 _dl_check_caller member.
17060 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17061 _dl_check_caller member.
17062 (_dl_check_caller): Remove declaration.
17063 * sysdeps/unix/sysv/linux/dl-execstack.c
17064 (_dl_make_stack_executable): Do not call __check_caller.
17065
17066 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17067
17068 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17069 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17070
17071 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17072
17073 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17074 description.
17075
17076 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17077
17078 [BZ #16335]
17079 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17080 of 199606L, 200112L, and 200809L.
17081 (_XOPEN_SOURCE): Document special values of 600 and 700.
17082 (_ISOC11_SOURCE): Document macro.
17083 (_ATFILE_SOURCE): Likewise.
17084 (_FORTIFY_SOURCE): Likewise.
17085
17086 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17087
17088 [BZ #15105]
17089 [BZ #19463]
17090 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17091 and define as weak alias of __ferror_unlocked. Use
17092 libc_hidden_weak.
17093 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17094 libc_hidden_proto.
17095 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17096 function if [__USE_EXTERN_INLINES].
17097 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17098 ferror_unlocked.
17099
17100 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17101
17102 [BZ #6889]
17103 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17104
17105 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17106
17107 [BZ #22818]
17108 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17109 the GLIBC_2.1 version.
17110
17111 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17112
17113 [BZ #21508]
17114 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17115 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17116 intl/tst-gettext-de.po from po/de.po by removing the
17117 POT-Creation-Date line.
17118 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17119 ../po/de.po.
17120 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17121 ../po/de.po.
17122
17123 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17124
17125 * mach/Makefile (headers): Add mach/param.h.
17126 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17127 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17128 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17129 (__ptsname_r): Move implementation to...
17130 (__ptsname_internal): ... new function. Add filling the STP
17131 structure.
17132
17133 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17134
17135 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17136 idouble to 1 ULP.
17137
17138 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17139
17140 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17141 syntax.
17142
17143 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17144
17145 * nptl/Makefile (tst-mutex8-ENV): Delete.
17146 * nptl/tst-mutex8.c (check_type):
17147 Add runtime check if mutex will be elided.
17148
17149 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17150
17151 [BZ #20980]
17152 [BZ #21234]
17153 * manual/install.texi (Configuring and compiling): Describe
17154 passing CC and CFLAGS on configure command line, not as
17155 environment variables. Use @code markup on those variables.
17156 Specify what options go in CC and what go in CFLAGS. Note the
17157 requirement to compile with optimization.
17158 * INSTALL: Regenerated.
17159
17160 [BZ #18124]
17161 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17162 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17163 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17164 __sigprocmask instead of sigprocmask.
17165 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17166 Likewise.
17167 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17168 __sigsetjmp and sigprocmask.
17169
17170 [BZ #15105]
17171 * include/argz.h (argz_next): Use libc_hidden_proto.
17172 (__argz_next): Likewise.
17173 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17174 (argz_next): Use libc_hidden_weak.
17175
17176 [BZ #15105]
17177 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17178 libc_hidden_proto.
17179 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17180 libc_hidden_def.
17181
17182 [BZ #15105]
17183 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17184 libc_hidden_proto.
17185 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17186
17187 [BZ #15105]
17188 [BZ #19463]
17189 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17190 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17191 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17192 (__feof_unlocked): New declaration, and inline function if
17193 [__USE_EXTERN_INLINES].
17194 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17195 instead of feof_unlocked.
17196 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17197 * nss/nsswitch.c (nss_parse_file): Likewise.
17198 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17199 Likewise.
17200 * time/getdate.c (__getdate_r): Likewise.
17201 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17202 Define as macro to call __feof_unlocked.
17203
17204 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17205
17206 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17207
17208 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17209
17210 * math/Makefile: Remove mpexp.c and mplog.c
17211 * sysdeps/i386/fpu/mpexp.c: Delete file.
17212 * sysdeps/i386/fpu/mplog.c: Likewise.
17213 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17214 * sysdeps/ia64/fpu/mplog.c: Likewise.
17215 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17216 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17217 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17218 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17219 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17220 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17221 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17222 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17223 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17224 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17225 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17226 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17227 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17228 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17229 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17230 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17231
17232 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17233
17234 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17235
17236 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17237
17238 * sysdeps/sh/libm-test-ulps: Update.
17239
17240 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17241
17242 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17243 idouble to 1 ULP.
17244
17245 2018-02-12 Zack Weinberg <zackw@panix.com>
17246
17247 [BZ #19239]
17248 * posix/sys/types.h: Don't include sys/sysmacros.h.
17249 * misc/sys/sysmacros.h: Remove the conditional deprecation
17250 warnings for the macros defined by this header.
17251
17252 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17253
17254 * manual/probes.texi: Remove slowexp probes.
17255 * math/Makefile: Remove slowexp.
17256 * sysdeps/generic/math_private.h (__slowexp): Remove.
17257 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17258 document error bounds.
17259 * sysdeps/i386/fpu/slowexp.c: Remove.
17260 * sysdeps/ia64/fpu/slowexp.c: Remove.
17261 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17262 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17263 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17264 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17265 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17266 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17267 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17268 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17269 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17270 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17271 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17272
17273 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17274
17275 [BZ #13932]
17276 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17277 * benchtests/pow-inputs: Update comment for slow path cases.
17278 * manual/probes.texi (slowpow_p10): Delete removed probe.
17279 (slowpow_p10): Likewise.
17280 * math/Makefile: Remove halfulp.c and slowpow.c.
17281 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17282 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17283 (__halfulp): Remove.
17284 (__slowpow): Remove.
17285 * sysdeps/i386/fpu/halfulp.c: Delete file.
17286 * sysdeps/i386/fpu/slowpow.c: Likewise.
17287 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17288 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17289 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17290 improve comments and add error analysis.
17291 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17292 (power1): Remove function:
17293 (log1): Remove error argument, add error analysis.
17294 (my_log2): Remove function.
17295 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17296 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17297 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17298 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17299 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17300 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17301 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17302 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17303 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17304 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17305 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17306 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17307 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17308 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17309
17310 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17311
17312 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17313 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17314
17315 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17316
17317 [BZ #22433]
17318 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17319 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17320 and PTRACE_SETHBPREGS.
17321
17322 2018-02-10 Zack Weinberg <zackw@panix.com>
17323
17324 [BZ #22830]
17325 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17326 correctly.
17327 * malloc/tst-malloc-stats-cancellation.c: New test case.
17328 * malloc/Makefile: Add new test case.
17329
17330 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17331
17332 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17333
17334 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17335
17336 * math/Makefile (libm-narrow-fns): Add add.
17337 (libm-test-funcs-narrow): Likewise.
17338 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17339 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17340 * math/gen-auto-libm-tests.c (test_functions): Add add.
17341 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17342 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17343 (NARROW_ADD_TRIVIAL): Likewise.
17344 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17345 macro.
17346 (__daddl): Likewise.
17347 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17348 dadd.
17349 (CFLAGS-nldbl-dadd.c): New variable.
17350 (CFLAGS-nldbl-fadd.c): Likewise.
17351 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17352 __nldbl_daddl.
17353 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17354 prototype.
17355 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17356 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17357 * math/auto-libm-test-in: Add tests of add.
17358 * math/auto-libm-test-out-narrow-add: New generated file.
17359 * math/libm-test-narrow-add.inc: New file.
17360 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17361 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17362 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17363 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17364 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17365 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17366 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17367 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17368 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17369 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17370 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17371 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17372 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17373 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17374 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17375 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17376 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17377 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17378 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17379 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17380 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17381 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17382 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17383 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17384 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17385 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17386 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17387 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17388 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17389 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17390 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17391 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17392 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17394 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17396 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17397 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17398 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17399 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17400 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17401 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17402 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17403 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17404 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17405 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17406
17407 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
17408 (f128-pairs): New variable.
17409 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
17410 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
17411 to CFLAGS.
17412 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
17413 Also make tests add $(f128-loader-link) to gnulib-tests.
17414
17415 2018-02-09 DJ Delorie <dj@redhat.com>
17416
17417 [BZ #22827]
17418 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
17419 64-bit ELF type for 64-bit ELF objects.
17420
17421 2018-02-09 Joseph Myers <joseph@codesourcery.com>
17422
17423 * math/libm-test-driver.c (snan_tests_arg): New variable.
17424 * math/libm-test-support.h (snan_tests_arg): New declaration.
17425 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
17426
17427 * math/Makefile (test-type-pairs): New variable.
17428 (test-type-pairs-f64xf128-yes): Likewise.
17429 (tests): Add test-narrow-macros.
17430 (libm-test-funcs-narrow): New variable.
17431 (libm-test-c-narrow): Likewise.
17432 (generated): Add $(libm-test-c-narrow).
17433 (libm-tests-base-narrow): New variable.
17434 (libm-tests-narrow): Likewise.
17435 (libm-tests): Add $(libm-tests-narrow).
17436 (libm-tests-for-type): Handle $(libm-tests-narrow).
17437 (libm-test-c-narrow-obj): New variable.
17438 ($(libm-test-c-narrow-obj)): New rule.
17439 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
17440 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
17441 $(o-iterator) to set dependencies and CFLAGS.
17442 * math/gen-auto-libm-tests.c: Document use for narrowing
17443 functions.
17444 (output_for_one_input_case): Take argument NARROW.
17445 (generate_output): Likewise. Update call to
17446 output_for_one_input_case.
17447 (main): Take --narrow option. Update call to generate_output.
17448 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
17449 (apply_lit): Update call to _apply_lit.
17450 (apply_arglit): New function.
17451 (parse_args): Handle "a" arguments.
17452 (parse_auto_input): Handle format names using ":".
17453 * math/README.libm-test: Document "a" parameter type.
17454 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
17455 (ARG_TYPE_TRUE_MIN): Likewise.
17456 (ARG_TYPE_MAX): Likwise.
17457 (ARG_MIN_EXP): Likewise.
17458 (ARG_MAX_EXP): Likewise.
17459 (ARG_MANT_DIG): Likewise.
17460 (TEST_COND_arg_ibm128): Likewise.
17461 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
17462 (TEST_COND_arg_fmt): New macro.
17463 (init_max_error): Update prototype.
17464 * math/libm-test-support.c (test_ibm128): New variable.
17465 (init_max_error): Take argument testing_ibm128 and set test_ibm128
17466 instead of using [TEST_COND_ibm128] conditional.
17467 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
17468 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
17469 [TEST_NARROW] (TEST_MSG): New definition.
17470 (arg_plus_zero): New macro.
17471 (arg_minus_zero): Likewise.
17472 (arg_plus_infty): Likewise.
17473 (arg_minus_infty): Likewise.
17474 (arg_qnan_value_pl): Likewise.
17475 (arg_qnan_value): Likewise.
17476 (arg_snan_value_pl): Likewise.
17477 (arg_snan_value): Likewise.
17478 (arg_max_value): Likewise.
17479 (arg_min_value): Likewise.
17480 (arg_min_subnorm_value): Likewise.
17481 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
17482 (RUN_TEST_LOOP_aa_f): New macro.
17483 (TEST_SUFF): New macro.
17484 (TEST_SUFF_STR): Likewise.
17485 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
17486 (TEST_COND_any_ibm128): New macro.
17487 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
17488 this_func. Update call to init_max_error.
17489 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
17490 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
17491 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
17492 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
17493 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
17494 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
17495 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
17496 * math/test-math-scalar.h (TEST_NARROW): Likewise.
17497 * math/test-math-vector.h (TEST_NARROW): Likewise.
17498 * math/test-arg-double.h: New file.
17499 * math/test-arg-float128.h: Likewise.
17500 * math/test-arg-float32x.h: Likewise.
17501 * math/test-arg-float64.h: Likewise.
17502 * math/test-arg-float64x.h: Likewise.
17503 * math/test-arg-ldouble.h: Likewise.
17504 * math/test-math-narrow.h: Likewise.
17505 * math/test-narrow-macros.c: Likewise.
17506 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
17507 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
17508 test-narrow-macros-ldbl-64.
17509 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
17510
17511 * math/bits/mathcalls-narrow.h: New file.
17512 * include/bits/mathcalls-narrow.h: Likewise.
17513 * math/math-narrow.h: Likewise.
17514 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
17515 (__MATHCALL_NARROW_ARGS_2): Likewise.
17516 (__MATHCALL_NARROW_ARGS_3): Likewise.
17517 (__MATHCALL_NARROW_NORMAL): Likewise.
17518 (__MATHCALL_NARROW_REDIR): Likewise.
17519 (__MATHCALL_NARROW): Likewise.
17520 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
17521 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
17522 defined.
17523 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
17524 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
17525 (libm-narrow-fns): New variable.
17526 (libm-narrow-types-basic): Likewise.
17527 (libm-narrow-types-ldouble-yes): Likewise.
17528 (libm-narrow-types-float128-yes): Likewise.
17529 (libm-narrow-types-float128-alias-yes): Likewise.
17530 (libm-narrow-types): Likewise.
17531 (libm-routines): Add narrowing functions.
17532 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
17533 (libc_feholdexcept_setroundf128): New macro.
17534 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
17535 * sysdeps/ieee754/float128/float128_private.h: Include
17536 <math/math-narrow.h>.
17537 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
17538 Undefine and redefine.
17539 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
17540 (libm_alias_float_ldouble): Undefine and redefine.
17541 (libm_alias_double_ldouble): Likewise.
17542
17543 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
17544
17545 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
17546
17547 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
17548 FPCR/FPSR.
17549
17550 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
17551
17552 * manual/creature.texi: Convert references to gcc.info to gcc.
17553 * manual/stdio.texi: Likewise.
17554 * manual/string.texi: Likewise.
17555
17556 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17557
17558 [BZ #17979]
17559 * posix/bits/types.h (__int_least8_t): New typedef.
17560 (__uint_least8_t): Likewise.
17561 (__int_least16_t): Likewise.
17562 (__uint_least16_t): Likewise.
17563 (__int_least32_t): Likewise.
17564 (__uint_least32_t): Likewise.
17565 (__int_least64_t): Likewise.
17566 (__uint_least64_t): Likewise.
17567 * sysdeps/generic/stdint.h (int_least8_t): Define using
17568 __int_least8_t.
17569 (int_least16_t): Define using __int_least16_t.
17570 (int_least32_t): Define using __int_least32_t.
17571 (int_least64_t): Define using __int_least64_t.
17572 (uint_least8_t): Define using __uint_least8_t.
17573 (uint_least16_t): Define using __uint_least16_t.
17574 (uint_least32_t): Define using __uint_least32_t.
17575 (uint_least64_t): Define using __uint_least64_t.
17576 * wcsmbs/uchar.h: Include <bits/types.h>.
17577 (char16_t): Define using __uint_least16_t conditional only on
17578 [!__USE_ISOCXX11].
17579 (char32_t): Define using __uint_least32_t conditional only on
17580 [!__USE_ISOCXX11].
17581 * wcsmbs/test-char-types.c: New file.
17582 * wcsmbs/Makefile (tests): Add test-char-types.
17583
17584 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
17585 version to 4.0.1.
17586
17587 2018-02-07 Zack Weinberg <zackw@panix.com>
17588
17589 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
17590 Delete all contents except for definitions of _G_HAVE_MMAP and
17591 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
17592 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
17593 sysdeps/unix/sysv/linux/_G_config.h. Make same content
17594 change as above.
17595
17596 * libio/libio.h: Don't include bits/_G_config.h here.
17597 Include stddef.h with __need_wchar_t defined. Include
17598 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
17599 Define _IO_iconv_t here, directly.
17600 Don't define _IO_HAVE_ST_BLKSIZE.
17601 * libio/libioP.h: Include _G_config.h here. Move include of
17602 shlib-compat.h up with rest of includes. Simplify conditionals
17603 controlling definition of _IO_JUMPS_OFFSET.
17604
17605 * csu/init.c: Remove always-true #if around entire file.
17606 Don't include stdio.h. Set _IO_stdin_used to hardwired
17607 constant 0x20001, and update commentary.
17608 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
17609 Replace all uses of _G_va_list with __gnuc_va_list.
17610 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
17611 instead of #if _IO_HAVE_ST_BLKSIZE.
17612 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
17613 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
17614 not #ifdef.
17615
17616 * libio/bits/libio.h: Move back to libio/libio.h and adjust
17617 multiple-include guard to match.
17618 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
17619 into this file.
17620 Remove preprocessor conditionals that are always true and/or
17621 redundant to other preprocessor conditionals in the same nest.
17622 Include shlib-compat.h unconditionally.
17623 Error out if _LIBC is not defined, or if _ISOMAC is defined,
17624 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
17625 defined after including stdio.h.
17626 Use __BEGIN_DECLS/__END_DECLS.
17627
17628 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
17629 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
17630 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
17631
17632 2018-02-07 Zack Weinberg <zackw@panix.com>
17633
17634 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
17635 New single-type headers split from _G_config.h.
17636 * libio/bits/types/cookie_io_functions_t.h
17637 * libio/bits/types/struct_FILE.h
17638 New single-type headers split from libio.h.
17639
17640 * libio/Makefile: Install the above new headers. Don't install
17641 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
17642 bits/libio-ldbl.h.
17643 * libio/_G_config.h, libio/libio.h: Delete file.
17644
17645 * libio/bits/libio.h: Remove improper-inclusion guard.
17646 Include stdio.h and don't repeat anything that it does.
17647 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
17648 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
17649 __io_read_fn as cookie_read_function_t,
17650 __io_write_fn as cookie_write_function_t,
17651 __io_seek_fn as cookie_seek_function_t,
17652 __io_close_fn as cookie_close_function_t,
17653 and _IO_cookie_io_functions_t as cookie_io_functions_t.
17654 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
17655 here, in the "compatibility defines" section. Remove an #if 0
17656 block. Use the "body" macros from bits/types/struct_FILE.h to
17657 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
17658 and _IO_ferror_unlocked.
17659 Move prototypes of __uflow and __overflow...
17660
17661 * libio/stdio.h: ...here. Don't include bits/libio.h.
17662 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
17663 directly from stdarg.h. Include bits/types/__fpos_t.h,
17664 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
17665 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
17666 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
17667 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
17668 cookie_io_functions_t, not _IO_cookie_io_functions_t;
17669 __ssize_t, not _IO_ssize_t. Unconditionally define
17670 BUFSIZ as 8192 and EOF as (-1).
17671
17672 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
17673 macros from bits/types/struct_FILE.h instead of _IO_* macros
17674 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
17675 instead of _IO_ssize_t.
17676 * libio/bits/stdio2.h: Similarly.
17677
17678 * libio/iolibio.h: Add multiple-include guard.
17679 Include bits/libio.h after stdio.h.
17680 * libio/libioP.h: Add multiple-include guard.
17681 Include stdio.h and bits/libio.h before iolibio.h.
17682
17683 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
17684 * include/bits/types/cookie_io_functions_t.h
17685 * include/bits/types/struct_FILE.h: New wrappers.
17686
17687 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
17688 Get definitions of _G_fpos_t and _G_fpos64_t from
17689 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
17690 respectively. Remove improper-inclusion guards.
17691
17692 * conform/data/stdio.h-data: Update expectations of va_list.
17693 * scripts/check-installed-headers.sh: Remove special case for
17694 libio.h and _G_config.h.
17695
17696 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17697
17698 [BZ #15105]
17699 [BZ #19463]
17700 * include/sys/sysmacros.h [!_ISOMAC]
17701 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
17702 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
17703 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
17704 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
17705 libc_hidden_proto.
17706 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
17707 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
17708 Likewise.
17709 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
17710 Undefine and redefine to add use __gnu_dev_ prefix.
17711 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
17712 Likewise.
17713 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
17714 and define as hidden inline function.
17715 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
17716 Likewise.
17717 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
17718 Likewise.
17719 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
17720 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
17721 (gnu_dev_minor): Likewise.
17722 (gnu_dev_makedev): Likewise.
17723 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
17724 makedev.
17725 * posix/wordexp.c (exec_comm_child): Likewise.
17726 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
17727 instead of minor and __gnu_dev_major instead of major.
17728 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
17729 __gnu_dev_major instead of major.
17730 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
17731 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
17732 instead of gnu_dev_minor.
17733 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
17734 (SLAVE_P): Likewise.
17735 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
17736 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
17737 instead of major.
17738
17739 [BZ #21313]
17740 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
17741 in another place.
17742 * locale/weightwc.h (findidx): Likewise.
17743
17744 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
17745
17746 * manual/probes.texi (slowlog): Delete documentation of removed probe.
17747 (slowlog_inexact): Likewise
17748 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
17749 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
17750
17751 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
17752
17753 [BZ #22797]
17754 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
17755 missing second underscore to parameter name.
17756
17757 2018-02-06 Joseph Myers <joseph@codesourcery.com>
17758
17759 [BZ #14508]
17760 [BZ #15512]
17761 [BZ #17082]
17762 [BZ #20530]
17763 * bits/byteswap.h: Update file comment. Do not include
17764 <bits/byteswap-16.h>.
17765 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
17766 constant.
17767 (__bswap_16): Define as inline function.
17768 (__bswap_constant_32): Reformat definition.
17769 (__bswap_32): Always define as inline function, not macro, using
17770 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
17771 otherwise __bswap_constant_32.
17772 (__bswap_constant_64): Reformat definition. Do not use
17773 __extension__ here.
17774 (__bswap_64): Always define as inline function, not macro. Use
17775 __extension__ on function definition. Use __builtin_bswap64 if
17776 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
17777 * string/test-endian-file-scope.c: New file.
17778 * string/test-endian-sign-conversion.c: Likewise.
17779 * string/Makefile (headers): Remove bits/byteswap-16.h.
17780 (tests): Add test-endian-file-scope and
17781 test-endian-sign-conversion.
17782 (CFLAGS-test-endian-sign-conversion.c): New variable.
17783 * bits/byteswap-16.h: Remove file.
17784 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
17785 * sysdeps/ia64/bits/byteswap.h: Likewise.
17786 * sysdeps/m68k/bits/byteswap.h: Likewise.
17787 * sysdeps/s390/bits/byteswap-16.h: Likewise.
17788 * sysdeps/s390/bits/byteswap.h: Likewise.
17789 * sysdeps/tile/bits/byteswap.h: Likewise.
17790 * sysdeps/x86/bits/byteswap-16.h: Likewise.
17791 * sysdeps/x86/bits/byteswap.h: Likewise.
17792
17793 [BZ #17721]
17794 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
17795 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
17796 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
17797 199901L] (__restrict): Define to restrict.
17798
17799 [BZ #19667]
17800 * string/testcopy.c: Include <support/support.h>. Do not include
17801 <malloc.h>. Use <support/test-driver.c>.
17802 (main): Rename to do_test. Make static. Use xmalloc instead of
17803 malloc.
17804
17805 [BZ #13575]
17806 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
17807 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
17808 (SSIZE_MAX): Define to INT_MAX.
17809 * posix/test-ssize-max.c: New file.
17810 * posix/Makefile (tests): Add test-ssize-max.
17811
17812 [BZ #19668]
17813 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
17814 <support/support.h>. Do not include <malloc.h>.
17815 (query_auxv): Use xmalloc instead of malloc.
17816
17817 [BZ #14553]
17818 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
17819 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
17820 instead of loff_t.
17821
17822 2018-02-06 Florian Weimer <fweimer@redhat.com>
17823
17824 [BZ #18023]
17825 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17826 Use scratch_buffer instead of extend_alloca.
17827
17828 2018-02-06 Zack Weinberg <zackw@panix.com>
17829
17830 * libio/stdio.h: Don't define getc or putc as macros.
17831 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
17832 not _IO_getc and _IO_putc.
17833
17834 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
17835 * stdio-common/tstgetln.c: Don't redefine ssize_t.
17836
17837 2018-02-06 Joseph Myers <joseph@codesourcery.com>
17838
17839 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
17840 (TCP_FASTOPEN_NO_COOKIE): Likewise.
17841
17842 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
17843
17844 [BZ #14890]
17845 * elf/elf.h (NT_PRFPREG): New macro.
17846 (NT_S390_VXRS_LOW): Likewise.
17847 (NT_S390_VXRS_HIGH): Likewise.
17848 (NT_S390_GS_CB): Likewise.
17849 (NT_S390_GS_BC): Likewise.
17850 (NT_S390_RI_CB): Likewise.
17851
17852 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
17853 (MAP_SYNC): New macro.
17854 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
17855 Likewise.
17856 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
17857 (MAP_SYNC): Likewise.
17858 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
17859 (MAP_SYNC): Likewise.
17860 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
17861 (MAP_SYNC): Likewise.
17862 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
17863 (MAP_SYNC): Likewise.
17864 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
17865 (MAP_SYNC): Likewise.
17866 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
17867 (MAP_SYNC): Likewise.
17868 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
17869 Likewise.
17870 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
17871 Likewise.
17872
17873 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
17874 (MAP_SHARED_VALIDATE): New macro.
17875 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
17876 (MAP_SHARED_VALIDATE): Likewise.
17877
17878 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17879
17880 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
17881 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
17882 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17883
17884 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17885
17886 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
17887 (DT_NUM): Updated to 35.
17888
17889 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17890
17891 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
17892 __builtin_expect with __glibc_likely and __glibc_unlikely.
17893 (elf_machine_rela): Likewise.
17894 (elf_machine_lazy_rel): Likewise.
17895
17896 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17897
17898 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
17899 __builtin_expect with __glibc_likely and __glibc_unlikely.
17900 (elf_machine_lazy_rel): Likewise.
17901
17902 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17903
17904 [BZ #22638]
17905 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
17906 SHARED.
17907 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
17908
17909 2018-02-05 Andreas Schwab <schwab@suse.de>
17910
17911 [BZ #22761]
17912 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
17913 string.
17914
17915 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
17916
17917 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
17918 not check against PTHREAD_STACK_MIN.
17919
17920 2018-02-02 Sean McKean <smckean83@gmail.com>
17921
17922 [BZ #22735]
17923 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
17924
17925 2018-02-02 Florian Weimer <fweimer@redhat.com>
17926
17927 [BZ #22753]
17928 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
17929 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
17930 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
17931 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
17932 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
17933 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
17934 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
17935 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
17936 * manual/llio.texi (Scatter-Gather): Mention offset -1.
17937 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
17938 * misc/tst-preadvwritev2.c (do_test): Call it.
17939 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
17940
17941 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
17942
17943 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
17944
17945 * benchtests/bench-memcmp.c: Print json instead of plain text.
17946
17947 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
17948 every test run.
17949
17950 2018-02-01 Joseph Myers <joseph@codesourcery.com>
17951
17952 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
17953 version to 4.15.
17954 (s390_sthyi): New syscall.
17955
17956 * sysdeps/generic/ldbl-classify-compat.h: New file.
17957 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
17958 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
17959 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
17960 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
17961 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
17962 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
17963 * sysdeps/ieee754/dbl-64/s_finite.c: Include
17964 <ldbl-classify-compat.h>.
17965 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17966 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
17967 <ldbl-classify-compat.h>.
17968 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17969 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
17970 <ldbl-classify-compat.h>.
17971 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17972 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
17973 <ldbl-classify-compat.h>.
17974 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17975 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
17976 <ldbl-classify-compat.h>.
17977 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17978 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
17979 <ldbl-classify-compat.h>.
17980 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17981 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
17982 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
17983 * sysdeps/m68k/coldfire/math_private.h: Remove file.
17984 * sysdeps/microblaze/math_private.h: Likewise.
17985 * sysdeps/nios2/math_private.h: Likewise.
17986 * sysdeps/sh/math_private.h: Likewise.
17987
17988 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
17989 * sysdeps/m68k/coldfire/math_private.h: ... here.
17990 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
17991 * sysdeps/tile/math_private.h: Likewise.
17992 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
17993 Remove macro.
17994 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
17995 Likewise.
17996
17997 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
17998 Remove macro.
17999 (libc_fetestexcept): Likewise.
18000 (libc_feupdateenv_test): Likewise.
18001 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18002 (libc_fetestexcept): Likewise.
18003 (libc_feupdateenv_test): Likewise.
18004 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18005 (libc_fetestexcept): Likewise.
18006 (libc_feupdateenv_test): Likewise.
18007 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18008 (libc_fetestexcept): Likewise.
18009 (libc_feupdateenv_test): Likewise.
18010
18011 * sysdeps/generic/math_private.h
18012 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18013 New inline function.
18014 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18015 Likewise.
18016
18017 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18018 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18019 * sysdeps/generic/math_private.h
18020 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18021 inline function.
18022 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18023 Likewise.
18024 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18025 Likewise.
18026 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18027 Likewise.
18028 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18029 Likewise.
18030 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18031 Likewise.
18032 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18033 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18034 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18035 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18036 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18037 (__fegetenv): Likewise.
18038 (fesetenv): Likewise.
18039 (__fesetenv): Likewise.
18040 (feupdateenv): Likewise.
18041 (__feupdateenv): Likewise.
18042 (fegetround): Likewise.
18043 (__fegetround): Likewise.
18044 (fesetround): Likewise.
18045 (__fesetround): Likewise.
18046
18047 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18048 (feraiseexcept): New macro.
18049 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18050 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18051 Remove macro.
18052 (__feraiseexcept): Likewise.
18053 (feclearexcept): Likewise.
18054 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18055 (__feraiseexcept): Likewise.
18056 (feclearexcept): Likewise.
18057 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18058 (__feraiseexcept): Likewise.
18059 (feclearexcept): Likewise.
18060 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18061 (__feraiseexcept): Likewise.
18062 (feclearexcept): Likewise.
18063 (fetestexcept): Likewise.
18064
18065 * sysdeps/m68k/coldfire/math-tests.h: New file.
18066
18067 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18068 * sysdeps/m68k/bits/fenv.h: ... here.
18069 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18070 not define.
18071 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18072 Likewise.
18073 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18074 Likewise.
18075 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18076 Likewise.
18077 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18078 Likewise.
18079 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18080 Define to 0.
18081 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18082 (__FE_UNDEFINED): New enum constant.
18083 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18084 Do not define.
18085 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18086 Likewise.
18087 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18088 Likewise.
18089 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18090 to match generic bits/fenv.h.
18091 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18092 Do not define.
18093
18094 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18095 packed on bits.
18096 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18097 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18098 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18099 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18100
18101 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18102 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18103 Joseph Myers <joseph@codesourcery.com>
18104
18105 [BZ #21314]
18106 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18107 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18108 computation using c.
18109 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18110 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18111 computation using c.
18112
18113 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18114
18115 * version.h (RELEASE): Set to "development".
18116 (VERSION): Set to "2.27.9000".
18117 * NEWS (2.28): New section.
18118
18119 * version.h (RELEASE): Set to "stable".
18120 (VERSION): Set to "2.27".
18121 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18122
18123 * NEWS: Add the list of bugs fixed in 2.27.
18124
18125 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18126
18127 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18128 against PTHREAD_STACK_MIN.
18129
18130 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18131
18132 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18133 New entries.
18134 (Rafal Luzynski, Andreas Schwab): Update.
18135
18136 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18137
18138 [BZ #10871]
18139 * NEWS: List the languages which actually use the alternative
18140 months feature in this release. Also explain that "alt_mon" and
18141 "ab_alt_mon" are optional.
18142
18143 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18144
18145 [BZ #22765]
18146 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18147
18148 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18149
18150 * manual/install.texi (Tools for Compilation): Update the newest
18151 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18152 * INSTALL: Regenerated.
18153
18154 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18155
18156 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18157 instead of __builtin_expect.
18158
18159 2018-01-30 Florian Weimer <fweimer@redhat.com>
18160
18161 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18162 data.
18163 * nss/tst-nss-getpwent.c (do_test): Likewise.
18164
18165 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18166
18167 [BZ #10871]
18168 * localedata/locales/hr_HR (mon): Rename to...
18169 (alt_mon): This.
18170 (mon): Import from CLDR (genitive case).
18171 (d_t_fmt): Update the comment.
18172
18173 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18174
18175 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18176 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18177 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18178
18179 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18180
18181 * mach/Versions: Fix version when __mach_host_self_ was added.
18182 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18183 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18184 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18185 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18186 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18187 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18188 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18189 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18190 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18191 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18192 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18193 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18194 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18195 || to respect codestyle.
18196 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18197 (do_test_bz20181): Rename accordingly.
18198 * malloc/malloc.c: Include <assert.h>.
18199 (assert): Do not define.
18200 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18201 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18202 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18203 * sysdeps/mach/hurd/hp-timing.h: New file.
18204 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18205
18206 2018-01-29 Darius Rad <darius@bluespec.com>
18207
18208 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18209
18210 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18211
18212 * sysdeps/init_array/crti.S (.section .init_array): Add
18213 PREINIT_FUNCTION when defined.
18214 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18215 * config.h.in: Regenerate.
18216 * manual/platform.texi: Add RISC-V documenation for
18217 __riscv_flush_icache.
18218 * sysdeps/riscv/__longjmp.S: New file.
18219 * sysdeps/riscv/backtrace.c: Likewise.
18220 * sysdeps/riscv/bits/endian.h: Likewise.
18221 * sysdeps/riscv/bits/setjmp.h: Likewise.
18222 * sysdeps/riscv/bits/wordsize.h: Likewise.
18223 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18224 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18225 * sysdeps/riscv/dl-trampoline.S: Likewise.
18226 * sysdeps/riscv/gccframe.h: Likewise.
18227 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18228 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18229 * sysdeps/riscv/machine-gmon.h: Likewise.
18230 * sysdeps/riscv/memusage.h: Likewise.
18231 * sysdeps/riscv/setjmp.S: Likewise.
18232 * sysdeps/riscv/sys/asm.h: Likewise.
18233 * sysdeps/riscv/tls-macros.h: Likewise.
18234 * sysdeps/riscv/dl-tls.h: New file.
18235 * sysdeps/riscv/libc-tls.c: Likewise.
18236 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18237 * sysdeps/riscv/nptl/tls.h: Likewise.
18238 * sysdeps/riscv/stackinfo.h: Likewise.
18239 * sysdeps/riscv/bits/fenv.h: New file.
18240 * sysdeps/riscv/e_sqrtl.c: Likewise.
18241 * sysdeps/riscv/fpu_control.h: Likewise.
18242 * sysdeps/riscv/math-tests.h: Likewise.
18243 * sysdeps/riscv/nofpu/Implies: Likewise.
18244 * sysdeps/riscv/sfp-machine.h: Likewise.
18245 * sysdeps/riscv/tininess.h: Likewise.
18246 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18247 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18248 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18249 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18250 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18251 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18252 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18253 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18254 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18255 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18256 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18257 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18258 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18259 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18260 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18261 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18262 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18263 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18264 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18265 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18266 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18267 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18268 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18269 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18270 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18271 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18272 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18273 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18274 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18275 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18276 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18277 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18278 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18279 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18280 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18281 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18282 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18283 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18284 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18285 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18286 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18287 * sysdeps/riscv/rvf/math_private.h: Likewise.
18288 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18289 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18290 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18291 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18292 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18293 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18294 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18295 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18296 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18297 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18298 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18299 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18300 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18301 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18302 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18303 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18304 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18305 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18306 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18307 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18308 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18309 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18310 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18311 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18312 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18313 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18314 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18315 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18316 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18317 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18318 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18319 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18320 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18321 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18322 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18323 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18324 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18325 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18326 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18327 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18328 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18329 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18330 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18331 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18332 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18333 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18334 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18335 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18336 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18337 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18338 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18339 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18340 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18341 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18342 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18343 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18344 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18345 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18346 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18347 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18348 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18349 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18350 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18351 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18352 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18353 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18354 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18355 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18356 * sysdeps/riscv/Implies: New file.
18357 * sysdeps/riscv/Makefile: Likewise.
18358 * sysdeps/riscv/configure: Likewise.
18359 * sysdeps/riscv/configure.ac: Likewise.
18360 * sysdeps/riscv/nptl/Makefile: Likewise.
18361 * sysdeps/riscv/preconfigure: Likewise.
18362 * sysdeps/riscv/rv64/Implies-after: Likewise.
18363 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18364 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18365 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18366 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18367 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18368 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18369 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18370 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18371 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18372 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18373 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18374 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18375 (Config): Likewise.
18376
18377 2018-01-29 Florian Weimer <fweimer@redhat.com>
18378
18379 [BZ #22701]
18380 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18381 libnsl_hidden_proto.
18382 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18383 libnsl_hidden_proto.
18384 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18385 * nis/Makefile (libnsl-routines): Add nss-default only for
18386 build-obsolete-nsl.
18387 * nis/nis_defaults.c (__nis_default_ttl): Add
18388 libnsl_hidden_nolink_def.
18389 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18390 declaration.
18391 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18392 * nis/ypclnt.c (yp_maplist): Likewise.
18393
18394 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
18395
18396 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18397 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18398
18399 2018-01-29 Joseph Myers <joseph@codesourcery.com>
18400
18401 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
18402 clean -dxfq for git updates when replacing sources.
18403
18404 * scripts/build-many-glibcs.py (Config.build_gcc): Use
18405 --disable-libcilkrts unconditionally, not just for the final GCC
18406 build for Hurd.
18407
18408 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18409 version to 4.15.
18410
18411 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18412
18413 [BZ #10871]
18414 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
18415 case).
18416
18417 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18418
18419 [BZ #10871]
18420 * localedata/locales/be_BY (mon): Rename to...
18421 (alt_mon): This, then synchronize with CLDR (nominative case).
18422 (abmon): Rename to...
18423 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18424 (mon): Import from CLDR (genitive case).
18425 (abmon): Likewise.
18426 * localedata/locales/be_BY@latin (mon): Rename to...
18427 (alt_mon): This.
18428 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
18429
18430 * localedata/locales/be_BY@latin (lang_name): Reworded to
18431 "biełaruskaja mova".
18432
18433 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18434
18435 [BZ #10871]
18436 * localedata/locales/el_CY (mon): Renamed to...
18437 (alt_mon): This.
18438 (mon): Import from CLDR (genitive case).
18439 * localedata/locales/el_GR: Likewise.
18440
18441 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18442
18443 [BZ #10871]
18444 * localedata/locales/ru_RU (mon): Rename to...
18445 (alt_mon): This.
18446 (abmon): Rename to...
18447 (ab_alt_mon): This.
18448 (mon): Import from CLDR (genitive case).
18449 (abmon): Copy from the old content except the 5th month which is
18450 now in the genitive case, even when abbreviated.
18451 * localedata/locales/ru_UA: Likewise.
18452 * time/tst-strptime.c (day_tests): Add an actual example of
18453 a difference between %b and %Ob in Russian.
18454
18455 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18456
18457 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
18458 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
18459 a `c' variable.
18460 * resolv/res-close.c: Include <stdlib.h>.
18461 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
18462 <sys/wait.h>, <time.h>, <sys/uio.h>.
18463 (NOT_CANCEL_H): Add inclusion guard.
18464 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
18465 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
18466 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
18467 return 0.
18468 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
18469 vm_address_t * to ElfW(Addr) * for dl_main parameter.
18470 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
18471 instead of void *.
18472 * sysdeps/pthread/timer_create.c (timer_create): Do not use
18473 timer_ptr2id to cast struct timer_node * to void *.
18474 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
18475 --disable-libcilkrts to gcc configure.
18476 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
18477 and make them the default for now.
18478 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
18479 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
18480 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
18481 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
18482 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
18483 MACH_IPC_COMPAT.
18484 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
18485 __task_terminate would ever return successfully.
18486 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
18487 to global scope.
18488 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
18489 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
18490 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
18491 critical section to make code simpler and avoid warning.
18492 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
18493 critical section to make code simpler and avoid warning.
18494 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
18495 const char * instead of char *.
18496 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
18497 __hurd_file_name_split, hurd_file_name_split,
18498 __hurd_directory_name_split, hurd_directory_name_split,
18499 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
18500 hurd_file_name_path_lookup): Make lookup function parameter take a
18501 const char *name instead of char *name.
18502 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
18503 __hurd_directory_name_split): Likewise.
18504 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
18505 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
18506 * sysdeps/mach/hurd/check_native.c: New file.
18507 * sysdeps/mach/hurd/check_pf.c: New file.
18508 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
18509 (__freeifaddrs): Define macro to freeifaddrs.
18510 * sysdeps/mach/hurd/libhurduser.abilist: New file.
18511 * sysdeps/mach/libmachuser.abilist: New file.
18512 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
18513 (do_test_bz20181): Rename accordingly.
18514 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
18515 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
18516 <sys/mount.h>.
18517 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
18518 version only if __USE_EXTERN_INLINES is defined.
18519 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
18520 __hurd_sockfail): Likewise.
18521 (_hurd_fd_get): Always declare functions, and provide inline versions
18522 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
18523 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
18524 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
18525 _hurd_port_set): Always declare functions, and provide inline versions
18526 only if __USE_EXTERN_INLINES and _LIBC are defined and
18527 IS_IN(libc).
18528 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
18529 _hurd_critical_section_unlock): Likewise.
18530 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
18531 * __hurd_threadvar_location): Likewise.
18532 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
18533 _hurd_userlink_clear): Likewise.
18534 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
18535 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
18536 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
18537 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
18538 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
18539 __spin_lock_locked): Likewise.
18540 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
18541 __spin_lock_locked): Likewise.
18542 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
18543 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
18544 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
18545 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
18546 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
18547 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
18548 _POSIX_NO_TRUNC): Define to 0.
18549 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
18550 check size against PTHREAD_STACK_MIN.
18551 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
18552 IS_IN(libpthread)]: Include <sigsetops.h>.
18553 * mach/Makefile (user-interfaces): Add mach/gnumach.
18554 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
18555 * sysdeps/mach/configure (mach_interface_list): Regenerate.
18556 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
18557 instead of invalid -1.
18558 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
18559 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
18560 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
18561 <net/ppp_defs.h>.
18562
18563 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
18564
18565 * hurd/fcntl-internal.h: New file.
18566
18567 2018-01-27 James Clarke <jrtc27@jrtc27.com>
18568
18569 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18570
18571 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18572
18573 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
18574
18575 [BZ #22701]
18576 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
18577 Build only shared objects.
18578
18579 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18580
18581 * README: Update for hppa.
18582
18583 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18584
18585 * sysdeps/sparc/fpu/libm-test-ulps: Update
18586 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
18587
18588 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18589
18590 Revert:
18591
18592 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18593
18594 [BZ #22563]
18595 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18596 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18597 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18598 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18599 to feature_1.
18600
18601 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18602
18603 [BZ #22563]
18604 * bits/types/__cancel_jmp_buf_tag.h: New file.
18605 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18606 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18607 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18608 * nptl/Makefile (headers): Add
18609 bits/types/__cancel_jmp_buf_tag.h.
18610 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18611 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18612 * sysdeps/nptl/pthread.h: Include
18613 <bits/types/__cancel_jmp_buf_tag.h>.
18614 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18615 __cancel_jmp_buf.
18616 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18617
18618 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
18619
18620 [BZ #10871]
18621 * localedata/locales/uk_UA (mon): Renamed to...
18622 (alt_mon): This.
18623 (alt_digits): "0" removed and then renamed to...
18624 (mon): This.
18625 (date_fmt): Definition changed not to use the alternative
18626 digits hack.
18627
18628 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
18629
18630 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
18631 FLAG_RISCV_FLOAT_ABI_DOUBLE.
18632 * elf/elf.h (EF_RISCV_RVC): New define.
18633 (EF_RISCV_FLOAT_ABI): Likewise.
18634 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
18635 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
18636 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18637 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
18638 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
18639 define.
18640 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18641
18642 2018-01-25 Andreas Schwab <schwab@suse.de>
18643
18644 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
18645 single quotes.
18646 * sysdeps/gnu/configure: Regenerate.
18647 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
18648 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
18650 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
18651 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
18652 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
18653 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
18654 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
18655
18656 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
18657
18658 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
18659 URL, and run autoconf, make it the default for now.
18660
18661 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18662
18663 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18664 soft-float ColdFire configuration.
18665
18666 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
18667 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
18668 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
18669
18670 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
18671 MicroBlaze file.
18672
18673 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
18674 ....
18675 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
18676 ... here.
18677 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
18678 New file.
18679
18680 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
18681 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
18682 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
18683 file.
18684
18685 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18686
18687 [BZ #22742]
18688 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
18689 Rename to __reserved and add comment.
18690 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
18691 Rename to __reserved.
18692
18693 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18694
18695 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18696 i686-gnu configurations.
18697 (Context.run_builds): Include mig, gnumach and hurd in components
18698 considered.
18699 (Context.checkout): Add mig, gnumach and hurd to components.
18700 (Context.checkout_tar): Add URL mappings for mig, gnumach and
18701 hurd.
18702 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
18703 (Config.build): Install gnumach headers, build mig and install
18704 hurd headers for 'gnu' OS.
18705 (Config.install_gnumach_headers): New function.
18706 (Config.install_hurd_headers): Likewise.
18707 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
18708 when building for 'gnu' OS.
18709
18710 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
18711
18712 * manual/tunables.texi (Hardware Capability Tunables): Fix
18713 spelling.
18714
18715 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
18716
18717 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
18718 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
18719 (ALTMON_11, ALTMON_12): Improve documentation.
18720 * manual/time.texi (strftime): Likewise.
18721
18722 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18723
18724 [BZ #10871]
18725 * localedata/locales/pl_PL: Alternative month names added,
18726 primary month names are genitive now.
18727 * time/tst-strptime.c (day_tests): Actually use a genitive case
18728 of a month name in Polish language.
18729
18730 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18731
18732 [BZ #10871]
18733 * manual/locale.texi: Document ALTMON_1..12 constants for
18734 nl_langinfo. Specify when to use ALTMON instead of MON.
18735 * manual/time.texi (strftime, strptime): Document GNU extension
18736 permitting O modifier with %B and %b. Specify when to use
18737 %OB instead of %B.
18738
18739 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18740
18741 [BZ #10871]
18742 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
18743 names, define them as the same as abbreviated month names explicitly.
18744 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
18745 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
18746 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
18747 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
18748 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
18749 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
18750 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
18751 _NL_WABALTMON_12): New enum constants.
18752 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
18753 wab_alt_mon, and ab_alt_mon_defined members.
18754 (time_output): Output ab_alt_mon and wab_alt_mon members.
18755 (time_read): Read them, initialize them as copies of abmon and wabmon
18756 respectively if they are missing, initialize ab_alt_mon_defined.
18757 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
18758 * locale/programs/locfile-kw.h: Regenerate.
18759 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
18760 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
18761 and ru_RU.UTF-8.
18762 * time/strftime_l.c (a_altmonth, aam_len): New macros.
18763 [!COMPILE_WIDE] (ABALTMON_1): New macro.
18764 (__strftime_internal): Handle %Ob and %Oh formats.
18765 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
18766 (__strptime_internal): Handle %Ob and %Oh formats.
18767 * time/tst-strptime.c (day_tests): Add more tests to parse different
18768 forms of month names including the new %Ob format specifier.
18769
18770 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18771
18772 [BZ #10871]
18773 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
18774 define them as the same as primary full month names explicitly.
18775 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
18776 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
18777 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
18778 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
18779 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
18780 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
18781 _NL_WALTMON_12): New enum constants.
18782 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
18783 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
18784 macros.
18785 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
18786 walt_mon, and alt_mon_defined members.
18787 (time_output): Output alt_mon and walt_mon members.
18788 (time_read): Read them, initialize them as copies of mon and wmon
18789 respectively if they are missing, initialize alt_mon_defined.
18790 * locale/programs/locfile-kw.gperf (alt_mon): Define.
18791 * locale/programs/locfile-kw.h: Regenerate.
18792 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
18793 * localedata/tst-langinfo.c (map): Add tests for the new constants
18794 ALTMON_1 .. ALTMON_12.
18795 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
18796 and pl_PL.UTF-8.
18797 * time/strftime_l.c (f_altmonth): New macro.
18798 (__strftime_internal): Handle %OB format.
18799 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
18800 (__strptime_internal): Handle %OB format.
18801 * time/tst-strptime.c (day_tests): Add tests to parse different forms
18802 of month names including the new %OB format specifier.
18803
18804 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18805
18806 [BZ #22685]
18807 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
18808 from ABORT_TRANSACTION.
18809 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
18810 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
18811 ABORT_TRANSACTION_IMPL): Likewise.
18812 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
18813 Linux code, but remove the code that aborts transactions.
18814
18815 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18816
18817 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
18818
18819 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
18820
18821 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
18822 in date: "2004-14-09" should be "2004-09-14".
18823 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
18824 "2003-15-09" should be "2003-09-15".
18825
18826 2018-01-18 Arjun Shankar <arjun@redhat.com>
18827
18828 [BZ #22343]
18829 [BZ #22774]
18830 CVE-2018-6485
18831 CVE-2018-6551
18832 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
18833 after padding.
18834 (_int_memalign): check for integer overflow before calling
18835 _int_malloc.
18836 * malloc/tst-malloc-too-large.c: New test.
18837 * malloc/Makefile: Add tst-malloc-too-large.
18838
18839 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
18840
18841 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
18842 in date: "2017-24-07" should be "2017-07-24".
18843 * localedata/locales/mai_IN: Likewise.
18844 * localedata/locales/mai_NP: Likewise.
18845
18846 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
18847
18848 * po/ru.po: Update translations.
18849
18850 2018-01-17 Joseph Myers <joseph@codesourcery.com>
18851
18852 [BZ #22719]
18853 * sysdeps/hppa/backtrace.c: New file.
18854
18855 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
18856
18857 [BZ #22715]
18858 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
18859 align La_x86_64_retval to VEC_SIZE.
18860
18861 2018-01-16 Joseph Myers <joseph@codesourcery.com>
18862
18863 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
18864 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
18865
18866 2018-01-16 Florian Weimer <fweimer@redhat.com>
18867
18868 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
18869 Move tst-thread-exit-clobber ...
18870 [$(CXX)] (tests-unsupported): ... to here.
18871
18872 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
18873
18874 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
18875 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
18876 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
18877 (_dl_aarch64_cap_flags): Update.
18878 (_DL_HWCAP_COUNT): Update.
18879
18880 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
18881
18882 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
18883 (_DL_HWCAP_LAST): Remove.
18884 (_DL_HWCAP_COUNT): Move to ...
18885 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
18886 (_DL_HWCAP_COUNT): ... here.
18887
18888 2018-01-16 Florian Weimer <fweimer@redhat.com>
18889
18890 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
18891 mode with GNU extensions.
18892
18893 2018-01-15 Alan Hayward <alan.hayward@arm.com>
18894
18895 * elf/elf.h (NT_ARM_SVE): Define.
18896
18897 2018-01-15 Florian Weimer <fweimer@redhat.com>
18898
18899 [BZ #22636]
18900 * nptl/tst-minstack-throw.cc: New file.
18901 * nptl/Makefile (tests): Add tst-minstack-throw.
18902 (LDLIBS-tst-minstack-throw): Link with libstdc++.
18903 [!CXX] (tests-unsupported): Add tst-minstack-throw.
18904
18905 2018-01-15 Joseph Myers <joseph@codesourcery.com>
18906
18907 * scripts/build-many-glibcs.py (Context.checkout): Default
18908 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
18909 version to 1.1.0.
18910
18911 2018-01-13 Carlos O'Donell <carlos@redhat.com>
18912
18913 [BZ #22707]
18914 * elf/elf.h (DF_1_STUB): Define.
18915 (DF_1_PIE): Define.
18916
18917 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18918
18919 [BZ #22697]
18920 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
18921 Do not add 0.5 to integer or out-of-range arguments.
18922
18923 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
18924
18925 * po/bg.po: Update translations.
18926 * po/cs.po: Likewise.
18927 * po/de.po: Likewise.
18928 * po/ko.po: Likewise.
18929 * po/pl.po: Likewise.
18930 * po/sv.po: Likewise.
18931 * po/uk.po: Likewise.
18932 * po/vi.po: Likewise.
18933
18934 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18935
18936 * aarch64/start.S (_start): Use __wrap_main.
18937 (__wrap_main): New local symbol.
18938
18939 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
18940
18941 [BZ #22679]
18942 CVE-2018-1000001
18943 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
18944 generic_getcwd if the path returned by getcwd syscall is not absolute.
18945 * io/tst-getcwd-abspath.c: New test.
18946 * io/Makefile (tests): Add tst-getcwd-abspath.
18947
18948 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
18949
18950 * malloc/malloc.c (malloc_consolidate): Add size check.
18951
18952 2018-01-12 Florian Weimer <fweimer@redhat.com>
18953
18954 * support/write_message.c (write_message): Preserve errno.
18955 * support/check.c (print_failure): Likewise.
18956 * support/support_test_verify_impl.c (support_test_verify_impl):
18957 Likewise.
18958 * support/support_test_compare_failure.c
18959 (support_test_compare_failure): Likewise.
18960
18961 2018-01-12 Florian Weimer <fweimer@redhat.com>
18962
18963 [BZ #22701]
18964 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
18965 Prevent installation of libnsl.so.
18966 (libnsl-inhibit-o): Do not build (or install) static libraries.
18967
18968 2018-01-12 Egmont Koblinger <egmont@gmail.com>
18969
18970 [BZ #22657]
18971 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
18972 before the day number which may produce a double space.
18973 (date_fmt): Likewise.
18974
18975 2018-01-12 Joseph Myers <joseph@codesourcery.com>
18976
18977 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
18978 instead of fegetenv.
18979
18980 2018-01-11 Joseph Myers <joseph@codesourcery.com>
18981
18982 [BZ #22702]
18983 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
18984 comment to say exceptions are discarded.
18985 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
18986 __fegetenv.
18987 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
18988 be enabled.
18989
18990 2018-01-11 Florian Weimer <fweimer@redhat.com>
18991
18992 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
18993 and error message.
18994
18995 2018-01-11 Florian Weimer <fweimer@redhat.com>
18996
18997 [BZ #22636]
18998 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
18999 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19000
19001 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19002
19003 [BZ #22693]
19004 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19005 negative arguments in test for NaN or infinity argument.
19006
19007 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19008
19009 * po/libc.pot: Regenerate.
19010
19011 2018-01-10 Florian Weimer <fweimer@redhat.com>
19012
19013 [BZ #22636]
19014 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19015 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19016
19017 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19018
19019 * hurd/hurd/fd.h: Include <fcntl.h>
19020 (__hurd_at_flags): New function.
19021 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19022 with call to __hurd_at_flags.
19023 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19024 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19025 __faccessat
19026 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19027 (__access_noerrno): Use __faccessat_common instead of access_common.
19028 (__access): Likewise.
19029 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19030 with a call to __faccessat.
19031 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19032 (__faccessat_common): ... this. Move implementation of __access into it when
19033 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19034 reauthenticate_cwdir_at helper to implement AT mechanism.
19035 (__faccessat_noerrno): New function, just calls __faccessat_common.
19036 (__faccessat): New function, just calls __faccessat_common.
19037 (faccessat): Define weak alias.
19038
19039 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19040
19041 [BZ #22691]
19042 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19043 (CFLAGS-s_fmaxmagl.c): New variable.
19044 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19045
19046 [BZ #22690]
19047 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19048 long int for arguments of possibly overflowing addition or
19049 subtraction.
19050 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19051
19052 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19053
19054 [BZ #22688]
19055 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19056 (CFLAGS-e_remainderl.c): New variable.
19057
19058 [BZ #22687]
19059 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19060 variable.
19061 (CFLAGS-s_cacoshl.c): Likewise.
19062 (CFLAGS-s_casinhl.c): Likewise.
19063 (CFLAGS-s_catanl.c): Likewise.
19064 (CFLAGS-s_catanhl.c): Likewise.
19065 (CFLAGS-s_cexpl.c): Likewise.
19066 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19067 (CFLAGS-s_csinhl.c): Likewise.
19068 (CFLAGS-s_clogl.c): Likewise.
19069 (CFLAGS-s_clog10l.c): Likewise.
19070 (CFLAGS-s_csinl.c): Likewise.
19071 (CFLAGS-s_csqrtl.c): Likewise.
19072
19073 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19074 2017-01-09 Svante Signell <svante.signell@gmail.com>
19075
19076 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19077 (_hurd_exec_paths): New function.
19078 * hurd/hurd.h (_hurd_exec): Deprecate function.
19079 (_hurd_exec_paths): Declare function.
19080 * hurd/Versions: Export _hurd_exec_paths.
19081 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19082 (__execve): Use __getcwd to build absolute path, and use
19083 _hurd_exec_paths instead of _hurd_exec.
19084 * sysdeps/mach/hurd/spawni.c: Likewise.
19085 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19086 _hurd_exec.
19087
19088 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19089
19090 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19091 test instead of failing in case of ENOENT returned by posix_openpt.
19092
19093 2018-01-08 Florian Weimer <fweimer@redhat.com>
19094
19095 resolv: Support binary labels in test framework.
19096 * support/resolv_test.c (struct to_be_freed): Remove.
19097 (struct compressed_name): New.
19098 (allocate_compressed_name, ascii_tolower)
19099 (compare_compressed_name): New functions.
19100 (struct resolv_response_builder): Update type of
19101 compression_offsets for use with tsearch. Rempve to_be_freed.
19102 (response_push_pointer_to_free): Remove function.
19103 (resolv_response_add_name): Rewrite using struct compressed_name
19104 and tsearch instead of hsearch_r.
19105 (response_builder_allocate): Remove initialization of
19106 compression_offsets.
19107 (response_builder_free): Update for removal of to_be_freed. Use
19108 tdestroy instead of hdestroy_r.
19109 * resolv/Makefile (tests): Add tst-resolv-binary.
19110 (tst-resolv-binary): Link with -lresolv -lpthread.
19111
19112 2018-01-08 Florian Weimer <fweimer@redhat.com>
19113
19114 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19115 time. Pass positive flag instead of negative flag to
19116 support_test_compare_failure.
19117 (support_test_compare_failure): Change negative parameter to
19118 positive.
19119 * support/support_test_compare_failure.c (report)
19120 (support_test_compare_failure): Likewise.
19121 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19122 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19123
19124 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19125
19126 [BZ #22637]
19127 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19128 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19129 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19130 stacksize.
19131 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19132
19133 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19134
19135 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19136 Add s_sincosf-sse2 and s_sincosf-fma.
19137 (CFLAGS-s_sincosf-fma.c): New.
19138 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19139 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19140 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19141 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19142 __sincosf is defined.
19143
19144 2018-01-08 Florian Weimer <fweimer@redhat.com>
19145
19146 * nptl/tst-thread-exit-clobber.cc: New file.
19147 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19148 C++11 mode.
19149 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19150 (tests): Add tst-thread-exit-clobber.
19151 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19152
19153 2018-01-08 Florian Weimer <fweimer@redhat.com>
19154
19155 * support/check.h (support_static_assert): Define.
19156 (TEST_COMPARE): Use it.
19157
19158 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19159
19160 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19161 [!__RLIM_T_MATCHES_RLIM64_T]
19162 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19163 __getrlimit64. Add libc_hidden_weak.
19164
19165 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19166
19167 * elf/elf.h (R_RISCV_NONE): New define.
19168 (R_RISCV_32): Likewise.
19169 (R_RISCV_64): Likewise.
19170 (R_RISCV_RELATIVE): Likewise.
19171 (R_RISCV_COPY): Likewise.
19172 (R_RISCV_JUMP_SLOT): Likewise.
19173 (R_RISCV_TLS_DTPMOD32): Likewise.
19174 (R_RISCV_TLS_DTPMOD64): Likewise.
19175 (R_RISCV_TLS_DTPREL32): Likewise.
19176 (R_RISCV_TLS_DTPREL64): Likewise.
19177 (R_RISCV_TLS_TPREL32): Likewise.
19178 (R_RISCV_TLS_TPREL64): Likewise.
19179 * Makerules (make-link-multidir): Make directories before linking into
19180 them.
19181 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19182 define.
19183 (VDSO_HASH_LINUX_4_15): Likewise.
19184 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19185 in subdirectories of lib.
19186 * nptl/Makefile (/librt.so): Always depend on
19187 "$(shared-thread-library)".
19188
19189 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19190
19191 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19192 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19193 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19194 (___tls_get_addr).
19195 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19196 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19197 "-O2 -march=i686".
19198 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19199 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19200 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19201 * sysdeps/gnu/glob-lstat-compat.c: New file.
19202 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19203 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19204
19205 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19206
19207 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19208 Reserve 16 chars to reloc_addr before calling _itoa_word.
19209
19210 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19211
19212 [BZ #22678]
19213 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19214 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19215
19216 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19217 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19218
19219 * resource/tst-getrlimit.c: Add copyright header.
19220
19221 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19222 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19223
19224 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19225 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19226 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19227 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19228 instead.
19229 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19230 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19231 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19232 RLIM64_INFINITY): Fix values to match the kernel ones.
19233 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19234 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19235 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19236 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19237 getrlimit64@@GLIBC_2_27.
19238 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19239 and setrlimit64.
19240 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19241 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19242 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19243 setrlimit, getrlimit64 and setrlimit64.
19244
19245 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19246
19247 [BZ #22648]
19248 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19249 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19250
19251 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19252
19253 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19254 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19255 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19256
19257 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19258
19259 [BZ #15479]
19260 [BZ #22666]
19261 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19262 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19263
19264 [BZ #15479]
19265 [BZ #22665]
19266 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19267 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19268 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19269 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19270
19271 2018-01-04 Florian Weimer <fweimer@redhat.com>
19272
19273 [BZ #22667]
19274 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19275 Align the stack before calling exit.
19276 * stdlib/tst-makecontext-align.c: New file.
19277 * stdlib/Makefile (tests): Add tst-makecontext-align.
19278
19279 2018-01-04 Florian Weimer <fweimer@redhat.com>
19280
19281 Add support for calling dlvsym from libc.so.
19282 * include/dlfcn.h (__libc_dlvsym): Declare.
19283 * elf/Makefile (tests-static-internal): Add
19284 tst-libc_dlvsym-static.
19285 (tests-internal): Add tst-libc_dlvsym.
19286 (modules-names): Add tst-libc_dlvsym-dso.
19287 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19288 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19289 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19290 object tst-libc_dlvsym-dso.so needs to be built before running
19291 these tests.
19292 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19293 * elf/Versions: Export __libc_dlvsym.
19294 * elf/dl-libc.c (struct do_dlvsym_args): New.
19295 (do_dlvsym, __libc_dlvsym): New functions.
19296 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19297 (_dl_open_hook2): New variable.
19298 (__libc_register_dl_open_hook): Set it.
19299 * elf/tst-libc_dlvsym-dso.c: New file.
19300 * elf/tst-libc_dlvsym-static.c: Likewise.
19301 * elf/tst-libc_dlvsym.c: Likewise.
19302 * elf/tst-libc_dlvsym.h: Likewise.
19303
19304 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19305
19306 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19307 include <sys/mount.h>.
19308
19309 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19310
19311 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19312 Add __NO_MATH_ERRNO__ check.
19313
19314 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19315
19316 * sysdeps/mips/mips32/libm-test-ulps: Update.
19317 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19318
19319 2018-01-02 Florian Weimer <fweimer@redhat.com>
19320
19321 * misc/tst-pselect.c: Add copyright header.
19322
19323 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19324
19325 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19326 comment.
19327 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19328 comment.
19329 (settrlimit): Rename into setrlimit.
19330 (__sttrlimit): Rename into __setrlimit.
19331
19332 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19333 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19334 never defined in that case.
19335
19336 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19337
19338 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19339
19340 * sysdeps/arm/libm-test-ulps: Update.
19341
19342 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19343 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19344
19345 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19346
19347 * NEWS: Add cosf and sincosf to list of optimized functions.
19348
19349 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19350
19351 [BZ #22660]
19352 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19353 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19354 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19355 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19356
19357 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19358
19359 [BZ #22433]
19360 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19361
19362 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19363 making a copy of it.
19364
19365 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19366
19367 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19368 trailing whitespace removed.
19369 * scripts/config.guess: Update to version 2018-01-01.
19370 * scripts/config.sub: Update to version 2018-01-01.
19371 * scripts/move-if-change: Update from gnulib.
19372
19373 * NEWS: Update copyright dates.
19374 * catgets/gencat.c (print_version): Likewise.
19375 * csu/version.c (banner): Likewise.
19376 * debug/catchsegv.sh: Likewise.
19377 * debug/pcprofiledump.c (print_version): Likewise.
19378 * debug/xtrace.sh (do_version): Likewise.
19379 * elf/ldconfig.c (print_version): Likewise.
19380 * elf/ldd.bash.in: Likewise.
19381 * elf/pldd.c (print_version): Likewise.
19382 * elf/sotruss.sh: Likewise.
19383 * elf/sprof.c (print_version): Likewise.
19384 * iconv/iconv_prog.c (print_version): Likewise.
19385 * iconv/iconvconfig.c (print_version): Likewise.
19386 * locale/programs/locale.c (print_version): Likewise.
19387 * locale/programs/localedef.c (print_version): Likewise.
19388 * login/programs/pt_chown.c (print_version): Likewise.
19389 * malloc/memusage.sh (do_version): Likewise.
19390 * malloc/memusagestat.c (print_version): Likewise.
19391 * malloc/mtrace.pl: Likewise.
19392 * manual/libc.texinfo: Likewise.
19393 * nptl/version.c (banner): Likewise.
19394 * nscd/nscd.c (print_version): Likewise.
19395 * nss/getent.c (print_version): Likewise.
19396 * nss/makedb.c (print_version): Likewise.
19397 * posix/getconf.c (main): Likewise.
19398 * scripts/test-installation.pl: Likewise.
19399 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19400
19401 * All files with FSF copyright notices: Update copyright dates
19402 using scripts/update-copyrights.
19403 * locale/programs/charmap-kw.h: Regenerated.
19404 * locale/programs/locfile-kw.h: Likewise.
19405
19406 2017-12-31 Zack Weinberg <zackw@panix.com>
19407
19408 * libio/bits/libio-ldbl.h: Correct check for improper
19409 inclusion. Add own multiple include guard.
19410
19411 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
19412 Dmitry V. Levin <ldv@altlinux.org>
19413
19414 [BZ #22625]
19415 CVE-2017-16997
19416 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
19417 string token expansion. Check for NULL pointer or empty string possibly
19418 returned by expand_dynamic_string_token.
19419 (decompose_rpath): Check for empty path after dynamic string
19420 token expansion.
19421
19422 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
19423
19424 [BZ #22433]
19425 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
19426
19427 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
19428 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
19429 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
19430 and PTRACE_SYSCALL.
19431 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
19432 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19433 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19434 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19435 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19436 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19437
19438 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
19439 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19440 __ptrace_peeksiginfo_flags, ptrace): Move to ...
19441 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
19442 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19443 bits/ptrace-shared.h.
19444 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
19445 <bits/ptrace-shared.h>.
19446 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19447 __ptrace_peeksiginfo_flags, ptrace): Remove.
19448 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19449 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19450 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19451 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19452 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19453
19454 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19455
19456 [BZ #17804]
19457 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
19458 end of the loop. Improve comments.
19459
19460 2017-12-29 Zack Weinberg <zackw@panix.com>
19461
19462 [BZ #22615]
19463 * manual/errno.texi (Checking for Errors): Explicitly say that errno
19464 might be set on success.
19465
19466 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19467
19468 [BZ #22611]
19469 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
19470 is unchanged on success.
19471
19472 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
19473
19474 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
19475 updated.
19476 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
19477 expand_dynamic_string_token): Likewise.
19478 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
19479 is_path argument.
19480
19481 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
19482 contains ':'.
19483
19484 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
19485 is set and name contains ':', and all code depending on these checks.
19486
19487 2017-12-24 Zack Weinberg <zackw@panix.com>
19488
19489 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
19490 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
19491 respectively.
19492 * libio/libio.h: Rename the original version of this file to
19493 libio/bits/libio.h. Error out if not included by stdio.h or the
19494 stub libio.h.
19495 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
19496 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
19497 if not included by bits/libio.h or the stub _G_config.h.
19498 * sysdeps/unix/sysv/linux/_G_config.h: Move to
19499 sysdeps/unix/sysv/linux/bits. Error out if not included by
19500 bits/libio.h or the stub _G_config.h.
19501 * libio/stdio.h: Include bits/libio.h, not libio.h.
19502 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
19503 well as libio.h and _G_config.h.
19504
19505 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
19506 * libio/strfile.h, stdio-common/vfscanf.c
19507 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
19508 Include stdio.h, not _G_config.h nor libio.h.
19509 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
19510 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
19511
19512 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
19513
19514 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
19515
19516 [BZ #22347]
19517 * stdlib/getrandom.c (getrandom): Fix comment.
19518 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
19519
19520 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
19521
19522 [BZ #21161]
19523 * manual/arith.texi (strtoul): Fix a typo.
19524
19525 [BZ #22596]
19526 * manual/arith.texi (finite): Fix the description of the return
19527 value.
19528
19529 2017-12-22 Eric Blake <ebb9@byu.net>
19530
19531 Avoid gcc warnings on cygwin
19532 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19533 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19534 Avoid unused variable.
19535
19536 2017-12-22 Florian Weimer <fweimer@redhat.com>
19537
19538 * io/Makefile (routines): Add copy_file_range.
19539 (tests): Add tst-copy_file_range.
19540 (tests-static, tests-internal): Add tst-copy_file_range-compat.
19541 * io/Versions (GLIBC_2.27): Export copy_file_range.
19542 * io/copy_file_range-compat.c: New file.
19543 * io/copy_file_range.c: Likewise.
19544 * io/tst-copy_file_range-compat.c: Likewise.
19545 * io/tst-copy_file_range.c: Likewise.
19546 * manual/llio.texi (Copying File Data): New section.
19547 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
19548 * support/Makefile (libsupport-routines): Add support-xfstat,
19549 xftruncate, xlseek.
19550 * support/support-xfstat.c: New file.
19551 * support/xftruncate.c: Likewise.
19552 * support/xlseek.c: Likewise.
19553 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
19554 * sysdeps/unix/sysv/linux/**.abilist: Update.
19555 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
19556
19557 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
19558
19559 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19560 disable-multi-arch variant to aarch64-linux-gnu.
19561
19562 2017-12-20 Joseph Myers <joseph@codesourcery.com>
19563
19564 * manual/texinfo.tex: Update to version 2017-12-18.20 with
19565 trailing whitespace removed.
19566 * scripts/config.guess: Update to version 2017-12-17.
19567 * scripts/config.sub: Update to version 2017-11-23.
19568 * scripts/install-sh: Update to version 2017-09-23.17.
19569 * scripts/move-if-change: Update to version 2017-09-13 06:45.
19570
19571 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19572
19573 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
19574 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19575 * sysdeps/tile/_mcount.S (__mcount): Likewise.
19576 * sysdeps/tile/crti.S (_init, _fini): Likewise.
19577 * sysdeps/tile/crtn.S: Likewise.
19578 * sysdeps/tile/dl-start.S (_start): Likewise.
19579 * sysdeps/tile/dl-trampoline.S: Likewise.
19580 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
19581 * sysdeps/tile/start.S (_start): Likewise.
19582 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
19583 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
19584 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
19585 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
19586 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
19587 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
19588 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
19589
19590 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
19591 comment.
19592 * sysdeps/tile/preconfigure: Remove tilegx folder.
19593 * sysdeps/tile/tilegx/Implies: Move definitions to ...
19594 * sysdeps/tile/Implies: ... here.
19595 * sysdeps/tile/tilegx/Makefile: Move rules to ...
19596 * sysdeps/tile/Makefile: ... here.
19597 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
19598 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
19599 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
19600 * sysdeps/tile/bits/wordsize.h: ... here.
19601 * sysdeps/tile/tilegx/*: Move to ...
19602 * sysdeps/tile/*: ... here.
19603 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
19604 * sysdeps/tile/tilegx32/Implies: ... here.
19605 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
19606 * sysdeps/tile/tilegx64/Implies: ... here.
19607 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
19608 to ...
19609 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
19610 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
19611 * sysdeps/unix/sysv/linux/tile/*: ... here.
19612 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
19613 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
19614 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
19615 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
19616
19617 * README: Remove tilepro-*-linux-gnu from supported architecture.
19618 * scripts/build-many-glibcs.py: Likewise.
19619 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19620 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
19621 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
19622 elf_machine_matches_host, elf_machine_dynamic,
19623 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
19624 howto, elf_machine_rela): Likewise.
19625 * sysdeps/tile/dl-start.S (_start): Likewise.
19626 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
19627 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
19628 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
19629 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
19630 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
19631 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19632 Likewise.
19633 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
19634 * sysdeps/tile/preconfigure: Likewise.
19635 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
19636 POINTER_CHK_GUARD): Likewise.
19637 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
19638 * sysdeps/tile/start.S (_start): Likewise.
19639 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
19640 Likewise.
19641 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
19642 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
19643 CMOVNEZ): Remove.
19644 * sysdeps/unix/sysv/linux/tile/bits/environments.h
19645 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
19646 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
19647 Likewise.
19648 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
19649 * sysdeps/tile/tilepro/Implies: Remove file.
19650 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
19651 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
19652 * sysdeps/tile/tilepro/memchr.c: Likewise.
19653 * sysdeps/tile/tilepro/memcpy.S: Likewise.
19654 * sysdeps/tile/tilepro/memset.c: Likewise.
19655 * sysdeps/tile/tilepro/memusage.h: Likewise.
19656 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
19657 * sysdeps/tile/tilepro/strchr.c: Likewise.
19658 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
19659 * sysdeps/tile/tilepro/strlen.c: Likewise.
19660 * sysdeps/tile/tilepro/strrchr.c: Likewise.
19661 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
19662 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
19663 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19664 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
19665 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
19666 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
19667 Likewise.
19668 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
19669 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19670 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
19671 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
19672 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19673 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
19674 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
19675 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
19676 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
19677 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
19678 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
19679 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
19680 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
19681 tilepro mention in comment.
19682
19683 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
19684 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
19685 * nptl/pthread_join_common.c: New file: common function used on
19686 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
19687 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
19688 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
19689 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
19690 (cleanup): Move definition to pthread_join_common.c.
19691 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
19692 Remove superflous checks.
19693 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
19694 Likewise.
19695
19696 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
19697
19698 * sysdeps/aarch64/libm-test-ulps: Update.
19699
19700 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19701
19702 * sysdeps/aarch64/memset.S (MEMSET): Define.
19703
19704 2017-12-20 Florian Weimer <fweimer@redhat.com>
19705
19706 [BZ #22635]
19707 nptl: Provide full implementation of pthread_self in libc.so.
19708 * nptl/Makefile (routines): Add pthread_self.
19709 (libpthread-routines): Replace pthread_self with
19710 compat-pthread_self.
19711 * nptl/forward.c (pthread_self): Remove.
19712 * nptl/nptl-init.c (pthread_functions): Do not initialize
19713 ptr_pthread_self.
19714 * nptl/pthread_self.c (pthread_self): Remove weak alias.
19715 * nptl/compat-pthread_self.c: New file.
19716 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
19717 Remove ptr_pthread_self.
19718
19719 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
19720
19721 * posix/regcomp.c: Fix spelling in comments.
19722 * posix/regex.h: Likewise.
19723 * posix/regex_internal.c: Likewise.
19724 * posix/regexec.c: Likewise.
19725
19726 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
19727
19728 [BZ #22377]
19729 * math/Makefile [C++] (tests): Add test for iseqsig.
19730 * math/math.h [C++] (iseqsig): New implementation, which does
19731 not rely on __MATH_TG/__builtin_types_compatible_p.
19732 * math/test-math-iseqsig.cc: New file.
19733 * sysdeps/powerpc/powerpc64le/Makefile
19734 (CFLAGS-test-math-iseqsig.cc): New variable.
19735
19736 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
19737
19738 * elf/dl-load.c (is_trusted_path): Remove.
19739 (fillin_rpath): Remove check_trusted argument and its use,
19740 all callers changed.
19741
19742 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19743
19744 [BZ #22630]
19745 * Makeconfig (link-pie-before-libc): Replace -pie with
19746 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
19747 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
19748 (tst-dlopen-aout-no-pie): New.
19749 (LDFLAGS-tst-prelink): Removed.
19750 (tst-prelink-no-pie): New.
19751 (LDFLAGS-tst-main1): Removed.
19752 (tst-main1-no-pie): New.
19753 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
19754 (tst-gmon-no-pie): New.
19755
19756 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19757
19758 * manual/install.texi: Document that --enable-static-pie
19759 implies PIE.
19760 * INSTALL: Regenerated.
19761
19762 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
19763
19764 [BZ #21309]
19765 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
19766 unsigned.
19767
19768 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19769
19770 Revert:
19771
19772 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19773
19774 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19775
19776 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19777
19778 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
19779 <errno.h>. Include "eexp.tbl".
19780 (half): New constant.
19781 (one): Likewise.
19782 (__ieee754_exp): Rewrite.
19783 (__slowexp): Remove prototype.
19784 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
19785 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
19786 * sysdeps/i386/fpu/slowexp.c: Likewise.
19787 * sysdeps/ia64/fpu/slowexp.c: Likewise.
19788 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
19789 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
19790 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
19791 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
19792 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
19793 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
19794 comment.
19795 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
19796 (CPPFLAGS-slowexp.c): Remove variable.
19797 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19798 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
19799 (CFLAGS-slowexp-fma.c): Remove variable.
19800 (CFLAGS-slowexp-fma4.c): Likewise.
19801 (CFLAGS-slowexp-avx.c): Likewise.
19802 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
19803 define as macro.
19804 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
19805 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
19806 * math/Makefile (type-double-routines): Remove slowexp.
19807 * manual/probes.texi (slowexp_p6): Remove.
19808 (slowexp_p32): Likewise.
19809
19810 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19811
19812 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19813 arithmetic.
19814
19815 * lib/glob.c (glob): Do not pass NULL to mempcpy.
19816
19817 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19818
19819 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19820
19821 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19822
19823 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
19824 <errno.h>. Include "eexp.tbl".
19825 (half): New constant.
19826 (one): Likewise.
19827 (__ieee754_exp): Rewrite.
19828 (__slowexp): Remove prototype.
19829 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
19830 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
19831 * sysdeps/i386/fpu/slowexp.c: Likewise.
19832 * sysdeps/ia64/fpu/slowexp.c: Likewise.
19833 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
19834 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
19835 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
19836 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
19837 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
19838 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
19839 comment.
19840 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
19841 (CPPFLAGS-slowexp.c): Remove variable.
19842 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19843 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
19844 (CFLAGS-slowexp-fma.c): Remove variable.
19845 (CFLAGS-slowexp-fma4.c): Likewise.
19846 (CFLAGS-slowexp-avx.c): Likewise.
19847 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
19848 define as macro.
19849 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
19850 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
19851 * math/Makefile (type-double-routines): Remove slowexp.
19852 * manual/probes.texi (slowexp_p6): Remove.
19853 (slowexp_p32): Likewise.
19854
19855 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19856 James Clarke <jrtc27@jrtc27.com>
19857
19858 [BZ #22603]
19859 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
19860 addition.
19861
19862 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19863
19864 [BZ #22605]
19865 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
19866 code.
19867
19868 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19869
19870 [BZ #22563]
19871 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19872 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19873 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19874 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19875 to feature_1.
19876
19877 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19878
19879 [BZ #22563]
19880 * bits/types/__cancel_jmp_buf_tag.h: New file.
19881 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19882 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19883 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19884 * nptl/Makefile (headers): Add
19885 bits/types/__cancel_jmp_buf_tag.h.
19886 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19887 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19888 * sysdeps/nptl/pthread.h: Include
19889 <bits/types/__cancel_jmp_buf_tag.h>.
19890 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19891 __cancel_jmp_buf.
19892 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19893
19894 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
19895
19896 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19897 --enable-static-pie variants to x86_64, x32 and i686.
19898
19899 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19900
19901 [BZ #22631]
19902 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
19903 argument for attrubutes. All callers changed.
19904 (__inline_mathop1): Likewise. All callers changed.
19905 (__inline_mathop): Likewise. All callers changed.
19906 [__USE_MISC] (scalbn): Use __inline_forward instead of
19907 __inline_forward_c.
19908 [__USE_ISOC99] (scalbln): Likewise.
19909 [__USE_ISOC99] (nearbyint): Likewise.
19910 [__USE_ISOC99] (lrint): Likewise.
19911 [__USE_MISC] (scalbnf): Likewise.
19912 [__USE_ISOC99] (scalblnf): Likewise.
19913 [__USE_ISOC99] (nearbyintf): Likewise.
19914 [__USE_ISOC99] (lrintf): Likewise.
19915 [__USE_MISC] (scalbnl): Likewise.
19916 [__USE_ISOC99] (scalblnl): Likewise.
19917 [__USE_ISOC99] (nearbyintl): Likewise.
19918 [__USE_ISOC99] (lrintl): Likewise.
19919 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
19920 __inline_mathop and __m81_defun changed.
19921
19922 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
19923 CPU or FPU for ARM hard-float configurations.
19924
19925 2017-12-18 Joseph Myers <joseph@codesourcery.com>
19926
19927 * nptl/tst-attr3.c: Include <libc-diag.h>.
19928 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
19929
19930 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
19931
19932 * string/tester.c (test_strncat): Also disable -Warray-bounds
19933 warnings for two tests.
19934
19935 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
19936
19937 [BZ #22614]
19938 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
19939 $(cc-pie-default) == yes.
19940 * config.make.in (cc-pie-default): New.
19941 * configure.ac (libc_cv_pie_default): Renamed to ...
19942 (libc_cv_cc_pie_default): This.
19943 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
19944 * configure: Regenerated.
19945
19946 2017-12-18 Florian Weimer <fweimer@redhat.com>
19947
19948 [BZ #20204]
19949 ld.so: Harden dl-libc/libdl hooks.
19950 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
19951 (rtld_active): New function.
19952 * dlfcn/dladdr.c (__dladdr): Call it.
19953 * dlfcn/dladdr1.c (__dladdr1): Likewise.
19954 * dlfcn/dlclose.c (__dlcose): Likewise.
19955 * dlfcn/dlerror.c (__dlerror): Likewise.
19956 * dlfcn/dlinfo.c (__dlinfo): Likewise.
19957 * dlfcn/dlmopen.c (__dlmopen): Likewise.
19958 * dlfcn/dlopen.c (__dlopen): Likewise.
19959 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
19960 * dlfcn/dlsym.c (__dlsym): Likewise.
19961 * dlfcn/dlvsym.c (__dlvsym): Likewise.
19962 * libio/vtables.c (_IO_vtable_check): Likewise.
19963 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
19964 (__libc_dlclose): Likewise.
19965 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
19966 assignment.
19967
19968 2017-12-18 Joseph Myers <joseph@codesourcery.com>
19969
19970 [BZ #22446]
19971 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
19972 buffers for readlink input and output.
19973
19974 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
19975
19976 [BZ #22624]
19977 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
19978 inhibit_stack_protector.
19979
19980 [BZ #22624]
19981 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
19982 inhibit_stack_protector.
19983
19984 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
19985
19986 [BZ #22627]
19987 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
19988 code and invocation.
19989
19990 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
19991
19992 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
19993
19994 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
19995
19996 [BZ #22505]
19997 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
19998
19999 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20000
20001 * sysdeps/s390/fpu/libm-test-ulps: Update.
20002
20003 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20004
20005 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20006
20007 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20008
20009 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20010 constants to s_sincosf.h file.
20011 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20012 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20013 implementation.
20014 * sysdeps/ieee754/flt-32/s_sincosf.h:
20015 New file.
20016
20017 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20018
20019 [BZ #14681]
20020 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20021 before mtrace.
20022
20023 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20024
20025 [BZ #19574]
20026 * INSTALL: Regenerated.
20027 * Makeconfig (real-static-start-installed-name): New.
20028 (pic-default): Updated for --enable-static-pie.
20029 (pie-default): New for --enable-static-pie.
20030 (default-pie-ldflag): Likewise.
20031 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20032 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20033 Replace $(static-start-installed-name) with
20034 $(real-static-start-installed-name).
20035 (+prectorT): Updated for --enable-static-pie.
20036 (+postctorT): Likewise.
20037 (CFLAGS-.o): Add $(pie-default).
20038 (CFLAGS-.op): Likewise.
20039 * NEWS: Mention --enable-static-pie.
20040 * config.h.in (ENABLE_STATIC_PIE): New.
20041 * configure.ac (--enable-static-pie): New configure option.
20042 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20043 (have-static-pie): Likewise.
20044 Enable static PIE if linker supports --no-dynamic-linker.
20045 (ENABLE_STATIC_PIE): New AC_DEFINE.
20046 (enable-static-pie): New LIBC_CONFIG_VAR.
20047 * configure: Regenerated.
20048 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20049 gr$(start-installed-name) for --enable-static-pie.
20050 (extra-objs): Likewise.
20051 (install-lib): Likewise.
20052 (extra-objs): Add static-reloc.o and static-reloc.os
20053 ($(objpfx)$(start-installed-name)): Also depend on
20054 $(objpfx)static-reloc.o.
20055 ($(objpfx)r$(start-installed-name)): New.
20056 ($(objpfx)g$(start-installed-name)): Also depend on
20057 $(objpfx)static-reloc.os.
20058 ($(objpfx)gr$(start-installed-name)): New.
20059 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20060 in libc.a.
20061 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20062 initimage.
20063 * csu/static-reloc.c: New file.
20064 * elf/Makefile (routines): Add dl-reloc-static-pie.
20065 (elide-routines.os): Likewise.
20066 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20067 (tst-tls1-static-non-pie-no-pie): New.
20068 * elf/dl-reloc-static-pie.c: New file.
20069 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20070 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20071 STATIC_PIE_BOOTSTRAP.
20072 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20073 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20074 (tests-static): Likewise.
20075 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20076 (tst-gmon-static-no-pie): New.
20077 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20078 (CRT-tst-gmon-static-pie): Likewise.
20079 (tst-gmon-static-pie-ENV): Likewise.
20080 (tests-special): Likewise.
20081 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20082 (clean-tst-gmon-static-pie-data): Likewise.
20083 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20084 * gmon/tst-gmon-static-pie.c: New file.
20085 * manual/install.texi: Document --enable-static-pie.
20086 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20087 (_dl_get_dl_main_map): Likewise.
20088 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20089 * sysdeps/x86_64/configure.ac: Likewise.
20090 * sysdeps/i386/configure: Regenerated.
20091 * sysdeps/x86_64/configure: Likewise.
20092 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20093 (ASFLAGS-.op): Likewise.
20094
20095 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20096
20097 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20098 * posix/tst-mmap-offset.c (fname): Use /tmp.
20099 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20100
20101 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20102
20103 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20104
20105 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20106
20107 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20108 errno.
20109
20110 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20111
20112 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20113 --with-float=hard for arm-linux-gnueabihf configurations.
20114
20115 [BZ #14121]
20116 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20117 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20118 ($(mo-installed)): Use $(objpfx)%.mo.
20119 (realclean): Remove rule.
20120
20121 * po/Makefile (linguas): Remove rule and dependencies.
20122 (linguas.mo): Likewise.
20123 (.PHONY): Do not depend on linguas and linguas.mo.
20124 (podir): Remove variable.
20125 (pofiles): Likewise.
20126 [$(pofiles)] (%.po): Remove rule.
20127
20128 * sysdeps/sparc/sparc32/Makefile
20129 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20130 start-of-line whitespace in argument of echo.
20131 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20132 with whitespace. Generate __wrap_.udiv alias.
20133 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20134 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20135 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20136 * sysdeps/sparc/sparc32/urem.S: Likewise.
20137
20138 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20139
20140 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20141 for aligned inputs.
20142
20143 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20144
20145 * benchtests/bench-strcmp.c: Print output in JSON format.
20146
20147 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20148
20149 2017-12-14 Florian Weimer <fweimer@redhat.com>
20150
20151 [BZ #22607]
20152 CVE-2017-1000409
20153 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20154 the expanded path string.
20155
20156 2017-12-14 Florian Weimer <fweimer@redhat.com>
20157
20158 [BZ #22606]
20159 CVE-2017-1000408
20160 * elf/dl-load.c (system_dirs): Update comment.
20161 (nsystem_dirs_len): Use array_length.
20162 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20163
20164 2017-12-14 Florian Weimer <fweimer@redhat.com>
20165
20166 Simplify compiling most of support/ outside of glibc.
20167 * support/check_addrinfo.c: Include <string.h>.
20168 * support/check_dns_packet.c: Likewise.
20169 * support/check_hostent.c: Likewise.
20170 * support/support_can_chroot.c: Include <support/xunistd.h>.
20171 * support/support_format_addrinfo.c: Include <stdlib.h>
20172 * support/support_format_dns_packet.c: Include <stdbool.h>.
20173 * support/support_format_hostent.c: Include <stdlib.h>.
20174 * support/support_format_netent.c: Likewise.
20175 * support/support_write_string.c: Include <support/xunistd.h>.
20176 * support/xdlfcn.c: Include <stddef.h>.
20177
20178 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20179
20180 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20181
20182 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20183 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20184
20185 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20186 (sysdeps_routines): Add memset-niagara7.
20187 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20188 Likewise.
20189 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20190 file.
20191 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20192 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20193 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20194 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20195 Add niagara7 option.
20196 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20197 memset.
20198
20199 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20200 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20201 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20202 Likewise.
20203 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20204 New file.
20205 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20206 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20207 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20208 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20209 and __memmove_niagara7.
20210 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20211 Add niagara7 option.
20212 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20213 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20214 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20215 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20216 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20217
20218 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20219
20220 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20221 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20222 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20223 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20224
20225 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20226 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20227 _dl_sparc_cap_flags array.
20228 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20229
20230 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20231
20232 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20233 time whenever possible.
20234
20235 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20236
20237 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20238 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20239
20240 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20241
20242 * soft-fp/fmadf4.c: Move to ....
20243 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20244 * soft-fp/fmasf4.c: Move to ....
20245 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20246 * soft-fp/fmatf4.c: Move to ....
20247 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20248 * sysdeps/ieee754/soft-fp/Makefile: New file.
20249 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20250 * sysdeps/arm/preconfigure: Regenerated.
20251 * sysdeps/arm/nofpu/Implies: New file.
20252 * sysdeps/arm/s_fma.c: Remove file.
20253 * sysdeps/arm/s_fmaf.c: Likewise.
20254 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20255 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20256 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20257 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20258 * sysdeps/microblaze/s_fma.c: Remove file.
20259 * sysdeps/microblaze/s_fmaf.c: Likewise.
20260 * sysdeps/mips/mips32/nofpu/Implies: New file.
20261 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20262 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20263 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20264 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20265 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20266 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20267 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20268 implementation.
20269 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20270 * sysdeps/nios2/s_fma.c: Remove file.
20271 * sysdeps/nios2/s_fmaf.c: Likewise.
20272 * sysdeps/sh/nofpu/Implies: New file.
20273 * sysdeps/sh/s_fma.c: Remove file.
20274 * sysdeps/sh/s_fmaf.c: Likewise.
20275 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20276 * sysdeps/tile/s_fma.c: Remove file.
20277 * sysdeps/tile/s_fmaf.c: Likewise.
20278
20279 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20280
20281 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20282 Add s_cosf-sse2 and s_cosf-fma.
20283 (CFLAGS-s_cosf-fma.c): New.
20284 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20285 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20286 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20287
20288 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20289
20290 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20291
20292 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20293
20294 * libio/Makefile (tests): Add tst-bz22415.
20295 (tst-bz22415-ENV): New rule.
20296 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20297 (tests-special): Add tst-bz22415-mem.out.
20298 ($(objpfx)tst-bz22415-mem.out): New rule.
20299 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20300 in case of a successful seek operation.
20301 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20302 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20303 buffer is required.
20304 * libio/tst-bz22415.c: New test.
20305
20306 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20307
20308 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20309
20310 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20311 __IPC_64 to 0 to avoid IPC_64 being set.
20312
20313 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20314
20315 [BZ #22593]
20316 * math/bits/mathcalls.h (nextafter): Remove const.
20317 (nexttoward): Likewise.
20318
20319 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20320
20321 * configure.ac (--with-fp): Remove configure option.
20322 (with_fp_cond): New variable.
20323 (libc_cv_with_fp): New configure test. Use this variable instead
20324 of with_fp.
20325 * configure: Regenerated.
20326 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20327 * manual/install.texi (Configuring and compiling): Remove
20328 --without-fp.
20329 * INSTALL: Regenerated.
20330 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20331 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20332 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20333 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20334 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20335 use --without-fp to configure glibc.
20336
20337 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20338
20339 * manual/locale.texi (nl_langinfo): Fix a typo.
20340
20341 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20342
20343 [BZ #22588]
20344 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20345
20346 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20347
20348 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20349 (CFLAGS-argp-parse.c): Likewise.
20350 (CFLAGS-argp-fmtstream.c): Likewise.
20351 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20352 (CPPFLAGS-sha512-crypt.c): Likewise.
20353 (CPPFLAGS-md5-crypt.c): Likewise.
20354 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20355 (CFLAGS-stack_chk_fail_local.c): Likewise.
20356 (CFLAGS-backtrace.c): Likewise.
20357 (CFLAGS-sprintf_chk.c): Likewise.
20358 (CFLAGS-snprintf_chk.c): Likewise.
20359 (CFLAGS-vsprintf_chk.c): Likewise.
20360 (CFLAGS-vsnprintf_chk.c): Likewise.
20361 (CFLAGS-asprintf_chk.c): Likewise.
20362 (CFLAGS-vasprintf_chk.c): Likewise.
20363 (CFLAGS-obprintf_chk.c): Likewise.
20364 (CFLAGS-dprintf_chk.c): Likewise.
20365 (CFLAGS-vdprintf_chk.c): Likewise.
20366 (CFLAGS-printf_chk.c): Likewise.
20367 (CFLAGS-fprintf_chk.c): Likewise.
20368 (CFLAGS-vprintf_chk.c): Likewise.
20369 (CFLAGS-vfprintf_chk.c): Likewise.
20370 (CFLAGS-gets_chk.c): Likewise.
20371 (CFLAGS-fgets_chk.c): Likewise.
20372 (CFLAGS-fgets_u_chk.c): Likewise.
20373 (CFLAGS-fread_chk.c): Likewise.
20374 (CFLAGS-fread_u_chk.c): Likewise.
20375 (CFLAGS-swprintf_chk.c): Likewise.
20376 (CFLAGS-vswprintf_chk.c): Likewise.
20377 (CFLAGS-wprintf_chk.c): Likewise.
20378 (CFLAGS-fwprintf_chk.c): Likewise.
20379 (CFLAGS-vwprintf_chk.c): Likewise.
20380 (CFLAGS-vfwprintf_chk.c): Likewise.
20381 (CFLAGS-fgetws_chk.c): Likewise.
20382 (CFLAGS-fgetws_u_chk.c): Likewise.
20383 (CFLAGS-read_chk.c): Likewise.
20384 (CFLAGS-pread_chk.c): Likewise.
20385 (CFLAGS-pread64_chk.c): Likewise.
20386 (CFLAGS-recv_chk.c): Likewise.
20387 (CFLAGS-recvfrom_chk.c): Likewise.
20388 (CFLAGS-tst-longjmp_chk.c): Likewise.
20389 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20390 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20391 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20392 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20393 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20394 (CFLAGS-tst-chk1.c): Likewise.
20395 (CFLAGS-tst-chk2.c): Likewise.
20396 (CFLAGS-tst-chk3.c): Likewise.
20397 (CFLAGS-tst-chk4.cc): Likewise.
20398 (CFLAGS-tst-chk5.cc): Likewise.
20399 (CFLAGS-tst-chk6.cc): Likewise.
20400 (CFLAGS-tst-lfschk1.c): Likewise.
20401 (CFLAGS-tst-lfschk2.c): Likewise.
20402 (CFLAGS-tst-lfschk3.c): Likewise.
20403 (CFLAGS-tst-lfschk4.cc): Likewise.
20404 (CFLAGS-tst-lfschk5.cc): Likewise.
20405 (CFLAGS-tst-lfschk6.cc): Likewise.
20406 (CFLAGS-tst-ssp-1.c): Likewise.
20407 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
20408 (CFLAGS-scandir64.c): Likewise.
20409 (CFLAGS-scandir-tail.c): Likewise.
20410 (CFLAGS-scandir64-tail.c): Likewise.
20411 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
20412 (CFLAGS-dl-tunables.c): Likewise.
20413 (CFLAGS-dl-runtime.c): Likewise.
20414 (CFLAGS-dl-lookup.c): Likewise.
20415 (CFLAGS-dl-iterate-phdr.c): Likewise.
20416 (CFLAGS-vismain.c): Likewise.
20417 (CFLAGS-tst-linkall-static.c): Likewise.
20418 (CFLAGS-tst-linkall-static.c): Likewise.
20419 (CPPFLAGS-dl-load.c): Likewise.
20420 (CFLAGS-ldconfig.c): Likewise.
20421 (CFLAGS-dl-cache.c): Likewise.
20422 (CFLAGS-cache.c): Likewise.
20423 (CFLAGS-rtld.c): Likewise.
20424 (CFLAGS-multiload.c): Likewise.
20425 (CFLAGS-filtmod1.c): Likewise.
20426 (CFLAGS-tst-align.c): Likewise.
20427 (CFLAGS-tst-align2.c): Likewise.
20428 (CFLAGS-tst-alignmod.c): Likewise.
20429 (CFLAGS-tst-alignmod2.c): Likewise.
20430 (CPPFLAGS-tst-execstack.c): Likewise.
20431 (CFLAGS-tst-ptrguard1-static.c): Likewise.
20432 (CFLAGS-tst-latepthreadmod.c): Likewise.
20433 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
20434 (CFLAGS-getgrnam_r.c): Likewise.
20435 (CFLAGS-getgrent_r.c): Likewise.
20436 (CFLAGS-getgrent.c): Likewise.
20437 (CFLAGS-fgetgrent.c): Likewise.
20438 (CFLAGS-fgetgrent_r.c): Likewise.
20439 (CFLAGS-putgrent.c): Likewise.
20440 (CFLAGS-initgroups.c): Likewise.
20441 (CFLAGS-getgrgid.c): Likewise.
20442 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
20443 (CFLAGS-getsgent.c): Likewise.
20444 (CFLAGS-fgetsgent.c): Likewise.
20445 (CFLAGS-fgetsgent_r.c): Likewise.
20446 (CFLAGS-putsgent.c): Likewise.
20447 (CFLAGS-getsgnam.c): Likewise.
20448 (CFLAGS-getsgnam_r.c): Likewise.
20449 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
20450 (CFLAGS-iconv_charmap.c): Likewise.
20451 (CFLAGS-dummy-repertoire.c): Likewise.
20452 (CFLAGS-charmap.c): Likewise.
20453 (CFLAGS-linereader.c): Likewise.
20454 (CFLAGS-simple-hash.c): Likewise.
20455 (CFLAGS-gconv_conf.c): Likewise.
20456 (CFLAGS-iconvconfig.c): Likewise.
20457 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20458 (CFLAGS-gethstbyad.c): Likewise.
20459 (CFLAGS-gethstbynm_r.c): Likewise.
20460 (CFLAGS-gethstbynm.c): Likewise.
20461 (CFLAGS-gethstbynm2_r.c): Likewise.
20462 (CFLAGS-gethstbynm2.c): Likewise.
20463 (CFLAGS-gethstent_r.c): Likewise.
20464 (CFLAGS-gethstent.c): Likewise.
20465 (CFLAGS-rcmd.c): Likewise.
20466 (CFLAGS-getnetbynm_r.c): Likewise.
20467 (CFLAGS-getnetbynm.c): Likewise.
20468 (CFLAGS-getnetbyad_r.c): Likewise.
20469 (CFLAGS-getnetbyad.c): Likewise.
20470 (CFLAGS-getnetent_r.c): Likewise.
20471 (CFLAGS-getnetent.c): Likewise.
20472 (CFLAGS-getaliasent_r.c): Likewise.
20473 (CFLAGS-getaliasent.c): Likewise.
20474 (CFLAGS-getrpcent_r.c): Likewise.
20475 (CFLAGS-getrpcent.c): Likewise.
20476 (CFLAGS-getservent_r.c): Likewise.
20477 (CFLAGS-getservent.c): Likewise.
20478 (CFLAGS-getprtent_r.c): Likewise.
20479 (CFLAGS-getprtent.c): Likewise.
20480 (CFLAGS-either_ntoh.c): Likewise.
20481 (CFLAGS-either_hton.c): Likewise.
20482 (CFLAGS-getnetgrent.c): Likewise.
20483 (CFLAGS-getnetgrent_r.c): Likewise.
20484 (CFLAGS-tst-checks-posix.c): Likewise.
20485 (CFLAGS-tst-sockaddr.c): Likewise.
20486 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
20487 (CFLAGS-tst-translit.c): Likewise.
20488 (CFLAGS-tst-gettext2.c): Likewise.
20489 (CFLAGS-tst-codeset.c): Likewise.
20490 (CFLAGS-tst-gettext3.c): Likewise.
20491 (CFLAGS-tst-gettext4.c): Likewise.
20492 (CFLAGS-tst-gettext5.c): Likewise.
20493 (CFLAGS-tst-gettext6.c): Likewise.
20494 * io/Makefile (CFLAGS-open.c): Likewise.
20495 (CFLAGS-open64.c): Likewise.
20496 (CFLAGS-creat.c): Likewise.
20497 (CFLAGS-creat64.c): Likewise.
20498 (CFLAGS-fcntl.c): Likewise.
20499 (CFLAGS-poll.c): Likewise.
20500 (CFLAGS-ppoll.c): Likewise.
20501 (CFLAGS-lockf.c): Likewise.
20502 (CFLAGS-statfs.c): Likewise.
20503 (CFLAGS-fstatfs.c): Likewise.
20504 (CFLAGS-statvfs.c): Likewise.
20505 (CFLAGS-fstatvfs.c): Likewise.
20506 (CFLAGS-fts.c): Likewise.
20507 (CFLAGS-fts64.c): Likewise.
20508 (CFLAGS-ftw.c): Likewise.
20509 (CFLAGS-ftw64.c): Likewise.
20510 (CFLAGS-lockf.c): Likewise.
20511 (CFLAGS-posix_fallocate.c): Likewise.
20512 (CFLAGS-posix_fallocate64.c): Likewise.
20513 (CFLAGS-fallocate.c): Likewise.
20514 (CFLAGS-fallocate64.c): Likewise.
20515 (CFLAGS-read.c): Likewise.
20516 (CFLAGS-write.c): Likewise.
20517 (CFLAGS-test-stat.c): Likewise.
20518 (CFLAGS-test-lfs.c): Likewise.
20519 * libio/Makefile (CFLAGS-fileops.c): Likewise.
20520 (CFLAGS-fputc.c): Likewise.
20521 (CFLAGS-fputwc.c): Likewise.
20522 (CFLAGS-freopen64.c): Likewise.
20523 (CFLAGS-freopen.c): Likewise.
20524 (CFLAGS-fseek.c): Likewise.
20525 (CFLAGS-fseeko64.c): Likewise.
20526 (CFLAGS-fseeko.c): Likewise.
20527 (CFLAGS-ftello64.c): Likewise.
20528 (CFLAGS-ftello.c): Likewise.
20529 (CFLAGS-fwide.c): Likewise.
20530 (CFLAGS-genops.c): Likewise.
20531 (CFLAGS-getc.c): Likewise.
20532 (CFLAGS-getchar.c): Likewise.
20533 (CFLAGS-getwc.c): Likewise.
20534 (CFLAGS-getwchar.c): Likewise.
20535 (CFLAGS-iofclose.c): Likewise.
20536 (CFLAGS-iofflush.c): Likewise.
20537 (CFLAGS-iofgetpos64.c): Likewise.
20538 (CFLAGS-iofgetpos.c): Likewise.
20539 (CFLAGS-iofgets.c): Likewise.
20540 (CFLAGS-iofgetws.c): Likewise.
20541 (CFLAGS-iofputs.c): Likewise.
20542 (CFLAGS-iofputws.c): Likewise.
20543 (CFLAGS-iofread.c): Likewise.
20544 (CFLAGS-iofsetpos64.c): Likewise.
20545 (CFLAGS-iofsetpos.c): Likewise.
20546 (CFLAGS-ioftell.c): Likewise.
20547 (CFLAGS-iofwrite.c): Likewise.
20548 (CFLAGS-iogetdelim.c): Likewise.
20549 (CFLAGS-iogetline.c): Likewise.
20550 (CFLAGS-iogets.c): Likewise.
20551 (CFLAGS-iogetwline.c): Likewise.
20552 (CFLAGS-ioputs.c): Likewise.
20553 (CFLAGS-ioseekoff.c): Likewise.
20554 (CFLAGS-ioseekpos.c): Likewise.
20555 (CFLAGS-iosetbuffer.c): Likewise.
20556 (CFLAGS-iosetvbuf.c): Likewise.
20557 (CFLAGS-ioungetc.c): Likewise.
20558 (CFLAGS-ioungetwc.c): Likewise.
20559 (CFLAGS-oldfileops.c): Likewise.
20560 (CFLAGS-oldiofclose.c): Likewise.
20561 (CFLAGS-oldiofgetpos64.c): Likewise.
20562 (CFLAGS-oldiofgetpos.c): Likewise.
20563 (CFLAGS-oldiofsetpos64.c): Likewise.
20564 (CFLAGS-oldiofsetpos.c): Likewise.
20565 (CFLAGS-peekc.c): Likewise.
20566 (CFLAGS-putc.c): Likewise.
20567 (CFLAGS-putchar.c): Likewise.
20568 (CFLAGS-putwc.c): Likewise.
20569 (CFLAGS-putwchar.c): Likewise.
20570 (CFLAGS-rewind.c): Likewise.
20571 (CFLAGS-wfileops.c): Likewise.
20572 (CFLAGS-wgenops.c): Likewise.
20573 (CFLAGS-oldiofopen.c): Likewise.
20574 (CFLAGS-iofopen.c): Likewise.
20575 (CFLAGS-iofopen64.c): Likewise.
20576 (CFLAGS-oldtmpfile.c): Likewise.
20577 (CFLAGS-tst_putwc.c): Likewise.
20578 * locale/Makefile (CFLAGS-md5.c): Likewise.
20579 (CFLAGS-charmap.c): Likewise.
20580 (CFLAGS-locfile.c): Likewise.
20581 (CFLAGS-charmap-dir.c): Likewise.
20582 * login/Makefile (CFLAGS-grantpt.c): Likewise.
20583 (CFLAGS-getpt.c): Likewise.
20584 (CFLAGS-pt_chown.c): Likewise.
20585 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
20586 (CFLAGS-obstack.c): Likewise.
20587 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
20588 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
20589 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
20590 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
20591 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
20592 (CFLAGS-test-tgmath.c): Likewise.
20593 (CFLAGS-test-tgmath2.c): Likewise.
20594 (CFLAGS-test-tgmath-ret.c): Likewise.
20595 (CFLAGS-test-powl.c): Likewise.
20596 (CFLAGS-test-snan.c): Likewise.
20597 (CFLAGS-test-signgam-finite.c): Likewise.
20598 (CFLAGS-test-signgam-finite-c99.c): Likewise.
20599 (CFLAGS-test-signgam-finite-c11.c): Likewise.
20600 (CFLAGS-test-signgam-uchar.c): Likewise.
20601 (CFLAGS-test-signgam-uchar-init.c): Likewise.
20602 (CFLAGS-test-signgam-uchar-static.c): Likewise.
20603 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20604 (CFLAGS-test-signgam-uint.c): Likewise.
20605 (CFLAGS-test-signgam-uint-init.c): Likewise.
20606 (CFLAGS-test-signgam-uint-static.c): Likewise.
20607 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20608 (CFLAGS-test-signgam-ullong.c): Likewise.
20609 (CFLAGS-test-signgam-ullong-init.c): Likewise.
20610 (CFLAGS-test-signgam-ullong-static.c): Likewise.
20611 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20612 (CFLAGS-test-math-cxx11.cc): Likewise.
20613 (CFLAGS-test-math-isinff.cc): Likewise.
20614 (CFLAGS-test-math-iszero.cc): Likewise.
20615 (CFLAGS-test-math-issignaling.cc): Likewise.
20616 (CFLAGS-test-math-iscanonical.cc): Likewise.
20617 (CFLAGS-test-iszero-excess-precision.c): Likewise.
20618 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
20619 (CFLAGS-test-flt-eval-method.c): Likewise.
20620 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
20621 (CFLAGS-test-finite-macros.c): Likewise.
20622 * misc/Makefile (CFLAGS-select.c): Likewise.
20623 (CFLAGS-tsearch.c): Likewise.
20624 (CFLAGS-lsearch.c): Likewise.
20625 (CFLAGS-pselect.c): Likewise.
20626 (CFLAGS-readv.c): Likewise.
20627 (CFLAGS-writev.c): Likewise.
20628 (CFLAGS-preadv.c): Likewise.
20629 (CFLAGS-preadv64.c): Likewise.
20630 (CFLAGS-pwritev.c): Likewise.
20631 (CFLAGS-pwritev64.c): Likewise.
20632 (CFLAGS-preadv2.c): Likewise.
20633 (CFLAGS-preadv64v2.c): Likewise.
20634 (CFLAGS-pwritev2.c): Likewise.
20635 (CFLAGS-pwritev64v2.c): Likewise.
20636 (CFLAGS-usleep.c): Likewise.
20637 (CFLAGS-syslog.c): Likewise.
20638 (CFLAGS-error.c): Likewise.
20639 (CFLAGS-getpass.c): Likewise.
20640 (CFLAGS-mkstemp.c): Likewise.
20641 (CFLAGS-mkstemp64.c): Likewise.
20642 (CFLAGS-getsysstats.c): Likewise.
20643 (CFLAGS-getusershell.c): Likewise.
20644 (CFLAGS-err.c): Likewise.
20645 (CFLAGS-tst-tsearch.c): Likewise.
20646 (CFLAGS-msync.c): Likewise.
20647 (CFLAGS-fdatasync.c): Likewise.
20648 (CFLAGS-fsync.c): Likewise.
20649 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
20650 (CFLAGS-unwind.c): Likewise.
20651 (CFLAGS-unwind-forcedunwind.c): Likewise.
20652 (CFLAGS-pthread_cancel.c): Likewise.
20653 (CFLAGS-pthread_setcancelstate.c): Likewise.
20654 (CFLAGS-pthread_setcanceltype.c): Likewise.
20655 (CFLAGS-cancellation.c): Likewise.
20656 (CFLAGS-libc-cancellation.c): Likewise.
20657 (CFLAGS-pthread_exit.c): Likewise.
20658 (CFLAGS-forward.c): Likewise.
20659 (CFLAGS-pthread_testcancel.c): Likewise.
20660 (CFLAGS-pthread_join.c): Likewise.
20661 (CFLAGS-pthread_timedjoin.c): Likewise.
20662 (CFLAGS-pthread_once.c): Likewise.
20663 (CFLAGS-pthread_cond_wait.c): Likewise.
20664 (CFLAGS-sem_wait.c): Likewise.
20665 (CFLAGS-sem_timedwait.c): Likewise.
20666 (CFLAGS-fcntl.c): Likewise.
20667 (CFLAGS-lockf.c): Likewise.
20668 (CFLAGS-pread.c): Likewise.
20669 (CFLAGS-pread64.c): Likewise.
20670 (CFLAGS-pwrite.c): Likewise.
20671 (CFLAGS-pwrite64.c): Likewise.
20672 (CFLAGS-wait.c): Likewise.
20673 (CFLAGS-waitpid.c): Likewise.
20674 (CFLAGS-sigwait.c): Likewise.
20675 (CFLAGS-msgrcv.c): Likewise.
20676 (CFLAGS-msgsnd.c): Likewise.
20677 (CFLAGS-tcdrain.c): Likewise.
20678 (CFLAGS-open.c): Likewise.
20679 (CFLAGS-open64.c): Likewise.
20680 (CFLAGS-pause.c): Likewise.
20681 (CFLAGS-recv.c): Likewise.
20682 (CFLAGS-send.c): Likewise.
20683 (CFLAGS-accept.c): Likewise.
20684 (CFLAGS-sendto.c): Likewise.
20685 (CFLAGS-connect.c): Likewise.
20686 (CFLAGS-recvfrom.c): Likewise.
20687 (CFLAGS-recvmsg.c): Likewise.
20688 (CFLAGS-sendmsg.c): Likewise.
20689 (CFLAGS-close.c): Likewise.
20690 (CFLAGS-read.c): Likewise.
20691 (CFLAGS-write.c): Likewise.
20692 (CFLAGS-nanosleep.c): Likewise.
20693 (CFLAGS-sigsuspend.c): Likewise.
20694 (CFLAGS-msync.c): Likewise.
20695 (CFLAGS-fdatasync.c): Likewise.
20696 (CFLAGS-fsync.c): Likewise.
20697 (CFLAGS-pt-system.c): Likewise.
20698 (CFLAGS-tst-cleanup2.c): Likewise.
20699 (CFLAGS-tst-cleanupx2.c): Likewise.
20700 (CFLAGS-flockfile.c): Likewise.
20701 (CFLAGS-ftrylockfile.c): Likewise.
20702 (CFLAGS-funlockfile.c): Likewise.
20703 (CFLAGS-tst-initializers1.c): Likewise.
20704 (CFLAGS-tst-initializers1-c89.c): Likewise.
20705 (CFLAGS-tst-initializers1-c99.c): Likewise.
20706 (CFLAGS-tst-initializers1-c11.c): Likewise.
20707 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
20708 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
20709 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
20710 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
20711 (CFLAGS-nscd_getgr_r.c): Likewise.
20712 (CFLAGS-nscd_gethst_r.c): Likewise.
20713 (CFLAGS-nscd_getai.c): Likewise.
20714 (CFLAGS-nscd_initgroups.c): Likewise.
20715 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
20716 (CFLAGS-pause.c): Likewise.
20717 (CFLAGS-pread.c): Likewise.
20718 (CFLAGS-pread64.c): Likewise.
20719 (CFLAGS-pwrite.c): Likewise.
20720 (CFLAGS-pwrite64.c): Likewise.
20721 (CFLAGS-sleep.c): Likewise.
20722 (CFLAGS-wait.c): Likewise.
20723 (CFLAGS-waitid.c): Likewise.
20724 (CFLAGS-waitpid.c): Likewise.
20725 (CFLAGS-getopt.c): Likewise.
20726 (CFLAGS-wordexp.c): Likewise.
20727 (CFLAGS-sysconf.c): Likewise.
20728 (CFLAGS-pathconf.c): Likewise.
20729 (CFLAGS-fpathconf.c): Likewise.
20730 (CFLAGS-spawn.c): Likewise.
20731 (CFLAGS-spawnp.c): Likewise.
20732 (CFLAGS-spawni.c): Likewise.
20733 (CFLAGS-glob.c): Likewise.
20734 (CFLAGS-glob64.c): Likewise.
20735 (CFLAGS-getconf.c): Likewise.
20736 (CFLAGS-nanosleep.c): Likewise.
20737 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
20738 (CFLAGS-getpwent.c): Likewise.
20739 (CFLAGS-getpw.c): Likewise.
20740 (CFLAGS-fgetpwent_r.c): Likewise.
20741 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
20742 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
20743 (CFLAGS-mq_timedreceive.c): Likewise.
20744 (CFLAGS-mq_timedsend.c): Likewise.
20745 (CFLAGS-clock_nanosleep.c): Likewise.
20746 (CFLAGS-librt-cancellation.c): Likewise.
20747 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
20748 (CFLAGS-getspent.c): Likewise.
20749 (CFLAGS-fgetspent.c): Likewise.
20750 (CFLAGS-fgetspent_r.c): Likewise.
20751 (CFLAGS-putspent.c): Likewise.
20752 (CFLAGS-getspnam.c): Likewise.
20753 (CFLAGS-getspnam_r.c): Likewise.
20754 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
20755 (CFLAGS-sigsuspend.c): Likewise.
20756 (CFLAGS-sigtimedwait.c): Likewise.
20757 (CFLAGS-sigwait.c): Likewise.
20758 (CFLAGS-sigwaitinfo.c): Likewise.
20759 (CFLAGS-sigreturn.c): Likewise.
20760 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
20761 (CFLAGS-vfwprintf.c): Likewise.
20762 (CFLAGS-tmpfile.c): Likewise.
20763 (CFLAGS-tmpfile64.c): Likewise.
20764 (CFLAGS-tempname.c): Likewise.
20765 (CFLAGS-psignal.c): Likewise.
20766 (CFLAGS-vprintf.c): Likewise.
20767 (CFLAGS-cuserid.c): Likewise.
20768 (CFLAGS-errlist.c): Likewise.
20769 (CFLAGS-siglist.c): Likewise.
20770 (CFLAGS-scanf15.c): Likewise.
20771 (CFLAGS-scanf17.c): Likewise.
20772 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
20773 (CFLAGS-msort.c): Likewise.
20774 (CFLAGS-qsort.c): Likewise.
20775 (CFLAGS-system.c): Likewise.
20776 (CFLAGS-fmtmsg.c): Likewise.
20777 (CFLAGS-strfmon.c): Likewise.
20778 (CFLAGS-strfmon_l.c): Likewise.
20779 (CFLAGS-strfromd.c): Likewise.
20780 (CFLAGS-strfromf.c): Likewise.
20781 (CFLAGS-strfroml.c): Likewise.
20782 (CFLAGS-tst-bsearch.c): Likewise.
20783 (CFLAGS-tst-qsort.c): Likewise.
20784 (CFLAGS-tst-makecontext2.c): Likewise.
20785 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
20786 (CFLAGS-xnlm_prot.c): Likewise.
20787 (CFLAGS-xrstat.c): Likewise.
20788 (CFLAGS-xyppasswd.c): Likewise.
20789 (CFLAGS-xklm_prot.c): Likewise.
20790 (CFLAGS-xrex.c): Likewise.
20791 (CFLAGS-xsm_inter.c): Likewise.
20792 (CFLAGS-xmount.c): Likewise.
20793 (CFLAGS-xrusers.c): Likewise.
20794 (CFLAGS-xspray.c): Likewise.
20795 (CFLAGS-xnfs_prot.c): Likewise.
20796 (CFLAGS-xrquota.c): Likewise.
20797 (CFLAGS-xkey_prot.c): Likewise.
20798 (CFLAGS-auth_unix.c): Likewise.
20799 (CFLAGS-key_call.c): Likewise.
20800 (CFLAGS-pmap_rmt.c): Likewise.
20801 (CFLAGS-clnt_perr.c): Likewise.
20802 (CFLAGS-openchild.c): Likewise.
20803 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
20804 (CFLAGS-msgsnd.c): Likewise.
20805 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
20806 * time/Makefile (CFLAGS-tzfile.c): Likewise.
20807 (CFLAGS-tzset.c): Likewise.
20808 (CFLAGS-getdate.c): Likewise.
20809 (CFLAGS-test_time.c): Likewise.
20810 (CPPFLAGS-tst-tzname.c): Likewise.
20811 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
20812 (CFLAGS-zic.c): Likewise.
20813 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
20814 (CFLAGS-wcswidth.c): Likewise.
20815 (CFLAGS-wcstol.c): Likewise.
20816 (CFLAGS-wcstoul.c): Likewise.
20817 (CFLAGS-wcstoll.c): Likewise.
20818 (CFLAGS-wcstoull.c): Likewise.
20819 (CFLAGS-wcstod.c): Likewise.
20820 (CFLAGS-wcstold.c): Likewise.
20821 (CFLAGS-wcstof128.c): Likewise.
20822 (CFLAGS-wcstof.c): Likewise.
20823 (CFLAGS-wcstol_l.c): Likewise.
20824 (CFLAGS-wcstoul_l.c): Likewise.
20825 (CFLAGS-wcstoll_l.c): Likewise.
20826 (CFLAGS-wcstoull_l.c): Likewise.
20827 (CFLAGS-wcstod_l.c): Likewise.
20828 (CFLAGS-wcstold_l.c): Likewise.
20829 (CFLAGS-wcstof128_l.c): Likewise.
20830 (CFLAGS-wcstof_l.c): Likewise.
20831 (CPPFLAGS-tst-wchar-h.c): Likewise.
20832 (CPPFLAGS-wcstold_l.c): Likewise.
20833
20834 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
20835
20836 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
20837
20838 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
20839 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20840
20841 * manual/tunables.texi (Hardware Capability Tunables): Document
20842 glibc.tune.cached_memopt.
20843 * sysdeps/powerpc/cpu-features.c: New file.
20844 * sysdeps/powerpc/cpu-features.h: New file.
20845 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
20846 _dl_powerpc_cpu_features.
20847 * sysdeps/powerpc/dl-tunables.list: New file.
20848 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
20849 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
20850 (INIT_ARCH): Initialize use_aligned_memopt.
20851 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
20852 IS_IN(rtld))]: Restrict dl_platform_init availability and
20853 initialize CPU features used by tunables.
20854 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
20855 Add memcpy-power8-cached.
20856 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
20857 __memcpy_power8_cached.
20858 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
20859 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
20860 New file.
20861
20862 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20863
20864 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
20865 (CFLAGS-noinl-tester.c): Likewise.
20866 (CFLAGS-tst-strlen.c): Likewise.
20867 (CFLAGS-stratcliff.c): Likewise.
20868 (CFLAGS-test-ffs.c): Likewise.
20869 (CFLAGS-tst-inlcall.c): Likewise.
20870 (CFLAGS-tst-xbzero-opt.c): Likewise.
20871 (CFLAGS-memcpy.c): Likewise.
20872 (CFLAGS-wordcopy.c): Likewise.
20873
20874 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
20875
20876 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
20877 Store r15 on stack and add cfi rule.
20878 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
20879 Likewise.
20880
20881 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
20882
20883 [BZ #22577]
20884 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
20885 call.
20886
20887 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
20888
20889 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20890 Add s_sinf-sse2 and s_sinf-fma.
20891 (CFLAGS-s_sinf-fma.c): New.
20892 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
20893 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
20894 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
20895
20896 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
20897
20898 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
20899
20900 2017-12-07 Joseph Myers <joseph@codesourcery.com>
20901
20902 [BZ #22568]
20903 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
20904 part of result to imaginary part of argument if it is zero and the
20905 real part of the argument is not finite.
20906 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
20907 of result to real part of argument if it is zero and the imaginary
20908 part of the argument is not finite.
20909
20910 2017-12-07 Mike FABIAN <mfabian@redhat.com>
20911
20912 [BZ #22524]
20913 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
20914 and to the list of locales to be built for testing.
20915 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
20916 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
20917 and build the collation rules upon that.
20918
20919 2017-12-07 Joseph Myers <joseph@codesourcery.com>
20920
20921 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
20922 * manual/math.texi (Mathematics): Document support for _Float32.
20923 * math/Makefile (test-types): Add float32.
20924 * math/Versions (GLIBC_2.27): Add _Float32 functions.
20925 * stdlib/Versions (GLIBC_2.27): Likewise.
20926 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20927 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20928 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20929 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20930 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20931 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20932 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20933 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20934 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20935 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20936 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20937 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20938 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20939 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20940 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20941 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20942 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20943 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20944 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20945 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20946 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20947 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20948 Likewise.
20949 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20950 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20951 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20952 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20953 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20954 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20955 Likewise.
20956 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20957 Likewise.
20958 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20959 Likewise.
20960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20961 Likewise.
20962
20963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20964 Likewise.
20965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20966 Likewise.
20967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20968 Likewise.
20969 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20970 Likewise.
20971 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20972 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20973 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20974 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20975 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20976 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20977 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20978 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20979 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20980 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20981 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20982 Likewise.
20983 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20984 Likewise.
20985 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20986 Likewise.
20987 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20988 Likewise.
20989 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20990 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20991 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20992 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20993 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20994 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20995 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20996 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20997
20998 2017-12-06 Joseph Myers <joseph@codesourcery.com>
20999
21000 * stdlib/strtof.c: Include <bits/floatn.h>
21001 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21002 and later undefine as macro. Define as weak alias if
21003 [!USE_WIDE_CHAR].
21004 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21005 and later undefine as macro. Define as weak alias if
21006 [USE_WIDE_CHAR].
21007 * stdlib/strtof_l.c: Include <bits/floatn.h>
21008 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21009 and later undefine as macro. Define as weak alias if
21010 [!USE_WIDE_CHAR].
21011 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21012 and later undefine as macro. Define as weak alias if
21013 [USE_WIDE_CHAR].
21014
21015 * stdlib/strfromf.c: Include <bits/floatn.h>.
21016 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21017 and later undefine as macro and define as weak alias.
21018
21019 * math/test-float32.h: New file.
21020
21021 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21022 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21023 (libm_alias_float_other_r): Create f32 alias.
21024 (libm_alias_float_r): Use semicolon before call to
21025 libm_alias_float_other_r.
21026
21027 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21028 second argument to libm_alias_float_other.
21029 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21030 second argument to libm_alias_float_other.
21031 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21032 argument to libm_alias_float_other.
21033
21034 [BZ #22561]
21035 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21036 real part of result for argument 0 + i * NaN.
21037 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21038 results for tests of 0 + i * NaN.
21039
21040 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21041
21042 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21043
21044 2017-12-06 David S. Miller <davem@davemloft.net>
21045
21046 * sysdeps/sparc/fpu/libm-test-ulps: Update
21047 exp_{downward,towardzero,upward} ulps.
21048
21049 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21050
21051 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21052 variables static.
21053
21054 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21055 (Y0_2D): Likewise.
21056 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21057 (Y0_2D): Likewise.
21058 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21059 (Y0_2D): Likewise.
21060 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21061 (Y0_2D): Likewise.
21062
21063 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21064
21065 [BZ #22515]
21066 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21067 and to the list of locales to be built for testing.
21068 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21069 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21070 and build the collation rules upon that.
21071
21072 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21073
21074 * NEWS: Add sinf to list of optimized functions.
21075
21076 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21077
21078 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21079 (__HAVE_FLOAT32X): Likewise.
21080 * manual/math.texi (Mathematics): Document support for _Float64
21081 and _Float32x.
21082 * math/Makefile (test-types): Add float64 and float32x.
21083 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21084 functions.
21085 * stdlib/Versions (GLIBC_2.27): Likewise.
21086 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21087 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21088 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21089 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21090 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21091 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21092 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21093 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21094 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21095 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21096 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21097 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21098 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21099 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21100 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21101 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21102 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21103 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21104 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21105 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21106 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21107 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21108 Likewise.
21109 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21110 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21111 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21112 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21113 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21114 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21115 Likewise.
21116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21117 Likewise.
21118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21119 Likewise.
21120 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21121 Likewise.
21122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21123 Likewise.
21124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21125 Likewise.
21126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21127 Likewise.
21128 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21129 Likewise.
21130 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21131 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21132 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21133 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21134 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21135 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21136 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21137 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21138 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21139 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21140 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21141 Likewise.
21142 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21143 Likewise.
21144 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21145 Likewise.
21146 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21147 Likewise.
21148 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21149 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21150 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21151 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21152 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21153 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21154 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21155 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21156
21157 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21158
21159 * bits/floatn-common.h: Include <bits/long-double.h>.
21160 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21161 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21162 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21163 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21164 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21165 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21166 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21167 (__builtin_huge_valf64): Use __builtin_huge_vall.
21168 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21169 (__builtin_inff64): Use __builtin_infl.
21170 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21171 (__builtin_nanf64): Use __builtin_nanl.
21172 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21173 (__builtin_nansf64): Use __builtin_nansl.
21174
21175 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21176 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21177 Carlos O'Donnell <carlos@redhat.com>
21178
21179 * elf/dl-tunables.list: Add elision parameters.
21180 * manual/tunables.texi: Add entries about elision tunable.
21181 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21182 Add callback functions to dynamically enable/disable elision.
21183 Add multiple callbacks functions to set elision parameters.
21184 Deleted __libc_enable_secure check.
21185 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21186 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21187 * configure: Regenerated.
21188 * configure.ac: Option enable_lock_elision was deleted.
21189 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21190 * config.make.in: Remove references to enable_lock_elision.
21191 * manual/install.texi: Elision configure option was removed.
21192 * INSTALL: Regenerated to remove enable_lock_elision.
21193 * nptl/Makefile:
21194 Disable elision so it can verify error case for destroying a mutex.
21195 * sysdeps/powerpc/nptl/elide.h:
21196 Cleanup ENABLE_LOCK_ELISION check.
21197 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21198 * sysdeps/s390/configure: Regenerated.
21199 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21200 * nptl/tst-mutex8.c:
21201 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21202 * sysdeps/powerpc/powerpc32/sysdep.h:
21203 Deleted all ENABLE_LOCK_ELISION checks.
21204 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21205 * sysdeps/powerpc/sysdep.h: Likewise.
21206 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21207 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21208 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21209 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21210 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21211 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21212 enable-lock-elision.
21213
21214 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21215
21216 * stdlib/strtod.c: Include <bits/floatn.h>.
21217 (BUILD_DOUBLE): New macro.
21218 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21219 (strtof64): Define and later undefine as macro. Define as weak
21220 alias if [!USE_WIDE_CHAR].
21221 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21222 (wcstof64): Define and later undefine as macro. Define as weak
21223 alias if [USE_WIDE_CHAR].
21224 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21225 (strtof32x): Define and later undefine as macro. Define as weak
21226 alias if [!USE_WIDE_CHAR].
21227 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21228 (wcstof32x): Define and later undefine as macro. Define as weak
21229 alias if [USE_WIDE_CHAR].
21230 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21231 (BUILD_DOUBLE): New macro.
21232 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21233 (strtof64_l): Define and later undefine as macro. Define as weak
21234 alias if [!USE_WIDE_CHAR].
21235 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21236 (wcstof64_l): Define and later undefine as macro. Define as weak
21237 alias if [USE_WIDE_CHAR].
21238 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21239 (strtof32x_l): Define and later undefine as macro. Define as weak
21240 alias if [!USE_WIDE_CHAR].
21241 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21242 (wcstof32x_l): Define and later undefine as macro. Define as weak
21243 alias if [USE_WIDE_CHAR].
21244
21245 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21246
21247 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21248 (reduced): Use ones as double instead of integer.
21249
21250 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21251
21252 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21253
21254 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21255
21256 * stdlib/strfromd.c: Include <bits/floatn.h>.
21257 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21258 and later undefine as macro and define as weak alias.
21259 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21260 Likewise.
21261
21262 * math/test-float32x.h: New file.
21263 * math/test-float64.h: Likewise.
21264
21265 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21266 (libm_alias_double_other_r_f64): New macro.
21267 (libm_alias_double_other_r_f32x): Likewise.
21268 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21269 libm_alias_double_other_r_f32x.
21270 (libm_alias_double_r): Use semicolon before call to
21271 libm_alias_double_other_r.
21272 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21273 <bits/floatn.h>.
21274 (libm_alias_double_other_r_f64): New macro.
21275 (libm_alias_double_other_r_f32x): Likewise.
21276 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21277 libm_alias_double_other_r_f32x.
21278
21279 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21280
21281 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21282 int.
21283 (SINF_FUNC): Likewise. Replace floor with simple casts.
21284
21285 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21286
21287 [BZ #22517]
21288 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21289 and to the list of locales to be built for testing.
21290 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21291 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21292 and build the collation rules upon that.
21293
21294 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21295
21296 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21297 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21298 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21299 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21300 instead of __insn__xxx.
21301 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21302 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21303 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21304 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21305 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21306 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21307
21308 2017-12-05 Florian Weimer <fweimer@redhat.com>
21309
21310 Linux: Implement interfaces for memory protection keys
21311 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21312 xsignal, xsysconf.
21313 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21314 * support/xunistd.h (xsysconf): Declare.
21315 * support/xraise.c: New file.
21316 * support/xsigaction.c: Likewise.
21317 * support/xsignal.c: Likewise.
21318 * support/xsysconf.c: Likewise.
21319 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21320 pkey_set, pkey_get, pkey_mprotect.
21321 [misc] (tests): Add tst-pkey.
21322 (tst-pkey): Link with -lpthread.
21323 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21324 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21325 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21326 (PKEY_DISABLE_WRITE): Define.
21327 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21328 Declare.
21329 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21330 (SEGV_PKUERR): Add.
21331 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21332 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21333 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21334 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21335 Add.
21336 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21337 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21338 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21339 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21340 * sysdeps/unix/sysv/linux/**.abilist: Update.
21341
21342 2017-12-05 Florian Weimer <fweimer@redhat.com>
21343
21344 * support/tst-test_compare.c (subprocess): Use long long instead
21345 of long argument for consistent type width across 32-bit and
21346 64-bit architectures.
21347 (do_test): Adjust expected output.
21348
21349 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21350
21351 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21352 (cosf): Define using libm_alias_float.
21353 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21354 (fabsf): Define using libm_alias_float.
21355 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21356 (fmaf): Define using libm_alias_float.
21357 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21358 (rintf): Define using libm_alias_float.
21359 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21360 (sinf): Define using libm_alias_float.
21361 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21362 <libm-alias-float.h>.
21363 (modff): Define using libm_alias_float.
21364 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21365 <libm-alias-float.h>.
21366 (logbf): Define using libm_alias_float.
21367 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21368 <libm-alias-float.h>.
21369 (ceilf): Define using libm_alias_float.
21370 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21371 <libm-alias-float.h>.
21372 (copysignf): Define using libm_alias_float.
21373 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21374 <libm-alias-float.h>.
21375 (floorf): Define using libm_alias_float.
21376 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21377 <libm-alias-float.h>.
21378 (llrintf): Define using libm_alias_float.
21379 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21380 <libm-alias-float.h>.
21381 (llroundf): Define using libm_alias_float.
21382 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21383 <libm-alias-float.h>.
21384 (lrintf): Define using libm_alias_float.
21385 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21386 <libm-alias-float.h>.
21387 (lroundf): Define using libm_alias_float.
21388 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21389 <libm-alias-float.h>.
21390 (nearbyintf): Define using libm_alias_float.
21391 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21392 <libm-alias-float.h>.
21393 (rintf): Define using libm_alias_float.
21394 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21395 <libm-alias-float.h>.
21396 (roundf): Define using libm_alias_float.
21397 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21398 <libm-alias-float.h>.
21399 (truncf): Define using libm_alias_float.
21400 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
21401 Include <libm-alias-float.h>.
21402 (ceilf): Define using libm_alias_float.
21403 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
21404 Include <libm-alias-float.h>.
21405 (copysignf): Define using libm_alias_float.
21406 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
21407 Include <libm-alias-float.h>.
21408 (floorf): Define using libm_alias_float.
21409 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
21410 Include <libm-alias-float.h>.
21411 (llrintf): Define using libm_alias_float.
21412 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
21413 Include <libm-alias-float.h>.
21414 (llroundf): Define using libm_alias_float.
21415 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
21416 Include <libm-alias-float.h>.
21417 (logbf): Define using libm_alias_float.
21418 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
21419 Include <libm-alias-float.h>.
21420 (lrintf): Define using libm_alias_float.
21421 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
21422 Include <libm-alias-float.h>.
21423 (lroundf): Define using libm_alias_float.
21424 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
21425 Include <libm-alias-float.h>.
21426 (modff): Define using libm_alias_float.
21427 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
21428 Include <libm-alias-float.h>.
21429 (roundf): Define using libm_alias_float.
21430 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
21431 Include <libm-alias-float.h>.
21432 (truncf): Define using libm_alias_float.
21433 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
21434 <libm-alias-float.h>.
21435 (llrintf): Define using libm_alias_float.
21436 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21437 <libm-alias-float.h>.
21438 (llroundf): Define using libm_alias_float.
21439 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
21440 <libm-alias-float.h>.
21441 (ceilf): Define using libm_alias_float.
21442 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
21443 <libm-alias-float.h>.
21444 (floorf): Define using libm_alias_float.
21445 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21446 <libm-alias-float.h>.
21447 (llroundf): Define using libm_alias_float.
21448 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21449 <libm-alias-float.h>.
21450 (lroundf): Define using libm_alias_float.
21451 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
21452 <libm-alias-float.h>.
21453 (roundf): Define using libm_alias_float.
21454 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
21455 <libm-alias-float.h>.
21456 (truncf): Define using libm_alias_float.
21457 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21458 <libm-alias-float.h>.
21459 (copysignf): Define using libm_alias_float.
21460 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
21461 <libm-alias-float.h>.
21462 (llrintf): Define using libm_alias_float.
21463 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21464 <libm-alias-float.h>.
21465 (llroundf): Define using libm_alias_float.
21466 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21467 <libm-alias-float.h>.
21468 (lrintf): Define using libm_alias_float.
21469 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21470 <libm-alias-float.h>.
21471 (lroundf): Define using libm_alias_float.
21472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
21473 <libm-alias-float.h>.
21474 (ceilf): Define using libm_alias_float.
21475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
21476 <libm-alias-float.h>.
21477 (copysignf): Define using libm_alias_float.
21478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
21479 <libm-alias-float.h>.
21480 (cosf): Define using libm_alias_float.
21481 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
21482 <libm-alias-float.h>.
21483 (floorf): Define using libm_alias_float.
21484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
21485 <libm-alias-float.h>.
21486 (llrintf): Define using libm_alias_float.
21487 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
21488 <libm-alias-float.h>.
21489 (llroundf): Define using libm_alias_float.
21490 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
21491 <libm-alias-float.h>.
21492 (logbf): Define using libm_alias_float.
21493 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
21494 <libm-alias-float.h>.
21495 (modff): Define using libm_alias_float.
21496 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
21497 <libm-alias-float.h>.
21498 (roundf): Define using libm_alias_float.
21499 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
21500 <libm-alias-float.h>.
21501 (sinf): Define using libm_alias_float.
21502 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
21503 <libm-alias-float.h>.
21504 (truncf): Define using libm_alias_float.
21505 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
21506 <libm-alias-float.h>.
21507 (ceilf): Define using libm_alias_float.
21508 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21509 <libm-alias-float.h>.
21510 (copysignf): Define using libm_alias_float.
21511 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
21512 <libm-alias-float.h>.
21513 (floorf): Define using libm_alias_float.
21514 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21515 <libm-alias-float.h>.
21516 (llrintf): Define using libm_alias_float.
21517 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
21518 <libm-alias-float.h>.
21519 (llroundf): Define using libm_alias_float.
21520 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
21521 <libm-alias-float.h>.
21522 (nearbyintf): Define using libm_alias_float.
21523 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
21524 <libm-alias-float.h>.
21525 (rintf): Define using libm_alias_float.
21526 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
21527 <libm-alias-float.h>.
21528 (roundf): Define using libm_alias_float.
21529 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
21530 <libm-alias-float.h>.
21531 (truncf): Define using libm_alias_float.
21532 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
21533 <libm-alias-float.h>.
21534 (ceilf): Define using libm_alias_float.
21535 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
21536 <libm-alias-float.h>.
21537 (floorf): Define using libm_alias_float.
21538 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21539 <libm-alias-float.h>.
21540 (llroundf): Define using libm_alias_float.
21541 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
21542 <libm-alias-float.h>.
21543 (roundf): Define using libm_alias_float.
21544 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
21545 <libm-alias-float.h>.
21546 (truncf): Define using libm_alias_float.
21547 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21548 <libm-alias-float.h>.
21549 (copysignf): Define using libm_alias_float.
21550 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21551 <libm-alias-float.h>.
21552 (llrintf): Define using libm_alias_float.
21553 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21554 <libm-alias-float.h>.
21555 (llroundf): Define using libm_alias_float.
21556 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
21557 <libm-alias-float.h>.
21558 (cosf): Define using libm_alias_float.
21559 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21560 <libm-alias-float.h>.
21561 (llrintf): Define using libm_alias_float.
21562 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21563 <libm-alias-float.h>.
21564 (llroundf): Define using libm_alias_float.
21565 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
21566 <libm-alias-float.h>.
21567 (sinf): Define using libm_alias_float.
21568
21569 2017-12-04 Florian Weimer <fweimer@redhat.com>
21570
21571 * support/check.h (TEST_COMPARE): Define.
21572 (support_test_compare_failure): Declare.
21573 * support/Makefile (libsupport-routines): Add
21574 support_test_compare_failure.
21575 (tests): Add tst-test_compare.
21576 * support /support_test_compare_failure.c: New file.
21577 * support/tst-test_compare.c: Likewise.
21578
21579 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21580
21581 [BZ #22527]
21582 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
21583 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
21584 available, this rewrite of the collation rules does reproduce
21585 the test file in the same order.
21586
21587 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21588
21589 [BZ #10580]
21590 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
21591 digraphs in the month and day names. Using single code points for
21592 digraphs is deprecated. While there are dedicated Unicode
21593 codepoints, for the digraphs, these are included for backwards
21594 compatibility and modern texts use a sequence of Basic Latin
21595 characters. See: https://www.unicode.org/faq/ligature_digraph.html
21596 This makes the month and day names agree exactly with CLDR now,
21597 CLDR does not use the single code points for the digraphs either.
21598
21599 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
21600
21601 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
21602
21603 2017-12-04 Joseph Myers <joseph@codesourcery.com>
21604
21605 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
21606 of floor.
21607
21608 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
21609
21610 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
21611 Define only for libc.so.
21612
21613 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
21614
21615 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21616 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
21617 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
21618 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
21619 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21620
21621 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21622
21623 [BZ #5997]
21624 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
21625
21626 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
21627
21628 [BZ libc/19170]
21629 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
21630 PREINIT_FUNCTION_WEAK is nonzero.
21631 (gmon_initializer): New function. Put procedure label for it in
21632 .init_array section.
21633 (_init): Don't call PREINIT_FUNCTION.
21634 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
21635 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
21636 value when map argument is null.
21637
21638 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
21639 depi instruction from PIC pc-relative sequence.
21640 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
21641 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
21642 (elf_machine_load_address): Likewise.
21643 (elf_machine_runtime_setup): Likewise.
21644
21645 2017-12-02 Joseph Myers <joseph@codesourcery.com>
21646
21647 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
21648 <libm-alias-double.h>.
21649 (logb): Define using libm_alias_double.
21650 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21651 <libm-alias-double.h>.
21652 (copysign): Define using libm_alias_double.
21653 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
21654 <libm-alias-double.h>.
21655 (llrint): Define using libm_alias_double.
21656 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
21657 <libm-alias-double.h>.
21658 (llround): Define using libm_alias_double.
21659 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21660 <libm-alias-double.h>.
21661 (lrint): Define using libm_alias_double.
21662 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21663 <libm-alias-double.h>.
21664 (lround): Define using libm_alias_double.
21665 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
21666 Include <libm-alias-double.h>.
21667 (copysign): Define using libm_alias_double.
21668 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
21669 Include <libm-alias-double.h>.
21670 (llrint): Define using libm_alias_double.
21671 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
21672 Include <libm-alias-double.h>.
21673 (llround): Define using libm_alias_double.
21674 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
21675 <libm-alias-double.h>.
21676 (logb): Define using libm_alias_double.
21677 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
21678 Include <libm-alias-double.h>.
21679 (lrint): Define using libm_alias_double.
21680 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
21681 Include <libm-alias-double.h>.
21682 (lround): Define using libm_alias_double.
21683 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
21684 <libm-alias-double.h>.
21685 (llrint): Define using libm_alias_double.
21686 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21687 <libm-alias-double.h>.
21688 (llround): Define using libm_alias_double.
21689 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21690 <libm-alias-double.h>.
21691 (llround): Define using libm_alias_double.
21692 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21693 <libm-alias-double.h>.
21694 (lround): Define using libm_alias_double.
21695 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21696 <libm-alias-double.h>.
21697 (copysign): Define using libm_alias_double.
21698 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
21699 <libm-alias-double.h>.
21700 (llrint): Define using libm_alias_double.
21701 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21702 <libm-alias-double.h>.
21703 (llround): Define using libm_alias_double.
21704 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21705 <libm-alias-double.h>.
21706 (lrint): Define using libm_alias_double.
21707 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21708 <libm-alias-double.h>.
21709 (lround): Define using libm_alias_double.
21710 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
21711 <libm-alias-double.h>.
21712 (copysign): Define using libm_alias_double.
21713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
21714 <libm-alias-double.h>.
21715 (llrint): Define using libm_alias_double.
21716 (lrint): Likewise.
21717 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
21718 <libm-alias-double.h>.
21719 (llround): Define using libm_alias_double.
21720 (lround): Likewise.
21721 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
21722 <libm-alias-double.h>.
21723 (logb): Define using libm_alias_double.
21724 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21725 <libm-alias-double.h>.
21726 (copysign): Define using libm_alias_double.
21727 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21728 <libm-alias-double.h>.
21729 (llrint): Define using libm_alias_double.
21730 (lrint): Likewise.
21731 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
21732 <libm-alias-double.h>.
21733 (llround): Define using libm_alias_double.
21734 (lround): Likewise.
21735 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21736 <libm-alias-double.h>.
21737 (llround): Define using libm_alias_double.
21738 (lround): Likewise.
21739 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21740 <libm-alias-double.h>.
21741 (copysign): Define using libm_alias_double.
21742 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21743 <libm-alias-double.h>.
21744 (llrint): Define using libm_alias_double.
21745 (lrint): Likewise.
21746 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21747 <libm-alias-double.h>.
21748 (llround): Define using libm_alias_double.
21749 (lround): Likewise.
21750 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21751 <libm-alias-double.h>.
21752 (llrint): Define using libm_alias_double.
21753 (lrint): Likewise.
21754 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21755 <libm-alias-double.h>.
21756 (llround): Define using libm_alias_double.
21757 (lround): Likewise.
21758
21759 2017-12-01 Joseph Myers <joseph@codesourcery.com>
21760
21761 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
21762 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
21763 compat symbol based on llround.
21764
21765 * sysdeps/powerpc/power7/fpu/s_logb.c
21766 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
21767 symbol based on __logb, not on logb.
21768 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
21769 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
21770 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
21771 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
21772
21773 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
21774 (rint): Define using libm_alias_double.
21775 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
21776 <libm-alias-double.h>.
21777 (modf): Define using libm_alias_double.
21778 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
21779 <libm-alias-double.h>.
21780 (ceil): Define using libm_alias_double.
21781 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
21782 <libm-alias-double.h>.
21783 (floor): Define using libm_alias_double.
21784 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
21785 <libm-alias-double.h>.
21786 (nearbyint): Define using libm_alias_double.
21787 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
21788 <libm-alias-double.h>.
21789 (rint): Define using libm_alias_double.
21790 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
21791 <libm-alias-double.h>.
21792 (round): Define using libm_alias_double.
21793 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
21794 <libm-alias-double.h>.
21795 (trunc): Define using libm_alias_double.
21796 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
21797 <libm-alias-double.h>.
21798 (ceil): Define using libm_alias_double.
21799 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
21800 Include <libm-alias-double.h>.
21801 (floor): Define using libm_alias_double.
21802 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
21803 <libm-alias-double.h>.
21804 (modf): Define using libm_alias_double.
21805 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
21806 Include <libm-alias-double.h>.
21807 (round): Define using libm_alias_double.
21808 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
21809 Include <libm-alias-double.h>.
21810 (trunc): Define using libm_alias_double.
21811 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
21812 <libm-alias-double.h>.
21813 (ceil): Define using libm_alias_double.
21814 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
21815 <libm-alias-double.h>.
21816 (floor): Define using libm_alias_double.
21817 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
21818 <libm-alias-double.h>.
21819 (round): Define using libm_alias_double.
21820 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
21821 <libm-alias-double.h>.
21822 (trunc): Define using libm_alias_double.
21823 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
21824 <libm-alias-double.h>.
21825 (ceil): Define using libm_alias_double.
21826 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
21827 <libm-alias-double.h>.
21828 (floor): Define using libm_alias_double.
21829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
21830 <libm-alias-double.h>.
21831 (modf): Define using libm_alias_double.
21832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
21833 <libm-alias-double.h>.
21834 (round): Define using libm_alias_double.
21835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
21836 <libm-alias-double.h>.
21837 (trunc): Define using libm_alias_double.
21838 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
21839 <libm-alias-double.h>.
21840 (ceil): Define using libm_alias_double.
21841 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
21842 <libm-alias-double.h>.
21843 (floor): Define using libm_alias_double.
21844 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
21845 <libm-alias-double.h>.
21846 (nearbyint): Define using libm_alias_double.
21847 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
21848 <libm-alias-double.h>.
21849 (rint): Define using libm_alias_double.
21850 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
21851 <libm-alias-double.h>.
21852 (round): Define using libm_alias_double.
21853 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
21854 <libm-alias-double.h>.
21855 (trunc): Define using libm_alias_double.
21856 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
21857 <libm-alias-double.h>.
21858 (ceil): Define using libm_alias_double.
21859 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
21860 <libm-alias-double.h>.
21861 (floor): Define using libm_alias_double.
21862 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
21863 <libm-alias-double.h>.
21864 (round): Define using libm_alias_double.
21865 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
21866 <libm-alias-double.h>.
21867 (trunc): Define using libm_alias_double.
21868
21869 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
21870 (fabs): Define using libm_alias_double.
21871 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
21872 (fma): Define using libm_alias_double.
21873 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
21874 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
21875 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
21876 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
21877
21878 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21879
21880 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
21881
21882 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
21883 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
21884 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21885
21886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
21887 due redirect macro.
21888
21889 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
21890
21891 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
21892
21893 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21894
21895 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
21896 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
21897 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
21898 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
21899
21900 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21901 (libm-sysdep_routines): Add s_nearbyintf-generic and
21902 s_nearbyint-generic.
21903 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
21904 New file.
21905 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
21906 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
21907 Likewise.
21908 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
21909 Likewise.
21910 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
21911 file.
21912 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21913 Likewise.
21914
21915 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21916 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
21917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
21918 file.
21919 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
21920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
21921 Likewise.
21922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
21923 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
21924 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
21925
21926 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21927 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
21928 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
21929 file.
21930 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
21931 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
21932 Likewise.
21933 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
21934 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
21935 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
21936
21937 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21938 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
21939 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
21940 file.
21941 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
21942 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
21943 Likewise.
21944 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
21945 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
21946 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
21947
21948 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21949 (sysdep_calls): New rule.
21950 (sysdep_routines): Use sysdep_calls as base.
21951 (libm-sysdep_routines): Add generic rule for symbols shared with
21952 libc. Add s_copysign-generic and s_copysign-generic objects.
21953 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
21954 New file.
21955 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
21956 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
21957 Likewise.
21958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
21959 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
21960 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
21961
21962 2017-12-01 Mike FABIAN <mfabian@redhat.com>
21963
21964 [BZ #22519]
21965 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
21966 the list of locales to be built for testing.
21967 * localedata/is_IS.UTF-8.in: New file.
21968 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
21969 on iso14651_t1.
21970
21971 2017-12-01 Joseph Myers <joseph@codesourcery.com>
21972
21973 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
21974 <libm-alias-float.h>.
21975 (fabsf): Define using libm_alias_float.
21976
21977 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21978
21979 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
21980
21981 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21982
21983 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
21984 <libm-alias-float.h>.
21985 (fabsf): Define using libm_alias_float.
21986 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
21987 <libm-alias-float.h>.
21988 (lrintf): Define using libm_alias_float.
21989 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
21990 <libm-alias-float.h>.
21991 (rintf): Define using libm_alias_float.
21992
21993 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
21994 <libm-alias-double.h>.
21995 (fabs): Define using libm_alias_double.
21996 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
21997 <libm-alias-double.h>.
21998 (lrint): Define using libm_alias_double.
21999 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22000 <libm-alias-double.h>.
22001 (rint): Define using libm_alias_double.
22002
22003 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22004 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22005 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22006 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22007 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22008 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22009 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22010 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22011 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22012 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22013 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22014 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22015 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22016 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22017 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22018 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22019 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22020 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22021 s_atan_template.c.
22022 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22023 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22024 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22025 s_ceil_template.c.
22026 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22027 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22028 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22029 s_cos_template.c.
22030 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22031 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22032 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22033 s_expm1_template.c.
22034 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22035 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22036 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22037 s_fabs_template.c.
22038 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22039 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22040 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22041 s_floor_template.c.
22042 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22043 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22044 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22045 s_frexp_template.c.
22046 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22047 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22048 s_lrint_template.c.
22049 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22050 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22051 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22052 s_modf_template.c.
22053 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22054 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22055 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22056 s_nearbyint_template.c.
22057 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22058 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22059 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22060 s_remquo_template.c.
22061 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22062 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22063 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22064 s_rint_template.c.
22065 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22066 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22067 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22068 s_sin_template.c.
22069 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22070 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22071 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22072 s_sincos_template.c.
22073 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22074 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22075 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22076 s_tan_template.c.
22077 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22078 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22079 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22080 s_tanh_template.c.
22081 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22082 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22083 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22084 s_trunc_template.c.
22085 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22086 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22087 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22088 s_atan.c instead of including s_atan.c.
22089 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22090 s_atanf.c instead of including s_atanf.c.
22091 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22092 s_atanl.c instead of including s_atanl.c.
22093 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22094 instead of s_atan.c.
22095 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22096 instead of s_atanf.c.
22097 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22098 instead of s_atanl.c.
22099
22100 * scripts/update-copyrights: Do not handle intl/plural.c
22101 specially.
22102
22103 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22104
22105 [BZ #22432]
22106 * configure.ac (BISON): Require to be present.
22107 * configure: Regenerated.
22108 * intl/Makefile (generated): Add plural.c.
22109 [$(BISON) != no]: Make code unconditional.
22110 (plural.c): Change rule to $(objpfx)plural.c.
22111 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22112 * intl/plural.c: Remove.
22113 * manual/install.texi (Tools for Compilation): Document bison as
22114 required.
22115 * INSTALL: Regenerated.
22116
22117 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22118
22119 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22120 <libm-alias-double.h>.
22121 (llrint): Define using libm_alias_double.
22122 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22123 <libm-alias-float.h>.
22124 (llrintf): Define using libm_alias_float.
22125 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22126 <libm-alias-ldouble.h>.
22127 (llrintl): Define using libm_alias_ldouble.
22128
22129 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22130 declare_mgen_alias instead of weak_alias.
22131 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22132 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22133 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22134
22135 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22136
22137 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22138 Add add_n-generic.
22139 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22140 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22141 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22142
22143 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22144 Add submul_1-generic.
22145 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22146 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22147 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22148
22149 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22150 Add addmul_1-generic.
22151 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22152 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22153 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22154
22155 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22156 Add sub_n-generic.
22157 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22158 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22159 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22160
22161 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22162 Add mul_1-generic.
22163 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22164 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22165 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22166
22167 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22168
22169 According to CLDR, collation rules for Serbian and Bosnian
22170 should be the same as for Croatian.
22171
22172 [BZ #22534]
22173 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22174 and to the list of locales to be built for testing.
22175 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22176 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22177 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22178 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22179
22180 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22181
22182 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22183 to make test case pass.
22184 * localedata/hr_HR.UTF-8.in: Add more test strings.
22185
22186 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22187
22188 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22189
22190 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22191
22192 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22193 the list of locales to built for testing.
22194 * localedata/hr_HR.UTF-8.in: New file.
22195
22196 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22197
22198 [BZ #10580]
22199 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22200 iso14651_t1.
22201 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22202 CLDR (except use ligatures for the digraphs, CLDR does not use
22203 the ligatures), add first_workday, some fixes in the date and time
22204 formats.
22205 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22206 for Đ and đ.
22207 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22208 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22209 Add int_p_cs_precedes and int_n_cs_precedes.
22210 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22211 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22212 LC_MONETARY now).
22213 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22214 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22215 name_miss.
22216 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22217 and lang_lib. Change postal_fmt.
22218
22219 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22220
22221 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22222 <setjmp.h>.
22223 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22224 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22225 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22226 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22227 * sysdeps/generic/setjmpP.h: New file.
22228 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22229 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22230 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22231 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22232 Add jmp_buf-ssp.sym.
22233 (tests): Add tst-saved_mask-1.
22234
22235 2017-11-30 Arjun Shankar <arjun@redhat.com>
22236
22237 [BZ #22375]
22238 CVE-2017-17426
22239 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22240 instead of request2size.
22241
22242 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22243
22244 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22245 (__lllrint): Remove alias.
22246 (lllrint): Likewise.
22247 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22248 (__lllrintf): Likewise.
22249 (lllrintf): Likewise.
22250
22251 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22252 <libm-alias-float.h>.
22253 (copysignf): Define using libm_alias_float.
22254 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22255 <libm-alias-float.h>.
22256 (fabsf): Define using libm_alias_float.
22257 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22258 Include <libm-alias-float.h>.
22259 (copysignf): Define using libm_alias_float.
22260 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22261 <libm-alias-float.h>.
22262 (fabsf): Define using libm_alias_float.
22263 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22264 <libm-alias-float.h>.
22265 (fdimf): Define using libm_alias_float.
22266 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22267 <libm-alias-float.h>.
22268 (fmaf): Define using libm_alias_float.
22269 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22270 <libm-alias-float.h>.
22271 (llrintf): Define using libm_alias_float.
22272 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22273 Include <libm-alias-float.h>.
22274 (nearbyintf): Define using libm_alias_float.
22275 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22276 <libm-alias-float.h>.
22277 (rintf): Define using libm_alias_float.
22278 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22279 <libm-alias-float.h>.
22280 (llrintf): Define using libm_alias_float.
22281 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22282 <libm-alias-float.h>.
22283 (lrintf): Define using libm_alias_float.
22284 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22285 <libm-alias-float.h>.
22286 (nearbyintf): Define using libm_alias_float.
22287 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22288 <libm-alias-float.h>.
22289 (rintf): Define using libm_alias_float.
22290 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22291 <libm-alias-float.h>.
22292 (ceilf): Define using libm_alias_float.
22293 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22294 <libm-alias-float.h>.
22295 (floorf): Define using libm_alias_float.
22296 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22297 <libm-alias-float.h>.
22298 (fmaf): Define using libm_alias_float.
22299 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22300 <libm-alias-float.h>.
22301 (lrintf): Define using libm_alias_float.
22302 (llrintf): Likewise.
22303 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22304 <libm-alias-float.h>.
22305 (nearbyintf): Define using libm_alias_float.
22306 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22307 <libm-alias-float.h>.
22308 (rintf): Define using libm_alias_float.
22309 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22310 <libm-alias-float.h>.
22311 (truncf): Define using libm_alias_float.
22312 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22313 <libm-alias-float.h>.
22314 (copysignf): Define using libm_alias_float.
22315 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22316 <libm-alias-float.h>.
22317 (fabsf): Define using libm_alias_float.
22318 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22319 <libm-alias-float.h>.
22320 (lrintf): Define using libm_alias_float.
22321 (llrintf): Likewise.
22322 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22323 <libm-alias-float.h>.
22324 (nearbyintf): Define using libm_alias_float.
22325 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22326 <libm-alias-float.h>.
22327 (rintf): Define using libm_alias_float.
22328
22329 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22330
22331 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22332 <libm-alias-double.h>.
22333 (copysign): Define using libm_alias_double.
22334 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22335 <libm-alias-double.h>.
22336 (fabs): Define using libm_alias_double.
22337 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22338 Include <libm-alias-double.h>.
22339 (copysign): Define using libm_alias_double.
22340 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22341 <libm-alias-double.h>.
22342 (fabs): Define using libm_alias_double.
22343 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22344 <libm-alias-double.h>.
22345 (fdim): Define using libm_alias_double.
22346 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22347 <libm-alias-double.h>.
22348 (fma): Define using libm_alias_double.
22349 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22350 <libm-alias-double.h>.
22351 (llrint): Define using libm_alias_double.
22352 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22353 Include <libm-alias-double.h>.
22354 (nearbyint): Define using libm_alias_double.
22355 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22356 <libm-alias-double.h>.
22357 (rint): Define using libm_alias_double.
22358 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22359 <libm-alias-double.h>.
22360 (fabs): Define using libm_alias_double.
22361 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22362 <libm-alias-double.h>.
22363 (llrint): Define using libm_alias_double.
22364 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22365 <libm-alias-double.h>.
22366 (nearbyint): Define using libm_alias_double.
22367 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22368 <libm-alias-double.h>.
22369 (rint): Define using libm_alias_double.
22370 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22371 <libm-alias-double.h>.
22372 (ceil): Define using libm_alias_double.
22373 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22374 <libm-alias-double.h>.
22375 (floor): Define using libm_alias_double.
22376 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22377 <libm-alias-double.h>.
22378 (fma): Define using libm_alias_double.
22379 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22380 <libm-alias-double.h>.
22381 (lrint): Define using libm_alias_double.
22382 (llrint): Likewise.
22383 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22384 <libm-alias-double.h>.
22385 (nearbyint): Define using libm_alias_double.
22386 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22387 <libm-alias-double.h>.
22388 (rint): Define using libm_alias_double.
22389 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22390 <libm-alias-double.h>.
22391 (trunc): Define using libm_alias_double.
22392 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22393 <libm-alias-double.h>.
22394 (copysign): Define using libm_alias_double.
22395 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22396 <libm-alias-double.h>.
22397 (fabs): Define using libm_alias_double.
22398 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
22399 <libm-alias-double.h>.
22400 (lrint): Define using libm_alias_double.
22401 (llrint): Likewise.
22402 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
22403 <libm-alias-double.h>.
22404 (nearbyint): Define using libm_alias_double.
22405 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
22406 <libm-alias-double.h>.
22407 (rint): Define using libm_alias_double.
22408
22409 [BZ #22229]
22410 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22411 <math_ldbl_opt.h>.
22412 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22413
22414 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22415 SPARC --disable-multi-arch glibc variants.
22416
22417 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
22418 <libm-alias-float.h>.
22419 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22420 if [SHARED].
22421 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
22422 <libm-alias-float.h>.
22423 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22424 if [SHARED].
22425 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
22426 <libm-alias-float.h>.
22427 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22428 if [SHARED].
22429 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
22430 <libm-alias-float.h>.
22431 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22432 if [SHARED].
22433 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
22434 <libm-alias-float.h>.
22435 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22436 if [SHARED].
22437 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
22438 <libm-alias-float.h>.
22439 (ceilf): Define using libm_alias_float.
22440 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
22441 <libm-alias-float.h>.
22442 (floorf): Define using libm_alias_float.
22443 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
22444 <libm-alias-float.h>.
22445 (fmaf): Define using libm_alias_float.
22446 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
22447 <libm-alias-float.h>.
22448 (nearbyintf): Define using libm_alias_float.
22449 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
22450 <libm-alias-float.h>.
22451 (rintf): Define using libm_alias_float.
22452 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
22453 <libm-alias-float.h>.
22454 (truncf): Define using libm_alias_float.
22455 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22456 (copysignf): Define using libm_alias_float.
22457 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
22458 (cosf): Define using libm_alias_float.
22459 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22460 (fabsf): Define using libm_alias_float.
22461 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22462 (fmaxf): Define using libm_alias_float.
22463 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
22464 (fminf): Define using libm_alias_float.
22465 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22466 (llrintf): Define using libm_alias_float.
22467 [!__ILP32__] (lrintf): Likewise.
22468 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
22469 (sincosf): Define using libm_alias_float.
22470 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
22471 (sinf): Define using libm_alias_float.
22472 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22473 (lrintf): Define using libm_alias_float.
22474
22475 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
22476 <libm-alias-double.h>.
22477 (atan): Define using libm_alias_double.
22478 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
22479 <libm-alias-double.h>.
22480 (ceil): Define using libm_alias_double.
22481 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
22482 <libm-alias-double.h>.
22483 (floor): Define using libm_alias_double.
22484 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
22485 <libm-alias-double.h>.
22486 (fma): Define using libm_alias_double.
22487 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
22488 <libm-alias-double.h>.
22489 (nearbyint): Define using libm_alias_double.
22490 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
22491 <libm-alias-double.h>.
22492 (rint): Define using libm_alias_double.
22493 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
22494 <libm-alias-double.h>.
22495 (sin): Define using libm_alias_double.
22496 (cos): Likewise.
22497 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
22498 <libm-alias-double.h>.
22499 (tan): Define using libm_alias_double.
22500 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
22501 <libm-alias-double.h>.
22502 (trunc): Define using libm_alias_double.
22503 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
22504 (copysign): Define using libm_alias_double.
22505 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
22506 (fabs): Define using libm_alias_double.
22507 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
22508 (fmax): Define using libm_alias_double.
22509 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
22510 (fmin): Define using libm_alias_double.
22511 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
22512 (llrint): Define using libm_alias_double.
22513 [!__ILP32__] (lrint): Likewise.
22514 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
22515 (lrint): Define using libm_alias_double.
22516
22517 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22518
22519 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22520 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
22521 objects.
22522 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
22523 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
22524 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
22525 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
22526 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
22527 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22528
22529 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22530 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
22531 objects.
22532 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
22533 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
22534 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
22535 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
22536 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
22537 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22538
22539 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22540 (libm-sysdep_routines): Add s_nearbyint-generic and
22541 s_nearbyintf-generic objects.
22542 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
22543 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
22544 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
22545 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
22546 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
22547 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
22548
22549 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22550 Add s_finitef-generic and s_finite-generic objects.
22551 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
22552 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
22553 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
22554 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
22555 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
22556 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
22557
22558 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22559 Add s_isinff-generic and s_isinf-generic objects.
22560 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
22561 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
22562 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
22563 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
22564 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
22565 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22566
22567 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22568 Add s_isnanf-generic and s_isnan-generic objects.
22569 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
22570 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
22571 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
22572 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
22573 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
22574 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22575
22576 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
22577 macro.
22578 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
22579 rule.
22580 (sysdep_routines): Use sysdep_calls as base.
22581 (libm-sysdep_routines): Add generic rule for symbols shared with
22582 libc. Add s_signbit-generic and s_signbitf-generic objects.
22583 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
22584 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
22585 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
22586 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
22587 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
22588 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
22589
22590 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22591
22592 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
22593 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
22594 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
22595 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
22596 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
22597 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
22598 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
22599 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
22600 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
22601 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
22602 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
22603 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
22604 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
22605 libm_alias_float_r.
22606 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
22607 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
22608 (logf): Likewise.
22609 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
22610 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
22611 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
22612 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
22613 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
22614 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
22615 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
22616 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
22617 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
22618 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
22619 libm_alias_float.
22620 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
22621 (cosf): Likewise.
22622 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
22623 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
22624 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
22625 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
22626 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
22627 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
22628 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
22629 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
22630 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
22631 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
22632 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
22633 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
22634 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
22635 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
22636 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
22637 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
22638 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
22639 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
22640 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
22641 libm_alias_float.
22642 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
22643 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
22644 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
22645 * sysdeps/ia64/fpu/w_lgammaf_main.c
22646 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
22647 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
22648
22649 2017-11-28 Mike FABIAN <mfabian@redhat.com>
22650 Alexandre Oliva <aoliva@redhat.com>
22651
22652 [BZ #17750]
22653 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
22654 * localedata/fr_CA.UTF-8.in: New file with test data for backward
22655 accents sorting.
22656 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
22657 sorting.
22658 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
22659 * localedata/locales/de_DE (LC_COLLATE): Likewise.
22660 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
22661 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
22662 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
22663 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
22664 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
22665 instead of “ifdef DIACRIT_BACKWARD”.
22666
22667 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22668
22669 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
22670 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
22671 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
22672 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
22673 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
22674 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
22675 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
22676 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
22677 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
22678 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
22679 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
22680 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
22681 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
22682 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
22683 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
22684 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22685 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
22686 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
22687 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22688 ($(have-as-vis3) == yes): Remove conditional.
22689 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
22690 Likewise.
22691 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
22692 file.
22693 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
22694 file.
22695 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
22696 file.
22697 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
22698 file.
22699 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
22700 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
22701 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
22702 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
22703 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
22704 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
22705 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
22706 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
22707
22708 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22709
22710 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
22711 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
22712 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
22713 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
22714 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
22715 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
22716 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
22717 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
22718 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
22719 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
22720 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
22721 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
22722 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
22723 libm_alias_double_r.
22724 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
22725 (log): Likewise.
22726 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
22727 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
22728 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
22729 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
22730 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
22731 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
22732 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
22733 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
22734 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
22735 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
22736 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
22737 libm_alias_double.
22738 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
22739 (cos): Likewise.
22740 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
22741 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
22742 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
22743 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
22744 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
22745 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
22746 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
22747 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
22748 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
22749 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
22750 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
22751 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
22752 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
22753 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
22754 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
22755 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
22756 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
22757 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
22758 libm_alias_double.
22759 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
22760 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
22761 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
22762 * sysdeps/ia64/fpu/w_lgamma_main.c
22763 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
22764 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
22765
22766 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
22767
22768 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
22769 address of $global$ into %dp register earlier. Use pc-relative
22770 instruction sequence for PIC case.
22771
22772 2017-11-28 Joseph Myers <joseph@codesourcery.com>
22773
22774 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
22775 (asinhf): Define using libm_alias_float.
22776 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
22777 (atanf): Define using libm_alias_float.
22778 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
22779 (cbrtf): Define using libm_alias_float.
22780 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
22781 (ceilf): Define using libm_alias_float.
22782 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22783 (copysignf): Define using libm_alias_float.
22784 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
22785 (expm1f): Define using libm_alias_float.
22786 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
22787 (fabsf): Define using libm_alias_float.
22788 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
22789 (floorf): Define using libm_alias_float.
22790 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22791 (fmaxf): Define using libm_alias_float.
22792 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
22793 (fminf): Define using libm_alias_float.
22794 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
22795 (frexpf): Define using libm_alias_float.
22796 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22797 (llrintf): Define using libm_alias_float.
22798 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
22799 (logbf): Define using libm_alias_float.
22800 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22801 (lrintf): Define using libm_alias_float.
22802 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
22803 (nearbyintf): Define using libm_alias_float.
22804 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
22805 (remquof): Define using libm_alias_float.
22806 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
22807 (rintf): Define using libm_alias_float.
22808 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
22809 (truncf): Define using libm_alias_float.
22810 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
22811 <libm-alias-float.h>.
22812 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22813 if [SHARED].
22814 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
22815 <libm-alias-float.h>.
22816 (expf): Define using libm_alias_float, or libm_alias_float_other
22817 if [SHARED].
22818 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
22819 <libm-alias-float.h>.
22820 (log2f): Define using libm_alias_float, or libm_alias_float_other
22821 if [SHARED].
22822 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
22823 <libm-alias-float.h>.
22824 (logf): Define using libm_alias_float, or libm_alias_float_other
22825 if [SHARED].
22826 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
22827 <libm-alias-float.h>.
22828 (powf): Define using libm_alias_float, or libm_alias_float_other
22829 if [SHARED].
22830 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
22831 <libm-alias-float.h>.
22832 (cosf): Define using libm_alias_float.
22833 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
22834 <libm-alias-float.h>.
22835 (sincosf): Define using libm_alias_float.
22836 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
22837 <libm-alias-float.h>.
22838 (sinf): Define using libm_alias_float.
22839 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22840 (fmaxf): Define using libm_alias_float.
22841 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
22842 (fminf): Define using libm_alias_float.
22843 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
22844 <libm-alias-float.h>.
22845 (fmaf): Define using libm_alias_float.
22846
22847 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
22848 (asinh): Define using libm_alias_double.
22849 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
22850 (atan): Define using libm_alias_double.
22851 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
22852 (cbrt): Define using libm_alias_double.
22853 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
22854 (ceil): Define using libm_alias_double.
22855 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
22856 (copysign): Define using libm_alias_double.
22857 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
22858 (expm1): Define using libm_alias_double.
22859 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
22860 (fabs): Define using libm_alias_double.
22861 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
22862 (fdim): Define using libm_alias_double.
22863 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
22864 (floor): Define using libm_alias_double.
22865 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
22866 (fmax): Define using libm_alias_double.
22867 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
22868 (fmin): Define using libm_alias_double.
22869 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
22870 (frexp): Define using libm_alias_double.
22871 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
22872 (llrint): Define using libm_alias_double.
22873 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
22874 (logb): Define using libm_alias_double.
22875 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
22876 (lrint): Define using libm_alias_double.
22877 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
22878 (nearbyint): Define using libm_alias_double.
22879 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
22880 (remquo): Define using libm_alias_double.
22881 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
22882 (rint): Define using libm_alias_double.
22883 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
22884 (trunc): Define using libm_alias_double.
22885 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
22886 (fmax): Define using libm_alias_double.
22887 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
22888 (fmin): Define using libm_alias_double.
22889 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
22890 (fma): Define using libm_alias_double.
22891
22892 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
22893
22894 [BZ #22370]
22895 * elf/dl-hwcaps.c (ROUND): Removed.
22896 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
22897 and ELF_NOTE_NEXT_OFFSET.
22898 * elf/dl-load.c (ROUND): Removed.
22899 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
22900 * elf/readelflib.c (ROUND): Removed.
22901 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
22902 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
22903 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
22904 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
22905
22906 2017-11-28 Joseph Myers <joseph@codesourcery.com>
22907
22908 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
22909 [!__fmaf] (fmaf): Define using libm_alias_float.
22910
22911 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
22912 [!__fma] (fma): Define using libm_alias_double.
22913 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
22914
22915 2017-11-28 Mike FABIAN <mfabian@redhat.com>
22916
22917 [BZ #22336]
22918 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
22919 and implement the collation rules for cs from CLDR on top of that.
22920 * Makefile: Add cs_CZ.UTF-8 to test-input.
22921 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
22922
22923 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
22924
22925 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
22926
22927 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
22928 Icarus Sparry <icarus.w.sparry@intel.com>
22929
22930 * benchtests/Makefile:Add BENCHSET to allow subsets of
22931 benchmarks to be run.
22932 * benchtests/README: Add documentation for: Running subsets of
22933 benchmarks.
22934
22935 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
22936
22937 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
22938 range of tests names.
22939
22940 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
22941 result from property and remove "max", min" and "mean" from
22942 required properties based on benchtests/bench-skeleton.c.
22943
22944 2017-11-28 Florian Weimer <fweimer@redhat.com>
22945
22946 [BZ #20826]
22947 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
22948 due to Internet requirement.
22949 * posix/Makefile (tests): Remove tst-getaddrinfo4,
22950 tst-getaddrinfo5.
22951 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
22952
22953 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22954
22955 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
22956 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
22957 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
22958 (sysdep_routines): Add memset-ultra1.
22959 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
22960 file.
22961 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
22962 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
22963 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
22964 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
22965 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
22966 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
22967 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
22968 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
22969
22970 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
22971 file.
22972 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
22973 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
22974 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
22975 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
22976 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
22977 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
22978 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
22979 macro.
22980 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
22981 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
22982 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
22983 (sysdep_routines): Add memcpy-ultra1.
22984 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
22985 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
22986
22987 2017-11-28 Joseph Myers <joseph@codesourcery.com>
22988
22989 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
22990 (cfloat_versions): Take function argument without trailing 'f'.
22991 Call libm_alias_float_other.
22992 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
22993 * sysdeps/alpha/fpu/cargf.c: Likewise.
22994 * sysdeps/alpha/fpu/cimagf.c: Likewise.
22995 * sysdeps/alpha/fpu/conjf.c: Likewise.
22996 * sysdeps/alpha/fpu/crealf.c: Likewise.
22997 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
22998 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
22999 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23000 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23001 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23002 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23003 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23004 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23005 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23006 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23007 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23008 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23009 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23010 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23011 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23012 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23013 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23014 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23015 (clog10f): Use libm_alias_float_other.
23016 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23017 (ceilf): Define using libm_alias_float.
23018 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23019 (copysignf): Define using libm_alias_float.
23020 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23021 (fabsf): Define using libm_alias_float.
23022 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23023 (floorf): Define using libm_alias_float.
23024 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23025 (fmaxf): Define using libm_alias_float.
23026 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23027 (fminf): Define using libm_alias_float.
23028 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23029 (lrintf): Define using libm_alias_float.
23030 (llrintf): Likewise.
23031 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23032 (lroundf): Define using libm_alias_float.
23033 (llroundf): Likewise.
23034 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23035 (rintf): Define using libm_alias_float.
23036 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23037 (truncf): Define using libm_alias_float.
23038
23039 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23040 (ceilf): Define using libm_alias_float.
23041 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23042 (floorf): Define using libm_alias_float.
23043 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23044 (fmaf): Define using libm_alias_float.
23045 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23046 (fmaxf): Define using libm_alias_float.
23047 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23048 (fminf): Define using libm_alias_float.
23049 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23050 (llrintf): Define using libm_alias_float.
23051 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23052 (llroundf): Define using libm_alias_float.
23053 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23054 (lrintf): Define using libm_alias_float.
23055 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23056 (lroundf): Define using libm_alias_float.
23057 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23058 <libm-alias-float.h>.
23059 (nearbyintf): Define using libm_alias_float.
23060 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23061 (rintf): Define using libm_alias_float.
23062 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23063 (roundf): Define using libm_alias_float.
23064 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23065 (truncf): Define using libm_alias_float.
23066
23067 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23068 (ceil): Define using libm_alias_double.
23069 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23070 (copysign): Define using libm_alias_double.
23071 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23072 (fabs): Define using libm_alias_double.
23073 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23074 (floor): Define using libm_alias_double.
23075 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23076 (fmax): Define using libm_alias_double.
23077 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23078 (fmin): Define using libm_alias_double.
23079 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23080 (lrint): Define using libm_alias_double.
23081 (llrint): Likewise.
23082 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23083 (lround): Define using libm_alias_double.
23084 (llround): Likewise.
23085 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23086 (rint): Define using libm_alias_double.
23087 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23088 (trunc): Define using libm_alias_double.
23089
23090 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23091 (libm_alias_double_r): Add semicolon after weak_alias call.
23092
23093 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23094
23095 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23096 (ceil): Define using libm_alias_double.
23097 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23098 (floor): Define using libm_alias_double.
23099 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23100 (fma): Define using libm_alias_double.
23101 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23102 (fmax): Define using libm_alias_double.
23103 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23104 (fmin): Define using libm_alias_double.
23105 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23106 (llrint): Define using libm_alias_double.
23107 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23108 (llround): Define using libm_alias_double.
23109 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23110 (lrint): Define using libm_alias_double.
23111 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23112 (lround): Define using libm_alias_double.
23113 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23114 (nearbyint): Define using libm_alias_double.
23115 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23116 (rint): Define using libm_alias_double.
23117 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23118 (round): Define using libm_alias_double.
23119 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23120 (trunc): Define using libm_alias_double.
23121
23122 2017-11-27 Florian Weimer <fweimer@redhat.com>
23123
23124 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23125 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23126 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23127 (tests): Add tst-mlock2.
23128 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23129 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23130 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23131 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23132 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23133 for mlock. Document mlock2.
23134
23135 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23136
23137 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23138 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23139 Likewise.
23140 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23141 Likewise.
23142 * sysdeps/x86/Makeconfig: New file.
23143 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23144 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23145 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23146 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23147 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23148 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23149 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23150 Likewise.
23151 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23152 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23153 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23154 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23155 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23156 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23157 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23158 * manual/math.texi (Mathematics): Document support for _Float64x.
23159 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23160 * stdlib/Versions (GLIBC_2.27): Likewise.
23161 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23162 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23163 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23164 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23165 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23166 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23167 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23168 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23169 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23170 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23171 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23172 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23174 Likewise.
23175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23176 Likewise.
23177 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23178 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23179 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23180 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23181 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23182 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23183 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23184 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23185 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23186 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23187 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23188 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23189 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23190 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23191
23192 2017-11-27 Andreas Schwab <schwab@suse.de>
23193
23194 * elf/Makefile (dl-routines): Add dl-sort-maps.
23195 * elf/dl-sort-maps.c: New file.
23196 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23197 (_dl_sort_maps): Declare.
23198 * elf/dl-fini.c (_dl_sort_fini): Remove.
23199 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23200 * elf/dl-close.c (_dl_close_worker): Likewise.
23201 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23202 open-coding it.
23203 * elf/dl-open.c (dl_open_worker): Likewise.
23204
23205 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23206
23207 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23208 using libm_alias_float128.
23209 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23210 Likewise.
23211 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23212 Likewise.
23213 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23214 (setpayloadsigf128): Likewise.
23215 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23216 Likewise.
23217 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23218 Likewise.
23219
23220 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23221 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23222 -mfloat128 to CFLAGS.
23223 ($(foreach
23224 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23225 Likewise.
23226 (CFLAGS-libm-test-support-float64x.c): New variable.
23227 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23228 $(f128-loader-link) to gnulib-tests.
23229
23230 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23231 (libm_alias_float128_other_r): If
23232 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23233 alias.
23234 (libm_alias_float128_r): Add semicolon after weak_alias call.
23235 * sysdeps/generic/libm-alias-ldouble.h
23236 (libm_alias_ldouble_other_r_f128): New macro.
23237 (libm_alias_ldouble_other_r_f64x): Likewise.
23238 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23239 and libm_alias_ldouble_other_r_f64x.
23240 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23241 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23242 (libm_alias_ldouble_other_r_f128): New macro.
23243 (libm_alias_ldouble_other_r_f64x): Likewise.
23244 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23245 and libm_alias_ldouble_other_r_f64x.
23246
23247 * stdlib/strfroml.c: Always include <stdlib.h>.
23248 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23249 undefine as macro and define as weak alias.
23250 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23251 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23252 <stdlib.h>.
23253 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23254 Define and later undefine as macro and define as weak alias.
23255
23256 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23257 Define and later undefine as macro. Define as weak alias if
23258 [!USE_WIDE_CHAR].
23259 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23260 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23261 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23262 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23263 Define and later undefine as macro. Define as weak alias if
23264 [!USE_WIDE_CHAR].
23265 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23266 Define and later undefine as macro. Define as weak alias if
23267 [USE_WIDE_CHAR].
23268 * sysdeps/ieee754/float128/strtof128_l.c
23269 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23270 Define and later undefine as macro. Define as weak alias if
23271 [!USE_WIDE_CHAR].
23272 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23273 Define and later undefine as macro. Define as weak alias if
23274 [USE_WIDE_CHAR].
23275 * sysdeps/ieee754/ldbl-128/strtold_l.c
23276 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23277 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23278 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23279 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23280 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23281 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23282 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23283 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23284 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23285 * sysdeps/ieee754/ldbl-96/strtold_l.c
23286 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23287 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23288 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23289 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23290
23291 * math/test-float64x.h: New file.
23292 * math/Makefile (type-float64x-yes): New variable.
23293 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23294
23295 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23296 function-like macro.
23297 (min_of_type_): Likewise.
23298 (min_of_type_l): Likewise.
23299 (min_of_type_f128): Likewise.
23300 (min_of_type): Pass () as last argument of __MATH_TG.
23301
23302 * stdlib/tst-strtod-round-skeleton.c
23303 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23304 headers.
23305
23306 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23307 for combinations of long double with _Float64 and _Float64x.
23308
23309 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23310 (__DECL_SIMD_cosf32): Likewise.
23311 (__DECL_SIMD_cosf64): Likewise.
23312 (__DECL_SIMD_cosf32x): Likewise.
23313 (__DECL_SIMD_cosf64x): Likewise.
23314 (__DECL_SIMD_cosf128x): Likewise.
23315 (__DECL_SIMD_sinf16): Likewise.
23316 (__DECL_SIMD_sinf32): Likewise.
23317 (__DECL_SIMD_sinf64): Likewise.
23318 (__DECL_SIMD_sinf32x): Likewise.
23319 (__DECL_SIMD_sinf64x): Likewise.
23320 (__DECL_SIMD_sinf128x): Likewise.
23321 (__DECL_SIMD_sincosf16): Likewise.
23322 (__DECL_SIMD_sincosf32): Likewise.
23323 (__DECL_SIMD_sincosf64): Likewise.
23324 (__DECL_SIMD_sincosf32x): Likewise.
23325 (__DECL_SIMD_sincosf64x): Likewise.
23326 (__DECL_SIMD_sincosf128x): Likewise.
23327 (__DECL_SIMD_logf16): Likewise.
23328 (__DECL_SIMD_logf32): Likewise.
23329 (__DECL_SIMD_logf64): Likewise.
23330 (__DECL_SIMD_logf32x): Likewise.
23331 (__DECL_SIMD_logf64x): Likewise.
23332 (__DECL_SIMD_logf128x): Likewise.
23333 (__DECL_SIMD_expf16): Likewise.
23334 (__DECL_SIMD_expf32): Likewise.
23335 (__DECL_SIMD_expf64): Likewise.
23336 (__DECL_SIMD_expf32x): Likewise.
23337 (__DECL_SIMD_expf64x): Likewise.
23338 (__DECL_SIMD_expf128x): Likewise.
23339 (__DECL_SIMD_powf16): Likewise.
23340 (__DECL_SIMD_powf32): Likewise.
23341 (__DECL_SIMD_powf64): Likewise.
23342 (__DECL_SIMD_powf32x): Likewise.
23343 (__DECL_SIMD_powf64x): Likewise.
23344 (__DECL_SIMD_powf128x): Likewise.
23345
23346 * stdlib/Versions (libc): Move entries for wcstof128 and
23347 wcstof128_l to ....
23348 * wcsmbs/Versions (libc): ... here.
23349 Include <float128-abi.h>.
23350
23351 2017-11-24 Florian Weimer <fweimer@redhat.com>
23352
23353 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23354 bits/mman-shared.h.
23355 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23356 <bits/mman-shared.h>.
23357 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23358 to ...
23359 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23360 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23361 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23362 <bits/mman-shared.h>.
23363
23364 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23365
23366 [BZ #22457]
23367 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23368 posix_memalign/free.
23369 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23370
23371 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23372
23373 [BZ #22469]
23374 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23375 and implement the collation rules for pl from CLDR on top of that.
23376 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23377 of locales to be built for testing.
23378 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23379
23380 2017-11-23 Joseph Myers <joseph@codesourcery.com>
23381
23382 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23383 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23384 libm_alias_ldouble_other.
23385 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23386 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23387 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23388 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23389 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23390 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23391 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23392 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23393 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23394 libm_alias_ldouble_r.
23395 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23396 libm_alias_ldouble_other.
23397 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23398 (log10l): Likewise.
23399 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
23400 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
23401 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
23402 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
23403 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
23404 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
23405 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
23406 (atan2l): Likewise.
23407 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
23408 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
23409 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
23410 libm_alias_ldouble.
23411 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
23412 (cosl): Likewise.
23413 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
23414 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
23415 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
23416 (expl): Likewise.
23417 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
23418 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
23419 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
23420 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
23421 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
23422 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
23423 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
23424 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
23425 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
23426 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
23427 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
23428 libm_alias_ldouble.
23429 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
23430 libm_alias_ldouble_other.
23431 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
23432 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
23433 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
23434 libm_alias_ldouble.
23435 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
23436 libm_alias_ldouble_other.
23437 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
23438 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
23439 * sysdeps/ia64/fpu/w_lgammal_main.c
23440 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
23441 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
23442
23443 2017-11-23 Florian Weimer <fweimer@redhat.com>
23444
23445 * malloc/malloc.c (tcache_thread_shutdown): Rename from
23446 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
23447 alike. Remove freeres marker.
23448 * malloc/arena.c (arena_thread_freeres): Call
23449 tcache_thread_shutdown.
23450
23451 2017-11-23 Florian Weimer <fweimer@redhat.com>
23452
23453 [BZ #22459]
23454 Export nscd hash function as __nss_hash.
23455 * include/nss.h (__nss_hash): Declare.
23456 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
23457 symbol.
23458 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
23459 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
23460 of __nscd_hash.
23461 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
23462 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
23463 * nss/Makefiles (routines): Add nss_hash.
23464 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
23465 * nss/nss_hash.c: Rename from nis/nis_hash.c.
23466 (__nss_hash): Rename from __nis_hash. Define hidden alias.
23467 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
23468
23469 2017-11-23 Florian Weimer <fweimer@redhat.com>
23470
23471 [BZ #22478]
23472 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
23473 Return error code, not -1.
23474 * signal/tst-sigwait-eintr.c: New file.
23475 * signal/Makefile (tests): Add tst-sigwait-eintr.
23476
23477 2017-11-23 Florian Weimer <fweimer@redhat.com>
23478
23479 Linux: Add memfd_create system call wrapper
23480 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
23481 tst-memfd_create.
23482 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
23483 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
23484 [__USE_GNU] (memfd_create): Declare.
23485 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
23486 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
23487 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
23488 * sysdeps/unix/sysv/linux/**.abilist: Update.
23489 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
23490
23491 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23492
23493 * localedata/gen-locale.sh: Fix typo in variable name.
23494
23495 * resolv/res_debug.c (p_secstodate): Condition definition on
23496 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
23497 directly as __p_secstodate, and as a compat symbol. Do not use
23498 libresolv_hidden_def.
23499 * resolv/resolv.h (p_secstodate): Remove macro and function
23500 declaration.
23501 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
23502 using p_secstodate.
23503 * include/resolv.h (__p_secstodate): Do not use
23504 libresolv_hidden_proto.
23505 * resolv/Makefile (tests): Move tst-p_secstodate to ....
23506 (tests-internal): ... here.
23507 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
23508 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
23509 and declare and use __p_secstodate and use compat_symbol_reference
23510 in that case.
23511 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
23512 implementation returning 77.
23513
23514 [BZ #22463]
23515 * resolv/res_debug.c: Include <libc-diag.h>.
23516 (p_secstodate): Assert time_t at least as wide as u_long. On
23517 overflow, use integer seconds since the epoch as output, or use
23518 "<overflow>" as output and set errno to EOVERFLOW if integer
23519 seconds since the epoch would be 14 or more characters.
23520 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
23521 for sprintf call.
23522 * resolv/tst-p_secstodate.c: New file.
23523 * resolv/Makefile (tests): Add tst-p_secstodate.
23524 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
23525
23526 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
23527 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
23528 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
23529
23530 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
23531
23532 * posix/regcomp.c (init_word_char): Add comments.
23533
23534 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23535
23536 [BZ #22447]
23537 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
23538 strlen to compute length of ut_user and set trailing NUL byte of
23539 result explicitly.
23540
23541 2017-11-21 Mike FABIAN <mfabian@redhat.com>
23542
23543 [BZ #15537]
23544 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
23545 using “copy "iso14651_t1"” and then implementing the
23546 collation rules for lv from CLDR on top of that.
23547 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
23548 of locales to be built for testing.
23549 * lv_LV.UTF-8.in: New file with test data to test the Latvian
23550 sorting.
23551
23552 2017-11-21 Joseph Myers <joseph@codesourcery.com>
23553
23554 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23555 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
23556 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
23557 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
23558 [__USE_MISC] (MADV_HWPOISON): New macro.
23559 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
23560
23561 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23562
23563 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
23564 -Wmissing-braces on GCC 4.9.
23565
23566 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23567
23568 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
23569 * sysdeps/s390/s390-32/start.S (_start): Likewise
23570 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
23571 (thread_start): Likewise.
23572 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
23573 (thread_start): Likewise.
23574 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
23575 (__makecontext_ret): Likewise.
23576 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
23577 (__makecontext_ret): Likewise.
23578
23579 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23580
23581 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
23582 __wcschrnul): Remove attribute_hidden.
23583
23584 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
23585
23586 regex: don't assume uint64_t or uint32_t
23587 This avoids -Werror=overflow errors for 32-bit systems in
23588 the 64-bit case. Problem reported by Joseph Myers in:
23589 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
23590 Also, when this code is used in Gnulib it ports to platforms
23591 that lack uint64_t and uint32_t. The C standard doesn't guarantee
23592 them, and on some 32-bit compilers there is no uint64_t.
23593 Problem reported by Gianluigi Tiesi in:
23594 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
23595 * posix/regcomp.c (init_word_char): Don't assume that the types
23596 uint64_t and uint32_t exist. Adapted from Gnulib patch
23597 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
23598 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
23599
23600 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
23601
23602 * sysdeps/aarch64/memset-reg.h: New file.
23603 * sysdeps/aarch64/memset.S: Use it.
23604 (__memset): Rename to MEMSET macro.
23605 [ZVA_MACRO]: Use zva_macro.
23606 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
23607 Add memset_generic and memset_falkor.
23608 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
23609 (__libc_ifunc_impl_list): Add memset ifuncs.
23610 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
23611 local variable zva_size.
23612 * sysdeps/aarch64/multiarch/memset.c: New file.
23613 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
23614 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
23615 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
23616 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
23617 (DCZID_DZP_MASK): New macro.
23618 (DCZID_BS_MASK): Likewise.
23619 (init_cpu_features): Read and set zva_size.
23620 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
23621 (struct cpu_features): New member zva_size.
23622
23623 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
23624 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
23625 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
23626
23627 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
23628 backwards. Fix timing computation.
23629 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
23630 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
23631 on memset by N at a time. Fix timing computation.
23632
23633 2017-11-20 Florian Weimer <fweimer@redhat.com>
23634
23635 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
23636 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
23637
23638 2017-11-19 Florian Weimer <fweimer@redhat.com>
23639
23640 manual: Document mprotect
23641 * manual/memory.texi (Memory Protection): New section.
23642 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
23643 documentation of PROT_* flags and reference the Memory Protection
23644 section instead.
23645
23646 2017-11-19 Florian Weimer <fweimer@redhat.com>
23647
23648 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
23649 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
23650 (Scatter-Gather): ... to here. Remove misleading comment.
23651
23652 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
23653
23654 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
23655 style.
23656
23657 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
23658 when /proc/<pid>/setgroups does not exist.
23659
23660 2017-11-18 Florian Weimer <fweimer@redhat.com>
23661
23662 * sysdeps/unix/sysv/linux/tst-ttyname.c
23663 (become_root_in_mount_ns): Remove.
23664 (do_in_chroot_1): Call support_enter_mount_namespace.
23665 (do_in_chroot_2): Likewise.
23666 (do_test): Call support_become_root early.
23667
23668 2017-11-18 Florian Weimer <fweimer@redhat.com>
23669
23670 * support/namespace.h (support_enter_mount_namespace): Declare.
23671 * support/support_enter_mount_namespace.c: New file.
23672 * support/Makefile (libsupport-routines): Add
23673 support_enter_mount_namespace.
23674
23675 2017-11-18 Florian Weimer <fweimer@redhat.com>
23676
23677 * support/temp_file.c (support_create_temp_directory): Use
23678 test_dir and do not rely on the presence of the XXXXXX suffix.
23679 * support/temp_file.h (support_create_temp_directory): Update
23680 comment.
23681 * support/tst-xreadlink.c (do_test): Adjust.
23682 * support/support_chroot.c (support_chroot_create): Likewise.
23683
23684 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23685
23686 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
23687 macro.
23688 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
23689 htm-no-suspend.
23690
23691 2017-11-17 Joseph Myers <joseph@codesourcery.com>
23692
23693 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23694 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23695 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23696 (ceill): Define using libm_alias_ldouble.
23697 * sysdeps/x86_64/fpu/s_copysignl.S: Include
23698 <libm-alias-ldouble.h>.
23699 (copysignl): Define using libm_alias_ldouble.
23700 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
23701 (fabsl): Define using libm_alias_ldouble.
23702 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
23703 (floorl): Define using libm_alias_ldouble.
23704 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23705 (fmaxl): Define using libm_alias_ldouble.
23706 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23707 (fminl): Define using libm_alias_ldouble.
23708 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
23709 (llrintl): Define using libm_alias_ldouble.
23710 (lrintl): Likewise.
23711 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
23712 <libm-alias-ldouble.h>.
23713 (nearbyintl): Define using libm_alias_ldouble.
23714 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
23715 (truncl): Define using libm_alias_ldouble.
23716 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
23717 <libm-alias-ldouble.h>.
23718 (lrintl): Define using libm_alias_ldouble.
23719
23720 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23721 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23722 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
23723 (asinhl): Define using libm_alias_ldouble.
23724 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
23725 (atanl): Define using libm_alias_ldouble.
23726 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
23727 (cbrtl): Define using libm_alias_ldouble.
23728 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23729 (ceill): Define using libm_alias_ldouble.
23730 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
23731 (copysignl): Define using libm_alias_ldouble.
23732 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
23733 (fabsl): Define using libm_alias_ldouble.
23734 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
23735 (floorl): Define using libm_alias_ldouble.
23736 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23737 (fmaxl): Define using libm_alias_ldouble.
23738 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23739 (fminl): Define using libm_alias_ldouble.
23740 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
23741 (frexpl): Define using libm_alias_ldouble.
23742 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
23743 (llrintl): Define using libm_alias_ldouble.
23744 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
23745 (logbl): Define using libm_alias_ldouble.
23746 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
23747 (lrintl): Define using libm_alias_ldouble.
23748 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
23749 (nearbyintl): Define using libm_alias_ldouble.
23750 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
23751 (nextafterl): Define using libm_alias_ldouble.
23752 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
23753 (remquol): Define using libm_alias_ldouble.
23754 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
23755 (rintl): Define using libm_alias_ldouble.
23756 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
23757 (truncl): Define using libm_alias_ldouble.
23758 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23759 (fmaxl): Define using libm_alias_ldouble.
23760 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23761 (fminl): Define using libm_alias_ldouble.
23762
23763 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
23764 to C syntax instead of availability and properties of types.
23765 * bits/floatn.h [!__ASSEMBLER]: Likewise.
23766 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
23767 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
23768 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
23769 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
23770 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
23771
23772 2017-11-17 Florian Weimer <fweimer@redhat.com>
23773
23774 support_become_root: Enable file creation in namespaces.
23775 * support/support_become_root.c (setup_mapping): New function.
23776 (support_become_root): Call it.
23777
23778 2017-11-17 Joseph Myers <joseph@codesourcery.com>
23779
23780 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
23781 macro.
23782
23783 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23784
23785 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
23786 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
23787
23788 2017-11-16 Joseph Myers <joseph@codesourcery.com>
23789
23790 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
23791
23792 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
23793 version to 4.14.
23794
23795 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
23796
23797 * INSTALL: Fix botched up regeneration.
23798
23799 * NEWS: Update sourceare link to https.
23800 * configure.ac: Likewise.
23801 * crypt/md5test-giant.c: Likewise.
23802 * dlfcn/bug-atexit1.c: Likewise.
23803 * dlfcn/bug-atexit2.c: Likewise.
23804 * localedata/README: Likewise.
23805 * malloc/tst-mallocfork.c: Likewise.
23806 * manual/install.texi: Likewise.
23807 * nptl/tst-pthread-getattr.c: Likewise.
23808 * stdio-common/tst-fgets.c: Likewise.
23809 * stdio-common/tst-fwrite.c: Likewise.
23810 * sunrpc/Makefile: Likewise.
23811 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
23812 * wcsmbs/tst-mbrtowc2.c: Likewise.
23813 * configure: Regenerate.
23814 * INSTALL: Regenerate.
23815
23816 2017-11-15 Martin Sebor <msebor@redhat.com>
23817
23818 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
23819 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
23820 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
23821
23822 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
23823
23824 [BZ #22145]
23825 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
23826 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
23827
23828 [BZ #22145]
23829 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
23830 Defer is_pty check until end of the function.
23831 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
23832
23833 [BZ #22145]
23834 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
23835 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
23836 (ttyname): Likewise.
23837 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
23838 (__ttyname_r): Likewise.
23839
23840 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
23841 int to bool.
23842
23843 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
23844
23845 * manual/terminal.texi (Is It a Terminal):
23846 Mention ENODEV for ttyname and ttyname_r.
23847
23848 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23849
23850 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
23851 constant and macro.
23852
23853 * sysdeps/unix/sysv/linux/bits/mman-linux.h
23854 [__USE_MISC] (MADV_WIPEONFORK): New macro.
23855 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
23856 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23857 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
23858 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
23859
23860 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23861
23862 * signal/sigrelse.c (sigrelse): Optimize implementation.
23863
23864 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
23865 (__sigpause): Rely on __sigsuspend to implement single thread
23866 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
23867
23868 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23869
23870 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
23871 kernel version to 4.14.
23872
23873 2017-11-15 Steve Ellcey <sellcey@cavium.com>
23874
23875 [BZ #22442]
23876 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
23877 Check if ifname is too long.
23878
23879 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
23880
23881 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
23882
23883 2017-11-15 Mike FABIAN <mfabian@redhat.com>
23884
23885 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
23886 was accidentally lost.
23887
23888 2017-11-15 Mike FABIAN <mfabian@redhat.com>
23889
23890 * localedata/locales/az_IR: Add standard copyright header.
23891
23892 2017-11-15 Florian Weimer <fweimer@redhat.com>
23893
23894 [BZ #22439]
23895 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
23896 not just the top one. Output a new "subheaps" statistic.
23897
23898 2017-11-15 Florian Weimer <fweimer@redhat.com>
23899
23900 [BZ #22408]
23901 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
23902 under the per-arena lock.
23903 * malloc/Makefile (tests): Add tst-malloc_info.
23904 (tst-malloc_info): Link with libpthread.
23905 * malloc/tst-malloc_info.c: New file.
23906
23907 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23908
23909 [BZ #21660]
23910 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
23911 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
23912 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
23913 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
23914 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
23915 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
23916 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
23917 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
23918 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
23919 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
23920 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
23921 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
23922 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
23923 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
23924 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
23925 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
23926 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
23927 (__floating_type): Likewise.
23928 (__real_integer_type): Likewise.
23929 (__complex_integer_type): Likewise.
23930 (__expr_is_real): Likewise.
23931 (__tgmath_real_type_sub): Likewise.
23932 (__tgmath_real_type): Likewise.
23933 (__tgmath_complex_type_sub): Likewise.
23934 (__tgmath_complex_type): Likewise.
23935 (__TGMATH_F128): Likewise.
23936 (__TGMATH_CF128): Likewise.
23937 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
23938 new macros.
23939 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
23940 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
23941 Likewise.
23942 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
23943 Likewise.
23944 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
23945 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
23946 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
23947 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
23948 Likewise.
23949 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
23950 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
23951 Likewise.
23952 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
23953 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
23954 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
23955 Likewise.
23956 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
23957 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
23958 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
23959 (cimag): Likewise.
23960 (creal): Likewise.
23961
23962 2017-11-14 Joseph Myers <joseph@codesourcery.com>
23963
23964 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
23965 for stpncpy calls for GCC 8.
23966 (test_strncat): Disable -Wstringop-truncation warning for strncat
23967 calls for GCC 8. Disable -Wstringop-overflow= warning for one
23968 strncat call for GCC 7.
23969 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
23970 calls for GCC 8.
23971 (test_memcmp): Use memcpy instead of strncpy for calls not copying
23972 trailing NUL.
23973
23974 * string/bug-strncat1.c: Include <libc-diag.h>.
23975 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
23976
23977 2017-11-13 Claude Paroz <claude@2xlibre.net>
23978
23979 [BZ #22387]
23980 * localedata/locales/aa_DJ: Improved readibility by replacing
23981 <Uxxxx> sequences in the ASCII printable range by their ASCII
23982 character equivalents.
23983 * localedata/locales/aa_ER: Likewise.
23984 * localedata/locales/aa_ER@saaho: Likewise.
23985 * localedata/locales/aa_ET: Likewise.
23986 * localedata/locales/af_ZA: Likewise.
23987 * localedata/locales/agr_PE: Likewise.
23988 * localedata/locales/ak_GH: Likewise.
23989 * localedata/locales/am_ET: Likewise.
23990 * localedata/locales/anp_IN: Likewise.
23991 * localedata/locales/ar_AE: Likewise.
23992 * localedata/locales/ar_BH: Likewise.
23993 * localedata/locales/ar_DZ: Likewise.
23994 * localedata/locales/ar_EG: Likewise.
23995 * localedata/locales/ar_IN: Likewise.
23996 * localedata/locales/ar_IQ: Likewise.
23997 * localedata/locales/ar_JO: Likewise.
23998 * localedata/locales/ar_KW: Likewise.
23999 * localedata/locales/ar_LB: Likewise.
24000 * localedata/locales/ar_LY: Likewise.
24001 * localedata/locales/ar_MA: Likewise.
24002 * localedata/locales/ar_OM: Likewise.
24003 * localedata/locales/ar_QA: Likewise.
24004 * localedata/locales/ar_SA: Likewise.
24005 * localedata/locales/ar_SD: Likewise.
24006 * localedata/locales/ar_SS: Likewise.
24007 * localedata/locales/ar_SY: Likewise.
24008 * localedata/locales/ar_TN: Likewise.
24009 * localedata/locales/ar_YE: Likewise.
24010 * localedata/locales/as_IN: Likewise.
24011 * localedata/locales/ast_ES: Likewise.
24012 * localedata/locales/ayc_PE: Likewise.
24013 * localedata/locales/az_AZ: Likewise.
24014 * localedata/locales/az_IR: Likewise.
24015 * localedata/locales/be_BY: Likewise.
24016 * localedata/locales/be_BY@latin: Likewise.
24017 * localedata/locales/bem_ZM: Likewise.
24018 * localedata/locales/ber_DZ: Likewise.
24019 * localedata/locales/ber_MA: Likewise.
24020 * localedata/locales/bg_BG: Likewise.
24021 * localedata/locales/bhb_IN: Likewise.
24022 * localedata/locales/bho_IN: Likewise.
24023 * localedata/locales/bi_VU: Likewise.
24024 * localedata/locales/bn_BD: Likewise.
24025 * localedata/locales/bn_IN: Likewise.
24026 * localedata/locales/bo_CN: Likewise.
24027 * localedata/locales/bo_IN: Likewise.
24028 * localedata/locales/br_FR: Likewise.
24029 * localedata/locales/brx_IN: Likewise.
24030 * localedata/locales/bs_BA: Likewise.
24031 * localedata/locales/byn_ER: Likewise.
24032 * localedata/locales/ca_AD: Likewise.
24033 * localedata/locales/ca_ES: Likewise.
24034 * localedata/locales/ca_FR: Likewise.
24035 * localedata/locales/ca_IT: Likewise.
24036 * localedata/locales/ce_RU: Likewise.
24037 * localedata/locales/chr_US: Likewise.
24038 * localedata/locales/cmn_TW: Likewise.
24039 * localedata/locales/crh_UA: Likewise.
24040 * localedata/locales/cs_CZ: Likewise.
24041 * localedata/locales/csb_PL: Likewise.
24042 * localedata/locales/cv_RU: Likewise.
24043 * localedata/locales/cy_GB: Likewise.
24044 * localedata/locales/da_DK: Likewise.
24045 * localedata/locales/de_AT: Likewise.
24046 * localedata/locales/de_BE: Likewise.
24047 * localedata/locales/de_CH: Likewise.
24048 * localedata/locales/de_DE: Likewise.
24049 * localedata/locales/de_IT: Likewise.
24050 * localedata/locales/de_LI: Likewise.
24051 * localedata/locales/de_LU: Likewise.
24052 * localedata/locales/doi_IN: Likewise.
24053 * localedata/locales/dv_MV: Likewise.
24054 * localedata/locales/dz_BT: Likewise.
24055 * localedata/locales/el_CY: Likewise.
24056 * localedata/locales/el_GR: Likewise.
24057 * localedata/locales/en_AG: Likewise.
24058 * localedata/locales/en_AU: Likewise.
24059 * localedata/locales/en_BW: Likewise.
24060 * localedata/locales/en_CA: Likewise.
24061 * localedata/locales/en_DK: Likewise.
24062 * localedata/locales/en_GB: Likewise.
24063 * localedata/locales/en_HK: Likewise.
24064 * localedata/locales/en_IE: Likewise.
24065 * localedata/locales/en_IL: Likewise.
24066 * localedata/locales/en_IN: Likewise.
24067 * localedata/locales/en_NG: Likewise.
24068 * localedata/locales/en_NZ: Likewise.
24069 * localedata/locales/en_PH: Likewise.
24070 * localedata/locales/en_SG: Likewise.
24071 * localedata/locales/en_US: Likewise.
24072 * localedata/locales/en_ZA: Likewise.
24073 * localedata/locales/en_ZM: Likewise.
24074 * localedata/locales/en_ZW: Likewise.
24075 * localedata/locales/eo: Likewise.
24076 * localedata/locales/es_AR: Likewise.
24077 * localedata/locales/es_BO: Likewise.
24078 * localedata/locales/es_CL: Likewise.
24079 * localedata/locales/es_CO: Likewise.
24080 * localedata/locales/es_CR: Likewise.
24081 * localedata/locales/es_CU: Likewise.
24082 * localedata/locales/es_DO: Likewise.
24083 * localedata/locales/es_EC: Likewise.
24084 * localedata/locales/es_ES: Likewise.
24085 * localedata/locales/es_GT: Likewise.
24086 * localedata/locales/es_HN: Likewise.
24087 * localedata/locales/es_MX: Likewise.
24088 * localedata/locales/es_NI: Likewise.
24089 * localedata/locales/es_PA: Likewise.
24090 * localedata/locales/es_PE: Likewise.
24091 * localedata/locales/es_PR: Likewise.
24092 * localedata/locales/es_PY: Likewise.
24093 * localedata/locales/es_SV: Likewise.
24094 * localedata/locales/es_US: Likewise.
24095 * localedata/locales/es_UY: Likewise.
24096 * localedata/locales/es_VE: Likewise.
24097 * localedata/locales/et_EE: Likewise.
24098 * localedata/locales/eu_ES: Likewise.
24099 * localedata/locales/eu_ES@euro: Likewise.
24100 * localedata/locales/fa_IR: Likewise.
24101 * localedata/locales/ff_SN: Likewise.
24102 * localedata/locales/fi_FI: Likewise.
24103 * localedata/locales/fil_PH: Likewise.
24104 * localedata/locales/fo_FO: Likewise.
24105 * localedata/locales/fr_BE: Likewise.
24106 * localedata/locales/fr_CA: Likewise.
24107 * localedata/locales/fr_CH: Likewise.
24108 * localedata/locales/fr_FR: Likewise.
24109 * localedata/locales/fr_LU: Likewise.
24110 * localedata/locales/fur_IT: Likewise.
24111 * localedata/locales/fy_DE: Likewise.
24112 * localedata/locales/fy_NL: Likewise.
24113 * localedata/locales/ga_IE: Likewise.
24114 * localedata/locales/gd_GB: Likewise.
24115 * localedata/locales/gez_ER: Likewise.
24116 * localedata/locales/gez_ET: Likewise.
24117 * localedata/locales/gl_ES: Likewise.
24118 * localedata/locales/gu_IN: Likewise.
24119 * localedata/locales/gv_GB: Likewise.
24120 * localedata/locales/ha_NG: Likewise.
24121 * localedata/locales/hak_TW: Likewise.
24122 * localedata/locales/he_IL: Likewise.
24123 * localedata/locales/hi_IN: Likewise.
24124 * localedata/locales/hif_FJ: Likewise.
24125 * localedata/locales/hne_IN: Likewise.
24126 * localedata/locales/hr_HR: Likewise.
24127 * localedata/locales/hsb_DE: Likewise.
24128 * localedata/locales/ht_HT: Likewise.
24129 * localedata/locales/hu_HU: Likewise.
24130 * localedata/locales/hy_AM: Likewise.
24131 * localedata/locales/i18n: Likewise.
24132 * localedata/locales/ia_FR: Likewise.
24133 * localedata/locales/id_ID: Likewise.
24134 * localedata/locales/ig_NG: Likewise.
24135 * localedata/locales/ik_CA: Likewise.
24136 * localedata/locales/is_IS: Likewise.
24137 * localedata/locales/it_CH: Likewise.
24138 * localedata/locales/it_IT: Likewise.
24139 * localedata/locales/iu_CA: Likewise.
24140 * localedata/locales/ja_JP: Likewise.
24141 * localedata/locales/ka_GE: Likewise.
24142 * localedata/locales/kk_KZ: Likewise.
24143 * localedata/locales/kl_GL: Likewise.
24144 * localedata/locales/kn_IN: Likewise.
24145 * localedata/locales/ko_KR: Likewise.
24146 * localedata/locales/kok_IN: Likewise.
24147 * localedata/locales/ks_IN: Likewise.
24148 * localedata/locales/ks_IN@devanagari: Likewise.
24149 * localedata/locales/ku_TR: Likewise.
24150 * localedata/locales/kw_GB: Likewise.
24151 * localedata/locales/ky_KG: Likewise.
24152 * localedata/locales/lb_LU: Likewise.
24153 * localedata/locales/lg_UG: Likewise.
24154 * localedata/locales/li_BE: Likewise.
24155 * localedata/locales/li_NL: Likewise.
24156 * localedata/locales/lij_IT: Likewise.
24157 * localedata/locales/ln_CD: Likewise.
24158 * localedata/locales/lo_LA: Likewise.
24159 * localedata/locales/lt_LT: Likewise.
24160 * localedata/locales/lv_LV: Likewise.
24161 * localedata/locales/lzh_TW: Likewise.
24162 * localedata/locales/mag_IN: Likewise.
24163 * localedata/locales/mai_IN: Likewise.
24164 * localedata/locales/mg_MG: Likewise.
24165 * localedata/locales/mhr_RU: Likewise.
24166 * localedata/locales/mi_NZ: Likewise.
24167 * localedata/locales/mk_MK: Likewise.
24168 * localedata/locales/ml_IN: Likewise.
24169 * localedata/locales/mn_MN: Likewise.
24170 * localedata/locales/mni_IN: Likewise.
24171 * localedata/locales/mr_IN: Likewise.
24172 * localedata/locales/ms_MY: Likewise.
24173 * localedata/locales/mt_MT: Likewise.
24174 * localedata/locales/my_MM: Likewise.
24175 * localedata/locales/nan_TW: Likewise.
24176 * localedata/locales/nan_TW@latin: Likewise.
24177 * localedata/locales/nb_NO: Likewise.
24178 * localedata/locales/nds_DE: Likewise.
24179 * localedata/locales/nds_NL: Likewise.
24180 * localedata/locales/ne_NP: Likewise.
24181 * localedata/locales/nhn_MX: Likewise.
24182 * localedata/locales/niu_NU: Likewise.
24183 * localedata/locales/niu_NZ: Likewise.
24184 * localedata/locales/nl_AW: Likewise.
24185 * localedata/locales/nl_BE: Likewise.
24186 * localedata/locales/nl_NL: Likewise.
24187 * localedata/locales/nn_NO: Likewise.
24188 * localedata/locales/nr_ZA: Likewise.
24189 * localedata/locales/nso_ZA: Likewise.
24190 * localedata/locales/oc_FR: Likewise.
24191 * localedata/locales/om_ET: Likewise.
24192 * localedata/locales/om_KE: Likewise.
24193 * localedata/locales/or_IN: Likewise.
24194 * localedata/locales/os_RU: Likewise.
24195 * localedata/locales/pa_IN: Likewise.
24196 * localedata/locales/pa_PK: Likewise.
24197 * localedata/locales/pap_AW: Likewise.
24198 * localedata/locales/pap_CW: Likewise.
24199 * localedata/locales/pl_PL: Likewise.
24200 * localedata/locales/ps_AF: Likewise.
24201 * localedata/locales/pt_BR: Likewise.
24202 * localedata/locales/pt_PT: Likewise.
24203 * localedata/locales/quz_PE: Likewise.
24204 * localedata/locales/raj_IN: Likewise.
24205 * localedata/locales/ro_RO: Likewise.
24206 * localedata/locales/ru_RU: Likewise.
24207 * localedata/locales/ru_UA: Likewise.
24208 * localedata/locales/rw_RW: Likewise.
24209 * localedata/locales/sa_IN: Likewise.
24210 * localedata/locales/sat_IN: Likewise.
24211 * localedata/locales/sc_IT: Likewise.
24212 * localedata/locales/sd_IN: Likewise.
24213 * localedata/locales/sd_IN@devanagari: Likewise.
24214 * localedata/locales/se_NO: Likewise.
24215 * localedata/locales/sgs_LT: Likewise.
24216 * localedata/locales/shs_CA: Likewise.
24217 * localedata/locales/si_LK: Likewise.
24218 * localedata/locales/sid_ET: Likewise.
24219 * localedata/locales/sk_SK: Likewise.
24220 * localedata/locales/sl_SI: Likewise.
24221 * localedata/locales/sm_WS: Likewise.
24222 * localedata/locales/so_DJ: Likewise.
24223 * localedata/locales/so_ET: Likewise.
24224 * localedata/locales/so_KE: Likewise.
24225 * localedata/locales/so_SO: Likewise.
24226 * localedata/locales/sq_AL: Likewise.
24227 * localedata/locales/sq_MK: Likewise.
24228 * localedata/locales/sr_ME: Likewise.
24229 * localedata/locales/sr_RS: Likewise.
24230 * localedata/locales/sr_RS@latin: Likewise.
24231 * localedata/locales/ss_ZA: Likewise.
24232 * localedata/locales/st_ZA: Likewise.
24233 * localedata/locales/sv_FI: Likewise.
24234 * localedata/locales/sv_SE: Likewise.
24235 * localedata/locales/sw_KE: Likewise.
24236 * localedata/locales/sw_TZ: Likewise.
24237 * localedata/locales/szl_PL: Likewise.
24238 * localedata/locales/ta_IN: Likewise.
24239 * localedata/locales/ta_LK: Likewise.
24240 * localedata/locales/tcy_IN: Likewise.
24241 * localedata/locales/te_IN: Likewise.
24242 * localedata/locales/tg_TJ: Likewise.
24243 * localedata/locales/th_TH: Likewise.
24244 * localedata/locales/the_NP: Likewise.
24245 * localedata/locales/ti_ER: Likewise.
24246 * localedata/locales/ti_ET: Likewise.
24247 * localedata/locales/tig_ER: Likewise.
24248 * localedata/locales/tk_TM: Likewise.
24249 * localedata/locales/tl_PH: Likewise.
24250 * localedata/locales/tn_ZA: Likewise.
24251 * localedata/locales/to_TO: Likewise.
24252 * localedata/locales/tpi_PG: Likewise.
24253 * localedata/locales/tr_CY: Likewise.
24254 * localedata/locales/tr_TR: Likewise.
24255 * localedata/locales/ts_ZA: Likewise.
24256 * localedata/locales/tt_RU: Likewise.
24257 * localedata/locales/tt_RU@iqtelif: Likewise.
24258 * localedata/locales/ug_CN: Likewise.
24259 * localedata/locales/uk_UA: Likewise.
24260 * localedata/locales/unm_US: Likewise.
24261 * localedata/locales/ur_IN: Likewise.
24262 * localedata/locales/ur_PK: Likewise.
24263 * localedata/locales/uz_UZ: Likewise.
24264 * localedata/locales/uz_UZ@cyrillic: Likewise.
24265 * localedata/locales/ve_ZA: Likewise.
24266 * localedata/locales/vi_VN: Likewise.
24267 * localedata/locales/wa_BE: Likewise.
24268 * localedata/locales/wae_CH: Likewise.
24269 * localedata/locales/wal_ET: Likewise.
24270 * localedata/locales/wo_SN: Likewise.
24271 * localedata/locales/xh_ZA: Likewise.
24272 * localedata/locales/yi_US: Likewise.
24273 * localedata/locales/yo_NG: Likewise.
24274 * localedata/locales/yue_HK: Likewise.
24275 * localedata/locales/yuw_PG: Likewise.
24276 * localedata/locales/zh_CN: Likewise.
24277 * localedata/locales/zh_HK: Likewise.
24278 * localedata/locales/zh_SG: Likewise.
24279 * localedata/locales/zh_TW: Likewise.
24280 * localedata/locales/zu_ZA: Likewise.
24281
24282 2017-11-13 Florian Weimer <fweimer@redhat.com>
24283
24284 * support/next_to_fault.h, support/next_to_fault.c: New files.
24285 * support/Makefile (libsupport-routines): Add next_to_fault.
24286 * resolv/tst-inet_pton.c (struct next_to_fault)
24287 (next_to_fault_allocate, next_to_fault_free): Remove.
24288 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24289
24290 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24291
24292 * elf/dl-support.c: Include <dl-procruntime.c>.
24293 * include/link.h: Include <link_map.h>.
24294 * sysdeps/generic/dl-procruntime.c: New file.
24295 * sysdeps/generic/link_map.h: Likewise.
24296 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24297 the writable ld.so namespace.
24298
24299 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24300
24301 timezone: pacify GCC -Wstringop-truncation
24302 Problem reported by Martin Sebor in:
24303 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24304 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24305
24306 2017-11-12 Florian Weimer <fweimer@redhat.com>
24307
24308 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24309 tst-xreadlink.
24310 (tests): Add tst-xreadlink.
24311 * support/support.h (xstrndup): Declare.
24312 * support/xunistd.h (xunlink, xreadlink): Declare.
24313 * support/temp_file.h (support_create_temp_directory): Declare.
24314 * support/temp_file.c (support_create_temp_directory): New function.
24315 * support/support_chroot.c (support_chroot_create): Use it.
24316 * support/xreadlink.c: New file.
24317 * support/xstrndup.c: Likewise.
24318 * support/xunlink.c: Likewise.
24319 * support/tst-xreadlink.c: Likewise.
24320
24321 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24322
24323 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24324
24325 2017-11-11 Florian Weimer <fweimer@redhat.com>
24326
24327 [BZ #22409]
24328 [BZ #22412]
24329 * resolv/res_comp.c (printable_string, binary_hnok)
24330 (binary_leading_dash): New functions.
24331 (res_hnok): Reimplement using these functions and ns_name_pton.
24332 (res_ownok): Likewise.
24333 (res_mailok): Reimplement using printable_string, ns_name_pton and
24334 binary_hnok.
24335 (res_dnok): Reimplement using printable_string and ns_name_pton.
24336 * resolv/tst-res_hnok.c (tests): Add additional tests.
24337 (LETTERDIGITS, PRINTABLE): Define.
24338 (do_test): Adjust one_char results.
24339
24340 2017-11-11 Florian Weimer <fweimer@redhat.com>
24341
24342 [BZ #22413]
24343 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24344 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24345
24346 2017-11-11 Florian Weimer <fweimer@redhat.com>
24347
24348 * resolv/tst-ns_name_pton.c: New file.
24349 * resolv/Makefile (tests): Add tst-ns_name_pton.
24350 (tst-ns_name_pton): Link against libresolv.
24351
24352 2017-11-11 Florian Weimer <fweimer@redhat.com>
24353
24354 * resolv/tst-res_hnok.c: New file.
24355 * resolv/Makefile (tests): Add tst-res_hnok.
24356 (tst-res_hnok): Link against libresolv.
24357
24358 2017-11-11 Florian Weimer <fweimer@redhat.com>
24359
24360 * resolv/tst-resolv-network.c: Use test framework instead explicit
24361 main function.
24362
24363 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24364
24365 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24366 <jmp_buf-macros.h>.
24367 [!_ISOMAC] (STR_HELPER): New.
24368 [!_ISOMAC] (STR): Likewise.
24369 [!_ISOMAC] (TEST_SIZE): Likewise.
24370 [!_ISOMAC] (TEST_ALIGN): Likewise.
24371 [!_ISOMAC] (TEST_OFFSET): Likewise.
24372 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24373 field offsets of jmp_buf as well as sigjmp_buf.
24374 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24375 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24376 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24377 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24378 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24379 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24380 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24381 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24382 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24383 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24384 Likewise.
24385 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24386 Likewise.
24387 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24388 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24389 Likewise.
24390 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24391 Likewise.
24392 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24393 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24394 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24395 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24396 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24397 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24398 Likewise.
24399 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
24400 Likewise.
24401 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24402 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
24403 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
24404
24405 2017-11-07 Joseph Myers <joseph@codesourcery.com>
24406
24407 * include/float.h
24408 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24409 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
24410 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24411 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
24412 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24413 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
24414 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24415 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
24416 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24417 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
24418 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24419 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
24420 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24421 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
24422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24423 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
24424 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24425 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
24426 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24427 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
24428 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24429 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
24430 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24431 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
24432 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24433 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
24434 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24435 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
24436 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24437 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
24438 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24439 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
24440 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24441 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
24442 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24443 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
24444 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24445 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
24446 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24447 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
24448 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24449 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
24450 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24451 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
24452 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24453 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
24454 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24455 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
24456 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24457 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
24458 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24459 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
24460 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24461 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
24462 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24463 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
24464 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24465 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
24466 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24467 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
24468 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24469 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
24470 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24471 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
24472 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24473 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
24474 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24475 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
24476 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24477 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
24478 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24479 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
24480 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24481 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
24482 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24483 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
24484 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24485 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
24486 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24487 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
24488 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24489 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
24490 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24491 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
24492 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24493 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
24494 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24495 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
24496
24497 * stdlib/tst-strtod.h (F16): New macro.
24498 (F32): Likewise.
24499 (F64): Likewise.
24500 (F32X): Likewise.
24501 (F64X): Likewise.
24502 (F128X): Likewise.
24503 (IF_FLOAT16): Likewise.
24504 (IF_FLOAT32): Likewise.
24505 (IF_FLOAT64): Likewise.
24506 (IF_FLOAT32X): Likewise.
24507 (IF_FLOAT64X): Likewise.
24508 (IF_FLOAT128X): Likewise.
24509 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
24510 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
24511 (STRTOD_TEST_FOREACH): Likewise.
24512 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
24513 (CHOOSE_f64): Likewise.
24514 (CHOOSE_f32x): Likewise.
24515 (CHOOSE_f64x): Likewise.
24516
24517 2017-11-07 Andreas Schwab <schwab@suse.de>
24518
24519 * nptl/Makefile (tests-internal): Remove tst-typesizes.
24520
24521 2017-11-07 Mike FABIAN <mfabian@redhat.com>
24522
24523 [BZ #22403]
24524 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
24525 to be escaped.
24526 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
24527 to be escaped.
24528
24529 2017-11-07 Claude Paroz <claude@2xlibre.net>
24530
24531 [BZ #22403]
24532 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
24533 to be escaped.
24534 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
24535 to be escaped.
24536 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
24537 to be escaped.
24538
24539 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24540
24541 [BZ #22298]
24542 * nptl/allocatestack.c (allocate_stack): Check if
24543 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
24544 __PTHREAD_MUTEX_HAVE_PREV is defined.
24545 * nptl/descr.h (pthread): Likewise.
24546 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24547 Likewise.
24548 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
24549 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
24550 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
24551 * sysdeps/nptl/bits/thread-shared-types.h
24552 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24553 defines.
24554 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
24555 of __WORDSIZE for internal layout.
24556 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
24557 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
24558 instead of __WORDSIZE whether to use an union for __spins and __list
24559 fields.
24560 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
24561 case.
24562 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
24563 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24564 defines.
24565 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
24566 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24567 Likewise.
24568 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
24569 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24570 Likewise.
24571 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
24572 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24573 Likewise.
24574 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
24575 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24576 Likewise.
24577 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
24578 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24579 Likewise.
24580 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
24581 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24582 Likewise.
24583 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
24584 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24585 Likewise.
24586 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
24587 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24588 Likewise.
24589 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
24590 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24591 Likewise.
24592 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
24593 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24594 Likewise.
24595 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
24596 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24597 Likewise.
24598 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
24599 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24600 Likewise.
24601 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
24602 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24603 Likewise.
24604 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
24605 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24606 Likewise.
24607
24608 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
24609 New macros.
24610 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
24611 checks for expected input type size.
24612 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
24613 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
24614 Likewise.
24615 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
24616 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
24617 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24618 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
24619 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
24620 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
24621 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
24622 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
24623 superflous runtime assert check.
24624 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
24625 Likewise.
24626 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
24627 Likewise.
24628 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
24629 Likewise.
24630 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
24631 Likewise.
24632 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
24633 Likewise.
24634 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
24635 Likewise.
24636 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
24637 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
24638 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
24639 Likewise.
24640 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
24641 Likewise.
24642 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
24643 Likewise.
24644 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
24645 Likewise.
24646 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
24647 Likewise.
24648 * nptl/pthread_attr_setinheritsched.c
24649 (__pthread_attr_setinheritsched): Likewise.
24650 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
24651 Likewise.
24652 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
24653 Likewise.
24654 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
24655 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
24656 __old_pthread_attr_setstack): Likewise.
24657 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
24658 Likewise.
24659 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
24660 Likewise.
24661 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
24662 Likewise.
24663 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
24664 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
24665 Likewise.
24666 * nptl/tst-typesizes.c: Remove file.
24667
24668 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
24669 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
24670 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
24671 checks for internal pthread_mutex_t offsets.
24672 * sysdeps/aarch64/nptl/pthread-offsets.h
24673 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
24674 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
24675 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
24676 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
24677 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
24678 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
24679 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
24680 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
24681 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
24682 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
24683 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
24684 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
24685 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
24686 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
24687 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
24688 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
24689 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
24690 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
24691
24692 2017-11-07 Florian Weimer <fweimer@redhat.com>
24693
24694 * bits/mman-linux.h: Move ...
24695 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
24696 comment.
24697 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
24698 outdated comment.
24699
24700 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24701
24702 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
24703 Redefine STRNLEN as __strnlen_power8.
24704
24705 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24706
24707 * signal/sighold.c (sighold): Optimize implementation.
24708
24709 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
24710 __NR_rt_sigqueueinfo.
24711
24712 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
24713 __sigtimedwait.
24714 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
24715 assume __NR_rt_sigtimedwait.
24716 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
24717 and add LIBC_CANCEL_HANDLED for cancellation marking.
24718 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
24719
24720 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
24721 (sysdeps_routines): Add memchr_noneon.
24722 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
24723 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
24724 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
24725 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
24726 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
24727 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
24728 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
24729
24730 * sysdeps/arm/arm-ifunc.h: New file.
24731 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
24732 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
24733 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
24734 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
24735 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
24736 (__memcpy_neon): Avoid create hidden alias.
24737 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
24738 (__memcpy_vfp): Likewise.
24739 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
24740 (sysdep_routines): Add memcpy_arm.
24741 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
24742
24743 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
24744
24745 [BZ #22362]
24746 * Makerules (make-link-multidir): New.
24747 * config.make.in (multidir): New.
24748 * configure.ac (libc_cv_multidir): New. AC_SUBST.
24749 * configure: Regenerated.
24750 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
24751 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
24752 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
24753 New target.
24754
24755 2017-11-06 Joseph Myers <joseph@codesourcery.com>
24756
24757 [BZ #22402]
24758 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
24759 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
24760
24761 2017-11-04 Mike FABIAN <mfabian@redhat.com>
24762
24763 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
24764 to be escaped.
24765
24766 2017-11-04 Florian Weimer <fweimer@redhat.com>
24767
24768 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
24769
24770 2017-11-03 Joseph Myers <joseph@codesourcery.com>
24771
24772 * math/math.h [__HAVE_DISTINCT_FLOAT16
24773 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
24774 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
24775 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
24776 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
24777 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
24778 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
24779 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24780 (__MATH_TG_F32): New macro.
24781 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24782 (__MATH_TG_F64X): Likewise.
24783 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24784 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
24785
24786 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
24787
24788 * po/de.po: Update translations.
24789 * po/ru.po: Likewise.
24790
24791 2017-11-03 Florian Weimer <fweimer@redhat.com>
24792
24793 * manual/filesys.texi (Hard Links): Document linkat.
24794
24795 2017-11-03 Joseph Myers <joseph@codesourcery.com>
24796
24797 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
24798 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
24799 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
24800 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
24801 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
24802 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
24803 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
24804 the same as _Float128.
24805 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
24806 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
24807 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
24808
24809 * stdlib/stdlib.h
24810 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
24811 Declare.
24812 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
24813 Likewise.
24814 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
24815 Likewise.
24816 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24817 (strtof32x): Likewise.
24818 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24819 (strtof64x): Likewise.
24820 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24821 (strtof128x): Likewise.
24822 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24823 (strfromf16): Likewise.
24824 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24825 (strfromf32): Likewise.
24826 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24827 (strfromf64): Likewise.
24828 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24829 (strfromf32x): Likewise.
24830 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24831 (strfromf64x): Likewise.
24832 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24833 (strfromf128x): Likewise.
24834 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
24835 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
24836 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
24837 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
24838 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
24839 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
24840
24841 2017-11-03 Richard Henderson <rth@twiddle.net>
24842
24843 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
24844
24845 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24846
24847 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
24848
24849 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24850
24851 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
24852 DT_TLSDESC_GOT initialization.
24853 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
24854 (_dl_tlsdesc_resolve_hold): Likewise.
24855 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
24856 (_dl_tlsdesc_resolve_hold): Likewise.
24857 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
24858 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
24859
24860 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24861
24862 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
24863
24864 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24865
24866 [BZ #18572]
24867 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
24868 non-lazily for R_ARM_TLS_DESC.
24869
24870 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24871
24872 [BZ #17078]
24873 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
24874 R_ARM_TLS_DESC case.
24875 (elf_machine_lazy_rel): Remove the prelink check.
24876
24877 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24878
24879 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
24880 DT_TLSDESC_GOT initialization.
24881 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
24882 (_dl_tlsdesc_resolve_rela): Likewise.
24883 (_dl_tlsdesc_resolve_hold): Likewise.
24884 (_dl_tlsdesc_undefweak): Remove ldar.
24885 (_dl_tlsdesc_dynamic): Likewise.
24886 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
24887 (_dl_tlsdesc_resolve_rela): Likewise.
24888 (_dl_tlsdesc_resolve_hold): Likewise.
24889 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
24890 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
24891 (_dl_tlsdesc_resolve_rela): Likewise.
24892 (_dl_tlsdesc_resolve_hold): Likewise.
24893
24894 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24895
24896 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
24897 binding and initialization non-lazily for R_AARCH64_TLSDESC.
24898
24899 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24900
24901 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
24902 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
24903
24904 2017-11-02 Joseph Myers <joseph@codesourcery.com>
24905
24906 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
24907 Declare.
24908 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
24909 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
24910 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
24911 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
24912 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
24913 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
24914 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
24915 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
24916 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
24917 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
24918 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
24919
24920 2017-11-02 Mike FABIAN <mfabian@redhat.com>
24921
24922 [BZ #22382]
24923 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
24924 * localedata/locales/tpi_PG: Add standard header.
24925
24926 2017-11-02 Florian Weimer <fweimer@redhat.com>
24927
24928 test-errno-linux: quotactl can fail with EPERM in containers.
24929 * sysdeps/unix/sysv/linux/test-errno-linux.c
24930 (LIST, LIST_FORWARD): New macros.
24931 (check_error_in_list): New function.
24932 (test_wrp_rv): Accept list of permitted error codes.
24933 (test_wrp_rv2): Remove.
24934 (test_wrp): Call test_wrp_rv with list of error codes.
24935 (test_wrp2): Accept list of error codes.
24936 (do_test): Adjust. Allow EPERM for quotactl.
24937
24938 2017-11-02 Florian Weimer <fweimer@redhat.com>
24939
24940 * stdio-common/bug16.c (do_test): Use array_length.
24941 * stdio-common/errlist.c (_sys_nerr): Likewise.
24942 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
24943 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
24944 * stdio-common/psiginfo.c (psiginfo): Use array_length.
24945 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
24946 (do_test): Use array_length.
24947 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
24948 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
24949 * stdio-common/tst-printf-round.c (do_test): Likewise.
24950 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
24951 (CHECK): Use array_length.
24952 * stdio-common/tstdiomisc.c (t3, F): Likewise.
24953 * stdio-common/tstscanf.c (main): Likewise.
24954 * stdio-common/vfprintf.c (process_string_arg): Likewise.
24955
24956 2017-11-02 Florian Weimer <fweimer@redhat.com>
24957
24958 Add array_length and array_end macros.
24959 * include/array_length.h: New file.
24960
24961 2017-11-02 Florian Weimer <fweimer@redhat.com>
24962
24963 [BZ #22332]
24964 * posix/tst-glob-tilde.c (do_noescape): New variable.
24965 (one_test): Process it.
24966 (do_test): Set do_noescape. Add unescaping test case.
24967
24968 2017-11-01 Joseph Myers <joseph@codesourcery.com>
24969
24970 * math/complex.h
24971 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
24972 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
24973 with appropriate macros defined and undefined.
24974 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
24975 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24976 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
24977 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24978 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
24979 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24980 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
24981 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24982 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
24983 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24984
24985 * math/complex.h
24986 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
24987 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
24988 that for long double. Do not condition define and undefine of
24989 _Mdouble_complex_ on [__CFLOAT128].
24990
24991 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
24992
24993 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
24994 of <sysdeps/generic/sysdep.h>.
24995 (ALIGNARG): Removed.
24996 (ASM_SIZE_DIRECTIVE): Likewise.
24997 (ENTRY): Likewise.
24998 (END): Likewise.
24999 (ENTRY_CHK): Likewise.
25000 (END_CHK): Likewise.
25001 (syscall_error): Likewise.
25002 (mcount): Likewise.
25003 (PSEUDO_END): Likewise.
25004 (L): Likewise.
25005 (atom_text_section): Likewise.
25006 * sysdeps/x86/sysdep.h: New file.
25007 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25008 of <sysdeps/generic/sysdep.h>.
25009 (ALIGNARG): Removed.
25010 (ASM_SIZE_DIRECTIVE): Likewise.
25011 (ENTRY): Likewise.
25012 (END): Likewise.
25013 (ENTRY_CHK): Likewise.
25014 (END_CHK): Likewise.
25015 (syscall_error): Likewise.
25016 (mcount): Likewise.
25017 (PSEUDO_END): Likewise.
25018 (L): Likewise.
25019 (atom_text_section): Likewise.
25020
25021 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25022
25023 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25024 category of LC_CTYPE set to "i18n:2012".
25025 * localedata/locales/i18n_ctype: Regenerate.
25026
25027 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25028
25029 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25030 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25031 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25032 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25033
25034 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25035 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25036 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25037 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25038
25039 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25040
25041 * math/complex.h
25042 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25043 New macro.
25044 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25045 Likewise.
25046 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25047 Likewise.
25048 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25049 (CMPLXF32X): Likewise.
25050 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25051 (CMPLXF64X): Likewise.
25052 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25053 (CMPLXF128X): Likewise.
25054
25055 * math/math.h
25056 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25057 (__MATH_EVAL_FMT2): Define to add 0.0f.
25058
25059 2017-10-31 Alan Modra <amodra@gmail.com>
25060
25061 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25062 include sysdep.h.
25063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25065 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25066 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25067 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25068 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25069 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25070 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25071 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25072 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25074 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25077 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25078 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25079 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25080 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25081 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25082 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25083 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25084 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25085 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25086 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25087 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25088 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25089 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25090 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25091 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25092 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25093 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25094 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25095 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25096 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25097 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25098 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25099 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25100 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25101 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25102 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25103 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25104 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25105 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25106 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25107 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25108 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25109 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25110 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25111 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25112 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25113 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25114 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25115 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25116 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25117 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25118 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25119 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25120 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25121 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25122 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25123 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25124 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25125 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25126 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25127 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25128 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25129 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25130 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25131 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25132
25133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25134 include sysdep.h and math_ldbl_opt.h.
25135
25136 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25137 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25139 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25140 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25142 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25143 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25144 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25145 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25146 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25148 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25149 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25151 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25159 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25160 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25161 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25162
25163 2017-10-31 Alan Modra <amodra@gmail.com>
25164
25165 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25166 string/strncase_l.c, not string/strncase.c.
25167 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25168 (libc_hidden_def): Redefine.
25169
25170 2017-10-31 Alan Modra <amodra@gmail.com>
25171
25172 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25173 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25174 (__strcasecmp): Don't define.
25175
25176 2017-10-31 Alan Modra <amodra@gmail.com>
25177
25178 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25179 IS_IN (libc).
25180 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25181 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25182 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25183
25184 2017-10-31 Alan Modra <amodra@gmail.com>
25185
25186 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25187 USE_AS_STPNCPY.
25188
25189 2017-10-31 Alan Modra <amodra@gmail.com>
25190
25191 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25192 Redefine only when SHARED.
25193
25194 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25195
25196 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25197 Include <bits/math-finite.h> with appropriate macros defined and
25198 undefined.
25199 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25200 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25201 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25202 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25203 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25204
25205 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25206 [!_Mlong_double_] (_Mlong_double_): Likewise.
25207 [!_Mfloat16_] (_Mfloat16_): Likewise.
25208 [!_Mfloat32_] (_Mfloat32_): Likewise.
25209 [!_Mfloat64_] (_Mfloat64_): Likewise.
25210 [!_Mfloat128_] (_Mfloat128_): Likewise.
25211 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25212 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25213 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25214 (_Mdouble_): Define without indirection through those macros.
25215 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25216 [!_Mfloat128_] (_Mfloat128_): Likewise.
25217 [_Mlong_double_] (_Mlong_double_): Likewise.
25218 (_Mdouble_): Define without indirection through those macros.
25219 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25220 not add -D_Mlong_double_=double.
25221 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25222 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25223
25224 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25225
25226 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25227
25228 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25229
25230 * sysdeps/x86/libc-start.c: Reformat.
25231
25232 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25233
25234 [BZ #22353]
25235 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25236 (1): Renamed to ...
25237 (L(Src0)): This.
25238 (L(Src1)): New.
25239 (L(Src2)): Likewise.
25240 (L(1)): Renamed to ...
25241 (L(Src3)): This.
25242
25243 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25244
25245 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25246 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25247 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25248 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25249 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25250 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25251 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25252 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25253 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25254 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25255 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25256 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25257 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25258 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25259 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25260 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25261 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25262 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25263 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25264 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25265 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25266 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25267 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25268 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25269 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25270 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25271 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25272 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25273 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25274 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25275 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25276 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25277 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25278 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25279 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25280 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25281 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25282 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25283 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25284 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25285 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25286 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25287 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25288 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25289 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25290 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25291 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25292 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25293 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25294 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25295 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25296 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25297 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25298 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25299 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25300 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25301 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25302 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25303 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25304 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25305 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25306 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25307 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25308 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25309 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25310 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25311
25312 2017-10-30 Florian Weimer <fweimer@redhat.com>
25313
25314 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25315 always defined.
25316 * io/tst-mkdirat.c (do_test): Likewise.
25317 * io/tst-mkfifoat.c (do_test): Likewise.
25318 * io/tst-mknodat.c (do_test): Likewise.
25319 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25320 * locale/programs/locale.c (select_dirs): Likewise.
25321 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25322 * posix/bug-glob2.c (my_readdir): Likewise.
25323 * posix/tst-dir.c (main): Likewise.
25324 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25325 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25326
25327 2017-10-30 Florian Weimer <fweimer@redhat.com>
25328
25329 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25330 just __USE_GNU.
25331
25332 2017-10-30 Florian Weimer <fweimer@redhat.com>
25333
25334 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25335 Convert to support/test-driver.c.
25336 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25337 New macro parameters.
25338 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25339 * posix/tst-gnuglob.c: New file.
25340 * posix/tst-gnuglob64.c: Likewise.
25341 * posix/Makefile (tests): Add tst-gnuglob64.
25342
25343 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25344
25345 [BZ #19485]
25346 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25347 and use a better translation for March in “mon”.
25348 * localedata/locales/csb_PL: Use more ASCII to improve the
25349 readability of the source.
25350
25351 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25352
25353 [BZ #13953]
25354 * localedata/locales/km_KH: Use ASCII as much
25355 as possible for better readability of the source and
25356 remove useless comments.
25357 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25358 was commented out and apparently wrong anyway because it was
25359 using Lao characters. If Buddhist era should be used
25360 for km_KH, a native speaker should write the correct formaat
25361 for Khmer.
25362 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25363 (According to CLDR, the first weekday for Cambodia is Sunday).
25364 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25365 (These were using Lao characters which must be wrong. If we get
25366 the correct data from a native speaker, we could add it back, until
25367 then it is better not to have name_mr and name_mrs at all than
25368 having it wrong).
25369
25370 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25371
25372 * locale/loadlocale.c: Correct size of
25373 _nl_value_type_LC_<category> arrays.
25374
25375 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25376
25377 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25378 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25379 with appropriate macros defined and undefined.
25380 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25381 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25382 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25383 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25384 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25385
25386 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25387
25388 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25389 "-O2 -march=i586".
25390
25391 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25392
25393 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25394 with lowercase letters to make it agree with CLDR.
25395
25396 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25397
25398 [BZ #15260]
25399 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
25400 first letters of yesstr and nostr in yesexpr and noexpr,
25401 not for the full words.
25402 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25403 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
25404 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
25405 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
25406 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
25407 first letters of yesstr and nostr in yesexpr and noexpr,
25408 until now only English was matched in yesexpr and noexpr.
25409 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
25410 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
25411 fil but not for tl. As tl and fil are very similar, using fil
25412 is probably better than using English.
25413
25414 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
25415
25416 [BZ #21706]
25417 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
25418 in yesstr and nostr.
25419
25420 2017-10-26 Joseph Myers <joseph@codesourcery.com>
25421
25422 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25423 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
25424 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
25425 Likewise.
25426 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
25427 Likewise.
25428 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
25429 Likewise.
25430 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
25431 Likewise.
25432 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25433 (SNANF128X): Likewise.
25434
25435 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25436 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
25437 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25438 (HUGE_VAL_F32): Likewise.
25439 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25440 (HUGE_VAL_F64): Likewise.
25441 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25442 (HUGE_VAL_F32X): Likewise.
25443 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25444 (HUGE_VAL_F64X): Likewise.
25445 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25446 (HUGE_VAL_F128X): Likewise.
25447
25448 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25449
25450 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
25451 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
25452 for the br_FR locale.
25453
25454 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25455
25456 [BZ #21706]
25457 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
25458
25459 2017-10-25 Carlos O'Donell <carlos@redhat.com>
25460
25461 * locale/programs/record-status.h: Define globals, and function
25462 prototypes. Move function bodies...
25463 * locale/programs/record-status.c: ... to here. New file.
25464 * iconv/Makefile (iconv_prog-modules): Add record-status.
25465 * locale/Makefile (lib-modules): Likewise.
25466 * iconv/iconv_prog.c: Remove verbose.
25467 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
25468 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
25469 record a warning about ASCII compatibility.
25470 * locale/programs/ld-monetary.c (monetary_finish): If
25471 warn_int_curr_symbol is true then record a warning about the symbol
25472 not being in our ISO 4217 list.
25473 * locale/programs/locale.c: Include record-status.h. Remove verbose.
25474 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
25475 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
25476 (OPT_NO_WARN): Define.
25477 (OPT_WARN): Define.
25478 (options): Add entry for --no-warnings, and --warnings.
25479 (set_warnings): New function to enable/disable warnings.
25480 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
25481 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
25482 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
25483 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
25484 Pass flags to generate_locale.
25485 (generate_locale): Accept new flag argument and pass it to localedef
25486 invocation.
25487 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
25488 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
25489
25490 * localedata/Makefile (test-input-data): Use full file name.
25491 * localedata/da_DK.in: Rename to...
25492 * localedata/da_DK.ISO-8859-1.in: ...this.
25493 * localedata/de_DE.in: Rename to...
25494 * localedata/de_DE.ISO-8859-1.in: ...this.
25495 * localedata/en_US.in: Rename to...
25496 * localedata/en_US.ISO-8859-1.in: ...this.
25497 * localedata/fr_FR.in: Rename to...
25498 * localedata/fr_FR.UTF-8.in: ... this.
25499 * localedata/hr_HR.in: Rename to...
25500 * localedata/hr_HR.ISO-8859-2.in: ...this.
25501 * localedata/hu_HU.in: Rename to...
25502 * localedata/hu_HU.UTF-8.in: ...this.
25503 * localedata/si_LK.in: Rename to...
25504 * localedata/si_LK.UTF-8.in: ...this.
25505 * localedata/sv_SE.in: Rename to...
25506 * localedata/sv_SE.ISO-8859-1.in: ...this.
25507 * localedata/tr_TR.in: Rename to...
25508 * localedata/tr_TR.UTF-8.in: ...this.
25509 * localedata/uk_UA.in: Rename to...
25510 * localedata/uk_UA.UTF-8.in: ...this.
25511 * localedata/sort-test.sh: Test file is locale name with the
25512 suffix.
25513
25514 * localedata/unicode-gen/Makefile (check_i18n): Rename to
25515 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
25516 file.
25517 * localedata/locales/i18n_ctype: Regenerate.
25518 * localedata/locales/tr_TR: Likewise.
25519 * localedata/locales/translit_circle: Likewise.
25520 * localedata/locales/translit_cjk_compat: Likewise.
25521 * localedata/locales/translit_combining: Likewise.
25522 * localedata/locales/translit_compat: Likewise.
25523 * localedata/locales/translit_font: Likewise.
25524 * localedata/locales/translit_fraction: Likewise.
25525
25526 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25527
25528 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
25529 lxvd2x/stxvd2x with lvx/stvx.
25530 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
25531
25532 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
25533
25534 * include/alloc_buffer.h: Replace "if if " with "if " in
25535 comments.
25536 * sysdeps/mips/memcpy.S: Likkewise.
25537 * sysdeps/mips/memset.S: Likewise.
25538 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25539 Likewise.
25540 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
25541 Likewise.
25542 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
25543 Likewise.
25544
25545 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25546
25547 [BZ #15261]
25548 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
25549 yesexpr and noexpr.
25550 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25551 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25552 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25553 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25554 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25555 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25556 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25557
25558 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25559
25560 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
25561 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25562 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25563 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25564 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25565 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
25566 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25567 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25568 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25569 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25570 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25571 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25572
25573 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25574
25575 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
25576 as possible for better readability of the source.
25577 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
25578 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
25579 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
25580 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
25581 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
25582 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
25583 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
25584 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
25585 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25586 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
25587 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
25588 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
25589 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
25590 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
25591 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
25592 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
25593 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
25594 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
25595 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
25596 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
25597 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
25598 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
25599 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
25600 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
25601 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
25602 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
25603 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
25604 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
25605 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
25606 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
25607 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
25608 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25609 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
25610 * localedata/locales/en_US (LC_MESSAGES): Likewise.
25611 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
25612 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
25613 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
25614 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
25615 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
25616 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
25617 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
25618 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
25619 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
25620 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
25621 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
25622 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
25623 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
25624 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
25625 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
25626 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
25627 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
25628 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
25629 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
25630 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25631 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25632 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
25633 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
25634 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25635 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
25636 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
25637 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
25638 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
25639 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
25640 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
25641 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
25642 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
25643 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
25644 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
25645 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
25646 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
25647 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
25648 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
25649 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
25650 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
25651 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25652 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
25653 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
25654 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
25655 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
25656 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
25657 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
25658 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
25659 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
25660 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25661 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
25662 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
25663 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
25664 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25665 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
25666 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
25667 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
25668 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
25669 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25670 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
25671 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
25672 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25673 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
25674 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25675 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
25676 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
25677 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
25678 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
25679 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
25680 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
25681 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
25682 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
25683 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
25684 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
25685 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
25686 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
25687 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
25688 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
25689 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25690 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
25691 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
25692 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
25693 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
25694 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
25695 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
25696 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
25697 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
25698 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
25699 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
25700 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
25701 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
25702 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
25703 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
25704 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
25705 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
25706 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
25707 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
25708 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
25709 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
25710 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
25711 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
25712 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
25713 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
25714 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
25715 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
25716 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
25717 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
25718 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
25719 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
25720 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
25721 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
25722 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25723 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
25724 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
25725 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
25726 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
25727 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
25728 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
25729 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
25730 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
25731 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25732 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
25733 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
25734 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
25735 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
25736 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
25737 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
25738 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
25739 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
25740 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
25741 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
25742 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25743 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
25744 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
25745 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
25746 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
25747 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25748 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25749 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25750 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
25751
25752 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25753
25754 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
25755 (Use first letters of yesstr and nostr correctly instead of using
25756 full words).
25757
25758 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25759
25760 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
25761 (Use first letters of yesstr and nostr correctly).
25762
25763 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25764
25765 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
25766 also check for the first characters of yesstr and nostr.
25767 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
25768 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
25769
25770 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25771
25772 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
25773 also check for Chinese characters.
25774
25775 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25776
25777 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
25778 match also for the contents of yesstr and nostr. As the first letter
25779 of yesstr and nostr is equal, checking only for the first letter
25780 is not enough.
25781
25782 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25783
25784 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
25785 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
25786
25787 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25788
25789 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
25790 of main contributor.
25791
25792 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25793
25794 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
25795 instead of using English.
25796
25797 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25798
25799 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
25800 by including the first letters of nostr and yesexpr in the regexp.
25801 Also make it more readable by using ASCII where possible.
25802
25803 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25804
25805 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
25806 the first letter of nostr in the regexp. It agrees with CLDR now.
25807 Also make it more readable by using ASCII where possible.
25808
25809 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25810
25811 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
25812 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
25813 these strings contain a U+17D6 (which somewhat looks like a colon)
25814 instead of a real colon to separate the full words for “yes”
25815 and “no” from the single letter responses.
25816
25817 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25818
25819 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
25820 it agree with CLDR (include the first letter of yesstr).
25821 Also make it more readable by using ASCII where possible.
25822
25823 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25824
25825 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
25826 and improve yesexpr and noexpr. The yesstr and nostr apparently
25827 came from CLDR. And CLDR has a bug there: these strings contain
25828 a U+0903 (which looks like a colon) instead of a real colon
25829 to separate the full words for “yes” and “no” from the single
25830 letter responses.
25831
25832 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25833
25834 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
25835 letters of the full yesstr and nostr in yesexpr and noexpr.
25836
25837 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25838
25839 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
25840 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
25841 * localedata/locales/an_ES: Make source more readable by using ASCII
25842 where possible.
25843
25844 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25845
25846 [BZ #20952]
25847 * localedata/locales/yuw_PG: New file.
25848 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
25849 * locale/iso-639.def: Add Yau (Uruwa).
25850
25851 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
25852
25853 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
25854
25855 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
25856
25857 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
25858 (__libc_realloc): Likewise.
25859 (_mid_memalign): Likewise.
25860 (__libc_calloc): Likewise.
25861
25862 2017-10-23 Mike FABIAN <mfabian@redhat.com>
25863
25864 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
25865 by adding the generic +1 and -0 as in all other locales.
25866 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
25867 day names and make it more readable by using ASCII where possible.
25868
25869 2017-10-24 Joseph Myers <joseph@codesourcery.com>
25870
25871 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
25872 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
25873
25874 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25875
25876 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
25877 WNOHANG in waitpid call.
25878
25879 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
25880
25881 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
25882 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
25883
25884 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
25885 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
25886 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
25887 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
25888 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
25889 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
25890 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
25891 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
25892 variables.
25893
25894 2017-10-23 Michael Collison <michael.collison@arm.com>
25895
25896 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
25897 with __builtin_sqrt.
25898 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
25899 with __builtin_sqrtf.
25900 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
25901 with __builtin_ceil.
25902 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
25903 with __builtin_ceilf.
25904 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
25905 with __builtin_floor.
25906 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
25907 with __builtin_floorf.
25908 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
25909 with __builtin_fma.
25910 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
25911 with __builtin_fmaf.
25912 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
25913 with __builtin_fmax.
25914 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
25915 with __builtin_fmaxf.
25916 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
25917 with __builtin_fmin.
25918 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
25919 with __builtin_fminf.
25920 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
25921 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
25922 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
25923 with builtin_rint and conversion to int.
25924 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
25925 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
25926 with builtin_llround.
25927 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
25928 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
25929 with builtin_rint and conversion to long int.
25930 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
25931 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
25932 with builtin_lround.
25933 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
25934 with builtin_lroundf.
25935 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
25936 statements with __builtin_nearbyint.
25937 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
25938 statements with __builtin_nearbyintf.
25939 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
25940 with __builtin_rint.
25941 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
25942 with __builtin_rintf.
25943 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
25944 with __builtin_round.
25945 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
25946 with __builtin_roundf.
25947 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
25948 with __builtin_trunc.
25949 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
25950 with __builtin_truncf.
25951 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
25952 and s_l[l]round[f].c too.
25953
25954 2017-10-23 Alan Modra <amodra@gmail.com>
25955
25956 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
25957 Adjust stack after restoring regs. Add missing LR cfi_restore.
25958
25959 2017-10-23 Alan Modra <amodra@gmail.com>
25960
25961 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
25962 Move LR save and frame setup/teardown and LR restore to
25963 immediately around memset call. Provide cfi.
25964
25965 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25966
25967 * sysdeps/i386/fpu/e_powf.S: Removed.
25968 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
25969 * sysdeps/i386/fpu/w_powf.c: Likewise.
25970 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
25971 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25972 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25973 Add e_powf-sse2.
25974 (CFLAGS-e_powf-sse2.c): New.
25975 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
25976 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
25977
25978 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25979
25980 * sysdeps/i386/fpu/e_log2f.S: Removed.
25981 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
25982 * sysdeps/i386/fpu/w_log2f.c: Likewise.
25983 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
25984 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25985 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25986 Add e_log2f-sse2.
25987 (CFLAGS-e_log2f-sse2.c): New.
25988 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
25989 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
25990
25991 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25992
25993 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25994 Add e_powf-fma.
25995 (CFLAGS-e_powf-fma.c): New.
25996 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
25997 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
25998
25999 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26000
26001 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26002 Add e_log2f-fma.
26003 (CFLAGS-e_log2f-fma.c): New.
26004 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26005 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26006
26007 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26008
26009 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26010 Add e_logf-fma.
26011 (CFLAGS-e_logf-fma.c): New.
26012 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26013 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26014
26015 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26016
26017 * sysdeps/i386/fpu/e_logf.S: Removed.
26018 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26019 * sysdeps/i386/fpu/w_logf.c: Likewise.
26020 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26021 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26022 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26023 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26024 Add e_logf-sse2.
26025 (CFLAGS-e_logf-sse2.c): New.
26026 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26027 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26028
26029 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26030
26031 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26032 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26033 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26034 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26035 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26036 Add e_exp2f-sse2.
26037 (CFLAGS-e_exp2f-sse2.c): New.
26038 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26039 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26040
26041 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26042
26043 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26044 Add e_exp2f-fma.
26045 (CFLAGS-e_exp2f-fma.c): New.
26046 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26047 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26048
26049 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26050
26051 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26052 * sysdeps/i386/fpu/e_expf.S: Likewise.
26053 * sysdeps/i386/fpu/math_errf.c: Likewise.
26054 * sysdeps/i386/fpu/w_expf.c: Likewise.
26055 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26056 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26057 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26058 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26059 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26060 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26061 Remove e_expf-ia32.
26062 (CFLAGS-e_expf-sse2.c): New.
26063 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26064 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26065
26066 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26067
26068 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26069 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26070 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26071 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26072 e_expf.c.
26073 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26074 New.
26075 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26076 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26077 Renamed to ...
26078 (__redirect_expf): This.
26079 (SYMBOL_NAME): Changed to expf.
26080 (__ieee754_expf): Renamed to ...
26081 (__expf): This.
26082 (__GI___expf): This.
26083 (__ieee754_expf): Add strong_alias.
26084 (__expf_finite): Likewise.
26085 (__expf): New.
26086 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26087
26088 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26089
26090 [BZ #22332]
26091 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26092 unescaping.
26093
26094 2017-10-21 Florian Weimer <fweimer@redhat.com>
26095
26096 * posix/Makefile (tests): Add tst-glob-tilde.
26097 (tests-special): Add tst-glob-tilde-mem.out
26098 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26099 (tst-glob-tilde-mem.out): Add mtrace check.
26100 * posix/tst-glob-tilde.c: New file.
26101
26102 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26103
26104 * bits/floatn-common.h: New file.
26105 * math/Makefile (headers): Add bits/floatn-common.h.
26106 * bits/floatn.h: Include <bits/floatn-common.h>.
26107 * sysdeps/ia64/bits/floatn.h: Likewise.
26108 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26109 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26110 * sysdeps/powerpc/bits/floatn.h: Likewise.
26111 * sysdeps/x86/bits/floatn.h: Likewise.
26112
26113 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26114
26115 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26116 indicates whether compiler emits an warning for alias for
26117 functions with incompatible types.
26118
26119 [BZ #22273]
26120 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26121 the auxiliary process is terminated by a signal before calling _exit
26122 or execve.
26123
26124 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26125
26126 [BZ #21265]
26127 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26128 New.
26129 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26130 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26131 and bit_arch_XSAVEC_Usable if needed.
26132 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26133 and bit_arch_Use_dl_runtime_resolve_opt.
26134 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26135 Removed.
26136 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26137 (bit_arch_Prefer_No_AVX512): Updated.
26138 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26139 (bit_arch_XSAVEC_Usable): New.
26140 (STATE_SAVE_OFFSET): Likewise.
26141 (STATE_SAVE_MASK): Likewise.
26142 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26143 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26144 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26145 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26146 (index_arch_XSAVEC_Usable): New.
26147 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26148 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26149 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26150 is enabled.
26151 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26152 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26153 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26154 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26155 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26156 _dl_runtime_resolve_xsavec.
26157 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26158 Removed.
26159 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26160 instead of VEC_SIZE.
26161 (REGISTER_SAVE_BND0): Removed.
26162 (REGISTER_SAVE_BND1): Likewise.
26163 (REGISTER_SAVE_BND3): Likewise.
26164 (REGISTER_SAVE_RAX): Always defined to 0.
26165 (VMOV): Removed.
26166 (_dl_runtime_resolve_avx): Likewise.
26167 (_dl_runtime_resolve_avx_slow): Likewise.
26168 (_dl_runtime_resolve_avx_opt): Likewise.
26169 (_dl_runtime_resolve_avx512): Likewise.
26170 (_dl_runtime_resolve_avx512_opt): Likewise.
26171 (_dl_runtime_resolve_sse): Likewise.
26172 (_dl_runtime_resolve_sse_vex): Likewise.
26173 (USE_FXSAVE): New.
26174 (_dl_runtime_resolve_fxsave): Likewise.
26175 (USE_XSAVE): Likewise.
26176 (_dl_runtime_resolve_xsave): Likewise.
26177 (USE_XSAVEC): Likewise.
26178 (_dl_runtime_resolve_xsavec): Likewise.
26179 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26180 Removed.
26181 (_dl_runtime_resolve_avx512_opt): Likewise.
26182 (_dl_runtime_resolve_avx): Likewise.
26183 (_dl_runtime_resolve_avx_opt): Likewise.
26184 (_dl_runtime_resolve_sse): Likewise.
26185 (_dl_runtime_resolve_sse_vex): Likewise.
26186 (_dl_runtime_resolve_fxsave): New.
26187 (_dl_runtime_resolve_xsave): Likewise.
26188 (_dl_runtime_resolve_xsavec): Likewise.
26189
26190 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26191
26192 [BZ #22320]
26193 CVE-2017-15670
26194 * posix/glob.c (__glob): Fix one-byte overflow.
26195
26196 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26197
26198 * malloc/malloc.c (sysdep-cancel.h): Add include.
26199
26200 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26201
26202 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26203
26204 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26205
26206 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26207 (tests): Remove $(objpfx)ga_test depdendency.
26208 * resolv/ga_test.c: Remove file.
26209
26210 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26211
26212 [BZ #18812]
26213 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26214 * localedata/locales/kab_DZ: New file.
26215
26216 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26217
26218 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26219 _dl_relocate_static_pie instead of _dl_start to compute load
26220 address in static PIE.
26221
26222 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26223
26224 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26225
26226 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26227
26228 [BZ #13605]
26229 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26230 * localedata/locales/shn_MM: New file.
26231
26232 2017-10-20 Florian Weimer <fweimer@redhat.com>
26233
26234 [BZ #22321]
26235 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26236 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26237 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26238 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26239 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26240 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26241
26242 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26243
26244 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26245
26246 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26247
26248 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26249
26250 [BZ #22322]
26251 * sysdeps/mips/bits/long-double.h: Move to ....
26252 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26253
26254 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26255
26256 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26257
26258 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26259 H.J. Lu <hongjiu.lu@intel.com>
26260
26261 [BZ #22299]
26262 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26263 GLRO(dl_platform) to NULL.
26264 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26265 (modules-names): Add tst-platformmod-1 and
26266 x86_64/tst-platformmod-2.
26267 (CFLAGS-tst-platform-1.c): New.
26268 (CFLAGS-tst-platformmod-1.c): Likewise.
26269 (CFLAGS-tst-platformmod-2.c): Likewise.
26270 (LDFLAGS-tst-platformmod-2.so): Likewise.
26271 ($(objpfx)tst-platform-1): Likewise.
26272 ($(objpfx)tst-platform-1.out): Likewise.
26273 (tst-platform-1-ENV): Likewise.
26274 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26275 * sysdeps/x86_64/tst-platform-1.c: New file.
26276 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26277 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26278
26279 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26280
26281 [BZ #13994]
26282 * locale/iso-639.def: Add Karbi.
26283 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26284 * localedata/locales/mjw_IN: New file.
26285
26286 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26287
26288 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26289 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26290 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26291 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26292 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26293 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26294 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26295 <bits/floatn.h>.
26296 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26297 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26298 * manual/math.texi (Mathematics): Document additional architecture
26299 support for _Float128.
26300 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26301 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26302 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26303 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26304 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26305 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26306 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26307 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26308 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26309 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26310 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26311 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26312 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26313 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26314 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26315
26316 2017-10-18 Renlin Li <renlin.li@arm.com>
26317
26318 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26319 _DYNAMIC symbol to calculate load address.
26320
26321 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26322
26323 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26324 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26325 summary bits.
26326 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26327 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26328
26329 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26330
26331 [BZ #16777]
26332 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26333 and improve readability by using more ASCII.
26334 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26335 and improve readability by using more ASCII.
26336
26337 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26338
26339 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26340 not all targets support atomics on bool.
26341
26342 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26343
26344 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26345 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26346 __f128.
26347 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26348 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26349 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26350 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26351 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26352 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26353
26354 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26355
26356 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26357 defines.
26358
26359 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26360
26361 [BZ #22159]
26362 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26363 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26364 (do_check_remalloced_chunk): Fix build bug.
26365 (do_check_malloc_state): Add assert that checks arena->top.
26366 (malloc_consolidate): Remove initialization.
26367 (int_mallinfo): Remove call to malloc_consolidate.
26368 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26369
26370 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26371
26372 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26373 (have_fastchunks): Remove.
26374 (clear_fastchunks): Remove.
26375 (set_fastchunks): Remove.
26376 (malloc_state): Add have_fastchunks.
26377 (malloc_init_state): Use have_fastchunks.
26378 (do_check_malloc_state): Remove incorrect invariant checks.
26379 (_int_malloc): Use have_fastchunks.
26380 (_int_free): Likewise.
26381 (malloc_consolidate): Likewise.
26382
26383 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26384
26385 * malloc/malloc.c (tcache_put): Inline.
26386 (tcache_get): Inline.
26387
26388 2017-10-17 Jordi Mallach <jordi@gnu.org>
26389
26390 Aurelien Jarno <aurelien@aurel32.net>
26391 [BZ #2522]
26392 * localedata/locales/ca_ES@valencia: New file.
26393 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26394
26395 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
26396
26397 [BZ #22296]
26398 * math/math.h: Let signbit use the builtin in C++ mode with gcc
26399 < 6.x
26400
26401 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26402
26403 * scripts/build-many-glibcs.py (Context.add_all_configs):
26404 Add arm-linux-gnueabihf multiarch extra_glibcs.
26405
26406 * sysdeps/generic/ifunc-init.h: New file.
26407 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
26408
26409 2017-10-17 Mike FABIAN <mfabian@redhat.com>
26410
26411 [BZ #22019]
26412 * localedata/locales/el_GR: Set n_cs_precedes to 0.
26413 * localedata/locales/el_CY: copy "el_GR" because it is identical.
26414 * stdlib/tst-strfmon_l.c: adapt test case.
26415
26416 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26417
26418 * sysdeps/generic/float128-abi.h: New file.
26419 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
26420 non-__prefixed symbols to ....
26421 * math/Versions: ... here. Include <float128-abi.h>.
26422 * stdlib/Versions ... and here. Include <float128-abi.h>
26423
26424 2017-10-16 Florian Weimer <fweimer@redhat.com>
26425
26426 * version.h (VERSION): Switch to ".9000" as the development
26427 version suffix.
26428
26429 2017-10-16 Florian Weimer <fweimer@redhat.com>
26430
26431 [BZ #22050]
26432 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
26433 compat_symbol_reference to access non-default version.
26434
26435 2017-10-16 Florian Weimer <fweimer@redhat.com>
26436
26437 * malloc/Makefile (others-extras): Set to mcheck-init.o.
26438
26439 2017-10-16 Carlos O'Donell <carlos@redhat.com>
26440
26441 * include/shlib-compat.h (compat_symbol_reference): Update
26442 comment.
26443
26444 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26445
26446 * math/Makefile (test-types): Add
26447 $(type-float128-$(float128-alias-fcts)).
26448 * math/test-float128.h (TYPE_STR): Define conditional on
26449 [FLT128_MANT_DIG == LDBL_MANT_DIG].
26450 (ULP_IDX): Likewise.
26451 (ULP_I_IDX): Likewise.
26452
26453 * stdlib/strtold.c: Include <bits/floatn.h>
26454 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
26455 and later undefine as macro. Define as weak alias if
26456 [!USE_WIDE_CHAR].
26457 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
26458 and later undefine as macro. Define as weak alias if
26459 [USE_WIDE_CHAR].
26460 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
26461 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
26462 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26463 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26464 Define and later undefine as macro. Define as weak alias if
26465 [USE_WIDE_CHAR].
26466 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
26467 <bits/floatn.h>.
26468 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
26469 Define and later undefine as macro. Define as weak alias if
26470 [!USE_WIDE_CHAR].
26471 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26472 Define and later undefine as macro. Define as weak alias if
26473 [USE_WIDE_CHAR].
26474
26475 2017-10-15 Carlos O'Donell <carlos@redhat.com>
26476
26477 * localedata/collate-test.c (allocate_arrays): Don't use \n in
26478 record_verbose messages.
26479
26480 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
26481
26482 [BZ #22052]
26483 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
26484 to silence -O3 -Wall warning with GCC 7.
26485
26486 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
26487
26488 * Makeconfig (+link-static-before-libc): Use the first of
26489 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
26490 * gmon/Makefile (tests): Add tst-gmon-static.
26491 (tests-static): Likewise.
26492 (CFLAGS-tst-gmon-static.c): New.
26493 (CRT-tst-gmon-static): Likewise.
26494 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
26495 (tst-gmon-static-ENV): Likewise.
26496 (tests-special): Likewise.
26497 ($(objpfx)tst-gmon-static.out): Likewise.
26498 (clean-tst-gmon-static-data): Likewise.
26499 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
26500 * gmon/tst-gmon-static-gprof.sh: New file.
26501 * gmon/tst-gmon-static.c: Likewise.
26502
26503 2017-10-13 Carlos O'Donell <carlos@redhat.com>
26504
26505 [BZ #22295]
26506 * locale/programs/linereader.c (get_string): Don't warn on
26507 non-symbolic character.
26508
26509 [BZ #22294]
26510 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
26511 int_curr_symbol.
26512
26513 [BZ #22292]
26514 * locale/programs/record-status.h: New file
26515 * locale/programs/locale.c: Add comment.
26516 * locale/programs/charmap-dir.c: Don't include error.h.
26517 (charmap_opendir): Use record_error.
26518 * locale/programs/charmap.c: Don't include error.h.
26519 (charmap_read): Use record_error, and record_warning.
26520 (parse_charmap): Likewise.
26521 * locale/programs/ld-address.c: Don't include error.h.
26522 (address_finish): Use record_error, and record_warning.
26523 * locale/programs/ld-collate.c: Don't include error.h.
26524 (collate_finish): Use record_error, and record_error_at_line.
26525 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
26526 (ctype_class_new): Likewise.
26527 (ctype_map_new): Likewise.
26528 (set_one_default): Likewise.
26529 (set_class_defaults): Likewise.
26530 (translit_flatten): Likewise.
26531 (allocate_arrays): Use record_error, and record_verbose.
26532 * locale/programs/ld-identification.c: Don't include error.h.
26533 (indentation_finish): Use record_error and record_warning.
26534 * locale/programs/ld-measurement.c: Don't include error.h.
26535 (measurement_finish): Use record_error.
26536 * locale/programs/ld-messages.c
26537 (message_finish): Likewise.
26538 * locale/programs/ld-monetary.c
26539 (monetary_finish): Likewise.
26540 * locale/programs/ld-name.c (name_finish): Use record_error
26541 and record_warning.
26542 * locale/programs/ld-numeric.c
26543 (numeric_finish): Use record_error.
26544 * locale/programs/ld-paper.c: Don't include error.h.
26545 (paper_finish): Use record_error.
26546 * locale/programs/ld-telephone.c: Don't include error.h.
26547 (telephone_finish): Use record_error.
26548 * locale/programs/ld-time.c (time_finish): Likewise.
26549 * locale/programs/linereader.h (lr_error): Make inline func.
26550 * locale/programs/localedef.c: Define recorded_warning_count,
26551 and recorded_error_count.
26552 (main): Use record_error. Use recorded_error_count and
26553 recorded_warning_count to issue correct error returns.
26554 (add_to_readlist): Use record_error.
26555 (find_locale): Likewise.
26556 (load_locale): Likewise.
26557 * locale/programs/localedef.h: Remove be_quiet
26558 and WITH_CUR_LOCALE.
26559 * locale/programs/locarchive.c (compare_from_file): Use
26560 record_error.
26561 * locale/programs/locfile.c (write_locale_data): Use
26562 record_error.
26563 * locale/programs/repertoire.c: Dont include error.h.
26564 (repertoire_complain): Use record_error.
26565 * localedata/tst-fmon.sh: Expect failures from localedef.
26566 * localedata/tst-locale.sh: Likewise.
26567 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
26568
26569 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
26570 (REPORTS): Likewise.
26571 (check): Likewise.
26572 (i18n): Rename to...
26573 (i18n_ctype): ...this.
26574 (i18n-report): Rename to...
26575 (i18n_ctype-report): ...this.
26576 * localedata/locales/i18n_ctype: Regenerate.
26577 * localedata/locales/i18n: copy i18n_ctype.
26578
26579 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26580
26581 * stdlib/strfroml.c: Include <bits/floatn.h>.
26582 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
26583 Define before include of <stdlib.h> and undefine afterwards, then
26584 define as weak alias.
26585
26586 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
26587 Undefine and restore default definition. Use
26588 libm_alias_ldouble_other.
26589
26590 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
26591
26592 [BZ #22153]
26593 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
26594 in coredumps.
26595
26596 2017-10-13 James Clarke <jrtc27@jrtc27.com>
26597
26598 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
26599 Assign sym_map to be map for local symbols, as TLS relocations
26600 use sym_map to determine whether the symbol is defined and to
26601 extract the TLS information.
26602 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
26603 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
26604
26605 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26606
26607 [BZ #22189]
26608 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
26609 (math_force_eval): Add powerpc version.
26610
26611 [BZ #22142]
26612 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
26613 -DBL_MAX.
26614 (do_test): Likewise.
26615 * stdio-common/tst-printf.sh: Likewise.
26616 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
26617 ifdef clause in order to set the carry bit right. Replace r0 by
26618 0 without changing the behavior.
26619
26620 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26621
26622 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
26623 <libm-alias-ldouble.h>.
26624 (fabsl): Define using libm_alias_ldouble.
26625 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
26626 <libm-alias-ldouble.h>.
26627 (fabsl): Define using libm_alias_ldouble.
26628
26629 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
26630 Remove conditional code.
26631
26632 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
26633 Rename to __clog10_internal_l.
26634 (__clog10_internal_l): Define aliases using
26635 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
26636 with __clog10.
26637
26638 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26639
26640 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
26641 * benchtests/sincosf-inputs: New file.
26642 * benchtests/cosf-inputs: New file.
26643 * benchtests/sinf-inputs: New file.
26644
26645 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
26646
26647 * posix/tst-spawn.c (do_test): Wait for both children.
26648
26649 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
26650
26651 [BZ #22284]
26652 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
26653 tests-pie): Add tst-gmon-pie.
26654 (CFLAGS-tst-gmon-pie.c): New.
26655 (CRT-tst-gmon-pie): Likewise.
26656 (tst-gmon-pie-ENV): Likewise.
26657 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
26658 ($(objpfx)tst-gmon-pie.out): Likewise.
26659 (clean-tst-gmon-pie-data): Likewise.
26660 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
26661 * gmon/gmon.c [PIC]: Include <link.h>.
26662 [PIC] (callback): New function.
26663 (write_hist): Add an argument for load address. Subtract load
26664 address from PCs.
26665 (write_call_graph): Likewise.
26666 (write_gmon): Call __dl_iterate_phdr to get load address, pass
26667 it to write_hist and write_call_graph.
26668 * gmon/tst-gmon-pie.c: New file.
26669
26670 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26671
26672 * math/Makefile (test-types-basic): New variable.
26673 (test-types): Likewise.
26674 (libm-test-support): Use $(test-types) instead of $(types).
26675 (libm-tests-base-normal): Likewise.
26676 (libm-tests-base-finite): Likewise.
26677 (libm-tests-base-inline): Likewise.
26678 (generated): Likewise.
26679 ($(objpfx)libm-test-support-$(t).c): Likewise.
26680 (libm-tests-for-type iterator): Likewise.
26681 (libm-test-support iterator): Likewise.
26682 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
26683 (ulp_idx): Use ULP_IDX.
26684 * math/test-ldouble.h: Include <float.h>.
26685 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
26686 (ULP_IDX): New macro.
26687 (ULP_I_IDX): Likewise.
26688 * math/test-double.h (ULP_IDX): Likewise.
26689 (ULP_I_IDX): Likewise.
26690 * math/test-float.h (ULP_IDX): Likewise.
26691 (ULP_I_IDX): Likewise.
26692 * math/test-float128.h (ULP_IDX): Likewise.
26693 (ULP_I_IDX): Likewise.
26694
26695 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26696
26697 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
26698 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
26699 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
26700 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
26701 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
26702 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
26703 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
26704 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
26705 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
26706 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
26707 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
26708 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
26709 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
26710 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26711 (SINGLE_THREAD_BY_GLOBAL): Define.
26712 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26713 Likewise.
26714 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26715 Likewise.
26716 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26717 Likewise.
26718 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26719 Likewise.
26720 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
26721 (SINGLE_THREAD_BY_GLOBAL): Likewise.
26722 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26723 Likewise.
26724
26725 2017-10-11 Andreas Schwab <schwab@suse.de>
26726
26727 * nis/Makefile (aux): Remove.
26728 * nscd/Makefile (aux): Add nscd_hash.
26729 (nscd-modules): Likewise.
26730 ($(objpfx)nscd): Don't depend on libnsl.
26731 * nscd/nscd_hash.c: New file.
26732 * nscd/nscd_hash.h: Likewise.
26733 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
26734 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
26735 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
26736 instead of <nis/rpcsvc/nis.h>.
26737 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
26738
26739 2017-10-11 Florian Weimer <fweimer@redhat.com>
26740
26741 [BZ #22078]
26742 Avoid large NSS buffers with many addresses, aliases.
26743 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
26744 using dynarrays and struct alloc_buffer.
26745 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
26746 (tst-nss-files-hosts-multi): Link with -ldl.
26747 * nss/tst-nss-files-hosts-multi.c: New file.
26748
26749 2017-10-11 Florian Weimer <fweimer@redhat.com>
26750
26751 [BZ #18023]
26752 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
26753 scratch_buffer. Eliminate gotos.
26754
26755 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26756
26757 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
26758 libm_alias_ldouble_other.
26759 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
26760 undefine and redefine.
26761 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
26762 (exp10l): Do not define here.
26763 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
26764 (weak_alias): Undefine and redefine.
26765 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
26766 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
26767 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
26768 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
26769
26770 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
26771 [!__fma] (fma): Define using libm_alias_double.
26772 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
26773 [!__fmaf] (fmaf): Define using libm_alias_float.
26774 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
26775 (fmal): Define using libm_alias_ldouble.
26776
26777 2017-10-10 Joseph Myers <joseph@codesourcery.com>
26778
26779 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
26780 New macro.
26781 (libm_alias_double_other): Likewise.
26782 (libm_alias_double_r): Use libm_alias_double_other_r.
26783 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
26784 New macro.
26785 (libm_alias_float_other): Likewise.
26786 (libm_alias_float_r): Use libm_alias_float_other_r.
26787 * sysdeps/generic/libm-alias-float128.h
26788 (libm_alias_float128_other_r): New macro.
26789 (libm_alias_float128_other): Likewise.
26790 (libm_alias_float128_r): Use libm_alias_float128_other_r.
26791 * sysdeps/generic/libm-alias-ldouble.h
26792 (libm_alias_ldouble_other_r): New macro.
26793 (libm_alias_ldouble_other): Likewise.
26794 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
26795 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
26796 (libm_alias_double_other_r): New macro.
26797 (libm_alias_double_other): Likewise.
26798 (libm_alias_double_r): Use libm_alias_double_other_r.
26799 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
26800 (libm_alias_ldouble_other_r): New macro.
26801 (libm_alias_ldouble_other): Likewise.
26802 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
26803 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
26804 [!USE_AS_COMPAT]: Use libm_alias_double_other.
26805 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
26806 [!USE_AS_COMPAT]: Use libm_alias_float_other.
26807 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
26808 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
26809 * math/w_exp2f.c: Use libm_alias_float_other.
26810 * math/w_expf.c: Likewise.
26811 * math/w_log2f.c: Likewise.
26812 * math/w_logf.c: Likewise.
26813 * math/w_powf.c: Likewise.
26814 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
26815 [!__exp2f]: Use libm_alias_float_other.
26816 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
26817 [!__expf]: Use libm_alias_float_other.
26818 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
26819 [!__log2f]: Use libm_alias_float_other.
26820 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
26821 [!__logf]: Use libm_alias_float_other.
26822 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
26823 [!__powf]: Use libm_alias_float_other.
26824
26825 2017-10-10 Florian Weimer <fweimer@redhat.com>
26826
26827 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
26828 function.
26829 (_nss_files_gethostbyname3_r): Call it.
26830
26831 2017-10-09 Joseph Myers <joseph@codesourcery.com>
26832
26833 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
26834 error. Remove default definition of declare_mgen_alias.
26835 [!declare_mgen_alias_r]: Likewise.
26836 * sysdeps/generic/math-type-macros-double.h
26837 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
26838 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
26839 (declare_mgen_alias_r): Likewise.
26840 * sysdeps/generic/math-type-macros-float128.h
26841 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
26842 * sysdeps/generic/math-type-macros-ldouble.h
26843 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
26844 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
26845 macro.
26846 (declare_mgen_alias_r_s): Likewise.
26847 (declare_mgen_alias_r): Likewise.
26848 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
26849 (lgamma_r): Define using libm_alias_double_r.
26850 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
26851 (lgammaf_r): Define using libm_alias_float_r.
26852 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
26853 (lgammal_r): Define using libm_alias_ldouble_r.
26854 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
26855 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
26856
26857 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26858
26859 * lib/glob.c (__glob_pattern_type): Remove now-spurious
26860 extern declaration.
26861
26862 2017-10-09 Joseph Myers <joseph@codesourcery.com>
26863
26864 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
26865
26866 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
26867
26868 [BZ #21326]
26869 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
26870 [__cplusplus >= 201103] (__USE_ISOC99): Define.
26871 * math/Makefile (test-math-cxx11): New test.
26872 * math/test-math-cxx11.cc: New file.
26873
26874 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
26875
26876 * login/openpty.c (openpty): Close slave pty file descriptor on error.
26877
26878 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
26879 call to allocate the slave pty file descriptor.
26880
26881 2017-10-06 Joseph Myers <joseph@codesourcery.com>
26882
26883 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
26884 [!__fma] (fma): Define using libm_alias_double.
26885 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
26886 [!__fma] (fma): Define using libm_alias_double.
26887
26888 * sysdeps/ieee754/float128/float128_private.h: Include
26889 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
26890 (libm_alias_ldouble_r): Undefine and redefine.
26891 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
26892 <libm-alias-ldouble.h>.
26893 (asinhl): Define using libm_alias_ldouble.
26894 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
26895 <libm-alias-ldouble.h>.
26896 (atanl): Define using libm_alias_ldouble.
26897 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
26898 <libm-alias-ldouble.h>.
26899 (cbrtl): Define using libm_alias_ldouble.
26900 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
26901 <libm-alias-ldouble.h>.
26902 (ceill): Define using libm_alias_ldouble.
26903 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
26904 <libm-alias-ldouble.h>.
26905 (copysignl): Define using libm_alias_ldouble.
26906 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
26907 <libm-alias-ldouble.h>.
26908 (cosl): Define using libm_alias_ldouble.
26909 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
26910 <libm-alias-ldouble.h>.
26911 (erfl): Define using libm_alias_ldouble.
26912 (erfcl): Likewise.
26913 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
26914 <libm-alias-ldouble.h>.
26915 (expm1l): Define using libm_alias_ldouble.
26916 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
26917 <libm-alias-ldouble.h>.
26918 (fabsl): Define using libm_alias_ldouble.
26919 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
26920 <libm-alias-ldouble.h>.
26921 (floorl): Define using libm_alias_ldouble.
26922 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
26923 <libm-alias-ldouble.h>.
26924 (fmal): Define using libm_alias_ldouble.
26925 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
26926 <libm-alias-ldouble.h>.
26927 (frexpl): Define using libm_alias_ldouble.
26928 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
26929 libm_alias_ldouble.
26930 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
26931 <libm-alias-ldouble.h>.
26932 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
26933 libm_alias_ldouble.
26934 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
26935 <libm-alias-ldouble.h>.
26936 (getpayloadl): Define using libm_alias_ldouble.
26937 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
26938 <libm-alias-ldouble.h>.
26939 (llrintl): Define using libm_alias_ldouble.
26940 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
26941 <libm-alias-ldouble.h>.
26942 (llroundl): Define using libm_alias_ldouble.
26943 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
26944 <libm-alias-ldouble.h>.
26945 (logbl): Define using libm_alias_ldouble.
26946 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
26947 <libm-alias-ldouble.h>.
26948 (lrintl): Define using libm_alias_ldouble.
26949 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
26950 <libm-alias-ldouble.h>.
26951 (lroundl): Define using libm_alias_ldouble.
26952 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
26953 <libm-alias-ldouble.h>.
26954 (modfl): Define using libm_alias_ldouble.
26955 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
26956 <libm-alias-ldouble.h>.
26957 (nearbyintl): Define using libm_alias_ldouble.
26958 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
26959 <libm-alias-ldouble.h>.
26960 (nextafterl): Define using libm_alias_ldouble.
26961 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
26962 <libm-alias-ldouble.h>.
26963 (nextupl): Define using libm_alias_ldouble.
26964 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
26965 <libm-alias-ldouble.h>.
26966 (remquol): Define using libm_alias_ldouble.
26967 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
26968 <libm-alias-ldouble.h>.
26969 (rintl): Define using libm_alias_ldouble.
26970 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
26971 <libm-alias-ldouble.h>.
26972 (roundevenl): Define using libm_alias_ldouble.
26973 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
26974 <libm-alias-ldouble.h>.
26975 (roundl): Define using libm_alias_ldouble.
26976 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
26977 using libm_alias_ldouble.
26978 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
26979 <libm-alias-ldouble.h>.
26980 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
26981 Define using libm_alias_ldouble.
26982 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
26983 <libm-alias-ldouble.h>.
26984 (sincosl): Define using libm_alias_ldouble.
26985 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
26986 <libm-alias-ldouble.h>.
26987 (sinl): Define using libm_alias_ldouble.
26988 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
26989 <libm-alias-ldouble.h>.
26990 (tanhl): Define using libm_alias_ldouble.
26991 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
26992 <libm-alias-ldouble.h>.
26993 (tanl): Define using libm_alias_ldouble.
26994 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
26995 <libm-alias-ldouble.h>.
26996 (totalorderl): Define using libm_alias_ldouble.
26997 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
26998 <libm-alias-ldouble.h>.
26999 (totalordermagl): Define using libm_alias_ldouble.
27000 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27001 <libm-alias-ldouble.h>.
27002 (truncl): Define using libm_alias_ldouble.
27003 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27004 libm_alias_ldouble.
27005 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27006 libm_alias_ldouble.
27007 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27008 <libm-alias-ldouble.h>.
27009 (weak_alias): Do not undefine and redefine.
27010 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27011 (copysignl): Define with long_double_symbol only if [IS_IN
27012 (libc)].
27013 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27014 <libm-alias-ldouble.h>.
27015 (weak_alias): Do not undefine and redefine.
27016 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27017 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27018 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27019 <libm-alias-ldouble.h>.
27020 (weak_alias): Do not undefine and redefine.
27021 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27022 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27023 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27024 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27025 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27026 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27027 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27028 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27029 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27030 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27031 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27032 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27033 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27034 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27035 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27036 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27037 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27038 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27039 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27040 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27041 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27042 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27043 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27044 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27045 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27046 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27047
27048 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27049
27050 [BZ #22111]
27051 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27052 (tcache_thread_freeres): Set tcache_shutting_down before
27053 freeing the tcache.
27054 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27055 * malloc/tst-malloc-tcache-leak.c: New file.
27056
27057 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27058
27059 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27060 back to powerpc32 file.
27061 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27062 (memrchr): Add __memrchr_power8 to ifunc list.
27063 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27064 extra bytes for unaligned inputs.
27065
27066 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27067
27068 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27069 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27070 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27071 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27072 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27073
27074 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27075
27076 * sysdeps/arm/libm-test-ulps: Update.
27077
27078 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27079 <libm-alias-ldouble.h>.
27080 (asinhl): Define using libm_alias_ldouble.
27081 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27082 <libm-alias-ldouble.h>.
27083 (cbrtl): Define using libm_alias_ldouble.
27084 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27085 <libm-alias-ldouble.h>.
27086 (copysignl): Define using libm_alias_ldouble.
27087 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27088 <libm-alias-ldouble.h>.
27089 (cosl): Define using libm_alias_ldouble.
27090 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27091 <libm-alias-ldouble.h>.
27092 (erfl): Define using libm_alias_ldouble.
27093 (erfcl): Likewise.
27094 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27095 <libm-alias-ldouble.h>.
27096 (fmal): Define using libm_alias_ldouble.
27097 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27098 <libm-alias-ldouble.h>.
27099 (frexpl): Define using libm_alias_ldouble.
27100 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27101 libm_alias_ldouble.
27102 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27103 <libm-alias-ldouble.h>.
27104 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27105 libm_alias_ldouble.
27106 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27107 <libm-alias-ldouble.h>.
27108 (getpayloadl): Define using libm_alias_ldouble.
27109 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27110 <libm-alias-ldouble.h>.
27111 (llrintl): Define using libm_alias_ldouble.
27112 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27113 <libm-alias-ldouble.h>.
27114 (llroundl): Define using libm_alias_ldouble.
27115 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27116 <libm-alias-ldouble.h>.
27117 (lrintl): Define using libm_alias_ldouble.
27118 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27119 <libm-alias-ldouble.h>.
27120 (lroundl): Define using libm_alias_ldouble.
27121 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27122 <libm-alias-ldouble.h>.
27123 (modfl): Define using libm_alias_ldouble.
27124 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27125 <libm-alias-ldouble.h>.
27126 (nextupl): Define using libm_alias_ldouble.
27127 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27128 <libm-alias-ldouble.h>.
27129 (remquol): Define using libm_alias_ldouble.
27130 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27131 <libm-alias-ldouble.h>.
27132 (roundevenl): Define using libm_alias_ldouble.
27133 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27134 <libm-alias-ldouble.h>.
27135 (roundl): Define using libm_alias_ldouble.
27136 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27137 using libm_alias_ldouble.
27138 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27139 <libm-alias-ldouble.h>.
27140 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27141 <libm-alias-ldouble.h>.
27142 (setpayloadsigl): Define using libm_alias_ldouble.
27143 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27144 <libm-alias-ldouble.h>.
27145 (sincosl): Define using libm_alias_ldouble.
27146 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27147 <libm-alias-ldouble.h>.
27148 (sinl): Define using libm_alias_ldouble.
27149 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27150 <libm-alias-ldouble.h>.
27151 (tanhl): Define using libm_alias_ldouble.
27152 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27153 <libm-alias-ldouble.h>.
27154 (tanl): Define using libm_alias_ldouble.
27155 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27156 <libm-alias-ldouble.h>.
27157 (totalorderl): Define using libm_alias_ldouble.
27158 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27159 <libm-alias-ldouble.h>.
27160 (totalordermagl): Define using libm_alias_ldouble.
27161 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27162 libm_alias_ldouble.
27163 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27164 libm_alias_ldouble.
27165
27166 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27167
27168 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27169 memmove_falkor.
27170 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27171 (__libc_ifunc_impl_list): Likewise.
27172 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27173 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27174
27175 * benchtests/bench-memmove-walk.c: New file.
27176 * benchtests/Makefile (string-benchset): Add it.
27177
27178 * benchtests/bench-memset-walk.c: New file.
27179 * benchtests/Makefile (string-benchset): Add it.
27180
27181 * benchtests/bench-memcpy-walk.c: New file.
27182 * benchtests/Makefile (string-benchset): Add it.
27183
27184 2017-10-05 Florian Weimer <fweimer@redhat.com>
27185
27186 nscd: Eliminate compilation time dependency in the build output.
27187 * nscd/nscd_stat.c (STATDATA_VERSION)
27188 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27189 (STATDATA_VERSION_FULL): New macro definitions.
27190 (compilation): Remove.
27191 (struct statdata): Adjust version member.
27192 (send_stats): Set version from STATDATA_VERSION_FULL.
27193 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27194
27195 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27196
27197 * configure.ac (--enable-add-ons): Remove option.
27198 (machine): Do not mention add-ons in comment.
27199 (LIBC_PRECONFIGURE): Likewise.
27200 (add_ons): Remove variable and sanity checks and logic to locate
27201 add-ons.
27202 (add_ons_automatic): Remove variable.
27203 (configured_add_ons): Likewise.
27204 (add_ons_sfx): Likewise.
27205 (add_ons_pfx): Likewise.
27206 (add_on_subdirs): Likewise.
27207 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27208 consideration of add-ons in Implies handling.
27209 (sysdeps_add_ons): Likewise.
27210 * configure: Regenerated.
27211 * libidn/configure.ac: Remove.
27212 * libidn/configure: Likewise.
27213 * sysdeps/unix/inet/configure.ac: New file.
27214 * sysdeps/unix/inet/configure: New generated file.
27215 * sysdeps/unix/inet/Subdirs: Add libidn.
27216 * Makeconfig (sysdeps-srcdirs): Remove variable.
27217 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27218 ($(common-objpfx)config.status): Do not depend on add-on files.
27219 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27220 comment.
27221 (all-subdirs): Do not include $(add-on-subdirs).
27222 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27223 * config.make.in (add-ons): Remove variable.
27224 (add-on-subdirs): Likewise.
27225 (sysdeps-add-ons): Likewise.
27226 * manual/Makefile (add-chapters): Remove.
27227 ($(objpfx)texis): Do not depend on $(add-chapters).
27228 (nonexamples): Do not handle $(add-chapters).
27229 (examples): Do not handle $(add-ons).
27230 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27231 libc-texinfo.sh.
27232 * manual/install.texi (Installation): Do not mention add-ons.
27233 (--enable-add-ons): Do not document configure option.
27234 * INSTALL: Regenerated.
27235 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27236 * manual/maint.texi (Hierarchy Conventions): Do not mention
27237 add-ons.
27238 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27239 --enable-add-ons.
27240 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27241 add-ons.
27242 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27243 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27244
27245 2017-10-05 Andreas Schwab <schwab@suse.de>
27246
27247 [BZ #15142]
27248 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27249 (_IO_flush_all_lockp): Always lock list_all_lock.
27250 (_IO_flush_all_linebuffered): Likewise.
27251 (_IO_unbuffer_all): Likewise.
27252
27253 2017-10-05 Florian Weimer <fweimer@redhat.com>
27254
27255 [BZ #15436]
27256 Do not flush stdio streams on abort.
27257 * stdlib/abort.c (fflush): Remove macro definition.
27258 (abort): Remove stages related to stdio flushing.
27259
27260 2017-10-05 Florian Weimer <fweimer@redhat.com>
27261
27262 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27263
27264 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27265
27266 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27267
27268 2017-10-05 Florian Weimer <fweimer@redhat.com>
27269
27270 * support/support_format_hostent.c (support_format_hostent): Add
27271 more error information for NETDB_INTERNAL.
27272
27273 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27274
27275 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27276 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27277 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27278 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27279 AC_DEFINE if multi-arch is enabled.
27280 * sysdeps/i386/configure: Regenerated.
27281
27282 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27283
27284 * Makeconfig (+link-static-before-libc): Use
27285 $(DEFAULT-LDFLAGS-$(@F)).
27286 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27287 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27288 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27289
27290 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27291
27292 * elf/Makefile (tests): Add tst-main1.
27293 (modules-names): Add tst-main1mod.
27294 ($(objpfx)tst-main1): New.
27295 (CRT-tst-main1): Likewise.
27296 (LDFLAGS-tst-main1): Likewise.
27297 (LDLIBS-tst-main1): Likewise.
27298 (tst-main1mod.so-no-z-defs): Likewise.
27299 * elf/tst-main1.c: New file.
27300 * elf/tst-main1mod.c: Likewise.
27301
27302 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27303
27304 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27305
27306 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27307
27308 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27309 (fma): Define using libm_alias_double.
27310 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27311 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27312 <math_ldbl_opt.h>.
27313 (fmal): Do not define as compat symbol here.
27314 * sysdeps/alpha/fpu/s_fma.c: New file.
27315
27316 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27317
27318 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27319
27320 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27321
27322 [BZ #22229]
27323 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27324 <math_ldbl_opt.h>
27325 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27326 and libc.
27327 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27328 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27329 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27330 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27331 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27332 Include <math_ldbl_opt.h>
27333 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27334 and libc.
27335 (compat_symbol): Undefine and redefine.
27336 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27337 <math_ldbl_opt.h>
27338 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27339 (compat_symbol): Undefine and redefine.
27340 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27341 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27342 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27343 GLIBC_2_1 for libm.
27344 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27345 GLIBC_2.0 copysignl symbol.
27346 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27347 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27348
27349 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27350
27351 2017-10-04 Florian Weimer <fweimer@redhat.com>
27352
27353 * scripts/check-local-headers.sh: Ignore nspr4 header file
27354 directory in addition to nspr.
27355
27356 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27357
27358 [BZ #17956]
27359 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27360 * configure: Regenerate.
27361 * crypt/Makefile (nss-cpp-flags): New variable.
27362 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27363 (CPPFLAGS-md5-crypt.c): Use it.
27364 * scripts/check-local-headers.sh: Ignore nspr header file
27365 directory.
27366
27367 2017-10-04 Andreas Schwab <schwab@suse.de>
27368
27369 * nis/Makefile (services): Remove compat.
27370 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27371 ($(objpfx)libnss_compat.so): Remove rule.
27372 * nis/Versions (libnss_compat): Remove.
27373 * nss/Makefile (services): Add compat.
27374 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27375 * nss/Versions (libnss_compat): Define.
27376 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27377 Don't include <rpc/types.h>. Replace bool_t by bool.
27378 * nss/nss_compat/compat-initgroups.c: Likewise.
27379 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27380 instead of <rpcsrv/ypclnt.h>.
27381 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27382 yp_get_default_domain.
27383 * nss/nss_compat/compat-pwd.c: Likewise.
27384 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27385 yp_get_default_domain.
27386 * nss/nss_compat/nisdomain.c: New file.
27387 * nss/nss_compat/nisdomain.h: Likewise.
27388
27389 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27390
27391 [BZ #22244]
27392 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27393 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27394
27395 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27396
27397 [BZ #22243]
27398 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
27399 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
27400
27401 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27402
27403 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
27404 "movl main@GOTOFF(%ebx), %eax".
27405
27406 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27407
27408 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
27409 allow undefined _DYNAMIC in PIE libc.a.
27410 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27411 Likewse.
27412
27413 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27414
27415 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
27416 check _DYNAMIC.
27417
27418 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27419
27420 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
27421 check _DYNAMIC.
27422
27423 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27424
27425 * math/test-math-iscanonical.cc (error): Replace bool with int.
27426
27427 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27428
27429 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
27430 (modf): Define using libm_alias_double, only if [!__modf].
27431 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
27432 <libm-alias-double.h>.
27433 (modf): Define using libm_alias_double, only if [!__modf].
27434 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
27435 compat symbol here.
27436 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
27437 (weak_alias): Do not undefine and redefine.
27438 (strong_alias): Likewise.
27439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
27440 (weak_alias): Likewise.
27441 (strong_alias): Likewise.
27442
27443 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
27444 (logb): Define using libm_alias_double, only if [!__logb].
27445 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
27446 <libm-alias-double.h>.
27447 (logb): Define using libm_alias_double, only if [!__logb].
27448 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
27449 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
27450 (weak_alias): Do not undefine and redefine.
27451 (strong_alias): Likewise.
27452 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
27453 (weak_alias): Likewise.
27454 (strong_alias): Likewise.
27455
27456 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27457
27458 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
27459 Check SHARED instead PIC.
27460
27461 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27462
27463 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
27464 [!__fmaf] (fmaf): Define using libm_alias_float.
27465
27466 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
27467 (frexp): Define using libm_alias_double.
27468 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
27469 <libm-alias-double.h>.
27470 (frexp): Define using libm_alias_double.
27471 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
27472 compat symbol here.
27473
27474 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27475
27476 [BZ #22235]
27477 * math/math.h: Trivial fix for unbalanced parentheses in comment.
27478 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
27479 (CFLAGS-test-math-iscanonical.cc): New variable.
27480 * math/test-math-iscanonical.cc: New file.
27481 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
27482 Provide a C++ implementation based on function overloading,
27483 rather than using __MATH_TG, which uses C-only builtins.
27484 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
27485 Likewise.
27486 * sysdeps/powerpc/powerpc64le/Makefile
27487 (CFLAGS-test-math-iscanonical.cc): New variable.
27488
27489 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27490
27491 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
27492 (ceil): Define using libm_alias_double.
27493 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
27494 (floor): Define using libm_alias_double.
27495 * sysdeps/ieee754/dbl-64/s_llround.c: Include
27496 <libm-alias-double.h>.
27497 (llround): Define using libm_alias_double.
27498 * sysdeps/ieee754/dbl-64/s_lround.c: Include
27499 <libm-alias-double.h>.
27500 (lround): Define using libm_alias_double.
27501 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
27502 <libm-alias-double.h>.
27503 (nearbyint): Define using libm_alias_double.
27504 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
27505 <libm-alias-double.h>.
27506 (remquo): Define using libm_alias_double.
27507 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
27508 (rint): Define using libm_alias_double.
27509 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
27510 (round): Define using libm_alias_double.
27511 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
27512 (trunc): Define using libm_alias_double.
27513 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
27514 <libm-alias-double.h>.
27515 (ceil): Define using libm_alias_double.
27516 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
27517 <libm-alias-double.h>.
27518 (floor): Define using libm_alias_double.
27519 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
27520 <libm-alias-double.h>.
27521 (llround): Define using libm_alias_double.
27522 [_LP64] (lround): Likewise.
27523 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
27524 <libm-alias-double.h>.
27525 [!_LP64] (lround): Define using libm_alias_double.
27526 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
27527 <libm-alias-double.h>.
27528 (nearbyint): Define using libm_alias_double.
27529 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
27530 <libm-alias-double.h>.
27531 (remquo): Define using libm_alias_double.
27532 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
27533 <libm-alias-double.h>.
27534 (rint): Define using libm_alias_double.
27535 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
27536 <libm-alias-double.h>.
27537 (round): Define using libm_alias_double.
27538 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
27539 <libm-alias-double.h>.
27540 (trunc): Define using libm_alias_double.
27541 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
27542 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
27543 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
27544 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
27545 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
27546 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
27547 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
27548 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
27549 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
27550
27551 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27552
27553 * math/w_remainder.c: New file.
27554 * math/w_remainderf.c: New file.
27555 * math/w_remainderl.c: New file.
27556
27557 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27558
27559 * elf/rtld.c (BOOTSTRAP_MAP): New.
27560 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
27561 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27562 Likewise.
27563 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27564 Likewise.
27565 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27566 Likewise.
27567
27568 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27569
27570 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
27571 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
27572 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
27573 rtld_hidden_data_ver): Define to empty.
27574 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
27575 __assert_perror_fail): Likewise.
27576 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27577 (__rewinddir): Likewise.
27578 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27579 (__profile_frequency): Likewise.
27580 * include/setjmp.h (__sigsetjmp): Likewise.
27581 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
27582 __libc_sigaction): Likewise.
27583 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
27584 not set hidden attribute.
27585 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
27586 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
27587 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
27588 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
27589 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
27590 __fxstatat64): Likewise.
27591 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27592 (__uname): Likewise.
27593 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27594 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
27595 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
27596 (NO_RTLD_HIDDEN): Set.
27597 * sysdeps/mach/hurd/configure: Refresh.
27598 * config.h.in: Refresh.
27599
27600 2017-10-02 Joseph Myers <joseph@codesourcery.com>
27601
27602 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
27603 (atan): Define using libm_alias_double.
27604 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
27605 (tan): Define using libm_alias_double.
27606 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
27607 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
27608
27609 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
27610 define as weak alias of __atan. Do not define any aliases if
27611 [__atan].
27612 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
27613 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
27614 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
27615 as weak alias of __tan. Do not define any aliases if [__tan].
27616 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
27617 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
27618 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
27619 __atan.
27620 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
27621 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
27622 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
27623 and define as weak alias of __atan.
27624 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
27625 __atan.
27626 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
27627 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
27628 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
27629 define as weak alias of __tan.
27630
27631 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27632
27633 * math/w_lgamma.c: New file.
27634 * math/w_lgammaf.c: New file.
27635 * math/w_lgammal.c: New file.
27636
27637 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27638
27639 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
27640 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
27641 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
27642 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
27643 * sysdeps/ieee754/flt-32/w_logf.c: New file.
27644 * sysdeps/ieee754/flt-32/w_powf.c: New file.
27645 * sysdeps/i386/fpu/w_log2f.c: New file.
27646 * sysdeps/i386/fpu/w_logf.c: New file.
27647 * sysdeps/i386/fpu/w_powf.c: New file.
27648 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
27649 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
27650 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
27651
27652 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27653 H.J. Lu <hongjiu.lu@intel.com>
27654
27655 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
27656 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
27657 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
27658 * sysdeps/ieee754/flt-32/w_expf.c: New file.
27659 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
27660 the new expf code.
27661 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
27662 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
27663 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
27664 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
27665 * sysdeps/i386/fpu/w_exp2f.c: New file.
27666 * sysdeps/i386/fpu/w_expf.c: New file.
27667 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
27668 * sysdeps/x86_64/fpu/w_expf.c: New file.
27669
27670 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27671
27672 * math/Versions (logf): New libm symbol at GLIBC_2.27.
27673 (log2f): Likewise.
27674 (powf): Likewise.
27675 * math/w_log2f.c: New file.
27676 * math/w_logf.c: New file.
27677 * math/w_powf.c: New file.
27678 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
27679 * math/w_logf_compat.c (__logf_compat): Likewise.
27680 * math/w_powf_compat.c (__powf_compat): Likewise.
27681 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
27682 * sysdeps/ia64/fpu/e_logf.S: Likewise.
27683 * sysdeps/ia64/fpu/e_powf.S: Likewise.
27684 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27685 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27686 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27687 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27688 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27689 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27690 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27691 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27692 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27693 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27694 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27695 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27697 Likewise.
27698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27699 Likewise.
27700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27701 Likewise.
27702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27703 Likewise.
27704 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27705 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27706 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27707 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27708 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27709 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27710 Likewise.
27711 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27712 Likewise.
27713 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27714 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27715 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27716
27717 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27718
27719 * sysdeps/powerpc/powerpc64/multiarch/Makefile
27720 (sysdep_routines): Add memrchr_power8.
27721 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27722 (memrchr): Add __memrchr_power8 to list of memrchr functions.
27723 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
27724 New file.
27725 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27726 (memrchr): Add __memrchr_power8 to ifunc list.
27727 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
27728
27729 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27730
27731 [BZ #18822]
27732 * sysdeps/unix/sysv/linux/posix_fadvise64.c
27733 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
27734 libc_hidden_def.
27735 * sysdeps/unix/sysv/linux/posix_fallocate64.c
27736 (__posix_fallocate64_l64): Likewise.
27737
27738 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27739
27740 [BZ #18822]
27741 * sysdeps/unix/sysv/linux/sched_setaffinity.c
27742 (__sched_setaffinity_new): Add libc_hidden_proto and
27743 libc_hidden_def.
27744
27745 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27746
27747 [BZ #18822]
27748 * include/glob.h (__glob64): Add libc_hidden_proto.
27749 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
27750 libc_hidden_def.
27751
27752 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27753
27754 [BZ #18822]
27755 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
27756 attribute_hidden.
27757
27758 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27759
27760 [BZ #18822]
27761 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
27762
27763 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27764
27765 [BZ #18822]
27766 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
27767 libc_hidden_def.
27768
27769 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27770
27771 [BZ #18822]
27772 * csu/version.c (__libc_print_version): Add attribute_hidden.
27773
27774 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27775
27776 [BZ #18822]
27777 * include/libc-internal.h (__init_misc): Add attribute_hidden.
27778
27779 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27780
27781 [BZ #18822]
27782 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
27783
27784 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27785
27786 [BZ #18822]
27787 * nscd/nscd_helper.c (__nis_hash): New prototype.
27788
27789 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27790
27791 [BZ #18822]
27792 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
27793 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
27794 libc_hidden_def.
27795 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
27796 * termios/tcgetattr.c (__tcgetattr): Likewise.
27797
27798 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27799
27800 [BZ #18822]
27801 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
27802 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
27803 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
27804 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
27805 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
27806
27807 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27808
27809 [BZ #18822]
27810 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
27811
27812 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27813
27814 [BZ #18822]
27815 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
27816 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
27817
27818 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27819
27820 [BZ #18822]
27821 * intl/hash-string.h (__hash_string): Add attribute_hidden.
27822
27823 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27824
27825 [BZ #18822]
27826 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
27827 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
27828
27829 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27830
27831 [BZ #18822]
27832 * include/ifreq.h: New file.
27833 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
27834 (__ifreq): Likewise.
27835 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
27836 (__ifreq): Likewise.
27837
27838 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27839
27840 [BZ #18822]
27841 * include/idna.h: New file.
27842 * inet/getnameinfo.c: Include <idna.h> instead of
27843 <libidn/idna.h>.
27844 (__idna_to_unicode_lzlz): Removed.
27845 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
27846 <libidn/idna.h>.
27847 (__idna_to_ascii_lz): Removed.
27848 (__idna_to_unicode_lzlz): Likewise.
27849
27850 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27851
27852 [BZ #18822]
27853 * include/plural-exp.h: New file.
27854 * intl/plural-exp.c: Include <plural-exp.h> instead of
27855 "plural-exp.h".
27856
27857 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27858
27859 [BZ #18822]
27860 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
27861 "getsourcefilter.h".
27862 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
27863 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
27864 "getsourcefilter.h".
27865 (__get_sol): Removed.
27866
27867 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27868
27869 [BZ #18822]
27870 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
27871 to ...
27872 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
27873
27874 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27875
27876 [BZ #18822]
27877 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
27878 attribute_hidden.
27879
27880 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27881
27882 [BZ #18822]
27883 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
27884
27885 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27886
27887 [BZ #18822]
27888 * include/search.h (__tdestroy): Add libc_hidden_proto.
27889 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
27890
27891 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27892
27893 [BZ #18822]
27894 * include/assert.h (__assert_fail_base): Add attribute_hidden.
27895
27896 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27897
27898 [BZ #18822]
27899 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
27900 attribute_hidden.
27901
27902 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27903
27904 [BZ #18822]
27905 * include/signal.h (__kill): Add libc_hidden_proto.
27906 (__sigblock): Likewise.
27907 (__sigprocmask): Likewise.
27908 (__sigaltstack): Likewise.
27909 * signal/kill.c (__kill): Add libc_hidden_def.
27910 * signal/sigblock.c (__sigblock): Likewise.
27911 * signal/sigprocmask.c (__sigprocmask): Likewise.
27912 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
27913 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
27914 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
27915 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
27916 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
27917 Likewise.
27918 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
27919 Likewise.
27920 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
27921 (__sigprocmask): Likewise.
27922 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
27923 Likewise.
27924 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
27925 (__sigprocmask): Likewise.
27926 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
27927 Likewise.
27928
27929 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27930
27931 [BZ #18822]
27932 * include/string.h (__strsep): Add libc_hidden_proto.
27933 * string/strsep.c (__strsep): Add libc_hidden_def.
27934
27935 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27936
27937 [BZ #18822]
27938 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
27939 attribute_hidden.
27940 (__spawni): Likewise.
27941
27942 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27943
27944 [BZ #18822]
27945 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
27946 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
27947 libc_hidden_def.
27948
27949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27950
27951 [BZ #18822]
27952 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
27953
27954 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27955
27956 [BZ #18822]
27957 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
27958 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
27959 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
27960 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
27961 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
27962 Likewise.
27963 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
27964 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
27965
27966 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27967
27968 [BZ #18822]
27969 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
27970 (__dcigettext): Likewise.
27971
27972 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27973
27974 [BZ #18822]
27975 * include/sys/sysinfo.h (__get_nprocs_conf): Add
27976 libc_hidden_proto.
27977 (__get_nprocs): Likewise.
27978 (__get_phys_pages): Likewise.
27979 (__get_avphys_pages): Likewise.
27980 (__get_child_max): Add attribute_hidden.
27981 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
27982 (__get_nprocs): Likewise.
27983 (__get_phys_pages): Likewise.
27984 (__get_avphys_pages): Likewise.
27985 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
27986 libc_hidden_def.
27987 (__get_nprocs): Likewise.
27988 (__get_phys_pages): Likewise.
27989 (__get_avphys_pages): Likewise.
27990 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
27991 libc_hidden_def.
27992 (__get_nprocs_conf): Likewise.
27993 (__get_phys_pages): Likewise.
27994 (__get_avphys_pages): Likewise.
27995
27996 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27997
27998 [BZ #18822]
27999 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28000 attribute_hidden.
28001 (__netlink_close): Likewise.
28002 (__netlink_free_handle): Likewise.
28003 (__netlink_request): Likewise.
28004
28005 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28006
28007 [BZ #18822]
28008 * include/rpc/rpc.h (__rpc_thread_variables): Add
28009 attribute_hidden.
28010 (__rpc_thread_svc_cleanup): Likewise.
28011 (__rpc_thread_clnt_cleanup): Likewise.
28012 (__rpc_thread_key_cleanup): Likewise.
28013
28014 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28015
28016 [BZ #18822]
28017 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28018 (__writev): Likewise.
28019 * misc/readv.c (__readv): Add libc_hidden_def.
28020 * misc/writev.c (__writev): Likewise.
28021 * sysdeps/posix/readv.c (__readv): Likewise.
28022 * sysdeps/posix/writev.c (__writev): Likewise.
28023 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28024 (__readv): Likewise.
28025 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28026 (__writev): Likewise.
28027
28028 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28029
28030 [BZ #18822]
28031 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28032 (__regcomp): Add libc_hidden_proto.
28033 (__regexec): Likewise.
28034 (__regfree): Likewise.
28035 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28036 (__regfree): Likewise.
28037 * posix/regexec.c (__regexec): Likewise.
28038
28039 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28040
28041 [BZ #18822]
28042 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28043 (__getutent): Likewise.
28044 (__getutid): Likewise.
28045 (__getutline): Likewise.
28046 (__pututline): Likewise.
28047 (__getutent_r): Likewise.
28048 (__getutid_r): Likewise.
28049 (__getutline_r): Likewise.
28050 (__utmpname): Add attribute_hidden.
28051 (__setutent): Likewise.
28052 (__endutent): Likewise.
28053 * login/getutent.c (__getutent): Add libc_hidden_def.
28054 * login/getutent_r.c (__getutent_r): Likewise.
28055 (__pututline): Likewise.
28056 * login/getutid.c (__getutid): Likewise.
28057 * login/getutid_r.c (__getutid_r): Likewise.
28058 * login/getutline.c (__getutline): Likewise.
28059 * login/getutline_r.c (__getutline_r): Likewise.
28060 * login/updwtmp.c (__updwtmp): Likewise.
28061
28062 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28063
28064 [BZ #18822]
28065 * include/dirent.h (__opendir): Always add attribute_hidden.
28066 (__fdopendir): Likewise.
28067 (__closedir): Likewise.
28068 (__readdir): Likewise.
28069 (__readdir64): Add libc_hidden_proto.
28070 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28071 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28072 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28073 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28074 New alias.
28075
28076 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28077
28078 [BZ #18822]
28079 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28080 * include/netdb.h (__gethostbyaddr_r): Likewise.
28081 (__gethostbyname_r): Likewise.
28082 (__gethostbyname2_r): Likewise.
28083 (__getnetbyaddr_r): Likewise.
28084 (__getnetbyname_r): Likewise.
28085 (__getservbyname_r): Likewise.
28086 (__getservbyport_r): Likewise.
28087 (__getprotobyname_r): Likewise.
28088 (__getprotobynumber_r): Likewise.
28089 (__getnetgrent_r): Likewise.
28090 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28091 (__getrpcbynumber_r): Likewise.
28092 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28093
28094 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28095
28096 [BZ #18822]
28097 * include/stdio.h (__fcloseall): Add attribute_hidden.
28098 (__getline): Likewise.
28099 (__path_search): Likewise.
28100 (__gen_tempname): Likewise.
28101 (__libc_message): Likewise.
28102 (__flockfile): Likewise.
28103 (__funlockfile): Likewise.
28104 (__fxprintf): Likewise.
28105 (__fxprintf_nocancel): Likewise.
28106
28107 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28108
28109 [BZ #18822]
28110 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28111 (__sgetsgent_r): Likewise.
28112
28113 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28114
28115 [BZ #18822]
28116 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28117 (__statfs64): Likewise.
28118 (__fstatfs64): Likewise.
28119 * include/sys/statvfs.h (__statvfs64): Likewise.
28120 (__fstatvfs64): Likewise.
28121 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28122 (__statfs_filesize_max): Likewise.
28123 (__statfs_symlinks): Likewise.
28124 (__statfs_chown_restricted): Likewise.
28125
28126 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28127
28128 [BZ #18822]
28129 * include/time.h (__tzstring): Add attribute_hidden.
28130 (__tzfile_read): Likewise.
28131 (__tzfile_compute): Likewise.
28132 (__tzfile_default): Likewise.
28133 (__tzset_parse_tz): Likewise.
28134 (__offtime): Likewise.
28135 (__asctime_r): Likewise.
28136 (__tzset): Likewise.
28137 (__tz_convert): Likewise.
28138 (__getdate_r): Likewise.
28139 (__getclktck): Likewise.
28140
28141 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28142
28143 [BZ #18822]
28144 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28145 (__nscd_unmap): Likewise.
28146 (__nscd_cache_search): Likewise.
28147 (__nscd_get_nl_timestamp): Likewise.
28148 (__nscd_getpwnam_r): Likewise.
28149 (__nscd_getpwuid_r): Likewise.
28150 (__nscd_getgrnam_r): Likewise.
28151 (__nscd_getgrgid_r): Likewise.
28152 (__nscd_gethostbyname_r): Likewise.
28153 (__nscd_gethostbyname2_r): Likewise.
28154 (__nscd_gethostbyaddr_r): Likewise.
28155 (__nscd_getai): Likewise.
28156 (__nscd_getgrouplist): Likewise.
28157 (__nscd_getservbyname_r): Likewise.
28158 (__nscd_getservbyport_r): Likewise.
28159 (__nscd_innetgr): Likewise.
28160 (__nscd_setnetgrent): Likewise.
28161
28162 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28163
28164 [BZ #18822]
28165 * include/gmp.h: Declare internal functions only if _ISOMAC is
28166 undefined.
28167 (__mpn_extract_double): Add attribute_hidden.
28168 (__mpn_extract_long_double): Likewise.
28169 (__mpn_extract_float128): Likewise.
28170 (__mpn_construct_float): Likewise.
28171 (__mpn_construct_double): Likewise.
28172 (__mpn_construct_long_double): Likewise.
28173 (__mpn_construct_float128): Likewise.
28174 (mpn_add_1): Likewise.
28175 (mpn_addmul_1): Likewise.
28176 (mpn_add_n): Likewise.
28177 (mpn_cmp): Likewise.
28178 (mpn_divrem): Likewise.
28179 (mpn_lshift): Likewise.
28180 (mpn_mul): Likewise.
28181 (mpn_mul_1): Likewise.
28182 (mpn_rshift): Likewise.
28183 (mpn_sub_1): Likewise.
28184 (mpn_submul_1): Likewise.
28185 (mpn_sub_n): Likewise.
28186
28187 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28188
28189 [BZ #18822]
28190 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28191 (__wcscat): Likewise.
28192 (__btowc): Likewise.
28193 (__wcrtomb): Likewise.
28194 (__mbsrtowcs): Likewise.
28195 (__wcsrtombs): Likewise.
28196 (__mbsnrtowcs): Likewise.
28197 (__wcsnrtombs): Likewise.
28198 (__wcsncpy): Likewise.
28199 (__wcpncpy): Likewise.
28200 (__wmemcpy): Likewise.
28201 (__wmempcpy): Likewise.
28202 (__wmemmove): Likewise.
28203 (__wcschrnul): Likewise.
28204 (__vfwscanf): Likewise.
28205 (__vswprintf): Likewise.
28206 (__fwprintf): Likewise.
28207 (__vfwprintf): Likewise.
28208
28209 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28210
28211 [BZ #18822]
28212 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28213 (__getgrgid_r): Likewise.
28214 (__getgrnam_r): Likewise.
28215 * include/pwd.h (__getpwuid_r): Likewise.
28216 (__getpwnam_r): Likewise.
28217 (__fgetpwent_r): Likewise.
28218 * include/shadow.h (__getspnam_r): Likewise.
28219 (__sgetspent_r): Likewise.
28220 (__fgetspent_r): Likewise.
28221
28222 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28223
28224 [BZ #18822]
28225 * include/unistd.h (__access): Add attribute_hidden.
28226 (__lseek64): Likewise.
28227 (__libc_pread64): Likewise.
28228 (__pipe2): Likewise.
28229 (__sleep): Likewise.
28230 (__chdir): Likewise.
28231 (__fchdir): Likewise.
28232 (__getcwd): Likewise.
28233 (__rmdir): Likewise.
28234 (__execvpe): Likewise.
28235 (__execve): Likewise.
28236 (__setsid): Likewise.
28237 (__getuid): Likewise.
28238 (__geteuid): Likewise.
28239 (__getgid): Likewise.
28240 (__getegid): Likewise.
28241 (__getgroups): Likewise.
28242 (__group_member): Likewise.
28243 (__ttyname_r): Likewise.
28244 (__isatty): Likewise.
28245 (__readlink): Likewise.
28246 (__unlink): Likewise.
28247 (__gethostname): Likewise.
28248 (__profil): Likewise.
28249 (__getdtablesize): Likewise.
28250 (__brk): Likewise.
28251 (__ftruncate): Likewise.
28252 (__ftruncate64): Likewise.
28253
28254 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28255
28256 [BZ #18822]
28257 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28258 * argp/argp-fs-xinl.c: Likewise.
28259 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28260 * argp/argp-parse.c: Include <argp.h>.
28261 * argp/argp-xinl.c: Likewise.
28262 * include/argp-fmtstream.h: New file.
28263 * include/argp.h (__argp_error): Add attribute_hidden.
28264 (__argp_failure): Likewise.
28265 (__argp_input): Likewise.
28266 (__argp_state_help): Likewise.
28267
28268 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28269
28270 [BZ #18822]
28271 * include/wchar.h (____wcstof_l_internal): New prototype.
28272 (____wcstod_l_internal): Likewise.
28273 (____wcstold_l_internal): Likewise.
28274 (____wcstol_l_internal): Likewise.
28275 (____wcstoul_l_internal): Likewise.
28276 (____wcstoll_l_internal): Likewise.
28277 (____wcstoull_l_internal): Likewise.
28278 (____wcstof128_l_internal): Likewise.
28279 * sysdeps/ieee754/float128/wcstof128.c
28280 (____wcstof128_l_internal): Removed.
28281 * sysdeps/ieee754/float128/wcstof128_l.c
28282 (____wcstof128_l_internal): Likewise.
28283 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28284 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28285 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28286 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28287 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28288 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28289 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28290 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28291 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28292 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28293
28294 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28295
28296 [BZ #18822]
28297 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28298 instead of <sys/statvfs.h>.
28299 (__internal_statvfs): Removed.
28300 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28301 instead of <sys/statvfs.h>.
28302 (__internal_statvfs64): Removed.
28303 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28304 "internal_statvfs.h" instead of <sys/statvfs.h>.
28305 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28306 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28307 instead of <sys/statvfs.h>.
28308 (__internal_statvfs): Removed.
28309 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28310 instead of <sys/statvfs.h>.
28311 (__internal_statvfs64): Removed.
28312
28313 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28314
28315 [BZ #18822]
28316 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28317 (__gconv_close): Likewise.
28318 (__gconv): Likewise.
28319 (__gconv_find_transform): Likewise.
28320 (__gconv_lookup_cache): Likewise.
28321 (__gconv_compare_alias_cache): Likewise.
28322 (__gconv_load_cache): Likewise.
28323 (__gconv_get_path): Likewise.
28324 (__gconv_close_transform): Likewise.
28325 (__gconv_release_cache): Likewise.
28326 (__gconv_find_shlib): Likewise.
28327 (__gconv_release_shlib): Likewise.
28328 (__gconv_get_builtin_trans): Likewise.
28329 (__gconv_compare_alias): Likewise.
28330 * include/dlfcn.h (_dlerror_run): Likewise.
28331 * include/stdio.h (__fortify_fail_abort): Likewise.
28332 * include/time.h (__tz_compute): Likewise.
28333 (__strptime_internal): Likewise.
28334 * intl/gettextP.h (_nl_find_domain): Likewise.
28335 (_nl_load_domain): Likewise.
28336 (_nl_find_msg): Likewise.
28337 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28338 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28339 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28340 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28341 (__gai_find_request): Likewise.
28342 (__gai_remove_request): Likewise.
28343 (__gai_notify): Likewise.
28344 (__gai_notify_only): Likewise.
28345 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28346 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28347 (_dl_non_dynamic_init): Likewise.
28348 (_dl_aux_init): Likewise.
28349 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28350 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28351 Likewise.
28352 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28353 (__wcsmbs_clone_conv): Likewise.
28354 (__wcsmbs_named_conv): Likewise.
28355
28356 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28357
28358 [BZ #18822]
28359 * include/stdlib.h (__random): Add attribute_hidden.
28360 (__random_r): Likewise.
28361 (__srandom_r): Likewise.
28362 (__initstate_r): Likewise.
28363 (__setstate_r): Likewise.
28364 (__erand48_r): Likewise.
28365 (__nrand48_r): Likewise.
28366 (__jrand48_r): Likewise.
28367 (__srand48_r): Likewise.
28368 (__seed48_r): Likewise.
28369 (__lcong48_r): Likewise.
28370 (__drand48_iterate): Likewise.
28371 (__setenv): Likewise.
28372 (__unsetenv): Likewise.
28373 (__clearenv): Likewise.
28374 (__ptsname_r): Likewise.
28375 (__posix_openpt): Likewise.
28376 (__add_to_environ): Likewise.
28377 (__realpath): Add libc_hidden_proto.
28378 (__ecvt_r): Likewise.
28379 (__fcvt_r): Likewise.
28380 (__qecvt_r): Likewise.
28381 (__qfcvt_r): Likewise.
28382 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28383 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28384
28385 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28386
28387 [BZ #18822]
28388 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28389 * include/time.h (__mktime_internal): Likewise.
28390 * libio/iolibio.h (__fopen_internal): Likewise.
28391
28392 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
28393
28394 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28395 pointer in frame.
28396 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28397 Correct offset used to restore PIC register.
28398
28399 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
28400
28401 [BZ libc/22165]
28402 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
28403 code to load address of __getcontext_ret when generating PIC code.
28404
28405 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
28406
28407 * elf/Makefile (tests-static-internal): Add
28408 tst-tls1-static-non-pie.
28409 (LDFLAGS-tst-tls1-static-non-pie): New.
28410 * elf/tst-tls1-static-non-pie.c: New file.
28411
28412 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28413
28414 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
28415 (asinh): Define using libm_alias_double.
28416 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
28417 (cbrt): Define using libm_alias_double.
28418 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
28419 <libm-alias-double.h>.
28420 (copysign): Define using libm_alias_double.
28421 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
28422 (erf): Define using libm_alias_double.
28423 (erfc): Likewise.
28424 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
28425 (expm1): Define using libm_alias_double.
28426 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
28427 (fabs): Define using libm_alias_double.
28428 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
28429 libm_alias_double.
28430 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
28431 <libm-alias-double.h>.
28432 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
28433 libm_alias_double.
28434 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
28435 <libm-alias-double.h>.
28436 (getpayload): Define using libm_alias_double.
28437 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
28438 <libm-alias-double.h>.
28439 (llrint): Define using libm_alias_double.
28440 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
28441 (lrint): Define using libm_alias_double.
28442 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
28443 <libm-alias-double.h>.
28444 (nextup): Define using libm_alias_double.
28445 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
28446 <libm-alias-double.h>.
28447 (roundeven): Define using libm_alias_double.
28448 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
28449 libm_alias_double.
28450 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
28451 <libm-alias-double.h>.
28452 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
28453 using libm_alias_double.
28454 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
28455 (cos): Define using libm_alias_double.
28456 (sin): Likewise.
28457 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
28458 <libm-alias-double.h>.
28459 (sincos): Define using libm_alias_double.
28460 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
28461 (tanh): Define using libm_alias_double.
28462 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
28463 <libm-alias-double.h>.
28464 (totalorder): Define using libm_alias_double.
28465 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
28466 <libm-alias-double.h>.
28467 (totalordermag): Define using libm_alias_double.
28468 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
28469 libm_alias_double.
28470 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
28471 libm_alias_double.
28472 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
28473 <libm-alias-double.h>.
28474 (getpayload): Define using libm_alias_double.
28475 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
28476 <libm-alias-double.h>.
28477 (roundeven): Define using libm_alias_double.
28478 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
28479 <libm-alias-double.h>.
28480 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
28481 <libm-alias-double.h>.
28482 (totalorder): Define using libm_alias_double.
28483 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
28484 <libm-alias-double.h>.
28485 (totalordermag): Define using libm_alias_double.
28486 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
28487 libc compat symbol here.
28488 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
28489 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
28490 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
28491 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
28492 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
28493 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
28494 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
28495 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
28496 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
28497 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
28498
28499 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28500
28501 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
28502 _dl_relocate_static_pie instead of _dl_start to compute load
28503 address in static PIE. Return 0 if _DYNAMIC is undefined for
28504 static executable.
28505
28506 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28507
28508 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
28509 _DYNAMIC is undefined for static executable.
28510
28511 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28512
28513 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
28514
28515 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28516
28517 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28518
28519 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28520
28521 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
28522 (__ieee754_lgamma_r): Use fabs rather than __fabs.
28523 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28524 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28525 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
28526 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
28527 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28528 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
28529 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
28530 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28531 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
28532 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
28533 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28534 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28535 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
28536 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
28537 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
28538
28539 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28540
28541 * math/bits/cmathcalls.h (cimag): Remove inline.
28542 (creal): Remove inline.
28543 (conj): Remove inline.
28544
28545 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28546
28547 * math/Makefile (type-float-routines): Add e_powf_log2_data.
28548 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
28549 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
28550 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
28551 (issignalingf_inline): Likewise.
28552 (POWF_LOG2_TABLE_BITS): Likewise.
28553 (POWF_LOG2_POLY_ORDER): Likewise.
28554 (POWF_SCALE_BITS): Likewise.
28555 (POWF_SCALE): Likewise.
28556 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
28557 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
28558 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
28559
28560 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28561
28562 * math/Makefile (type-float-routines): Add e_log2f_data.
28563 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
28564 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
28565 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
28566 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
28567 * sysdeps/i386/fpu/e_log2f_data.c: New file.
28568 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
28569 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
28570
28571 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28572
28573 * math/Makefile (type-float-routines): Add e_logf_data.
28574 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
28575 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
28576 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
28577 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
28578 * sysdeps/i386/fpu/e_logf_data.c: New file.
28579 * sysdeps/ia64/fpu/e_logf_data.c: New file.
28580 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
28581
28582 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
28583
28584 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
28585 undefined _DYNAMIC in PIE libc.a.
28586 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28587 Likewse.
28588
28589 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28590
28591 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
28592 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
28593 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
28594 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
28595 (__signbit): Remove.
28596 (__signbitl): Remove.
28597 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
28598 (__signbit): Remove.
28599 (__signbitl): Remove.
28600 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
28601 (__signbit): Remove.
28602 (__signbitl): Remove.
28603 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
28604 (__signbit): Remove.
28605 (__signbitl): Remove.
28606 * sysdeps/tile/bits/mathinline.h: Delete file.
28607 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
28608 (__signbit): Remove.
28609 (__signbitl): Remove.
28610
28611 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28612
28613 * math/math.h: Improve handling of C99 isgreater macros.
28614 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
28615 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
28616 * sysdeps/powerpc/bits/mathinline.h: Likewise.
28617 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
28618 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
28619
28620 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
28621
28622 * sysdeps/aarch64/libm-test-ulps: Update.
28623
28624 2017-09-28 Joseph Myers <joseph@codesourcery.com>
28625
28626 [BZ #22225]
28627 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
28628 math_opt_barrier on argument when doing arithmetic on it.
28629 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28630 Likewise. Use math_force_eval not math_opt_barrier after
28631 arithmetic.
28632 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
28633 math_opt_barrier on argument when doing arithmetic on it.
28634 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
28635 Likewise.
28636
28637 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
28638
28639 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
28640 libc_hidden_def.
28641 (__freeifaddrs): Likewise.
28642
28643 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
28644
28645 * include/dirent.h (__dirfd): New declaration.
28646 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
28647 alias.
28648 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
28649 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
28650 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
28651 * include/unistd.h (__revoke): New declaration.
28652 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
28653 alias.
28654 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
28655 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
28656 revoke.
28657 * include/dirent.h (__seekdir): New declaration.
28658 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
28659 redefine as weak alias.
28660 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
28661 of seekdir.
28662 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
28663 and use libc_hidden_def on them.
28664 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
28665 them.
28666 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
28667 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
28668 instead of getifaddrs and freeifaddrs.
28669
28670 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28671
28672 [BZ #18822]
28673 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
28674 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
28675 (__dso_handle): Remove declaration.
28676 * dlfcn/tstatexit.c (__dso_handle): Removed.
28677 (main): Don't check __dso_handle.
28678 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
28679 (main): Don't check __dso_handle.
28680 * include/dso_handle.h: New file.
28681 * malloc/mtrace.c: Include <dso_handle.h>.
28682 (mtrace): Pass __dso_handle directly.
28683 * nptl/pthread_atfork.c: Include <dso_handle.h>.
28684 (__dso_handle): Remove declaration.
28685 (__pthread_atfork): Pass __dso_handle directly.
28686 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
28687 (__dso_handle): Removed.
28688 * posix/wordexp-test.c: Include <dso_handle.h>.
28689 (__dso_handle): Remove declaration.
28690 (__app_register_atfork): Pass __dso_handle directly.
28691 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
28692 (__dso_handle): Remove declaration.
28693 (at_quick_exit): Pass __dso_handle directly.
28694 * stdlib/atexit.c: Include <dso_handle.h>.
28695 (__dso_handle): Remove declaration.
28696 (atexit): Pass __dso_handle directly.
28697 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
28698 (__dso_handle): Removed.
28699
28700 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28701
28702 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
28703 using VDSO.
28704
28705 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
28706
28707 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
28708 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
28709 values to correct default value for given type.
28710
28711 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28712
28713 [BZ #22101]
28714 * elf/Makefile (tests): Add tst-debug1.
28715 ($(objpfx)tst-debug1): New.
28716 ($(objpfx)tst-debug1.out): Likewise.
28717 ($(objpfx)tst-debug1mod1.so): Likewise.
28718 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
28719 with p_filesz == 0.
28720 * elf/tst-debug1.c: New file.
28721
28722 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28723
28724 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
28725 Define using __ifunc.
28726
28727 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28728
28729 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
28730 exp2f() values.
28731
28732 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28733
28734 [BZ #22156]
28735 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
28736
28737 2017-09-26 Florian Weimer <fweimer@redhat.com>
28738
28739 * resolv/Makefile (tests-internal): Fix typo in comment.
28740
28741 2017-09-26 Florian Weimer <fweimer@redhat.com>
28742
28743 * resolv/nss_dns/dns-host.c: Fix typo in comment.
28744
28745 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28746
28747 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
28748 Use an union instead of a max_align_t array for __space,
28749 so that __space is the same size on all platforms.
28750 * malloc/scratch_buffer_grow_preserve.c
28751 (__libc_scratch_buffer_grow_preserve): Likewise.
28752
28753 [BZ #22183]
28754 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
28755 version to 2.
28756 * posix/Makefile (routines): Add glob-lstat-compat and
28757 glob64-lstat-compat.
28758 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
28759 * posix/glob-lstat-compat.c: New file.
28760 * posix/glob64-lstat-compat.c: Likewise.
28761 * posix/tst-glob_lstat_compat.c: Likewise.
28762 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
28763 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
28764 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
28765 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
28766 Likewise.
28767 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
28768 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28769 * posix/glob.c (glob_lstat): New function.
28770 (glob): Rename to __glob and add versioned symbol to 2.27.
28771 (glob_in_dir): Use glob_lstat.
28772 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
28773 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
28774 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
28775 2.27.
28776 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
28777 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
28778 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
28779 gl_lstat on glob call.
28780 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
28781 and glob64 symbols.
28782 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
28783 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
28784 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
28785 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
28786 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
28787 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
28788 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
28789 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
28790 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
28791 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
28792 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
28793 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
28794 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
28795 Likewise.
28796 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
28797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
28798 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
28799 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
28800 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
28801 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
28802 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
28803 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
28804 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
28805 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
28806 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
28807 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
28808
28809 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
28810
28811 * configure.ac (AS): Require binutils 2.25 or later.
28812 * configure: Regenerated.
28813
28814 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
28815
28816 [BZ #22207]
28817 * stdlib/test-atexit-race-common.c (do_test): Minimize required
28818 VM size.
28819
28820 2017-09-25 DJ Delorie <dj@redhat.com>
28821
28822 [BZ #22161]
28823 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
28824 resetting timeout.
28825
28826 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
28827
28828 * sysdeps/ieee754/dbl-64/sincos32.h
28829 [SINCCOS32_H]: Remove define.
28830 [SINCOS32_H]: Define.
28831
28832 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
28833
28834 * math/Versions (expf): New libm symbol at GLIBC_2.27.
28835 (exp2f): Likewise.
28836 * math/w_exp2f.c: New file.
28837 * math/w_expf.c: New file.
28838 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
28839 * math/w_expf_compat.c (__expf_compat): Likewise.
28840 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
28841 * sysdeps/ia64/fpu/e_expf.S: Likewise.
28842 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28843 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28844 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28845 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28846 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28847 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28848 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28849 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28850 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28851 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28852 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28853 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28854 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28855 Likewise.
28856 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28857 Likewise.
28858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28859 Likewise.
28860 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28861 Likewise.
28862 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28863 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28864 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28865 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28866 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28867 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28868 Likewise.
28869 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28870 Likewise.
28871 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28872 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28873 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28874
28875 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
28876
28877 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
28878 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
28879 (roundtoint, converttoint): Likewise.
28880 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
28881 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
28882 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
28883 * sysdeps/ieee754/flt-32/math_config.h: New file.
28884 * sysdeps/ieee754/flt-32/math_errf.c: New file.
28885 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
28886 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
28887 * sysdeps/i386/fpu/math_errf.c: New file.
28888 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
28889 * sysdeps/ia64/fpu/math_errf.c: New file.
28890 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
28891 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
28892
28893 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
28894
28895 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
28896 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
28897 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
28898 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
28899 to make sure that these symbols are defined.
28900 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
28901 of <limits.h>
28902 (__need_NULL): Do not define.
28903 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
28904 alignment.
28905 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
28906 CMGROUP_MAX, cmsgcred): Do not define.
28907 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
28908 NULL.
28909 * bits/socket.h: Likewise.
28910 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
28911 __gettimeofday instead of gettimeofday.
28912 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
28913 instead of settimeofday.
28914
28915 2017-09-22 Joseph Myers <joseph@codesourcery.com>
28916
28917 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
28918 (asinhf): Define using libm_alias_float.
28919 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
28920 (atanf): Define using libm_alias_float.
28921 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
28922 (cbrtf): Define using libm_alias_float.
28923 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
28924 (ceilf): Define using libm_alias_float.
28925 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
28926 <libm-alias-float.h>.
28927 (copysignf): Define using libm_alias_float.
28928 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
28929 (cosf): Define using libm_alias_float.
28930 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
28931 (erff): Define using libm_alias_float.
28932 (erfcf): Likewise.
28933 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
28934 (expm1f): Define using libm_alias_float.
28935 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
28936 (fabsf): Define using libm_alias_float.
28937 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
28938 (floorf): Define using libm_alias_float.
28939 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
28940 (frexpf): Define using libm_alias_float.
28941 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
28942 libm_alias_float.
28943 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
28944 <libm-alias-float.h>.
28945 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
28946 libm_alias_float.
28947 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
28948 <libm-alias-float.h>.
28949 (getpayloadf): Define using libm_alias_float.
28950 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
28951 <libm-alias-float.h>.
28952 (llrintf): Define using libm_alias_float.
28953 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
28954 <libm-alias-float.h>.
28955 (llroundf): Define using libm_alias_float.
28956 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
28957 (logbf): Define using libm_alias_float.
28958 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
28959 (lrintf): Define using libm_alias_float.
28960 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
28961 (lroundf): Define using libm_alias_float.
28962 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
28963 (modff): Define using libm_alias_float.
28964 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
28965 <libm-alias-float.h>.
28966 (nearbyintf): Define using libm_alias_float.
28967 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
28968 <libm-alias-float.h>.
28969 (nextafterf): Define using libm_alias_float.
28970 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
28971 <libm-alias-float.h>.
28972 (nextupf): Define using libm_alias_float.
28973 * sysdeps/ieee754/flt-32/s_remquof.c: Include
28974 <libm-alias-float.h>.
28975 (remquof): Define using libm_alias_float.
28976 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
28977 (rintf): Define using libm_alias_float.
28978 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
28979 <libm-alias-float.h>.
28980 (roundevenf): Define using libm_alias_float.
28981 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
28982 (roundf): Define using libm_alias_float.
28983 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
28984 using libm_alias_float.
28985 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
28986 <libm-alias-float.h>.
28987 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
28988 Define using libm_alias_float.
28989 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
28990 <libm-alias-float.h>.
28991 (sincosf): Define using libm_alias_float.
28992 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
28993 (sinf): Define using libm_alias_float.
28994 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
28995 (tanf): Define using libm_alias_float.
28996 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
28997 (tanhf): Define using libm_alias_float.
28998 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
28999 <libm-alias-float.h>.
29000 (totalorderf): Define using libm_alias_float.
29001 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29002 <libm-alias-float.h>.
29003 (totalordermagf): Define using libm_alias_float.
29004 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29005 (truncf): Define using libm_alias_float.
29006 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29007 libm_alias_float.
29008 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29009 libm_alias_float.
29010
29011 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29012
29013 [BZ #22146]
29014 math/math.h: Let fpclassify use the builtin in C++ mode, even
29015 when optimazing for size.
29016
29017 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29018
29019 * csu/Makefile (generated): Do not add version-info.h.
29020 (before-compile): Likewise.
29021 (all-Banner-files): Remove variable.
29022 ($(objpfx)version-info.h): Remove rule.
29023 * csu/version.c (banner): Do not include "version-info.h".
29024 * libidn/Banner: Remove.
29025 * manual/contrib.texi (Simon Josefsson): New entry.
29026
29027 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29028
29029 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29030 Remove conditionals on LDBL_MANT_DIG.
29031 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29032 (__ieee754_lgammal_r): Likewise.
29033
29034 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29035
29036 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29037 _Float128 and L().
29038 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29039 _Float128 and L(). Replace _Float128 with long double and L(x)
29040 with xL, throughout the file.
29041 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29042 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29043 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29044 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29045
29046 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29047
29048 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29049 sysdeps/ieee754/ldbl-128ibm.
29050 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29051 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29052 of including it. Keep _Float128 and L() intact. These will be
29053 reviewed by a separate patch.
29054 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29055 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29056 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29057 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29058
29059 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29060
29061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29062 (__finitef128): Define to __redirect___finitef128.
29063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29064 (__isinff128): Define to __redirect___isinff128.
29065 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29066 (__isnanf128): Define to __redirect___isnanf128.
29067
29068 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29069
29070 * sysdeps/powerpc/powerpc64le/Makefile
29071 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29072 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29073
29074 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29075 Carlos O'Donell <carlos@redhat.com>
29076
29077 [BZ #22180]
29078 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29079 * stdlib/test-dlclose-exit-race.c: New file.
29080 * stdlib/test-dlclose-exit-race-helper.c: New file.
29081 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29082
29083 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29084
29085 * crypt/Banner: Remove file.
29086 * nptl/Banner: Likewise.
29087 * resolv/Banner: Likewise.
29088 * soft-fp/Banner: Likewise.
29089 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29090 ($(objpfx)version.d): Remove dependency on banner.h.
29091 ($(objpfx)version.os): Likewise.
29092 * nptl/version.c (banner): Do not include banner.h.
29093 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29094 Jelinek and BIND code.
29095
29096 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29097 Carlos O'Donell <carlos@redhat.com>
29098
29099 * support/xdlfcn.h: New file.
29100 * support/xdlfcn.c: New file.
29101 * support/Makefile (libsupport-routines): Add xdlfcn.
29102 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29103
29104 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29105
29106 [BZ #20142]
29107 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29108 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29109 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29110 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29111 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29112 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29113 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29114 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29115
29116 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29117 Ricky Zhou <rickyz@google.com>
29118 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29119
29120 [BZ #14333]
29121 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29122 Remove atomics.
29123 (__new_exitfn): Fail registration when we finished at_exit processing.
29124 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29125 * stdlib/on_exit.c (__on_exit): Likewise.
29126 * stdlib/exit.c (__exit_funcs_done): New variable.
29127 (__run_exit_handlers): Use __exit_funcs_lock.
29128 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29129 declarations.
29130 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29131 (test-cxa_atexit-race, test-on_exit-race): New tests.
29132 * stdlib/test-atexit-race-common.c: New file.
29133 * stdlib/test-atexit-race.c: New file.
29134 * stdlib/test-at_quick_exit-race.c: New file.
29135 * stdlib/test-cxa_atexit-race.c: New file.
29136 * stdlib/test-on_exit-race.c: New file.
29137
29138 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29139
29140 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29141 * benchtests/exp2f-inputs: Copy of expf-inputs.
29142 * benchtests/log2f-inputs: Copy of logf-inputs.
29143
29144 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29145
29146 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29147 Explicitly take address of first element of array arguments in
29148 call to INLINE_SYSCALL.
29149
29150 2017-09-19 Andreas Schwab <schwab@suse.de>
29151
29152 [BZ #22134]
29153 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29154 execveat first.
29155 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29156 unimplemented.
29157 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29158 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29159 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29160 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29161 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29162 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29163 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29164 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29165 * posix/Makefile (tests): Add tst-fexecve.
29166 * posix/tst-fexecve.c: New file.
29167
29168 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29169
29170 * benchtests/Makefile: Add logf benchmark.
29171 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29172
29173 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29174
29175 * benchtests/Makefile: Add expf benchmark.
29176 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29177
29178 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29179
29180 * csu/Makefile: Add -funwind-tables to libc-start.c.
29181 * debug/Makefile: Add -funwind-tables to backtrace.c.
29182 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29183 * sysdeps/arm/Makefile: Likewise.
29184 * sysdeps/i386/Makefile: Likewise.
29185 * sysdeps/m68k/Makefile: Likewise.
29186 * sysdeps/mips/Makefile: Likewise.
29187 * sysdeps/nios2/Makefile: Likewise.
29188 * sysdeps/sh/Makefile: Likewise.
29189 * sysdeps/sparc/Makefile: Likewise.
29190
29191 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29192
29193 * benchtests/Makefile (bench-math): Add trunc and truncf.
29194 (CFLAGS-bench-trunc.c): New variable.
29195 (CFLAGS-bench-truncf.c): Likewise.
29196 * benchtests/trunc-inputs: New file.
29197 * benchtests/truncf-inputs: Likewise.
29198
29199 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29200
29201 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29202
29203 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29204
29205 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29206 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29207 redefine.
29208 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29209 (exp10l): Define as weak alias.
29210 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29211 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29212 and redefine.
29213 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29214 (remainderl): Define as weak alias.
29215
29216 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29217 (fmal): Define using libm_alias_ldouble.
29218 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29219 (acoshl): Define using libm_alias_ldouble.
29220 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29221 (acosl): Define using libm_alias_ldouble.
29222 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29223 (asinl): Define using libm_alias_ldouble.
29224 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29225 (atan2l): Define using libm_alias_ldouble.
29226 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29227 (atanhl): Define using libm_alias_ldouble.
29228 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29229 (coshl): Define using libm_alias_ldouble.
29230 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29231 (exp10l): Define using libm_alias_ldouble.
29232 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29233 (exp2l): Define using libm_alias_ldouble.
29234 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29235 (expl): Define using libm_alias_ldouble.
29236 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29237 (fmodl): Define using libm_alias_ldouble.
29238 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29239 (hypotl): Define using libm_alias_ldouble.
29240 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29241 (j0l): Define using libm_alias_ldouble.
29242 (y0l): Likewise.
29243 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29244 (j1l): Define using libm_alias_ldouble.
29245 (y1l): Likewise.
29246 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29247 (jnl): Define using libm_alias_ldouble.
29248 (ynl): Likewise.
29249 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29250 (log10l): Define using libm_alias_ldouble.
29251 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29252 (log2l): Define using libm_alias_ldouble.
29253 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29254 (logl): Define using libm_alias_ldouble.
29255 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29256 (powl): Define using libm_alias_ldouble.
29257 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29258 (remainderl): Define using libm_alias_ldouble.
29259 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29260 (sinhl): Define using libm_alias_ldouble.
29261 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29262 (sqrtl): Define using libm_alias_ldouble.
29263 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29264 (tgammal): Define using libm_alias_ldouble.
29265 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29266 (exp10l): Do not use long_double_symbol here.
29267 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29268 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29269 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29270 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29271 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29272 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29273 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29274 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29275 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29276 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29277 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29278 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29279 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29280 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29281 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29282 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29283 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29284 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29285 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29286 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29287 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29288 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29289
29290 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29291
29292 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29293 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29294
29295 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29296
29297 * io/read.c (read): Add libc_hidden_weak.
29298 * sysdeps/mach/hurd/read.c (read): Likewise.
29299 * io/write.c (write): Likewise.
29300 * sysdeps/mach/hurd/write.c (write): Likewise.
29301 * io/pread64.c (__pread64): Likewise.
29302 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29303 * posix/pread64.c (__pread64): Add libc_hidden_def.
29304
29305 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29306
29307 * benchtests/scripts/compare_strings.py: New option -g.
29308 (draw_graph): Print a message that a graph is being generated.
29309 (process_results): Generate graph only if -g is passed.
29310 (main): Process option -g.
29311
29312 * benchtests/scripts/compare_strings.py (process_results):
29313 Better spacing for output.
29314
29315 * benchtests/scripts/compare_strings.py: Use argparse.
29316 * benchtests/README: Document existence of compare_strings.py.
29317
29318 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29319
29320 * math/s_fma.c: Include <libm-alias-double.h>.
29321 (fma): Define using libm_alias_double.
29322 * math/s_nextafter.c: Include <libm-alias-double.h>.
29323 (nextafter): Define using libm_alias_double.
29324 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29325 (acos): Define using libm_alias_double.
29326 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29327 (aocsh): Define using libm_alias_double.
29328 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29329 (asin): Define using libm_alias_double.
29330 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29331 (atan2): Define using libm_alias_double.
29332 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29333 (atanh): Define using libm_alias_double.
29334 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29335 (cosh): Define using libm_alias_double.
29336 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29337 (exp10): Define using libm_alias_double.
29338 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29339 (exp2): Define using libm_alias_double.
29340 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29341 (exp): Define using libm_alias_double.
29342 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29343 (fmod): Define using libm_alias_double.
29344 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29345 (hypot): Define using libm_alias_double.
29346 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29347 (j0): Define using libm_alias_double.
29348 (y0): Likewise.
29349 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29350 (j1): Define using libm_alias_double.
29351 (y1): Likewise.
29352 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29353 (jn): Define using libm_alias_double.
29354 (yn): Likewise.
29355 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29356 (log10): Define using libm_alias_double.
29357 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29358 (log2): Define using libm_alias_double.
29359 * math/w_log_compat.c: Include <libm-alias-double.h>.
29360 (log): Define using libm_alias_double.
29361 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29362 (pow): Define using libm_alias_double.
29363 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29364 (remainder): Define using libm_alias_double.
29365 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29366 (sinh): Define using libm_alias_double.
29367 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29368 (sqrt): Define using libm_alias_double.
29369 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29370 (tgamma): Define using libm_alias_double.
29371 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29372 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29373 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29374 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29375 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29376 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29377 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29378 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29379 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29380 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29381 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29382 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29383 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29384 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29385 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29386 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29387 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29388 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29389 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29390 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29391 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29392 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29393 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29394 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29395 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29396
29397 * math/e_acoshl.c: Remove.
29398 * math/e_acosl.c: Likewise.
29399 * math/e_asinl.c: Likewise.
29400 * math/e_atan2l.c: Likewise.
29401 * math/e_atanhl.c: Likewise.
29402 * math/e_coshl.c: Likewise.
29403 * math/e_expl.c: Likewise.
29404 * math/e_fmodl.c: Likewise.
29405 * math/e_gammal_r.c: Likewise.
29406 * math/e_hypotl.c: Likewise.
29407 * math/e_j0l.c: Likewise.
29408 * math/e_j1l.c: Likewise.
29409 * math/e_jnl.c: Likewise.
29410 * math/e_lgammal_r.c: Likewise.
29411 * math/e_log10l.c: Likewise.
29412 * math/e_log2l.c: Likewise.
29413 * math/e_logl.c: Likewise.
29414 * math/e_powl.c: Likewise.
29415 * math/e_rem_pio2l.c: Likewise.
29416 * math/e_sinhl.c: Likewise.
29417 * math/e_sqrtf128.c: Likewise.
29418 * math/e_sqrtl.c: Likewise.
29419 * math/k_cosl.c: Likewise.
29420 * math/k_sinl.c: Likewise.
29421 * math/k_tanl.c: Likewise.
29422 * math/s_asinhl.c: Likewise.
29423 * math/s_atanl.c: Likewise.
29424 * math/s_cbrtl.c: Likewise.
29425 * math/s_erfl.c: Likewise.
29426 * math/s_expm1l.c: Likewise.
29427 * math/s_log1pl.c: Likewise.
29428 * math/s_tanhl.c: Likewise.
29429
29430 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29431
29432 [BZ #21745]
29433 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
29434 [$(subdir) = math] (sysdep_calls): New variable. Has the
29435 previous contents of sysdep_routines, but re-sorted..
29436 [$(subdir) = math] (sysdep_routines): Re-use the contents from
29437 sysdep_calls.
29438 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
29439 defined in sysdep_calls and replace by the respective m_* names.
29440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
29441 (compat_symbol): Undefine to avoid duplicated compat symbols in
29442 libc.
29443
29444 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29445
29446 * math/s_fmaf.c: Include <libm-alias-float.h>.
29447 (fmaf): Define using libm_alias_float.
29448 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
29449 (acosf): Define using libm_alias_float.
29450 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
29451 (acoshf): Define using libm_alias_float.
29452 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
29453 (asinf): Define using libm_alias_float.
29454 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
29455 (atan2f): Define using libm_alias_float.
29456 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
29457 (atanhf): Define using libm_alias_float.
29458 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
29459 (coshf): Define using libm_alias_float.
29460 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
29461 (exp10f): Define using libm_alias_float.
29462 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
29463 (fmodf): Define using libm_alias_float.
29464 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
29465 (hypotf): Define using libm_alias_float.
29466 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
29467 (j0f): Define using libm_alias_float.
29468 (y0f): Likewise.
29469 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
29470 (j1f): Define using libm_alias_float.
29471 (y1f): Likewise.
29472 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
29473 (jnf): Define using libm_alias_float.
29474 (ynf): Likewise.
29475 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
29476 (log10f): Define using libm_alias_float.
29477 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
29478 (log2f): Define using libm_alias_float.
29479 * math/w_logf_compat.c: Include <libm-alias-float.h>.
29480 (logf): Define using libm_alias_float.
29481 * math/w_powf_compat.c: Include <libm-alias-float.h>.
29482 (powf): Define using libm_alias_float.
29483 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
29484 (remainderf): Define using libm_alias_float.
29485 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
29486 (sinhf): Define using libm_alias_float.
29487 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
29488 (sqrtf): Define using libm_alias_float.
29489 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
29490 (tgammaf): Define using libm_alias_float.
29491
29492 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29493
29494 * include/math.h (roundeven): Change hidden_proto call to
29495 __roundeven.
29496 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
29497 alias.
29498 [NO_LONG_DOUBLE] (__j0l): New strong alias.
29499 (y0): Rename to __y0 and define as weak alias.
29500 [NO_LONG_DOUBLE] (__y0l): New strong alias.
29501 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
29502 alias.
29503 (y0f): Rename to __y0f and define as weak alias.
29504 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
29505 alias.
29506 [NO_LONG_DOUBLE] (__j1l): New strong alias.
29507 (y1): Rename to __y1 and define as weak alias.
29508 [NO_LONG_DOUBLE] (__y1l): New strong alias.
29509 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
29510 alias.
29511 (y1f): Rename to __y1f and define as weak alias.
29512 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
29513 alias.
29514 [NO_LONG_DOUBLE] (__jnl): New strong alias.
29515 (yn): Rename to __yn and define as weak alias.
29516 [NO_LONG_DOUBLE] (__ynl): New strong alias.
29517 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
29518 alias.
29519 (ynf): Rename to __ynf and define as weak alias.
29520 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
29521 (fromfp): Define as weak alias.
29522 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
29523 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
29524 (fromfpx): Define as weak alias.
29525 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
29526 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
29527 __getpayload and define as weak alias.
29528 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29529 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
29530 __roundeven and define as weak alias.
29531 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29532 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
29533 __setpayload.
29534 (setpayload): Define as weak alias.
29535 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
29536 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
29537 __setpayloadsig.
29538 (setpayloadsig): Define as weak alias.
29539 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
29540 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
29541 __totalorder and define as weak alias.
29542 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29543 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
29544 to __totalordermag and define as weak alias.
29545 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29546 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
29547 (ufromfp): Define as weak alias.
29548 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
29549 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
29550 __ufromfpx.
29551 (ufromfpx): Define as weak alias.
29552 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
29553 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
29554 Rename to __getpayload and define as weak alias.
29555 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29556 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
29557 Rename to __roundeven and define as weak alias.
29558 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29559 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
29560 Rename to __totalorder and define as weak alias.
29561 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29562 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
29563 (totalordermag): Rename to __totalordermag and define as weak
29564 alias.
29565 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29566 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
29567 macro.
29568 (__roundevenl): Likewise.
29569 (__totalorderl): Likewise.
29570 (__totalordermagl): Likewise
29571 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
29572 __fromfpf128.
29573 (fromfpf128): Define as weak alias.
29574 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
29575 __fromfpxf128.
29576 (fromfpxf128): Define as weak alias.
29577 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
29578 __setpayloadf128.
29579 (setpayloadf128): Define as weak alias.
29580 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
29581 __setpayloadsigf128.
29582 (setpayloadsigf128): Define as weak alias.
29583 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
29584 __ufromfpf128.
29585 (ufromfpf128): Define as weak alias.
29586 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
29587 __ufromfpxf128.
29588 (ufromfpxf128): Define as weak alias.
29589 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
29590 (fromfpf): Define as weak alias.
29591 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
29592 __fromfpxf.
29593 (fromfpxf): Define as weak alias.
29594 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
29595 __getpayloadf and define as weak alias.
29596 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
29597 __roundevenf and define as weak alias.
29598 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
29599 __setpayloadf.
29600 (setpayloadf): Define as weak alias.
29601 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
29602 __setpayloadsigf.
29603 (setpayloadsigf): Define as weak alias.
29604 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
29605 __totalorderf and define as weak alias.
29606 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
29607 Rename to __totalordermagf and define as weak alias.
29608 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
29609 __ufromfpf.
29610 (ufromfpf): Define as weak alias.
29611 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
29612 __ufromfpxf.
29613 (ufromfpxf): Define as weak alias.
29614 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
29615 __fromfpl.
29616 (fromfpl): Define as weak alias.
29617 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
29618 __fromfpxl.
29619 (fromfpxl): Define as weak alias.
29620 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
29621 to __getpayloadl and define as weak alias.
29622 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
29623 __roundevenl and define as weak alias.
29624 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
29625 __setpayloadl.
29626 (setpayloadl): Define as weak alias.
29627 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
29628 __setpayloadsigl.
29629 (setpayloadsigl): Define as weak alias.
29630 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
29631 to __totalorderl and define as weak alias.
29632 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
29633 Rename to __totalordermagl and define as weak alias.
29634 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
29635 __ufromfpl.
29636 (ufromfpl): Define as weak alias.
29637 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
29638 __ufromfpxl.
29639 (ufromfpxl): Define as weak alias.
29640 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
29641 __fromfpl.
29642 (fromfpl): Define as weak alias.
29643 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
29644 __fromfpxl.
29645 (fromfpxl): Define as weak alias.
29646 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
29647 Rename to __getpayloadl and define as weak alias.
29648 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
29649 to __roundevenl and define as weak alias. Call __roundeven
29650 instead of roundeven.
29651 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
29652 __setpayloadl.
29653 (setpayloadl): Define as weak alias.
29654 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
29655 __setpayloadsigl.
29656 (setpayloadsigl): Define as weak alias.
29657 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
29658 Rename to __totalorderl and define as weak alias.
29659 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
29660 Rename to __totalordermagl and define as weak alias.
29661 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
29662 __ufromfpl.
29663 (ufromfpl): Define as weak alias.
29664 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
29665 __ufromfpxl.
29666 (ufromfpxl): Define as weak alias.
29667 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
29668 __fromfpl.
29669 (fromfpl): Define as weak alias.
29670 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
29671 __fromfpxl.
29672 (fromfpxl): Define as weak alias.
29673 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
29674 __getpayloadl and define as weak alias.
29675 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
29676 __roundevenl and define as weak alias.
29677 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
29678 __setpayloadl.
29679 (setpayloadl): Define as weak alias.
29680 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
29681 __setpayloadsigl.
29682 (setpayloadsigl): Define as weak alias.
29683 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
29684 __totalorderl and define as weak alias.
29685 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
29686 Rename to __totalordermagl and define as weak alias.
29687 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
29688 __ufromfpl.
29689 (ufromfpl): Define as weak alias.
29690 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
29691 __ufromfpxl.
29692 (ufromfpxl): Define as weak alias.
29693
29694 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
29695
29696 * benchtests/bench-string.h (realloc_bufs): New function.
29697 (test_init): Call it.
29698 * benchtests/bench-memset-large.c (do_test): Likewise.
29699 * benchtests/bench-memset.c (do_test): Likewise.
29700
29701 * benchtests/bench-memset-large.c: Print output in JSON
29702 format.
29703 * benchtests/bench-memset.c: Likewise.
29704
29705 2017-09-14 Mike FABIAN <mfabian@redhat.com>
29706
29707 [BZ #21084]
29708 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
29709 * iconvdata/Makefile: Add IBM858.
29710 * iconvdata/gconv-modules: Likewise.
29711 * iconvdata/tst-tables.sh: Likewise.
29712 * iconvdata/ibm858.c: New file.
29713 * localedata/charmaps/IBM858: Likewise.
29714
29715 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
29716
29717 [BZ #22023]
29718 * locales/niu_NZ (LC_TIME): copy "niu_NU".
29719 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
29720
29721 2017-09-14 Mike FABIAN <mfabian@redhat.com>
29722
29723 [BZ #22112]
29724 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
29725 and add tel_int_fmt.
29726
29727 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29728
29729 * sysdeps/generic/libm-alias-float128.h: New file.
29730 * sysdeps/generic/math-type-macros-float128.h: Include
29731 <libm-alias-float128.h>.
29732 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
29733
29734 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29735
29736 * sysdeps/generic/libm-alias-ldouble.h: New file.
29737 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
29738 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
29739 * sysdeps/generic/math-type-macros-ldouble.h: Include
29740 <libm-alias-ldouble.h>.
29741 [!declare_mgen_alias] (declare_mgen_alias): Define to use
29742 libm_alias_ldouble.
29743
29744 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
29745
29746 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
29747 * math/w_exp_compat.c: ... here.
29748 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
29749 * math/w_expf_compat.c: ... here.
29750 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
29751 * math/w_expl_compat.c: ... here.
29752 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
29753 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
29754 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
29755 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29756
29757 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29758
29759 * math/w_scalbln_template.c (strong_alias): Do not undefine and
29760 redefine.
29761 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
29762 macro.
29763 (ldexpl): Only define as compat symbol for libc, not libm.
29764 (scalbnl): Define as compat symbol for libc here.
29765 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
29766 define for [IS_IN (libc)].
29767 (__ldexpl_2): Remove alias.
29768 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
29769 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
29770 name in long_double_symbol call.
29771 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
29772 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
29773 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
29774 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
29775 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
29776 Remove macro.
29777 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
29778 Define as compat symbol.
29779
29780 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29781
29782 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
29783 * sysdeps/unix/sysv/linux/alpha/Makefile
29784 [$(subdir) = csu] (sysdep_routines): Remove rule.
29785
29786 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29787
29788 * sysdeps/generic/libm-alias-double.h: New file.
29789 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
29790 * sysdeps/generic/math-type-macros-double.h: Include
29791 <libm-alias-double.h>.
29792 [declare_mgen_alias] (declare_mgen_alias): Define to use
29793 libm_alias_double.
29794 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
29795 (M_LIBM_NEED_COMPAT): Remove macro.
29796 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
29797 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
29798 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
29799 code.
29800 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29801 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29802 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29803 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29804 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29805 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29806 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29807 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29808 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29809 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29810 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29811 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29812 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29813 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29814 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29815 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29816 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29817 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29818 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29819 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29820 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29821 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29822 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29823 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29824 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29825 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29826 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29827 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
29828 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
29829 macro.
29830 (declare_mgen_alias): New macro.
29831 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
29832 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
29833 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
29834 (M_LIBM_NEED_COMPAT): Remove macro.
29835 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
29836 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
29837 <first-versions.h>.
29838 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
29839 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
29840
29841 2017-09-12 Joseph Myers <joseph@codesourcery.com>
29842
29843 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
29844 (declare_mgen_alias_2): Remove.
29845 * sysdeps/generic/math-type-macros-double.h
29846 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
29847 Likewise.
29848 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
29849 alias.
29850 (ldexp): Define with declare_mgen_alias.
29851 (scalbn): Likewise.
29852
29853 2017-09-12 Steve Ellcey <sellcey@cavium.com>
29854
29855 * grp/initgroups.c: Include config.h.
29856 (DEFAULT_CONFIG): New macro.
29857 (internal_getgrouplist): Use DEFAULT_CONFIG.
29858 * nscd/initgrcache.c (addinitgroupsX): Likewise.
29859 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
29860 (DEFAULT_DEFCONFIG): New macro.
29861 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
29862 * nss/grp-lookup.c: Include config.h
29863 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
29864 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
29865 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
29866 * manual/nss.texi: Update default values section.
29867
29868 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
29869
29870 [BZ #21967]
29871 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
29872 New.
29873 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
29874 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
29875 Handle MathVec_Prefer_No_AVX512.
29876 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
29877 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
29878 is set.
29879
29880 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
29881
29882 * posix/sched_primax.c (__sched_get_priority_max): Add
29883 libc_hidden_def.
29884 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
29885 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
29886 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
29887 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
29888 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
29889 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
29890 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
29891 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
29892 Add aliases.
29893
29894 2017-09-11 Joseph Myers <joseph@codesourcery.com>
29895
29896 * sysdeps/generic/libm-alias-float.h: New file.
29897 * sysdeps/generic/math-type-macros-float.h: Include
29898 <libm-alias-float.h>.
29899 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
29900
29901 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
29902
29903 [BZ #22093]
29904 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
29905 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
29906 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
29907 (HWCAP_IMPORTANT): Likewise.
29908 (HWCAP_X86_64): New enum.
29909 (HWCAP_X86_AVX512_1): Updated.
29910 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
29911 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
29912 (modules-names): Add x86_64/tst-x86_64mod-1.
29913 (LDFLAGS-tst-x86_64mod-1.so): New.
29914 ($(objpfx)tst-x86_64-1): Likewise.
29915 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
29916 (tst-x86_64-1-clean): Likewise.
29917 * sysdeps/x86_64/tst-x86_64-1.c: New file.
29918 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
29919
29920 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
29921
29922 * po/sv.po: Update translations.
29923 * po/fr.po: Likewise.
29924
29925 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
29926
29927 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
29928 seconds.
29929 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
29930 seconds.
29931 * elf/rtld-Rules: Fix $(error) use.
29932
29933 2017-09-09 Mike FABIAN <mfabian@redhat.com>
29934
29935 [BZ #14925]
29936 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
29937 * locale/iso-639.def: Change “Bengali” to “Bangla”.
29938 * localedata/locales/bn_BD: “Bengali” was still used in some
29939 comments. Change it to “Bangla”.
29940
29941 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
29942
29943 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
29944
29945 2017-09-08 Steve Ellcey <sellcey@cavium.com>
29946
29947 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
29948 thunderx2t99p1 to list of cpu names.
29949 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
29950 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
29951
29952 2017-09-08 Steve Ellcey <sellcey@cavium.com>
29953
29954 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
29955 Use strcmp instead of tunable_is_name.
29956
29957 2017-09-08 Joseph Myers <joseph@codesourcery.com>
29958
29959 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29960 (F_GET_RW_HINT): New macro.
29961 [__USE_GNU] (F_SET_RW_HINT): Likewise.
29962 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
29963 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
29964 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
29965 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
29966 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
29967 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
29968 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
29969 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
29970
29971 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29972 (F_ADD_SEALS): New macro.
29973 [__USE_GNU] (F_GET_SEALS): Likewise.
29974 [__USE_GNU] (F_SEAL_SEAL): Likewise.
29975 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
29976 [__USE_GNU] (F_SEAL_GROW): Likewise.
29977 [__USE_GNU] (F_SEAL_WRITE): Likewise.
29978
29979 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29980
29981 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
29982 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
29983 * posix/glob_internal.h (__glob_pattern_type):
29984 * posix/glob.c (glob):
29985 * posix/glob_pattern_p.c (__glob_pattern_p):
29986 Use them.
29987
29988 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
29989 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
29990 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
29991 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
29992 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
29994 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
29995 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
29996 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29997 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
29998 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29999 * sysdeps/wordsize-64/glob.c: Likewise.
30000 * sysdeps/wordsize-64/glob64.c: Likewise.
30001 * sysdeps/wordsize-64/globfree.c: Likewise.
30002 * sysdeps/wordsize-64/globfree64.c: Likewise.
30003 * sysdeps/unix/sysv/linux/glob.c: New file.
30004 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30005 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30006 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30007 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30008 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30009 adds !GLOB_NO_OLD_VERSION as an extra condition.
30010 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30011 using relative path instead of absolute one.
30012 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30013 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30014 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30015 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30016 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30017 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30018
30019 [BZ #1062]
30020 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30021 (glob): Use the same scratch buffer for both getlogin_r and
30022 getpwnam_r. Don’t require preallocation of the login name. This
30023 simplifies storage allocation, and corrects the handling of
30024 long login names.
30025
30026 [BZ #1062]
30027 * posix/glob.c (glob): Port recent patches to platforms
30028 lacking getpwnam_r.
30029 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30030 returns an error number rather than setting errno.
30031
30032 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30033 instead of GCC extension.
30034 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30035 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30036 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30037
30038 [BZ #866]
30039 [BZ #1062]
30040 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30041 * posix/bug-glob1.c: Remove file.
30042 * posix/tst-glob_symlinks.c: New file.
30043 * posix/glob.c (__lstat64): New macro.
30044 (is_dir): New function.
30045 (glob, glob_in_dir): Match symlinks even if they are dangling.
30046 (link_stat, link_exists_p): Remove. All uses removed.
30047
30048 [BZ #1062]
30049 [BZ #19971]
30050 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30051 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30052 All uses removed.
30053
30054 [BZ #1062]
30055 CVE-2017-15671
30056 * posix/Makefile (routines): Add globfree, globfree64, and
30057 glob_pattern_p.
30058 * posix/flexmember.h: New file.
30059 * posix/glob_internal.h: Likewise.
30060 * posix/glob_pattern_p.c: Likewise.
30061 * posix/globfree.c: Likewise.
30062 * posix/globfree64.c: Likewise.
30063 * sysdeps/gnu/globfree64.c: Likewise.
30064 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30065 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30066 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30067 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30068 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30069 * sysdeps/wordsize-64/globfree.c: Likewise.
30070 * sysdeps/wordsize-64/globfree64.c: Likewise.
30071 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30072 [NDEBUG): Remove comments.
30073 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30074 (dirent_type): New type. Use uint_fast8_t not
30075 uint8_t, as C99 does not require uint8_t.
30076 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30077 (struct readdir_result): Use dirent_type. Do not define skip_entry
30078 unless it is needed; this saves a byte on platforms lacking d_ino.
30079 (readdir_result_type, readdir_result_skip_entry):
30080 New functions, replacing ...
30081 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30082 these functions, which were removed. This makes the callers
30083 easier to read. All callers changed.
30084 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30085 (size_add_wrapv, glob_use_alloca): New static functions.
30086 (glob, glob_in_dir): Check for size_t overflow in several places,
30087 and fix some size_t checks that were not quite right.
30088 Remove old code using SHELL since Bash no longer
30089 uses this.
30090 (glob, prefix_array): Separate MS code better.
30091 (glob_in_dir): Remove old Amiga and VMS code.
30092 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30093 separate files.
30094 (glob_in_dir): Do not rely on undefined behavior in accessing
30095 struct members beyond their bounds. Use a flexible array member
30096 instead
30097 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30098 0/1. Caller changed.
30099 (glob): Fix memory leaks.
30100 * posix/glob64 (globfree64): Move to separate file.
30101 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30102 (globfree64): Remove hidden alias.
30103 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30104 oldglob.
30105 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30106 separate file.
30107 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30108 define.
30109 Move compat code to separate file.
30110 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30111 separate file.
30112
30113 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30114
30115 * resolv/tst-resolv-qtypes.c (domain): Changed to
30116 "const char domain[] =".
30117
30118 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30119
30120 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30121 version to 3.1.6.
30122
30123 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30124 (TCP_MD5SIG_EXT): Likewise.
30125 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30126 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30127 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30128
30129 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30130
30131 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30132
30133 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30134
30135 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30136
30137 [BZ #22100]
30138 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30139
30140 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30141
30142 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30143 before assuming that the file is empty. Avoid testing buffer content
30144 when nread == 0.
30145
30146 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30147
30148 [BZ #18858]
30149 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30150 Remove define.
30151 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30152 Likewise.
30153 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30154 Likewise.
30155 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30156 Likewise.
30157 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30158 Likewise.
30159 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30160 Likewise.
30161 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30162 Likewise.
30163
30164 2017-09-06 Florian Weimer <fweimer@redhat.com>
30165
30166 * malloc/dynarray_emplace_enlarge.c
30167 (__libc_dynarray_emplace_enlarge): Add missing else.
30168
30169 2017-09-06 Florian Weimer <fweimer@redhat.com>
30170
30171 [BZ #22096]
30172 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30173 case of failure to obtain the global conf object.
30174
30175 2017-09-06 Florian Weimer <fweimer@redhat.com>
30176
30177 [BZ #22095]
30178 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30179 dynarray allocation failure.
30180
30181 2017-09-06 Florian Weimer <fweimer@redhat.com>
30182
30183 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30184 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30185 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30186 New functions.
30187 (response): Call them. Add 'p', '6' flag processing.
30188 (test_reverse): New function.
30189 (test_get2_any): Call it.
30190 (test_no_inet6): Add 'p' test.
30191 (test_inet6): Likewise.
30192
30193 2017-09-06 Florian Weimer <fweimer@redhat.com>
30194
30195 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30196 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30197 the QNAME.
30198 (test_gai): Adjust query names. Add additional tests.
30199 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30200 test_get2. Adjust query names. Add additional tests.
30201 (test_no_inet6): New function, extracted from threadfunc.
30202 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30203 Add additional tests.
30204
30205 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30206
30207 [BZ #22070]
30208 * localedata/unicode-gen/utf8_gen.py: Set the width for
30209 characters with Prepended_Concatenation_Mark property to 1
30210 * localedata/charmaps/UTF-8: Updated using the improved script.
30211
30212 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30213
30214 [BZ #21750]
30215 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30216 use the range notation for all ranges of neighbouring characters
30217 with the same width.
30218
30219 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30220
30221 * sysdeps/generic/math-type-macros-double.h: Include
30222 <math-svid-compat.h>.
30223 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30224 * sysdeps/generic/math-type-macros-float.h: Include
30225 <math-svid-compat.h>.
30226 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30227 * sysdeps/generic/math-type-macros-ldouble.h: Include
30228 <math-svid-compat.h>.
30229 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30230 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30231 condition.
30232 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30233 * math/w_acosf_compat.c: Likewise.
30234 * math/w_acosh_compat.c: Likewise.
30235 * math/w_acoshf_compat.c: Likewise.
30236 * math/w_acoshl_compat.c: Likewise.
30237 * math/w_acosl_compat.c: Likewise.
30238 * math/w_asin_compat.c: Likewise.
30239 * math/w_asinf_compat.c: Likewise.
30240 * math/w_asinl_compat.c: Likewise.
30241 * math/w_atan2_compat.c: Likewise.
30242 * math/w_atan2f_compat.c: Likewise.
30243 * math/w_atan2l_compat.c: Likewise.
30244 * math/w_atanh_compat.c: Likewise.
30245 * math/w_atanhf_compat.c: Likewise.
30246 * math/w_atanhl_compat.c: Likewise.
30247 * math/w_cosh_compat.c: Likewise.
30248 * math/w_coshf_compat.c: Likewise.
30249 * math/w_coshl_compat.c: Likewise.
30250 * math/w_exp10_compat.c: Likewise.
30251 * math/w_exp10f_compat.c: Likewise.
30252 * math/w_exp10l_compat.c: Likewise.
30253 * math/w_exp2_compat.c: Likewise.
30254 * math/w_exp2f_compat.c: Likewise.
30255 * math/w_exp2l_compat.c: Likewise.
30256 * math/w_fmod_compat.c: Likewise.
30257 * math/w_fmodf_compat.c: Likewise.
30258 * math/w_fmodl_compat.c: Likewise.
30259 * math/w_hypot_compat.c: Likewise.
30260 * math/w_hypotf_compat.c: Likewise.
30261 * math/w_hypotl_compat.c: Likewise.
30262 * math/w_j0_compat.c: Likewise.
30263 * math/w_j0f_compat.c: Likewise.
30264 * math/w_j0l_compat.c: Likewise.
30265 * math/w_j1_compat.c: Likewise.
30266 * math/w_j1f_compat.c: Likewise.
30267 * math/w_j1l_compat.c: Likewise.
30268 * math/w_jn_compat.c: Likewise.
30269 * math/w_jnf_compat.c: Likewise.
30270 * math/w_jnl_compat.c: Likewise.
30271 * math/w_lgamma_r_compat.c: Likewise.
30272 * math/w_lgammaf_r_compat.c: Likewise.
30273 * math/w_lgammal_r_compat.c: Likewise.
30274 * math/w_log10_compat.c: Likewise.
30275 * math/w_log10f_compat.c: Likewise.
30276 * math/w_log10l_compat.c: Likewise.
30277 * math/w_log2_compat.c: Likewise.
30278 * math/w_log2f_compat.c: Likewise.
30279 * math/w_log2l_compat.c: Likewise.
30280 * math/w_log_compat.c: Likewise.
30281 * math/w_logf_compat.c: Likewise.
30282 * math/w_logl_compat.c: Likewise.
30283 * math/w_pow_compat.c: Likewise.
30284 * math/w_powf_compat.c: Likewise.
30285 * math/w_powl_compat.c: Likewise.
30286 * math/w_remainder_compat.c: Likewise.
30287 * math/w_remainderf_compat.c: Likewise.
30288 * math/w_remainderl_compat.c: Likewise.
30289 * math/w_sinh_compat.c: Likewise.
30290 * math/w_sinhf_compat.c: Likewise.
30291 * math/w_sinhl_compat.c: Likewise.
30292 * math/w_sqrt_compat.c: Likewise.
30293 * math/w_sqrtf_compat.c: Likewise.
30294 * math/w_sqrtl_compat.c: Likewise.
30295 * math/w_tgamma_compat.c: Likewise.
30296 * math/w_tgammaf_compat.c: Likewise.
30297 * math/w_tgammal_compat.c: Likewise.
30298 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30299 [LIBM_SVID_COMPAT].
30300 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30301 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30302 [LIBM_SVID_COMPAT].
30303 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30304 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30305 [LIBM_SVID_COMPAT].
30306 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30307 * sysdeps/i386/fpu/w_sqrt.c: New file.
30308 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30309 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30310 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30311 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30312 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30313 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30314 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30315 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30316 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30317 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30318 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30319 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30320 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30321 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30322 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30323 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30324 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30325 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30326 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30327 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30328 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30329 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30330 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30331 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30332 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30333 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30334 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30335 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30336 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30337 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30338 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30339 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30340 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30341 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30342 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30343 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30344 * sysdeps/ia64/fpu/w_log.c: Likewise.
30345 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30346 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30347 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30348 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30349 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30350 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30351 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30352 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30353 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30354 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30355 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30356 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30357 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30358 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30359 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30360 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30361 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30362 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30363 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30364 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30365 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30366 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30367 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30368 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30369 [LIBM_SVID_COMPAT].
30370 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30371 * sysdeps/ieee754/k_standard.c: Likewise.
30372 * sysdeps/ieee754/k_standardf.c: Likewise.
30373 * sysdeps/ieee754/k_standardl.c: Likewise.
30374 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30375 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30376 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30377 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30378 long_double_symbol call on [LIBM_SVID_COMPAT].
30379 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30380 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30381 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30382 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30383 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30384 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30385 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30386 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30387 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30388 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30389 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30390 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30391 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30392 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30393 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30394 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30395 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30396 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30397 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30398 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30399 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
30400 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
30401
30402 2017-09-05 Steve Ellcey <sellcey@cavium.com>
30403
30404 * include/shlib-compat.h (TEST_COMPAT): New Macro.
30405 * malloc/tst-mallocstate.c: Convert from test-skeleton
30406 to test-driver. Ifdef code using TEST_COMPAT macro.
30407 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
30408 * math/test-matherr.c: Likewise.
30409
30410 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30411
30412 [BZ #22086]
30413 * debug/pcprofiledump.c (main): Use byte-swapped mask when
30414 comparing word with byte-swapped constant.
30415
30416 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
30417
30418 [BZ #20498]
30419 * locale/iso-639.def: add Miskito.
30420 * localedata/SUPPORTED: Add miq_NI/UTF-8.
30421 * localedata/locales/miq_NI: New file.
30422
30423 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
30424
30425 [BZ #18822]
30426 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
30427 (__mkdir): Likewise.
30428 * io/chmod.c (__chmod): Add libc_hidden_def.
30429 * io/mkdir.c (__mkdir): Likewise.
30430 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
30431 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
30432 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
30433 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
30434
30435 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30436
30437 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
30438 version to 4.13.
30439
30440 [BZ #22082]
30441 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
30442 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
30443
30444 2017-09-04 Florian Weimer <fweimer@redhat.com>
30445
30446 * math/math.h: Issue warning if log is defined.
30447
30448 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30449
30450 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
30451 kernel version to 4.13.
30452
30453 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30454
30455 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
30456 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
30457 parameter.
30458 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
30459 just <bits/types.h>.
30460 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
30461 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
30462 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
30463 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
30464 * misc/preadv2.c: Include <errno.h>.
30465 * misc/preadv64v2.c: Include <errno.h>.
30466 * misc/pwritev2.c: Include <errno.h>.
30467 * misc/pwritev64v2.c: Include <errno.h>.
30468 * sysdeps/posix/preadv2.c: Include <errno.h>.
30469 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
30470 Fix <unistd.h> inclusion.
30471 * sysdeps/posix/pwritev2.c: Include <errno.h>.
30472 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
30473 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
30474 __strtoul_internal): New functions.
30475 * sysdeps/posix/pause.c: Include <sigsetops.h>.
30476 * sysdeps/posix/system.c: Include <sigsetops.h>.
30477 * sysdeps/mach/hurd/i386/Makefile
30478 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
30479 [$(subdir) = csu] (sysdep-only-routines): Likewise.
30480 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
30481 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
30482 __feraiseexcept_renamed to feraiseexcept instead of
30483 __GI_feraiseexcept.
30484 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
30485 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
30486 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
30487 RWF_NOWAIT): Define to 0 if undefined already.
30488 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
30489 boils down to 0.
30490 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
30491 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
30492
30493 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30494
30495 * manual/math.texi (pow10): Do not document.
30496 (pow10f): Likewise.
30497 (pow10l): Likewise.
30498 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
30499 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
30500 * math/libm-test-exp10.inc (pow10_test): Remove.
30501 (do_test): Do not call pow10.
30502 * math/w_exp10_compat.c (pow10): Make into compat symbol.
30503 [NO_LONG_DOUBLE] (pow10l): Likewise.
30504 * math/w_exp10f_compat.c (pow10f): Likewise.
30505 * math/w_exp10l_compat.c (pow10l): Likewise.
30506 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
30507 (pow10): Make into compat symbol.
30508 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
30509 (pow10f): Make into compat symbol.
30510 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
30511 (pow10l): Make into compat symbol.
30512 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
30513 pow10.
30514 (CFLAGS-nldbl-pow10.c): Remove variable..
30515 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
30516 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
30517 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
30518 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
30519 Undefine and redefine.
30520 (pow10l): Make into compat symbol.
30521 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
30522 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
30523 * sysdeps/arm/libm-test-ulps: Likewise.
30524 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
30525 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
30526 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30527 * sysdeps/microblaze/libm-test-ulps: Likewise.
30528 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
30529 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
30530 * sysdeps/nios2/libm-test-ulps: Likewise.
30531 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30532 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
30533 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
30534 * sysdeps/sh/libm-test-ulps: Likewise.
30535 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
30536 * sysdeps/tile/libm-test-ulps: Likewise.
30537 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30538
30539 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30540
30541 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
30542
30543 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30544
30545 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
30546 "../ChangeLog.old/ChangeLog.8".
30547 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
30548 "../ChangeLog.old/ChangeLog.14".
30549
30550 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30551
30552 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
30553 Threads Library.
30554
30555 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30556
30557 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
30558
30559 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30560
30561 * csu/version.c (banner): Remove "by Roland McGrath et al.".
30562 * nptl/Banner: Remove "by Ulrich Drepper et al.".
30563
30564 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30565
30566 * stdlib/tst-atexit-common.c (do_test): Test support for at least
30567 32 atexit handlers.
30568
30569 2017-09-01 Zack Weinberg <zackw@panix.com>
30570
30571 * math/math.h (HUGE_VAL): Improve commentary.
30572
30573 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30574 Andreas Schwab <schwab@suse.de>
30575
30576 [BZ #21530]
30577 * include/stdio.h (__gen_tempfd): New function.
30578 * stdio-common/Makefile (routines): Add gentempfd.
30579 * stdio-common/gentempfd.c: New file.
30580 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
30581 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
30582 unnamed file first.
30583
30584 2017-09-01 Florian Weimer <fweimer@redhat.com>
30585
30586 [BZ #21915]
30587 [BZ #21922]
30588 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
30589 result to determine success or failure, not the errno value.
30590 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
30591 (tst-nss-files-hosts-erange): Link with -ldl.
30592 * nss/tst-nss-files-hosts-erange.c: New file.
30593 * nss/tst-resolv-basic.c (response): Handle nodata.example.
30594 (do_test): Add NO_DATA tests.
30595 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
30596 (do_test): Call it.
30597
30598 2017-09-01 Florian Weimer <fweimer@redhat.com>
30599
30600 [BZ #21922]
30601 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
30602 coming from gethostbyname2_r.
30603
30604 2017-09-01 Florian Weimer <fweimer@redhat.com>
30605
30606 * support/namespace.h (struct support_chroot_configuration): Add
30607 hosts, host_conf.
30608 (struct support_chroot): Add path_hosts, path_host_conf.
30609 * support/support_chroot.c (write_file): New function.
30610 (support_chroot_create): Call it to process /etc/resolv.conf,
30611 /etc/hosts, /etc/host.conf.
30612 (support_chroot_free): Update.
30613
30614 2017-09-01 Florian Weimer <fweimer@redhat.com>
30615
30616 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
30617 status indicates it is set.
30618
30619 2017-09-01 Florian Weimer <fweimer@redhat.com>
30620
30621 [BZ #20532]
30622 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
30623 function lookup failures more reliable.
30624
30625 2017-09-01 Florian Weimer <fweimer@redhat.com>
30626
30627 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
30628 (getcanonname): Likewise.
30629 (gaih_inet): Likewise.
30630
30631 2017-09-01 Florian Weimer <fweimer@redhat.com>
30632
30633 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
30634 (getcanonname): Likewise.
30635 (gaih_inet): Likewise.
30636
30637 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30638 Richard Henderson <rth@twiddle.net>
30639
30640 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
30641 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
30642 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
30643 (IREG_SIZE, OREG_SIZE): New macros.
30644 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
30645 (IREG_SIZE, OREG_SIZE): New macros.
30646 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
30647 (IREG_SIZE): New macro.
30648 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
30649 (IREG_SIZE): New macro.
30650 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
30651 New includes.
30652 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
30653 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30654 (__CONCATX): Handle exceptions correctly on large values that may
30655 set FE_INVALID.
30656 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
30657 Initialize if not already set.
30658 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30659
30660 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30661
30662 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
30663 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
30664 Likewise.
30665 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
30666 Likewise.
30667 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
30668 Likewise.
30669 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
30670 Likewise.
30671 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
30672 Likewise.
30673 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
30674 Likewise.
30675 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
30676 Likewise.
30677 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
30678 (NO_CANCELLATION): Likewise.
30679 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
30680 Likewise.
30681 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
30682 Likewise.
30683 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
30684 Likewise.
30685 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
30686 (NO_CANCELLATION): Likewise.
30687 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
30688 (NO_CANCELLATION): Likewise.
30689 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
30690 Likewise
30691 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
30692 Likewise.
30693 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
30694 Likewise.
30695 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
30696 Likewise.
30697 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
30698 hidden prototype.
30699 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
30700 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
30701
30702 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30703
30704 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
30705 in resolver call.
30706
30707 2017-08-31 Florian Weimer <fweimer@redhat.com>
30708
30709 * include/libc-symbols.h (internal_function): Remove.
30710
30711 2017-08-31 Florian Weimer <fweimer@redhat.com>
30712
30713 * stdlib/fmtmsg.c (internal_addseverity): Remove
30714 internal_function.
30715
30716 2017-08-31 Florian Weimer <fweimer@redhat.com>
30717
30718 * stdio-common/printf_fp.c (group_number): Remove
30719 internal_function.
30720 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
30721
30722 2017-08-31 Florian Weimer <fweimer@redhat.com>
30723
30724 * posix/fnmatch.c (internal_function): Remove definition.
30725 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
30726 * posix/regcomp.c (peek_token, init_word_char)
30727 (duplicate_node_closure, fetch_token, peek_token)
30728 (peek_token_bracket, build_range_exp, build_collating_symbol):
30729 Likewise.
30730 * posix/regex_internal.c (re_string_construct_common)
30731 (create_ci_newstate, create_cd_newstate, re_string_allocate)
30732 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
30733 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
30734 (re_string_translate_buffer, re_string_reconstruct)
30735 (re_string_peek_byte_case, re_string_fetch_byte_case)
30736 (re_string_destruct, re_string_context_at, re_node_set_alloc)
30737 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
30738 (re_node_set_add_intersect, re_node_set_init_union)
30739 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
30740 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
30741 (re_dfa_add_node, calc_state_hash, re_acquire_state)
30742 (re_acquire_state_context): Likewise.
30743 * posix/regex_internal.h (internal_function): Remove definition.
30744 (re_string_realloc_buffers, build_wcs_buffer)
30745 (build_wcs_upper_buffer, build_upper_buffer)
30746 (re_string_translate_buffer, re_string_context_at)
30747 (re_string_char_size_at, re_string_wchar_at)
30748 (re_string_elem_size_at): Likewise.
30749 * posix/regexec.c (match_ctx_init, match_ctx_clean)
30750 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
30751 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
30752 (re_search_internal, re_search_2_stub, re_search_stub)
30753 (re_copy_regs, prune_impossible_nodes, check_matching)
30754 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
30755 (free_fail_stack_return, sift_states_iter_mb)
30756 (sift_states_backward, build_sifted_states)
30757 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
30758 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
30759 (check_subexp_limits, sift_states_bkref, merge_state_array)
30760 (find_recover_state, transit_state, merge_state_with_log)
30761 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
30762 (transit_state_mb, transit_state_bkref, get_subexp)
30763 (get_subexp_sub, find_subexp_node, check_arrival)
30764 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
30765 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
30766 (check_node_accept_bytes, find_collation_sequence_value)
30767 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
30768 (acquire_init_state_context, check_halt_node_context)
30769 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
30770 (sub_epsilon_src_nodes): Likewise.
30771 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
30772 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
30773 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
30774 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
30775 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
30776 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
30777 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
30778 * sysdeps/posix/ttyname.c (getttyname): Likewise.
30779 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
30780 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
30781 (PREADV): Likewise.
30782 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
30783 (PREADV): Likewise.
30784 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
30785 (PWRITEV): Likewise.
30786 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
30787 (PWRITEV): Likewise.
30788 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
30789 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
30790
30791 2017-08-31 Florian Weimer <fweimer@redhat.com>
30792
30793 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
30794 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
30795 Remove internal_function.
30796 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
30797 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
30798 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
30799 (__deallocate_stack, __libc_pthread_init)
30800 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
30801 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
30802 (__libc_disable_asynccancel, __librt_disable_asynccancel):
30803 Likewise.
30804 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
30805 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
30806 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
30807 Likewise.
30808 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
30809 (__pthread_mutex_unlock_usercnt): Likewise.
30810
30811 2017-08-31 Florian Weimer <fweimer@redhat.com>
30812
30813 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
30814 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
30815 (fts_safe_changedir): Remove internal_function.
30816 * io/ftw.c (internal_function): Remove definition.
30817 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
30818
30819 2017-08-31 Florian Weimer <fweimer@redhat.com>
30820
30821 * inet/deadline.c (__deadline_current_time)
30822 (__deadline_from_timeval, __deadline_to_ms): Remove
30823 internal_function.
30824 * inet/getnameinfo.c (nrl_domainname): Likewise.
30825 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
30826 * inet/inet6_option.c (add_pad): Likewise.
30827 * inet/net-internal.h (__deadline_current_time)
30828 (__deadline_from_timeval, __deadline_to_ms): Likewise.
30829 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
30830 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
30831 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
30832
30833 2017-08-31 Joseph Myers <joseph@codesourcery.com>
30834
30835 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
30836 include <bits/nan.h>.
30837 * math/Makefile (headers): Remove bits/nan.h.
30838 * bits/nan.h: Remove.
30839 * sysdeps/ieee754/bits/nan.h: Likewise.
30840 * sysdeps/mips/bits/nan.h: Likewise.
30841
30842 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
30843 not include <bits/inf.h>.
30844 * math/Makefile (headers): Remove bits/inf.h.
30845 * bits/inf.h: Remove.
30846 * sysdeps/ieee754/bits/inf.h: Likewise.
30847
30848 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
30849 bits/huge_vall.h or bits/huge_val_flt128.h.
30850 (HUGE_VAL): Define directly here.
30851 [__USE_ISOC99] (HUGE_VALF): Likewise.
30852 [__USE_ISOC99] (HUGE_VALL): Likewise.
30853 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30854 (HUGE_VAL_F128): Likewise.
30855 * math/Makefile (headers): Remove bits/huge_val.h,
30856 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
30857 * bits/huge_val.h: Remove.
30858 * bits/huge_val_flt128.h: Likewise.
30859 * bits/huge_valf.h: Likewise.
30860 * bits/huge_vall.h: Likewise.
30861 * sysdeps/ia64/bits/huge_vall.h: Likewise.
30862 * sysdeps/ieee754/bits/huge_val.h: Likewise.
30863 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
30864 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
30865 * sysdeps/sh/bits/huge_val.h: Likewise.
30866 * sysdeps/sparc/bits/huge_vall.h: Likewise.
30867 * sysdeps/x86/bits/huge_vall.h: Likewise.
30868
30869 2017-08-31 Florian Weimer <fweimer@redhat.com>
30870
30871 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
30872 internal_function.
30873 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
30874 Likewise.
30875 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
30876 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
30877 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
30878 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
30879 * elf/dl-fini.c (_dl_sort_fini): Likewise.
30880 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
30881 * elf/dl-libc.c (dlerror_run): Likewise.
30882 * elf/dl-load.c (add_name_to_object, decompose_rpath)
30883 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
30884 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
30885 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
30886 Likewise.
30887 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
30888 (_dl_higher_prime_number, _dl_strtoul): Likewise.
30889 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
30890 * elf/dl-profile.c (_dl_start_profile): Likewise.
30891 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
30892 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
30893 Likewise.
30894 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
30895 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
30896 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
30897 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
30898 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
30899 (_dl_allocate_tls_storage): Likewise.
30900 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
30901 (_dl_check_all_versions): Likewise.
30902 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
30903 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
30904 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
30905 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
30906 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
30907 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
30908 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
30909 internal_function from __dl_start.
30910 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
30911 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
30912 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
30913 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
30914 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
30915 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
30916 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
30917 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
30918 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
30919 (_dl_next_ld_env_entry, _dl_important_hwcaps)
30920 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
30921 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
30922 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
30923 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
30924 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
30925 Likewise.
30926 (struct rtld_global_ro): Remove internal_function from the
30927 _dl_lookup_symbol_x member.
30928 (_dl_symbol_value): Remove. No longer defined anywhere.
30929 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
30930 internal_function.
30931 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
30932 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
30933 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
30934 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
30935 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
30936 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
30937 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
30938 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
30939 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
30940 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
30941 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
30942 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
30943
30944 2017-08-31 Florian Weimer <fweimer@redhat.com>
30945
30946 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
30947 Remove internal_function.
30948 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
30949 Likewise.
30950 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
30951 Likewise.
30952
30953 2017-08-31 Florian Weimer <fweimer@redhat.com>
30954
30955 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
30956 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
30957 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
30958
30959 2017-08-31 Florian Weimer <fweimer@redhat.com>
30960
30961 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
30962 (__gai_enqueue_request): Remove internal_function.
30963 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
30964 (__gai_remove_request, __gai_notify, __gai_notify_only)
30965 (__gai_sigqueue): Likewise.
30966 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
30967 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
30968 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
30969 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
30970 Likewise.
30971
30972 2017-08-31 Florian Weimer <fweimer@redhat.com>
30973
30974 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
30975 * include/dirent.h (__opendirat, __getdents, __getdents64)
30976 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
30977 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
30978 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30979 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
30980 Likewise.
30981 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
30982
30983 2017-08-31 Florian Weimer <fweimer@redhat.com>
30984
30985 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
30986 internal_function.
30987 (GETCWD_RETURN_TYPE): Likewise.
30988
30989 2017-08-31 Florian Weimer <fweimer@redhat.com>
30990
30991 * include/time.h (__tz_compute, __strptime_internal): Remove
30992 internal_function.
30993 * time/strptime_l.c (__strptime_internal): Likewise.
30994 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
30995
30996 2017-08-31 Florian Weimer <fweimer@redhat.com>
30997
30998 * iconv/gconv.c (__gconv): Remove internal_function.
30999 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31000 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31001 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31002 (__gconv_release_cache): Likewise.
31003 * iconv/gconv_close.c (__gconv_close): Likewise.
31004 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31005 (read_conf_file, __gconv_get_path): Likewise.
31006 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31007 (__gconv_release_step, gen_steps, increment_counter)
31008 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31009 (__gconv_close_transform, free_modules_db): Likewise.
31010 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31011 Likewise.
31012 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31013 (__gconv_find_transform, __gconv_lookup_cache)
31014 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31015 (__gconv_close_transform, __gconv_release_cache)
31016 (__gconv_loaded_object, __gconv_release_shlib)
31017 (__gconv_compare_alias): Likewise.
31018 * iconv/gconv_open.c (__gconv_open): Likewise.
31019 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31020 * iconv/iconvconfig.c (add_module): Likewise.
31021 * intl/dcigettext.c (plural_lookup, guess_category_value)
31022 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31023 * intl/eval-plural.h (plural_eval): Likewise.
31024 * intl/finddomain.c (_nl_find_domain): Likewise.
31025 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31026 (_nl_load_domain, _nl_find_msg): Likewise.
31027 (internal_function): Remove definition.
31028 * intl/loadinfo.h (internal_function): Likewise.
31029 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31030 internal_function.
31031 * intl/localealias.c (internal_function): Remove definition.
31032 (read_alias_file): Remove internal_function.
31033 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31034 * intl/plural-exp.h (internal_function): Remove definition.
31035 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31036 internal_function.
31037 * intl/plural.c: Regenerate.
31038 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31039 * locale/coll-lookup.c (__collidx_table_lookup)
31040 (__collseq_table_lookup): Likewise.
31041 * locale/coll-lookup.h (__collidx_table_lookup)
31042 (__collseq_table_lookup): Likewise.
31043 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31044 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31045 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31046 (_nl_unload_locale): Likewise.
31047 * locale/localeinfo.h (struct __locale_data): Remove
31048 internal_function from cleanup member.
31049 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31050 (_nl_remove_locale, _nl_load_locale_from_archive)
31051 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31052 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31053 (_nl_cleanup_time): Remove internal_function.
31054 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31055 (_nl_parse_alt_digit): Likewise.
31056 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31057 (_nl_select_era_entry): Likewise.
31058 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31059 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31060 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31061 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31062 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31063
31064 2017-08-31 Florian Weimer <fweimer@redhat.com>
31065
31066 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31067 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31068 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31069 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31070 Likewise.
31071 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31072 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31073 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31074 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31075 Likewise.
31076 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31077
31078 2017-08-31 Florian Weimer <fweimer@redhat.com>
31079
31080 * misc/getttyent.c (skip, value): Remove internal_function.
31081 * misc/syslog.c (openlog_internal): Likewise.
31082 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31083
31084 2017-08-31 Florian Weimer <fweimer@redhat.com>
31085
31086 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31087 (__nss_rewrite_field): Remove internal_function.
31088 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31089 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31090 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31091 * nss/nsswitch.c (nss_parse_file, nss_getline)
31092 (nss_parse_service_list, nss_new_service): Likewise.
31093 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31094 * nss/valid_field.c (__nss_valid_field): Likewise.
31095 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31096
31097 2017-08-31 Florian Weimer <fweimer@redhat.com>
31098
31099 * malloc/arena.c (__malloc_fork_lock_parent)
31100 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31101 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31102 internal_function from defintions.
31103 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31104 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31105 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31106 internal_function from declarations.
31107 * malloc/malloc.c (internal_function): Do not define.
31108 (mem2mem_check): Remove internal_function from declaration.
31109 (munmap_chunk, mremap_chunk): Remove internal_function.
31110 * malloc/mtrace.c (tr_where): Likewise.
31111
31112 2017-08-31 Florian Weimer <fweimer@redhat.com>
31113
31114 * include/rpc/pmap_clnt.h (__get_socket): Remove
31115 internal_function.
31116 * sunrpc/auth_des.c (synchronize): Likewise.
31117 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31118 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31119 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31120 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31121 (key_call): Likewise.
31122 * sunrpc/pm_getport.c (__get_socket): Likewise.
31123 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31124 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31125 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31126 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31127 (invalidate): Likewise.
31128 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31129 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31130 (set_input_fragment, get_input_bytes): Likewise.
31131
31132 2017-08-31 Florian Weimer <fweimer@redhat.com>
31133
31134 * malloc/malloc.c (_int_free): Remove locked variable and related
31135 asserts.
31136
31137 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31138
31139 [BZ #22051]
31140 * Makerules (build-module-helper-objlist): Filter out
31141 $(elf-objpfx)sofini.os.
31142 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31143 needed.
31144
31145 2017-08-31 Florian Weimer <fweimer@redhat.com>
31146
31147 * libio/fcloseall.c: Assume weak_alias is defined.
31148 * libio/feof.c: Likewise.
31149 * libio/fileno.c: Likewise.
31150 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31151 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31152 definitions.
31153 (_IO_file_open): Call __open directly.
31154 (_IO_new_file_sync): Assume ESPIPE is defined.
31155 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31156 (_IO_new_file_write): Call __write directly.
31157 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31158 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31159 * libio/genops.c: Assume _LIBC is defined.
31160 (save_for_backup): Remove internal_function.
31161 * libio/getc.c: Assume weak_alias is defined.
31162 * libio/getwc.c: Likewise.
31163 * libio/iofclose.c: Assume _LIBC is defined.
31164 * libio/iofdopen.c: Likewise.
31165 (_IO_fcntl): Remove macro definition.
31166 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31167 Call __fcntl directly.
31168 * libio/iofflush.c: Assume weak_alias is defined.
31169 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31170 defined.
31171 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31172 * libio/iofgets.c: Likewise.
31173 * libio/iofopen.c: Assume _LIBC is defined.
31174 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31175 * libio/iofputs.c: Assume weak_alias is defined.
31176 * libio/iofread.c: Likewise.
31177 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31178 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31179 * libio/ioftell.c: Assume weak_alias is defined.
31180 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31181 * libio/iofwide.c: Assume _LIBC is defined.
31182 (_IO_fwide): Drop SHARED conditional because it is implied by
31183 SHLIB_COMPAT.
31184 * libio/iofwrite.c: Assume weak_alias is defined.
31185 * libio/iogetdelim.c: Likewise.
31186 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31187 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31188 (_IO_getwline): Call __wmemcpy directly.
31189 * libio/iopopen.c: Assume _LIBC is defined.
31190 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31191 (_IO_close): Remove macro definitions.
31192 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31193 _exit directly.
31194 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31195 directly.
31196 * libio/ioputs.c: Assume weak_alias is defined.
31197 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31198 * libio/iosetbuffer.c: Assume weak_alias is defined.
31199 * libio/iosetvbuf.c: Likewise.
31200 * libio/ioungetc.c: Likewise.
31201 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31202 libc_hidden_def, libc_hidden_weak, NULL are defined.
31203 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31204 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31205 defined.
31206 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31207 definitions.
31208 (_IO_old_file_init_internal): Drop SHARED conditional because it
31209 is implied by SHLIB_COMPAT.
31210 (_IO_old_file_fopen): Call __open directly.
31211 (_IO_old_file_sync): Assume ESPIPE is defined.
31212 (_IO_old_file_write): Call __write directly.
31213 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31214 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31215 Call __fcntl directly.
31216 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31217 (_IO_old_fgetpos): Assume EIO is defined.
31218 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31219 (_IO_old_fgetpos64): Assume EIO is defined.
31220 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31221 (_IO_old_fsetpos): Assume EIO is defined.
31222 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31223 (_IO_old_fsetpos64): Assume EIO is defined.
31224 * libio/oldiopopen.c: Assume _LIBC is defined.
31225 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31226 (_IO_close): Remove macro definitions.
31227 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31228 directly.
31229 (_IO_old_proc_close): Call __close, __waitpid directly.
31230 * libio/put.c: Assume weak_alias is defined.
31231 * libio/stdfiles.c: Assume _LIBC is defined.
31232 * libio/stdio.c: Likewise.
31233 * libio/wfileops.c: Likewise.
31234 (_IO_wfile_sync): Assume ESPIPE is defined.
31235 * libio/wgenops.c: Assume _LIBC is defined.
31236 (save_for_wbackup): Remove internal_function.
31237
31238 2017-08-31 Florian Weimer <fweimer@redhat.com>
31239
31240 * malloc/malloc.c (top_check): Change return type to void. Remove
31241 internal_function.
31242 * malloc/hooks.c (top_check): Likewise.
31243 (malloc_check, realloc_check, memalign_check): Adjust.
31244
31245 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31246
31247 [BZ #21457]
31248 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31249 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31250 sigcontext and namespace requirements.
31251 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31252 * sysdeps/m68k/sys/ucontext.h: Likewise.
31253 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31254 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31255 <bits/sigcontext.h>.
31256 (__ctx): Define earlier.
31257 (mcontext_t): Define structure contents rather than using struct
31258 sigcontext.
31259 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31260 __glibc_reserved1 instead of __reserved.
31261 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31262 <bits/sigcontext.h>.
31263 (__ctx): Define earlier.
31264 (mcontext_t): Define structure contents rather than using struct
31265 sigcontext.
31266 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31267 mcontext_t instead of struct sigcontext.
31268 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31269 <bits/sigcontext.h>.
31270 (__ctx): Define earlier.
31271 (mcontext_t): Define structure contents rather than using struct
31272 sigcontext.
31273 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31274 <bits/sigcontext.h>.
31275 (__ctx): Define earlier.
31276 (mcontext_t): Define structure contents rather than using struct
31277 sigcontext.
31278 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31279 mcontext_t instead of struct sigcontext.
31280 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31281 mcontext_t instead of struct sigcontext.
31282 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31283 <bits/sigcontext.h>.
31284 (__ctx): New macro.
31285 (struct __ia64_fpreg_mcontext): New type.
31286 (mcontext_t): Define structure contents rather than using struct
31287 sigcontext.
31288 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31289 (uc_sigmask): Define using __ctx.
31290 (uc_stack): Likewise.
31291 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31292 <bits/sigcontext.h>.
31293 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31294 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31295 <bits/sigcontext.h>.
31296 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31297 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31298 <bits/sigcontext.h>.
31299 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31300 <bits/sigcontext.h>.
31301 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31302 <bits/sigcontext.h>.
31303 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31304 <bits/sigcontext.h>.
31305 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31306 <bits/sigcontext.h>.
31307 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31308 <bits/sigcontext.h>.
31309 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31310 <bits/sigcontext.h>.
31311 (__ctx): Define earlier.
31312 (mcontext_t): Define structure contents rather than using struct
31313 sigcontext.
31314 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31315 <bits/sigcontext.h>. Include <bits/types.h>.
31316 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31317 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31318 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31319 (test-xfail-UNIX98/signal.h/conform): Likewise.
31320 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31321 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31322 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31323 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31324 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31325 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31326 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31327 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31328 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31329
31330 2017-08-30 Florian Weimer <fweimer@redhat.com>
31331
31332 * malloc/dynarray_emplace_enlarge.c
31333 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31334 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31335 * malloc/tst-dynarray.c (test_long_overflow): New function.
31336 (do_test): Call it.
31337
31338 2017-08-30 Florian Weimer <fweimer@redhat.com>
31339
31340 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31341 (set_arena_corrupt): Remove definitions.
31342 (mtrim): Do not check for corrupt arena.
31343 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31344 Likewise.
31345
31346 2017-08-30 Florian Weimer <fweimer@redhat.com>
31347
31348 [BZ #21754]
31349 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31350 check_action.
31351 (ptmalloc_init): Do not set or use check_action.
31352 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31353 call to malloc_printerr. Remove return statement.
31354 (free_check): Likewise. Remove arena unlock.
31355 (top_check): Update comment. Adjust call to malloc_printerr.
31356 Remove heap repair code.
31357 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31358 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31359 (sysmalloc): Adjust call to malloc_printerr.
31360 (munmap_chunk, __libc_realloc): Likewise. Remove return
31361 statement.
31362 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31363 Remove errout label and corresponding gotos.
31364 (_int_free): Likewise. Remove arena unlock.
31365 (do_set_mallopt_check): Do not set check_action.
31366 (malloc_printerr): Adjust parameter list. Do not mark arena as
31367 corrupt.
31368 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31369 comment.
31370 * manual/probes.texi (Memory Allocation Probes): Remove
31371 memory_mallopt_check_action.
31372
31373 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31374
31375 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31376 Use pointer to uint64_t instead of long int for sp.
31377
31378 2017-08-30 Florian Weimer <fweimer@redhat.com>
31379
31380 [BZ #21754]
31381 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31382 without printing a backtrace. Do not leak any information in the
31383 error message.
31384 * manual/memory.texi (Heap Consistency Checking): Update.
31385 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31386
31387 2017-08-30 Florian Weimer <fweimer@redhat.com>
31388
31389 Do not scale NPTL tests with available number of CPUs.
31390 * nptl/tst-cond16.c (count): Set to constant value of 8.
31391 * nptl/tst-cond18.c (count): Likewise.
31392
31393 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31394
31395 [BZ #22035]
31396 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31397 Define to take a second argument that is a macro that
31398 concatentates a suffix, not the suffix itself.
31399 (__CONCAT_d): New macro.
31400 (__CONCAT_f): Likewise.
31401 (__CONCAT_l): Likewise.
31402
31403 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
31404
31405 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
31406 by child.
31407
31408 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31409 Aurelien Jarno <aurelien@aurel32.net>
31410 Maciej W. Rozycki <macro@imgtec.com>
31411
31412 [BZ #21956]
31413 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
31414 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
31415 `mips16-syscall6' and `mips16-syscall7'.
31416 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
31417 (CFLAGS-mips16-syscall7.c): Remove.
31418 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
31419 Remove `__mips16_syscall5', `__mips16_syscall6' and
31420 `__mips16_syscall7'.
31421 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
31422 (__mips16_syscall0): Rename `__mips16_syscall_return' to
31423 `__mips_syscall_return'.
31424 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
31425 (__mips16_syscall1): Likewise.
31426 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
31427 (__mips16_syscall2): Likewise.
31428 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
31429 (__mips16_syscall3): Likewise.
31430 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
31431 (__mips16_syscall4): Likewise.
31432 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
31433 Remove.
31434 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
31435 Remove.
31436 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
31437 Remove.
31438 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
31439 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
31440 `__mips16_syscall5'. Remove prototype.
31441 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
31442 `__mips16_syscall6'. Remove prototype.
31443 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
31444 `__mips16_syscall7'. Remove prototype.
31445 (__nomips16, __mips16_syscall_return): Move to...
31446 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
31447 (__nomips16, __mips_syscall_return): ... here.
31448 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
31449 `__mips16_syscall_return' to `__mips_syscall_return'.
31450 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
31451 `internal_syscall##nr'.
31452 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
31453 `internal_syscall##nr'.
31454 (FORCE_FRAME_POINTER): Remove.
31455 (__mips_syscall5): New prototype.
31456 (internal_syscall5): Rewrite to call `__mips_syscall5'.
31457 (__mips_syscall6): New prototype.
31458 (internal_syscall6): Rewrite to call `__mips_syscall6'.
31459 (__mips_syscall7): New prototype.
31460 (internal_syscall7): Rewrite to call `__mips_syscall7'.
31461 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
31462 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
31463 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
31464 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
31465 (sysdep_routines): Add libc-do-syscall.
31466 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
31467 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
31468
31469 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31470
31471 [BZ #21672]
31472 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
31473 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
31474 (advise_stack_range): New function.
31475 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
31476 stack non required to advise_stack_range at allocatestack.c
31477
31478 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31479
31480 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
31481
31482 2017-08-29 Florian Weimer <fweimer@redhat.com>
31483
31484 [BZ #22026]
31485 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
31486 __end_fct. Mangle __end_fct after setting it to NULL.
31487 * iconv/Makefile (tests): Add tst-gconv-init-failure.
31488 (modules-names, modules-names-tests): Add
31489 tst-gconv-init-failure-mod.
31490 (gconv-modules): New target.
31491 (tst-gconv-init-failure-mod.so): Link against libsupport.
31492 (tst-gconv-init-failure): Depend on gconv-modules,
31493 tst-gconv-init-failure-mod.so.
31494 * iconv/tst-gconv-init-failure-mod.c: New file.
31495 * iconv/tst-gconv-init-failure.c: Likewise.
31496 * iconv/test-gconv-modules: Likewise.
31497
31498 2017-08-29 Florian Weimer <fweimer@redhat.com>
31499
31500 [BZ #22025]
31501 * iconv/gconv_db.c (free_derivation): Remove redundant
31502 parentheses.
31503 (gen_steps): Unconditionally mangle __btowc_fct after
31504 initialization.
31505 (increment_counter): Likewise. Do not call init_fct for internal
31506 modules.
31507
31508 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31509
31510 [BZ #22028]
31511 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31512 (_MSUF_): Remove macro.
31513 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
31514 Likewise.
31515 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31516 (__REDIRFROM_X): New macro.
31517 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
31518 Likewise.
31519 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
31520 (__REDIRTO_X): Likewise.
31521 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
31522 arguments.
31523 (__MATH_REDIRCALL_2): Likewise.
31524 (__MATH_REDIRCALL_INTERNAL): Likewise.
31525 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31526 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
31527 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
31528 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31529 * math/test-finite-macros.c: New file.
31530 * math/Makefile (tests): Add test-finite-macros.
31531 (CFLAGS-test-finite-macros.c): New variable.
31532
31533 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
31534 Jeff Law <law@redhat.com>
31535
31536 [BZ #22025]
31537 Mangle NULL pointers in iconv/gconv.
31538 * iconv/gconv_cache.c (find_module): Demangle init_fct before
31539 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
31540 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
31541 is non-NULL before demangling the end_fct. Check for NULL
31542 end_fct after demangling.
31543 (__gconv_release_step): Demangle the end_fct before checking
31544 it for NULL. Remove assert on __shlibc_handle != NULL.
31545 (gen_steps): Don't check btowc_fct for NULL before mangling.
31546 Demangle init_fct before checking for NULL.
31547 (increment_counter): Likewise.
31548 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
31549 end_fct for NULL before mangling.
31550 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
31551 for NULL.
31552
31553 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
31554
31555 [BZ #21971]
31556 * locale/iso-639.def: add Morisyen.
31557
31558 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31559
31560 [BZ #21930]
31561 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
31562 (iszero): New C++ implementation that does not use
31563 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
31564 signaling nans are enabled, since __builtin_types_compatible_p
31565 is a C-only feature.
31566 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
31567 defined, include ieee754_float128.h for access to the union and
31568 member ieee854_float128.ieee.
31569 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
31570 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
31571 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31572 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
31573 options of test-math-zero on powerpc64le.
31574
31575 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
31576
31577 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
31578 Change double to float.
31579
31580 2017-08-28 Joseph Myers <joseph@codesourcery.com>
31581
31582 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
31583 unconditional.
31584 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
31585 conditional code; define contents only for [LIBM_SVID_COMPAT].
31586
31587 2017-08-28 Florian Weimer <fweimer@redhat.com>
31588
31589 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
31590 (abi-lp64_be-options): Remove.
31591 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
31592 (abi-hard-options): Likewise.
31593 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
31594 (abi-o32_hard-options, abi-o32_soft_2008-options)
31595 (abi-o32_hard_2008-options, abi-n32_soft-options)
31596 (abi-n32_hard-options, abi-n32_soft_2008-options)
31597 (abi-n32_hard_2008-options, abi-n64_soft-options)
31598 (abi-n64_hard-options, abi-n64_soft_2008-options)
31599 (abi-n64_hard_2008-options): Likewise.
31600 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
31601 (abi-64-v1-options, abi-64-v2-options): Likewise.
31602 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
31603 (abi-64-options): Likewise.
31604 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
31605 (abi-64-options): Likewise.
31606 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
31607 (abi-64-options): Likewise.
31608 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
31609 (abi-64-options, abi-x32-options): Likewise.
31610
31611 2017-08-28 Florian Weimer <fweimer@redhat.com>
31612
31613 Store supported list of SYS_* system calls in the source tree.
31614 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
31615 (bits/syscall.h): Generate from list file.
31616 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
31617 [$(subdir) = misc] (tests): Add tst-syscall-list.
31618 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
31619 [$(subdir) = misc] (tst-syscall-list-macros.list)
31620 [$(subdir) = misc] (tst-syscall-list-nr.list)
31621 (tst-syscall-list-sys.list): Helper targets for new
31622 tst-syscall-list test.
31623 [$(subdir) = misc] (tst-syscall-list.out): Run test script
31624 tst-syscall-list.sh.
31625 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
31626 target. Do not include bits/syscall.d.
31627 [$(subdir) = misc] (generated): Do not update.
31628 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
31629 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
31630 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
31631 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
31632
31633 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
31634
31635 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
31636 (tst-cxa_atexit, tst-on_exit): Likewise.
31637 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
31638 tst-cxa_atexit, and tst-on_exit.
31639 * stdlib/tst-atexit-common.c: New file.
31640 * stdlib/tst-atexit.c: New file.
31641 * stdlib/tst-at_quick_exit.c: New file.
31642 * stdlib/tst-cxa_atexit.c: New file.
31643 * stdlib/tst-on_exit.c: New file.
31644
31645 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
31646
31647 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
31648 * mach/stack_chk_fail_local.c: New file.
31649 * hurd/stack_chk_fail_local.c: New file.
31650 * mach/Machrules ($(interface-library)-routines): Add
31651 stack_chk_fail_local.
31652 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
31653 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
31654 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
31655 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
31656 * hurd/Makefile (CFLAGS-hurdstartup.o,
31657 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
31658
31659 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
31660
31661 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31662 (index_cpu_*, index_arch_*): Removed.
31663
31664 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
31665
31666 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
31667 Use uint64_t instead of unsigned long.
31668
31669 2017-08-25 Joseph Myers <joseph@codesourcery.com>
31670
31671 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
31672 [__HAVE_DISTINCT_FLOAT128].
31673
31674 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
31675 of <bits/math-finite.h>.
31676 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
31677 inclusion of <bits/math-finite.h>.
31678 * math/bits/math-finite.h (__REDIRTO_X): Do not define
31679 conditionally on [__MATH_DECLARING_LDOUBLE && defined
31680 __NO_LONG_DOUBLE_MATH].
31681 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
31682 (__MATH_REDIRCALL_2): Likewise.
31683 (__MATH_REDIRCALL_INTERNAL): Likewise.
31684 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31685 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
31686 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31687
31688 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
31689 Remove file.
31690 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
31691 Likewise.
31692 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
31693 Likewise.
31694 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
31695 Likewise.
31696 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
31697 Likewise.
31698 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
31699 Likewise.
31700 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31701 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31702 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31703 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31704 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
31705 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
31706 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
31707 w_sqrtf_compat-ppc32.
31708
31709 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31710
31711 * math/math.h [defined __cplusplus] (issignaling): In the long
31712 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
31713 is not defined. Call __issignaling, otherwise.
31714
31715 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31716
31717 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
31718 syscall definitions and replace __builtin_expect with __glibc_likely.
31719 * sysdeps/unix/syscall-template.S: Update comment about cancellable
31720 syscall.
31721 (SYSCALL_CANCELLABLE): Removedefinition
31722 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
31723 definition.
31724 (PSEUDO_END): Likewise.
31725 [IS_IN (libpthread)] (CENABLE): Likewise.
31726 [IS_IN (libpthread)] (CDISABLE): Likewise.
31727 [IS_IN (libc)] (CENABLE): Likewise.
31728 [IS_IN (libc)] (CENABLE): Likewise.
31729 [IS_IN (librt)] (CDISABLE): Likewise.
31730 [IS_IN (librt)] (CDISABLE): Likewise.
31731 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31732 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
31733 definition.
31734 (PSEUDO_END): Likewise.
31735 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
31736 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
31737 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
31738 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
31739 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
31740 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
31741 (CENABLE): Likewise.
31742 (CDISABLE): Likewise.
31743 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31744 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
31745 defintion.
31746 (PSEUDO_END): Likewise.
31747 [IS_IN (libpthread)] (CENABLE): Likewise.
31748 [IS_IN (libpthread)] (CDISABLE): Likewise.
31749 [IS_IN (libc)] (CENABLE): Likewise.
31750 [IS_IN (libc)] (CENABLE): Likewise.
31751 [IS_IN (librt)] (CDISABLE): Likewise.
31752 [IS_IN (librt)] (CDISABLE): Likewise.
31753 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31754 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
31755 definition.
31756 (PSEUDO_END): Likewise.
31757 [IS_IN (libpthread)] (CENABLE): Likewise.
31758 [IS_IN (libpthread)] (CDISABLE): Likewise.
31759 [IS_IN (libc)] (CENABLE): Likewise.
31760 [IS_IN (libc)] (CENABLE): Likewise.
31761 [IS_IN (librt)] (CDISABLE): Likewise.
31762 [IS_IN (librt)] (CDISABLE): Likewise.
31763 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31764 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
31765 definition.
31766 (PSEUDO_END): Likewise.
31767 [IS_IN (libpthread)] (CENABLE): Likewise.
31768 [IS_IN (libpthread)] (CDISABLE): Likewise.
31769 [IS_IN (libc)] (CENABLE): Likewise.
31770 [IS_IN (libc)] (CENABLE): Likewise.
31771 [IS_IN (librt)] (CDISABLE): Likewise.
31772 [IS_IN (librt)] (CDISABLE): Likewise.
31773 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31774 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
31775 definition.
31776 (PSEUDO_END): Likewise.
31777 [IS_IN (libpthread)] (CENABLE): Likewise.
31778 [IS_IN (libpthread)] (CDISABLE): Likewise.
31779 [IS_IN (libc)] (CENABLE): Likewise.
31780 [IS_IN (libc)] (CENABLE): Likewise.
31781 [IS_IN (librt)] (CDISABLE): Likewise.
31782 [IS_IN (librt)] (CDISABLE): Likewise.
31783 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31784 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
31785 definition.
31786 (PSEUDO_END): Likewise.
31787 [IS_IN (libpthread)] (CENABLE): Likewise.
31788 [IS_IN (libpthread)] (CDISABLE): Likewise.
31789 [IS_IN (libc)] (CENABLE): Likewise.
31790 [IS_IN (libc)] (CENABLE): Likewise.
31791 [IS_IN (librt)] (CDISABLE): Likewise.
31792 [IS_IN (librt)] (CDISABLE): Likewise.
31793 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31794 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
31795 definition.
31796 (PSEUDO_END): Likewise.
31797 [IS_IN (libpthread)] (CENABLE): Likewise.
31798 [IS_IN (libpthread)] (CDISABLE): Likewise.
31799 [IS_IN (libc)] (CENABLE): Likewise.
31800 [IS_IN (libc)] (CENABLE): Likewise.
31801 [IS_IN (librt)] (CDISABLE): Likewise.
31802 [IS_IN (librt)] (CDISABLE): Likewise.
31803 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31804 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
31805 Remove definition.
31806 (PSEUDO_END): Likewise.
31807 [IS_IN (libpthread)] (CENABLE): Likewise.
31808 [IS_IN (libpthread)] (CDISABLE): Likewise.
31809 [IS_IN (libc)] (CENABLE): Likewise.
31810 [IS_IN (libc)] (CENABLE): Likewise.
31811 [IS_IN (librt)] (CDISABLE): Likewise.
31812 [IS_IN (librt)] (CDISABLE): Likewise.
31813 (SINGLE_THREAD_P): Likewise.
31814 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
31815 definition.
31816 (PSEUDO_END): Likewise.
31817 [IS_IN (libpthread)] (CENABLE): Likewise.
31818 [IS_IN (libpthread)] (CDISABLE): Likewise.
31819 [IS_IN (libc)] (CENABLE): Likewise.
31820 [IS_IN (libc)] (CENABLE): Likewise.
31821 [IS_IN (librt)] (CDISABLE): Likewise.
31822 [IS_IN (librt)] (CDISABLE): Likewise.
31823 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31824 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
31825 definition.
31826 (PSEUDO_END): Likewise.
31827 [IS_IN (libpthread)] (CENABLE): Likewise.
31828 [IS_IN (libpthread)] (CDISABLE): Likewise.
31829 [IS_IN (libc)] (CENABLE): Likewise.
31830 [IS_IN (libc)] (CENABLE): Likewise.
31831 [IS_IN (librt)] (CDISABLE): Likewise.
31832 [IS_IN (librt)] (CDISABLE): Likewise.
31833 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31834 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
31835 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
31836 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
31837 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
31838 definition.
31839 (PSEUDO_END): Likewise.
31840 [IS_IN (libpthread)] (CENABLE): Likewise.
31841 [IS_IN (libpthread)] (CDISABLE): Likewise.
31842 [IS_IN (libc)] (CENABLE): Likewise.
31843 [IS_IN (libc)] (CENABLE): Likewise.
31844 [IS_IN (librt)] (CDISABLE): Likewise.
31845 [IS_IN (librt)] (CDISABLE): Likewise.
31846 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31847 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
31848 definition.
31849 (PSEUDO_END): Likewise.
31850 [IS_IN (libpthread)] (CENABLE): Likewise.
31851 [IS_IN (libpthread)] (CDISABLE): Likewise.
31852 [IS_IN (libc)] (CENABLE): Likewise.
31853 [IS_IN (libc)] (CENABLE): Likewise.
31854 [IS_IN (librt)] (CDISABLE): Likewise.
31855 [IS_IN (librt)] (CDISABLE): Likewise.
31856 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31857 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
31858 definition.
31859 (PSEUDO_END): Likewise.
31860 [IS_IN (libpthread)] (CENABLE): Likewise.
31861 [IS_IN (libpthread)] (CDISABLE): Likewise.
31862 [IS_IN (libc)] (CENABLE): Likewise.
31863 [IS_IN (libc)] (CENABLE): Likewise.
31864 [IS_IN (librt)] (CDISABLE): Likewise.
31865 [IS_IN (librt)] (CDISABLE): Likewise.
31866 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31867 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
31868 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
31869 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
31870 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
31871 definition.
31872 (PSEUDO_END): Likewise.
31873 [IS_IN (libpthread)] (CENABLE): Likewise.
31874 [IS_IN (libpthread)] (CDISABLE): Likewise.
31875 [IS_IN (libc)] (CENABLE): Likewise.
31876 [IS_IN (libc)] (CENABLE): Likewise.
31877 [IS_IN (librt)] (CDISABLE): Likewise.
31878 [IS_IN (librt)] (CDISABLE): Likewise.
31879 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31880 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
31881 definition.
31882 (PSEUDO_END): Likewise.
31883 [IS_IN (libpthread)] (CENABLE): Likewise.
31884 [IS_IN (libpthread)] (CDISABLE): Likewise.
31885 [IS_IN (libc)] (CENABLE): Likewise.
31886 [IS_IN (libc)] (CENABLE): Likewise.
31887 [IS_IN (librt)] (CDISABLE): Likewise.
31888 [IS_IN (librt)] (CDISABLE): Likewise.
31889 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31890
31891 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
31892
31893 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
31894
31895 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
31896
31897 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
31898
31899 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
31900
31901 [BZ #21982]
31902 * string/stratcliff.c (do_test): Declare size, nchars, inner,
31903 middle and outer with size_t instead of int. Repleace %d and
31904 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
31905 "MAX (outer, nchars - 64)" to support unsigned outer and
31906 nchars. Also exit loop when outer == 0.
31907
31908 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31909
31910 * include/fcntl.h (__fcntl_nocancel): Remove definition.
31911 * include/signal.h (__sigsuspend_nocancel): Likewise.
31912 * include/time.h (__nanosleep_nocancel): Likewise.
31913 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
31914 * login/utmp_file.c: Include non cancellable syscall header.
31915 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
31916 prototype.
31917
31918 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
31919
31920 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
31921 .byte sequences with AVX512F instructions.
31922 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
31923 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
31924 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
31925 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
31926 Likewise.
31927 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
31928 Likewise.
31929
31930 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
31931 Steve Ellcey <sellcey@cavium.com>
31932
31933 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
31934 Use PTR_REG macro in cmp instruction.
31935
31936 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31937
31938 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
31939 Change the return type of the ifunc resolver to match the return
31940 type of the target function.
31941
31942 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31943
31944 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
31945 (preadv64): Likewise.
31946 (pwrite64(: Likewise.
31947 (pwritev64): Likewise.
31948
31949 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
31950 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
31951 (LOAD_ARGS_0): Likewise.
31952 (LOAD_ARGS_1): Likewise.
31953 (LOAD_ARGS_2): Likewise.
31954 (LOAD_ARGS_3): Likewise.
31955 (LOAD_ARGS_4): Likewise.
31956 (LOAD_ARGS_5): Likewise.
31957 (LOAD_ARGS_6): Likewise.
31958 (LOAD_REGS_0): Likewise.
31959 (LOAD_REGS_1): Likewise.
31960 (LOAD_REGS_2): Likewise.
31961 (LOAD_REGS_3): Likewise.
31962 (LOAD_REGS_4): Likewise.
31963 (LOAD_REGS_5): Likewise.
31964 (LOAD_REGS_6): Likewise.
31965 (ASM_ARGS_0): Likewise.
31966 (ASM_ARGS_1): Likewise.
31967 (ASM_ARGS_2): Likewise.
31968 (ASM_ARGS_3): Likewise.
31969 (ASM_ARGS_4): Likewise.
31970 (ASM_ARGS_5): Likewise.
31971 (ASM_ARGS_6): Likewise.
31972 (LOAD_ARGS_TYPES_1): Likewise.
31973 (LOAD_ARGS_TYPES_2): Likewise.
31974 (LOAD_ARGS_TYPES_3): Likewise.
31975 (LOAD_ARGS_TYPES_4): Likewise.
31976 (LOAD_ARGS_TYPES_5): Likewise.
31977 (LOAD_ARGS_TYPES_6): Likewise.
31978 (LOAD_REGS_TYPES_1): Likewise.
31979 (LOAD_REGS_TYPES_2): Likewise.
31980 (LOAD_REGS_TYPES_3): Likewise.
31981 (LOAD_REGS_TYPES_4): Likewise.
31982 (LOAD_REGS_TYPES_5): Likewise.
31983 (LOAD_REGS_TYPES_6): Likewise.
31984 (TYPEFY): New define.
31985 (ARGIFY): Likewise.
31986 (internal_syscall0): Likewise.
31987 (internal_syscall1): Likewise.
31988 (internal_syscall2): Likewise.
31989 (internal_syscall3): Likewise.
31990 (internal_syscall4): Likewise.
31991 (internal_syscall5): Likewise.
31992 (internal_syscall6): Likewise.
31993 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
31994 (INTERNAL_SYSCALL_NCS): Remove define.
31995 (internal_syscall1): Add define.
31996
31997 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31998
31999 * math/w_remainder_compat.c: Remove duplicate inclusion of
32000 math-svid-compat.h.
32001 * math/w_remainderf_compat.c: Likewise.
32002 * math/w_remainderl_compat.c: Likewise.
32003
32004 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32005
32006 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32007
32008 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32009
32010 [BZ #21684]
32011 * math/tgmath.h (__floating_type): Simplify definitions.
32012 (__real_integer_type): New macro.
32013 (__complex_integer_type): Likewise.
32014 (__expr_is_real): Likewise.
32015 (__tgmath_real_type_sub): Update comment to describe handling of
32016 complex types.
32017 (__tgmath_complex_type_sub): New macro.
32018 (__tgmath_complex_type): Likewise.
32019 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32020 (__TGMATH_CF128): Use __expr_is_real.
32021 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32022 __expr_is_real.
32023 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32024 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32025 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32026 integer types.
32027
32028 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32029
32030 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32031 macro.
32032 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32033 alias.
32034 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32035 Likewise.
32036
32037 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32038 nanosleep_not_cancel with __nanosleep_nocancel.
32039 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32040 (__nanosleep_nocancel): New macro.
32041 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32042 function.
32043 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32044 macro.
32045 (__nanosleep_nocancel): New prototype.
32046
32047 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32048 pause_not_cancel with __pause_nocancel.
32049 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32050 (__pause_nocancel): New macro.
32051 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32052 macro.
32053 (__pause_nocancel): New prototype.
32054 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32055
32056 2017-08-22 Martin Sebor <msebor@redhat.com>
32057
32058 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32059 to return a pointer to the same type as the target function.
32060
32061 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32062
32063 [BZ #18822]
32064 [BZ #21986]
32065 * include/printf.h (__printf_fphex): Add attribute_hidden.
32066 (__guess_grouping): New prototype.
32067 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32068 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32069 libc_hidden_proto and libc_hidden_def.
32070 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32071 (__vstrfmon_l): Remove the third argument passed to
32072 __guess_grouping.
32073
32074 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32075
32076 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32077 definition for issignaling that does not rely on __MATH_TG,
32078 since __MATH_TG uses __builtin_types_compatible_p, which is only
32079 available in C mode.
32080 (CFLAGS-test-math-issignaling.cc): New variable.
32081 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32082 * math/test-math-issignaling.cc: New test for C++ implementation
32083 of type-generic issignaling.
32084 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32085 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32086 options of test-math-issignaling on powerpc64le.
32087
32088 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32089
32090 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32091 building libc.a.
32092 (hidden_proto): Likewise.
32093 (hidden_tls_proto): Likewise.
32094 (__hidden_proto): Likewise.
32095
32096 2017-08-22 Florian Weimer <fweimer@redhat.com>
32097
32098 math: Statically link tests of internal functionality.
32099 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32100 atest-exp2.
32101 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32102 (gmp-objs): Remove assignment.
32103 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32104
32105 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32106
32107 [BZ #21987]
32108 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32109 and copy to ...
32110 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32111 ... here.
32112 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32113 ... and here.
32114
32115 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32116 variable definitions above inclusion of ../Rules.
32117
32118 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32119
32120 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32121 case calling __builtin_unreachable.
32122
32123 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32124
32125 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32126 __waitpid_nocancel.
32127 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32128 (__waitpid_nocancel): New macro.
32129 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32130 macro.
32131 (__waitpid_nocancel): Replace macro with a function.
32132 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32133 function.
32134
32135 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32136 __fcntl_nocancel.
32137 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32138 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32139
32140 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32141 __writev_nocancel_nostatus.
32142 (write_call_graph): Likewise.
32143 (write_bb_counts): Likewise.
32144 * resolv/herror.c (herror): Likewise.
32145 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32146 macro.
32147 (__writev_nocancel_nostatus): New macro.
32148 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32149 Remove macro.
32150 (__writev_nocancel_nostatus): New function.
32151
32152 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32153
32154 Revert:
32155 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32156
32157 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32158 building libc.a.
32159 (hidden_proto): Likewise.
32160 (hidden_tls_proto): Likewise.
32161 (__hidden_proto): Likewise.
32162
32163 [BZ #21973]
32164 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32165 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32166 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32167 Likewise.
32168 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32169 Likewise.
32170 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32171 Likewise.
32172 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32173 Likewise.
32174 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32175 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32176 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32177 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32178 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32179 GLIBC_2.0 sqrtl symbol.
32180
32181 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32182 [__USE_MISC] (_LIB_VERSION): Likewise.
32183 [__USE_MISC] (struct exception): Likewise.
32184 [__USE_MISC] (matherr): Likewise.
32185 [__USE_MISC] (DOMAIN): Likewise.
32186 [__USE_MISC] (SING): Likewise.
32187 [__USE_MISC] (OVERFLOW): Likewise.
32188 [__USE_MISC] (UNDERFLOW): Likewise.
32189 [__USE_MISC] (TLOSS): Likewise.
32190 [__USE_MISC] (PLOSS): Likewise.
32191 [__USE_MISC] (HUGE): Likewise.
32192 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32193 * math/math-svid-compat.h: New file.
32194 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32195 and matherrl.
32196 * include/math.h [!_ISOMAC] (__matherr): Remove.
32197 * manual/arith.texi (FP Exceptions): Do not document matherr.
32198 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32199 (tests-internal): New variable.
32200 (install-lib): Do not add libieee.a.
32201 (non-lib.a): Likewise.
32202 (extra-objs): Do not add libieee.a and ieee-math.o.
32203 (CPPFLAGS-s_lib_version.c): Remove variable.
32204 ($(objpfx)libieee.a): Remove rule.
32205 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32206 * math/ieee-math.c: Remove.
32207 * math/libm-test-support.c (matherr): Remove.
32208 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32209 and license notices. Include <math-svid-compat.h> and
32210 <shlib-compat.h>.
32211 (matherr): Undefine as macro. Use compat_symbol_reference.
32212 (_LIB_VERSION): Likewise.
32213 * math/test-matherr-2.c: New file.
32214 * math/test-matherr-3.c: Likewise.
32215 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32216 declaration.
32217 (__kernel_standard_f): Likewise.
32218 (__kernel_standard_l): Likewise.
32219 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32220 <math_private.h>. Include <math-svid-compat.h>.
32221 (_LIB_VERSION): Undefine as macro.
32222 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32223 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32224 [LIBM_SVID_COMPAT], use compat_symbol.
32225 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32226 <math_private.h>. Include <math-svid-compat.h>.
32227 (matherr): Undefine as macro.
32228 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32229 compat_symbol.
32230 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32231 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32232 compat_symbol_reference.
32233 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32234 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32235 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32236 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32237 (MATHERR_D): Remove declaration.
32238 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32239 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32240 [LIBM_BUILD] (pmatherrf): Likewise.
32241 [LIBM_BUILD] (pmatherr): Likewise.
32242 [LIBM_BUILD] (pmatherrl): Likewise.
32243 (DOMAIN): Likewise.
32244 (SING): Likewise.
32245 (OVERFLOW): Likewise.
32246 (UNDERFLOW): Likewise.
32247 (TLOSS): Likewise.
32248 (PLOSS): Likewise.
32249 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32250 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32251 compat_symbol.
32252 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32253 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32254 compat_symbol.
32255 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32256 * math/w_acos_compat.c: Likewise.
32257 * math/w_acosf_compat.c: Likewise.
32258 * math/w_acosh_compat.c: Likewise.
32259 * math/w_acoshf_compat.c: Likewise.
32260 * math/w_acoshl_compat.c: Likewise.
32261 * math/w_acosl_compat.c: Likewise.
32262 * math/w_asin_compat.c: Likewise.
32263 * math/w_asinf_compat.c: Likewise.
32264 * math/w_asinl_compat.c: Likewise.
32265 * math/w_atan2_compat.c: Likewise.
32266 * math/w_atan2f_compat.c: Likewise.
32267 * math/w_atan2l_compat.c: Likewise.
32268 * math/w_atanh_compat.c: Likewise.
32269 * math/w_atanhf_compat.c: Likewise.
32270 * math/w_atanhl_compat.c: Likewise.
32271 * math/w_cosh_compat.c: Likewise.
32272 * math/w_coshf_compat.c: Likewise.
32273 * math/w_coshl_compat.c: Likewise.
32274 * math/w_exp10_compat.c: Likewise.
32275 * math/w_exp10f_compat.c: Likewise.
32276 * math/w_exp10l_compat.c: Likewise.
32277 * math/w_exp2_compat.c: Likewise.
32278 * math/w_exp2f_compat.c: Likewise.
32279 * math/w_exp2l_compat.c: Likewise.
32280 * math/w_fmod_compat.c: Likewise.
32281 * math/w_fmodf_compat.c: Likewise.
32282 * math/w_fmodl_compat.c: Likewise.
32283 * math/w_hypot_compat.c: Likewise.
32284 * math/w_hypotf_compat.c: Likewise.
32285 * math/w_hypotl_compat.c: Likewise.
32286 * math/w_j0_compat.c: Likewise.
32287 * math/w_j0f_compat.c: Likewise.
32288 * math/w_j0l_compat.c: Likewise.
32289 * math/w_j1_compat.c: Likewise.
32290 * math/w_j1f_compat.c: Likewise.
32291 * math/w_j1l_compat.c: Likewise.
32292 * math/w_jn_compat.c: Likewise.
32293 * math/w_jnf_compat.c: Likewise.
32294 * math/w_jnl_compat.c: Likewise.
32295 * math/w_lgamma_main.c: Likewise.
32296 * math/w_lgamma_r_compat.c: Likewise.
32297 * math/w_lgammaf_main.c: Likewise.
32298 * math/w_lgammaf_r_compat.c: Likewise.
32299 * math/w_lgammal_main.c: Likewise.
32300 * math/w_lgammal_r_compat.c: Likewise.
32301 * math/w_log10_compat.c: Likewise.
32302 * math/w_log10f_compat.c: Likewise.
32303 * math/w_log10l_compat.c: Likewise.
32304 * math/w_log2_compat.c: Likewise.
32305 * math/w_log2f_compat.c: Likewise.
32306 * math/w_log2l_compat.c: Likewise.
32307 * math/w_log_compat.c: Likewise.
32308 * math/w_logf_compat.c: Likewise.
32309 * math/w_logl_compat.c: Likewise.
32310 * math/w_pow_compat.c: Likewise.
32311 * math/w_powf_compat.c: Likewise.
32312 * math/w_powl_compat.c: Likewise.
32313 * math/w_remainder_compat.c: Likewise.
32314 * math/w_remainderf_compat.c: Likewise.
32315 * math/w_remainderl_compat.c: Likewise.
32316 * math/w_scalb_compat.c: Likewise.
32317 * math/w_scalbf_compat.c: Likewise.
32318 * math/w_scalbl_compat.c: Likewise.
32319 * math/w_sinh_compat.c: Likewise.
32320 * math/w_sinhf_compat.c: Likewise.
32321 * math/w_sinhl_compat.c: Likewise.
32322 * math/w_sqrt_compat.c: Likewise.
32323 * math/w_sqrtf_compat.c: Likewise.
32324 * math/w_sqrtl_compat.c: Likewise.
32325 * math/w_tgamma_compat.c: Likewise.
32326 * math/w_tgammaf_compat.c: Likewise.
32327 * math/w_tgammal_compat.c: Likewise.
32328 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32329 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32330 * sysdeps/ieee754/k_standard.c: Likewise.
32331 * sysdeps/ieee754/k_standardf.c: Likewise.
32332 * sysdeps/ieee754/k_standardl.c: Likewise.
32333 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32334 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32335 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32336 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32337 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32338 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32339 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32340 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32341 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32342 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32343 Likewise.
32344 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32345 Likewise.
32346 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32347 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32348 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32349 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32350
32351 2017-08-21 Florian Weimer <fweimer@redhat.com>
32352
32353 [BZ #21864]
32354 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32355 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32356 Move before inclusion of ../Rules.
32357
32358 2017-08-21 Florian Weimer <fweimer@redhat.com>
32359
32360 [BZ #21972]
32361 * assert/assert.h (assert): Use static_cast (bool) for C++.
32362 Use the ternary operator in the warning branch for GNU C.
32363 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32364 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32365 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32366 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32367 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32368
32369 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32370
32371 [BZ #18822]
32372 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32373 (__syscall_clock_gettime): Add attribute_hidden.
32374 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32375 (__start_context): Likewise.
32376
32377 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32378
32379 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32380 building libc.a.
32381 (hidden_proto): Likewise.
32382 (hidden_tls_proto): Likewise.
32383 (__hidden_proto): Likewise.
32384
32385 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32386
32387 * include/libc-symbols.h (attribute_hidden): Enable hidden
32388 visibility in libc.a compiled with PIE.
32389
32390 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32391
32392 [BZ #18822]
32393 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32394 Add attribute_hidden.
32395
32396 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32397
32398 [BZ #21864]
32399 * Makerules (all-nonlib): Add $(others-extras).
32400 * catgets/Makefile (others-extras): New.
32401 * elf/Makefile (others-extras): Likewise.
32402 * nss/Makefile (others-extras): Likewise.
32403
32404 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32405
32406 [BZ #18822]
32407 * csu/libc-start.c (__libc_multiple_libcs): Removed.
32408 * elf/dl-open.c: Include <libc-internal.h>.
32409 (__libc_multiple_libcs): Removed.
32410 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
32411 <hp-timing.h>.
32412 * include/libc-internal.h (__libc_multiple_libcs): New.
32413 * misc/sbrk.c: Include <libc-internal.h>.
32414 (__libc_multiple_libcs): Removed.
32415
32416 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32417
32418 [BZ #18822]
32419 * grp/initgroups.c (__nss_group_database): Removed.
32420 (__nss_initgroups_database): Likewise.
32421 * nscd/gai.c (__nss_hosts_database): Likewise.
32422 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
32423 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
32424 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
32425 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
32426 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
32427 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
32428 attribute_hidden.
32429 * nss/nsswitch.c (__nss_database_custom): Define only if
32430 USE_NSCD is defined.
32431 (__nss_configure_lookup): Use __nss_database_custom only if
32432 USE_NSCD is defined.
32433 * nss/nsswitch.h (__nss_database_custom): Declare only if
32434 USE_NSCD is defined. Add attribute_hidden.
32435 (__nss_setent): Add attribute_hidden.
32436 (__nss_endent): Likewise.
32437 (__nss_getent_r): Likewise.
32438 (__nss_getent): Likewise.
32439 (DEFINE_DATABASE): Declare __nss_##arg##_database.
32440
32441 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32442
32443 [BZ #18822]
32444 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
32445 libc_hidden_proto and libc_hidden_def.
32446
32447 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32448
32449 [BZ #18822]
32450 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
32451 Add libc_hidden_proto.
32452 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
32453 Add libc_hidden_def.
32454
32455 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32456
32457 [BZ #21974]
32458 * gmon/Makefile (routines): Remove bb_init_func and
32459 bb_exit_func.
32460 (elide-routines.os): Removed.
32461 * gmon/bb_exit_func.c: Likewise.
32462 * gmon/bb_init_func.c: Likewise.
32463 * include/sys/gmon.h (__bb): Likewise.
32464 (__bb_init_func): Likewise.
32465 (__bb_exit_func): Likewise.
32466 * sysdeps/alpha/bb_init_func.S: Likewise.
32467
32468 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32469
32470 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
32471 * include/setjmp.h (____longjmp_chk): Here. Add
32472 attribute_hidden.
32473
32474 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
32475
32476 [BZ #18822]
32477 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
32478 attribute_hidden.
32479 (__strspn_sse2): Likewise.
32480
32481 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32482
32483 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
32484 (close_not_cancel_no_status): Likewise.
32485 (__close_nocancel): New macro.
32486 (__close_nocancel_nostatus): Likewise.
32487 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
32488 macro.
32489 (close_not_cancel): Likewise.
32490 (close_not_cancel_no_status): Likewise.
32491 (__close_nocancel): New prototype.
32492 (__close_nocancel_nostatus): New function.
32493 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
32494 * catgets/open_catalog.c (__open_catalog): Replace
32495 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
32496 * gmon/gmon.c (write_gmon): Likewise.
32497 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
32498 * intl/loadmsgcat.c (close): Likewise.
32499 * io/ftw.c (open_dir_stream): Likewise.
32500 (ftw_startup): Likewise.
32501 * libio/fileops.c (_IO_file_open): Likewise.
32502 (_IO_file_close_mmap): Likewise.
32503 (_IO_file_close): Likewise.
32504 * libio/iopopen.c (_IO_dup2): Likewise.
32505 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32506 * locale/loadlocale.c (_nl_load_locale): Likewise.
32507 * login/utmp_file.c (pututline_file): Likewise.
32508 (endutent_file): Likewise.
32509 * misc/daemon.c (daemon): Likewise.
32510 * nscd/nscd_getai.c (__nscd_getai): Likewise.
32511 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32512 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32513 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32514 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32515 * nscd/nscd_helper.c (open_socket): Likewise.
32516 (__nscd_open_socket): Likewise.
32517 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
32518 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
32519 (__nscd_innetgr): Likewise.
32520 * nss/nss_db/db-open.c (internal_setent): Likewise.
32521 * resolv/res-close.c (__res_iclose): Likewise.
32522 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
32523 * sysdeps/posix/closedir.c (__closedir): Likewise.
32524 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
32525 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32526 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32527 (opendir_tail): Likewise.
32528 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32529 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
32530 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
32531 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
32532 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32533 (gethostid): Likewise.
32534 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32535 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32536 Likewise.
32537 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32538 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
32539 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32540 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32541 Likewise.
32542 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
32543 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
32544 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32545 Likewise.
32546 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
32547 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32548 Likewise.
32549 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32550 Likewise.
32551 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32552 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32553 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32554 __close_nocancel.
32555
32556 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
32557 (openat_not_cancel_3): Likewise.
32558 (openat64_not_cancel_3): Likewise).
32559 (openat_not_cancel_3): Likewise).
32560 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
32561 macro.
32562 (openat_not_cancel_3): Likewise.
32563 (openat64_not_cancel): Likewise.
32564 (openat64_not_cancel_3): Likewise.
32565 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
32566 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
32567 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
32568 __open{64}_nocancel.
32569 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32570 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32571 * sysdeps/posix/opendir.c (__opendirat): Likewise.
32572
32573 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32574
32575 [BZ #18822]
32576 * include/argz.h (__argz_create_sep): New function prototype.
32577 (__argz_append): Likewise.
32578 (__argz_add): Likewise.
32579 (__argz_add_sep): Likewise.
32580 (__argz_delete): Likewise.
32581 (__argz_insert): Likewise.
32582 (__argz_replace): Likewise.
32583 * string/argz.h (__argz_create_sep): Removed.
32584 (__argz_append): Likewise.
32585 (__argz_add): Likewise.
32586 (__argz_add_sep): Likewise.
32587 (__argz_delete): Likewise.
32588 (__argz_insert): Likewise.
32589 (__argz_replace): Likewise.
32590
32591 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32592
32593 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
32594 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
32595 (GNU_PROPERTY_STACK_SIZE): Likewie.
32596 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
32597 (GNU_PROPERTY_LOPROC): Likewise.
32598 (GNU_PROPERTY_HIPROC): Likewise.
32599 (GNU_PROPERTY_LOUSER): Likewise.
32600 (GNU_PROPERTY_HIUSER): Likewise.
32601 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
32602 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
32603 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
32604 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
32605 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
32606 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
32607 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
32608 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
32609 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
32610 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
32611 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
32612 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
32613 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
32614 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
32615 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
32616 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
32617 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
32618 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
32619 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
32620 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
32621 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
32622 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
32623 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
32624
32625 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32626
32627 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
32628 in C++ mode.
32629
32630 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32631
32632 [BZ #21930]
32633 * math/math.h (isinf): Check if in C or C++ mode before using
32634 __builtin_types_compatible_p, since this is a C mode feature.
32635
32636 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32637
32638 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
32639 (__write_nocancel): New macro.
32640 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
32641 Rewrite as a function prototype.
32642 (write_not_cancel): Remove macro.
32643 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
32644 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
32645 (write_gmon): Likewise.
32646 * libio/fileops.c (_IO_new_file_write): Likewise.
32647 * login/utmp_file.c (pututline_file): Likewise.
32648 (updwtmp_file): Likewise.
32649 * stdio-common/psiginfo.c (psiginfo): Likewise.
32650 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32651 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32652 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32653 Likewise.
32654 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32655 Likewise.
32656
32657 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
32658 (__read_nocancel): New macro.
32659 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32660 __read_nocancel.
32661 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
32662 macro.
32663 (__read_nocancel): New prototype.
32664 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
32665 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
32666 with __read_nocancel.
32667 * intl/loadmsgcat.c (read): Likewise.
32668 * libio/fileops.c (_IO_file_read): Likewise.
32669 * locale/loadlocale.c (_nl_load_locale): Likewise.
32670 * login/utmp_file.c (getutent_r_file): Likewise.
32671 (internal_getut_r): Likewise.
32672 (getutline_r_file): Likewise.
32673 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32674 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
32675 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32676 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32677 Likewise.
32678 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
32679 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32680 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32681 Likewise.
32682 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32683 Likewise.
32684 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32685 Likewise.
32686 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32687 Likewise.
32688 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32689
32690 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32691
32692 [BZ #21966]
32693 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
32694 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
32695 usable.
32696
32697 2017-08-17 DJ Delorie <dj@redhat.com>
32698
32699 * bug17079.c: Update to new test harness.
32700 * test-digits-dots.c: Likewise.
32701 * test-netdb.c: Likewise.
32702 * tst-field.c: Likewise.
32703 * tst-nss-getpwent.c: Likewise.
32704 * tst-nss-static.c: Likewise.
32705 * tst-nss-test1.c: Likewise.
32706 * tst-nss-test2.c: Likewise.
32707 * tst-nss-test3.c: Likewise.
32708 * tst-nss-test4.c: Likewise.
32709 * tst-nss-test5.c: Likewise.
32710
32711 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32712
32713 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
32714 (open_not_cancel_2): Likewise.
32715 (open_nocancel): New macro.
32716 (open64_nocancel): Likewise.
32717 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
32718 (open_not_cancel_2): Likewise.
32719 (__open_nocancel): New prototype.
32720 (__open64_nocancel): Likewise.
32721 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32722 __open_nocancel.
32723 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
32724 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
32725 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
32726 with __open_nocancel.
32727 * csu/check_fds.c (check_one_fd): Likewise.
32728 * gmon/gmon.c (write_gmon): Likewise.
32729 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
32730 * intl/loadmsgcat.c (open): Likewise.
32731 * libio/fileops.c (_IO_file_open): Likewise.
32732 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32733 * locale/loadlocale.c (_nl_load_locale): Likewise.
32734 * login/utmp_file.c (setutent_file): Likewise.
32735 * misc/daemon.c (daemon): Likewise.
32736 * nss/nss_db/db-open.c (internal_setent): Likewise.
32737 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32738 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
32739 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32740 (__opendir): Likewise.
32741 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32742 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32743 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32744 (gethostid): Likewise.
32745 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32746 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32747 Likewise.
32748 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32749 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
32750 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32751 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32752 Likewise.
32753 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32754 Likewise.
32755 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32756 Likewise.
32757 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
32758 Likewise.
32759 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32760 Likewise.
32761 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32762 Likewise.
32763 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32764 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32765
32766 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
32767
32768 * benchtests/bench-skeleton.c (main): Add support for
32769 latency benchmarking.
32770 * benchtests/scripts/bench.py: Add support for latency benchmarking.
32771
32772 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
32773
32774 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
32775 the startup object.
32776
32777 2017-08-17 Florian Weimer <fweimer@redhat.com>
32778
32779 * include/sys/socket.h (__opensock): Remove internal_function.
32780 * socket/opensock.c (__opensock): Likewise.
32781 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
32782
32783 2017-08-16 Joseph Myers <joseph@codesourcery.com>
32784
32785 [BZ #21944]
32786 * signal/bits/types/__sigval_t.h: New file.
32787 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
32788 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
32789 and define sigval_t using __sigval_t.
32790 * include/bits/types/__sigval_t.h: New file.
32791 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
32792 instead of <bits/types/__sigval_t.h>.
32793 (struct sigevent): Use __sigval_t instead of sigval_t.
32794 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
32795 instead of <bits/types/__sigval_t.h>.
32796 (siginfo_t): Use __sigval_t instead of sigval_t.
32797 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
32798 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
32799 (struct sigevent): Use __sigval_t instead of sigval_t.
32800 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
32801 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
32802 (siginfo_t): Use __sigval_t instead of sigval_t.
32803 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
32804
32805 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32806
32807 * NEWS: Remove "[Add new features here]" for 2.27.
32808
32809 2017-08-16 Joseph Myers <joseph@codesourcery.com>
32810
32811 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
32812 libc.so.
32813
32814 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32815
32816 * NEWS: Mention x86-64 FMA optimization.
32817
32818 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32819
32820 [BZ #21912]
32821 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32822 Add e_expf-fma.
32823 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
32824 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
32825 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
32826
32827 2017-08-16 Andreas Schwab <schwab@suse.de>
32828
32829 [BZ #16750]
32830 CVE-2009-5064
32831 * elf/ldd.bash.in: Never run file directly.
32832
32833 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
32834
32835 [BZ #21955]
32836 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
32837 (L(SP_INF_0)): Likewise.
32838
32839 2017-08-15 Florian Weimer <fweimer@redhat.com>
32840
32841 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
32842 run-built-tests.
32843
32844 2017-08-15 Florian Weimer <fweimer@redhat.com>
32845
32846 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
32847 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
32848 BROKEN_THREAD_SIGNALS code.
32849 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
32850 request_list): Remove caller_pid member used for
32851 BROKEN_THREAD_SIGNALS.
32852 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
32853 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32854 Remove BROKEN_THREAD_SIGNALS support.
32855 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
32856 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
32857
32858 2017-08-15 Florian Weimer <fweimer@redhat.com>
32859
32860 * gmon/Makefile (tests): Add tst-gmon.
32861 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
32862 Set.
32863 (tests-special): Add tst-gmon-prof.out.
32864 (tst-gmon.out): Depend on clean-tst-gmon-data.
32865 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
32866 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
32867 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
32868 startup object.
32869 * aclocal.m4 (GPROF): Set and substitute.
32870 * config.amke.in (GPROF): Set.
32871 * configure: Regenerate.
32872
32873 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
32874
32875 * elf/elf.h A (NT_PPC_TAR): New macro.
32876 (NT_PPC_PPR): Likewise.
32877 (NT_PPC_DSCR): Likewise.
32878 (NT_PPC_EBB): Likewise.
32879 (NT_PPC_PMU): Likewise.
32880 (NT_PPC_TM_CGPR): Likewise.
32881 (NT_PPC_TM_CFPR): Likewise.
32882 (NT_PPC_TM_CVMX): Likewise.
32883 (NT_PPC_TM_CVSX): Likewise.
32884 (NT_PPC_TM_SPR): Likewise.
32885 (NT_PPC_TM_CTAR): Likewise.
32886 (NT_PPC_TM_CPPR): Likewise.
32887 (NT_PPC_TM_CDSCR): Likewise.
32888
32889 2017-08-15 Florian Weimer <fweimer@redhat.com>
32890
32891 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
32892 regparm (2) instead of internal_function.
32893 (_MCOUNT_DECL): Adjust.
32894
32895 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
32896
32897 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
32898 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
32899
32900 2017-08-14 Joseph Myers <joseph@codesourcery.com>
32901
32902 * conform/data/sys/wait.h-data (si_value): Do not expect for
32903 XPG42.
32904
32905 2017-08-14 Florian Weimer <fweimer@redhat.com>
32906
32907 [BZ #21962]
32908 NSS: Create stubs for accidentally exported lookup functions.
32909 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
32910 Remove declaration.
32911 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
32912 (ether_hostton): Call __nss_ethers_lookup2 instead.
32913 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
32914 (ether_ntohost): Call __nss_ethers_lookup2 instead.
32915 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
32916 (setup): Call __nss_netgroup_lookup2 instead.
32917 * nss/Makefile (routines): Add compat-lookup.
32918 * nss/Versions (GLIBC_2.27): Add symbol version.
32919 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
32920 (DB_COMPAT_FCT): Remove.
32921 * nss/compat-lookup.c: New file.
32922 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
32923 from databases.def.
32924 * nss/service-lookup.c (NO_COMPAT): Remove definition.
32925 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
32926 (netname2user): Call __nss_publickey_lookup2 instead.
32927 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
32928 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
32929 instead.
32930
32931 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32932 Sergei Trofimovich <slyfox@inbox.ru>
32933
32934 [BZ #21908]
32935 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
32936 Rename to MMAP2_PAGE_UNIT.
32937 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
32938 __OFF_T_MATCHES_OFF64_T is not defined.
32939 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
32940 uint64_t.
32941 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
32942 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
32943
32944 2017-08-14 Florian Weimer <fweimer@redhat.com>
32945
32946 i386: Do not set internal_function.
32947 * config.h.in (USE_REGPARMS, internal_function): Remove.
32948 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
32949 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
32950
32951 2017-08-14 Florian Weimer <fweimer@redhat.com>
32952
32953 * elf/dl-init.c (_dl_init): Remove internal_function.
32954 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
32955 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
32956
32957 2017-08-14 Florian Weimer <fweimer@redhat.com>
32958
32959 * elf/rtld.c (_dl_start): Remove internal_function.
32960 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
32961 _dl_start.
32962
32963 2017-08-14 Florian Weimer <fweimer@redhat.com>
32964
32965 * elf/dl-fini.c (_dl_fini): Remove internal_function
32966 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32967
32968 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
32969
32970 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
32971 (bit_cpu_SHSTK): Likewise.
32972 (index_cpu_IBT): Likewise.
32973 (index_cpu_SHSTK): Likewise.
32974 (reg_IBT): Likewise.
32975 (reg_SHSTK): Likewise.
32976 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
32977 Handle index_cpu_IBT and index_cpu_SHSTK.
32978
32979 2017-08-14 Mike FABIAN <mfabian@redhat.com>
32980
32981 [BZ #19982]
32982 * po/fr.po: Fix spelling mistake.
32983
32984 2017-08-13 Florian Weimer <fweimer@redhat.com>
32985
32986 * elf/dl-addr.c (_dl_addr): Remove internal_function.
32987 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
32988 (_dl_catch_error, _dl_receive_error): Likewise.
32989 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
32990 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
32991 (_dl_deallocate_tls): Likewise.
32992 * include/dlfcn.h (_dl_addr): Likewise.
32993 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
32994 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
32995 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
32996 Likewise.
32997
32998 2017-08-13 Florian Weimer <fweimer@redhat.com>
32999
33000 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33001 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33002 internal_function.
33003 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33004
33005 2017-08-13 Florian Weimer <fweimer@redhat.com>
33006
33007 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33008 internal_function.
33009 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33010 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33011 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33012 internal_function from _dl_make_stack_executable_hook member.
33013 (_dl_make_stack_executable): Remove internal_function.
33014 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33015 Likewise.
33016 * sysdeps/unix/sysv/linux/dl-execstack.c
33017 (_dl_make_stack_executable): Likewise.
33018
33019 2017-08-13 Florian Weimer <fweimer@redhat.com>
33020
33021 * sysdeps/unix/sysv/linux/netlinkaccess.h
33022 (__netlink_assert_response): Remove internal_function.
33023 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33024 (__netlink_assert_response): Likewise.
33025
33026 2017-08-13 Florian Weimer <fweimer@redhat.com>
33027
33028 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33029 internal_function.
33030 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33031
33032 2017-08-13 Florian Weimer <fweimer@redhat.com>
33033
33034 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33035 internal_function.
33036 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33037 * inet/netgroup.h (__internal_setnetgrent)
33038 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33039 * inet/getnetgrent_r.c (__internal_setnetgrent)
33040 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33041 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33042 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33043 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33044 * nss/nsswitch.h (db_lookup_function): Likewise.
33045
33046 2017-08-13 Florian Weimer <fweimer@redhat.com>
33047
33048 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33049 Remove internal_function.
33050 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33051 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33052 message argument on the stack.
33053 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33054 Likeweise.
33055
33056 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33057
33058 Adapt test case data to the changes in the thousands
33059 separators.
33060
33061 [BZ #20756]
33062 * localedata/tst-langinfo.sh: Adapt test case data.
33063 * stdlib/tst-strfmon_l.c: Likewise.
33064 * stdlib/tst-strtod4.c: Likewise.
33065 * stdlib/tst-strtod5i.c: Likewise.
33066
33067 2017-08-11 Florian Weimer <fweimer@redhat.com>
33068
33069 [BZ #21242]
33070 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33071 Suppress pedantic warning resulting from statement expression.
33072 (__ASSERT_FUNCTION): Add missing __extension__.
33073
33074 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33075
33076 * benchtests/bench-memmove-large.c: Print output in JSON
33077 format.
33078 * benchtests/bench-memmove.c: Likewise.
33079
33080 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33081 * benchtests/bench-memchr.c (do_one_test): Likewise.
33082 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33083 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33084 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33085 * benchtests/bench-memmove.c (do_one_test): Likewise.
33086 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33087 * benchtests/bench-memset.c (do_one_test): Likewise.
33088 * benchtests/bench-string.h (test_init): Remove memsets.
33089
33090 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33091
33092 * manual/lang.texi
33093 (Computing the Width of an Integer Data Type): Rename section to
33094 "Width of an Integer Type". Remove inaccurate statement regarding
33095 lack of C language facilities for determining width of integer
33096 types, and reorder content to improve flow and context of
33097 discussion.
33098
33099 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33100
33101 * lang.texi (va_copy): Change standard from ISO to C99.
33102 (__va_copy): Add standard and header annotation.
33103 Update description for clarity of origins and current use.
33104
33105 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33106
33107 [BZ #21941]
33108 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33109 xssqrtqp requires operands to be in Vector Registers
33110 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33111 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33112 (__ieee754_sqrtf128): Likewise.
33113
33114 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33115
33116 * sysdeps/aarch64/memcmp.S (memcmp):
33117 Rewrite of optimized memcmp.
33118
33119 2017-08-10 Florian Weimer <fweimer@redhat.com>
33120
33121 Introduce ld.so exceptions.
33122 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33123 (_dl_exception_create, _dl_exception_create_format)
33124 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33125 (_dl_catch_exception): Declare.
33126 (_dl_catch_error): Update comment.
33127 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33128 errstring, malloced members with exception member.
33129 (_dl_out_of_memory): Remove.
33130 (fatal_error): New function, extracted from _dl_signal_error.
33131 (_dl_signal_exception, _dl_signal_cexception): New functions.
33132 (_dl_signal_error): Call _dl_exception_create to allocate an
33133 exception object.
33134 (_dl_catch_exception): New function, based on _dl_catch_error.
33135 (_dl_catch_error): Implement using _dl_catch_exception.
33136 * elf/dl-exception.c: New file.
33137 * elf/Makefile (dl-routines): Add dl-exception.
33138 (elide-routines.os): Likewise.
33139 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33140 _dl_exception_create_format, _dl_exception_free.
33141 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33142 _dl_signal_exception.
33143 * elf/dl-lookup.c (make_string): Remove.
33144 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33145 _dl_signal_cexception, _dl_exception_free.
33146 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33147 _dl_signal_exception.
33148 * elf/dl-sym.c (do_sym): Likewise.
33149 * elf/dl-version.c (make_string): Remove.
33150 (match_symbol): Use _dl_exception_create_format,
33151 _dl_signal_cexception, _dl_exception_free.
33152 (_dl_check_map_versions): Likewise.
33153 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33154 _dl_catch_exception.
33155 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33156 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33157 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33158 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33159 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33160 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33161 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33162 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33163 Likewise.
33164 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33166 (ld.so): Likewise.
33167 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33168 (ld.so): Likewise.
33169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33170 Likewise.
33171 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33172 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33173 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33174 Likewise.
33175 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33176 Likewise.
33177 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33178
33179 2017-08-10 Florian Weimer <fweimer@redhat.com>
33180
33181 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33182 attribute_hidden, internal_function.
33183 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33184 internal_function.
33185
33186 2017-08-10 Florian Weimer <fweimer@redhat.com>
33187
33188 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33189 function which calls __builtin_unreachable.
33190
33191 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33192
33193 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33194 Indian monetary formatting
33195 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33196 test cases.
33197
33198 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33199
33200 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33201 Fix typo in comment.
33202
33203 [BZ #21928]
33204 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33205 PTRACE_SEIZE_DEVEL): Remove.
33206 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33207 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33208 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33209 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33210 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33211
33212 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33213
33214 * posix/bits/types.h (__qaddr_t): Remove.
33215
33216 [BZ #21457]
33217 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33218 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33219 __glibc_reserved1.
33220 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33221 (ucontext_t): Use __ctx with uc_flags.
33222 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33223 (__ctxt): Likewise.
33224 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33225 __glibc_reserved1.
33226 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33227 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33228 __glibc_reserved1.
33229 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33230 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33231 __glibc_reserved1.
33232 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33233 macro.
33234 (ucontext_t): Use __ctx with uc_flags.
33235 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33236 (ucontext_t): Use __ctx with uc_flags.
33237 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33238 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33239 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33240 (ucontext_t): Use __ctx with uc_flags.
33241 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33242 undefine further down.
33243 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33244 __glibc_reserved1.
33245 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33246 undefine further down.
33247 (ucontext_t): Use __ctx with uc_flags.
33248 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33249 undefine further down.
33250 (ucontext_t): Use __ctx with uc_flags.
33251 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33252 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33253 Rename uc_pad to __glibc_reserved1.
33254 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33255 undefine further down.
33256 (ucontext_t): Use __ctx with uc_flags.
33257 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33258 further down.
33259 (ucontext_t): Use __ctx with uc_flags.
33260 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33261 __ctx with uc_flags.
33262 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33263 (ucontext_t): Use __ctx with uc_flags.
33264 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33265 __ctx with uc_flags.
33266
33267 2017-08-09 Florian Weimer <fweimer@redhat.com>
33268
33269 [BZ #21932]
33270 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33271 before early return.
33272
33273 2017-08-09 Andreas Schwab <schwab@suse.de>
33274
33275 [BZ #21041]
33276 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33277 renamed alias.
33278
33279 [BZ #21041]
33280 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33281 tst-compat-forwarder.
33282 (modules-names): Add tst-compat-forwarder-mod.
33283 ($(objpfx)tst-compat-forwarder): Depend on
33284 $(objpfx)tst-compat-forwarder-mod.so.
33285 * nptl/tst-compat-forwarder.c: New file.
33286 * nptl/tst-compat-forwarder-mod.c: New file.
33287
33288 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33289
33290 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33291 comments.
33292
33293 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33294 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33295 memcpy_falkor.
33296 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33297 Bump.
33298 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33299 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33300 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33301 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33302 Add falkor.
33303 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33304 New macro.
33305
33306 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33307
33308 [BZ #759]
33309 * manual/setjmp.texi (getcontex): Document uc_stack value
33310 compatibility differences.
33311
33312 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33313
33314 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33315 (old_malloc_hook): Likewise.
33316 (old_memalign_hook): Likewise.
33317 (old_realloc_hook): Likewise.
33318 (struct hdr): Likewise.
33319 (flood): Likewise.
33320 (freehook): Likewise.
33321 (mallochook): Likewise.
33322 (memalignhook): Likewise.
33323 (reallochook): Likewise.
33324 (mprobe): Likewise.
33325 * malloc/mtrace.c (mallwatch): Likewise.
33326 (tr_old_free_hook): Likewise.
33327 (tr_old_malloc_hook): Likewise.
33328 (tr_old_realloc_hook): Likewise.
33329 (tr_old_memalign_hook): Likewise.
33330 (tr_where): Likewise.
33331 (lock_and_info): Likewise.
33332 (tr_freehook): Likewise.
33333 (tr_mallochook): Likewise.
33334 (tr_reallochook): Likewise.
33335 (tr_memalignhook): Likewise.
33336 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33337 * misc/mmap.c (__mmap): Likewise.
33338 * misc/mmap64.c (__mmap64): Likewise.
33339 * misc/mprotect.c (__mprotect): Likewise.
33340 * misc/msync.c (msync): Likewise.
33341 * misc/munmap.c (__munmap): Likewise.
33342 * posix/posix_madvise.c (posix_madvise): Likewise.
33343 * socket/send.c (__send): Likewise.
33344 * socket/sendto.c (__sendto): Likewise.
33345 * socket/setsockopt.c (__setsockopt): Likewise.
33346 * string/memcmp.c (__ptr_t): Remove macro.
33347 (MEMCMP): Use void * instead of ptr_t.
33348 * string/memrchr.c (__ptr_t): Remove macro.
33349 (__memrchr): Use void * instead of ptr_t.
33350 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33351 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33352 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33353 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33354 * sysdeps/mach/msync.c (msync): Likewise.
33355 * sysdeps/mach/munmap.c (__munmap): Likewise.
33356 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33357 Likewise.
33358 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33359 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33360 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33361 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33362 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33363 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33364 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33365 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33366 Likewise.
33367 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33368 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33369 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33370 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33371 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33372 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33373 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33374 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33375 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33376 Likewise.
33377 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33378 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33379 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33380 (MEMCMP): Use void * instead of ptr_t.
33381 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33382 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33383
33384 2017-08-08 Florian Weimer <fweimer@redhat.com>
33385
33386 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33387 return statement.
33388
33389 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33390
33391 [BZ #21913]
33392 * csu/libc-tls.c: Include <startup.h> first.
33393 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33394 * elf/dl-tunables.c: Include <startup.h> first.
33395 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33396 * sysdeps/generic/startup.h: New file.
33397 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33398 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
33399 (I386_USE_SYSENTER): New. Defined to 0.
33400
33401 2017-08-08 Andreas Schwab <schwab@suse.de>
33402
33403 [BZ #21041]
33404 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
33405 * nptl/pt-system.c (system): Likewise.
33406
33407 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33408
33409 [BZ #21780]
33410 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
33411 EOPNOTSUPP.
33412 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
33413 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
33414 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
33415 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
33416 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
33417 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
33418 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
33419
33420 2017-08-07 Joseph Myers <joseph@codesourcery.com>
33421
33422 [BZ #21899]
33423 * bits/sigaction.h (struct sigaction): Define sa_handler and
33424 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
33425 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33426 [__USE_XOPEN_EXTENDED].
33427 (SA_RESTART): Likewise.
33428 (SA_NODEFER): Likewise.
33429 (SA_RESETHAND): Likewise.
33430 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
33431 (struct sigaction): Define sa_handler and sa_sigaction using union
33432 also for [__USE_XOPEN_EXTENDED].
33433 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33434 [__USE_XOPEN_EXTENDED].
33435 (SA_RESTART): Likewise.
33436 (SA_NODEFER): Likewise.
33437 (SA_RESETHAND): Likewise.
33438 * sysdeps/unix/sysv/linux/bits/sigaction.h
33439 (struct sigaction): Define sa_handler and sa_sigaction using union
33440 also for [__USE_XOPEN_EXTENDED].
33441 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33442 [__USE_XOPEN_EXTENDED].
33443 (SA_RESTART): Likewise.
33444 (SA_NODEFER): Likewise.
33445 (SA_RESETHAND): Likewise.
33446 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
33447 (struct sigaction): Define sa_handler and sa_sigaction using union
33448 also for [__USE_XOPEN_EXTENDED].
33449 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33450 [__USE_XOPEN_EXTENDED].
33451 (SA_RESTART): Likewise.
33452 (SA_NODEFER): Likewise.
33453 (SA_RESETHAND): Likewise.
33454 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
33455 (struct sigaction): Define sa_handler and sa_sigaction using union
33456 also for [__USE_XOPEN_EXTENDED].
33457 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33458 [__USE_XOPEN_EXTENDED].
33459 (SA_RESTART): Likewise.
33460 (SA_NODEFER): Likewise.
33461 (SA_RESETHAND): Likewise.
33462 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
33463 (struct sigaction): Define sa_handler and sa_sigaction using union
33464 also for [__USE_XOPEN_EXTENDED].
33465 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33466 [__USE_XOPEN_EXTENDED].
33467 (SA_RESTART): Likewise.
33468 (SA_NODEFER): Likewise.
33469 (SA_RESETHAND): Likewise.
33470 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
33471 (struct sigaction): Define sa_handler and sa_sigaction using union
33472 also for [__USE_XOPEN_EXTENDED].
33473 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33474 [__USE_XOPEN_EXTENDED].
33475 (SA_RESTART): Likewise.
33476 (SA_NODEFER): Likewise.
33477 (SA_RESETHAND): Likewise.
33478 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33479 (struct sigaction): Define sa_handler and sa_sigaction using union
33480 also for [__USE_XOPEN_EXTENDED].
33481 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33482 [__USE_XOPEN_EXTENDED].
33483 (SA_RESTART): Likewise.
33484 (SA_NODEFER): Likewise. Define directly rather than as alias.
33485 (SA_RESETHAND): Likewise.
33486 (SA_INTERRUPT): Define only for [__USE_MISC].
33487 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
33488 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
33489 [__USE_MISC].
33490 (SA_STACK): Define only for [__USE_MISC].
33491 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
33492 (struct sigaction): Define sa_handler and sa_sigaction using union
33493 also for [__USE_XOPEN_EXTENDED].
33494 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33495 [__USE_XOPEN_EXTENDED].
33496 (SA_RESTART): Likewise.
33497 (SA_NODEFER): Likewise.
33498 (SA_RESETHAND): Likewise.
33499 (SA_NOPTRACE): Define only for [__USE_MISC].
33500
33501 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
33502 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
33503 (struct catalog_info): Likewise.
33504 * inet/htontest.c (lo): Likewise.
33505 (foo): Likewise.
33506 * inet/inet_lnaof.c (inet_lnaof): Likewise.
33507 * inet/inet_net.c (inet_network): Likewise.
33508 * inet/inet_netof.c (inet_netof): Likewise.
33509 * inet/rcmd.c (__ivaliduser): Likewise.
33510 (iruserok): Likewise.
33511 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
33512 * locale/programs/locale-spec.c (locale_special): Likewise.
33513 * nis/nis_findserv.c (struct findserv_req): Likewise.
33514 (__nis_findfastest_with_timeout): Likewise.
33515 * nss/test-netdb.c (test_network): Likewise.
33516 * resolv/inet_neta.c (inet_neta): Likewise.
33517 * resolv/ns_date.c (ns_datetosecs): Likewise.
33518 (SECS_PER_DAY): Likewise.
33519 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
33520 Likewise.
33521 * resolv/res_comp.c (__putlong): Likewise.
33522 (__putshort): Likewise.
33523 (_getlong): Likewise.
33524 (_getshort): Likewise.
33525 * resolv/res_debug.c (p_time): Likewise.
33526 (precsize_ntoa): Likewise.
33527 (precsize_aton): Likewise.
33528 (latlon2ul): Likewise.
33529 (loc_aton): Likewise.
33530 (loc_ntoa): Likewise.
33531 * resolv/res_hconf.c (struct netaddr): Likewise.
33532 (_res_hconf_reorder_addrs): Likewise.
33533 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
33534 (clnttcp_control): Likewise.
33535 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
33536 (clntudp_control): Likewise.
33537 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
33538 (clntunix_control): Likewise.
33539 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
33540 * sunrpc/rpc/auth.h (union des_block): Likewise.
33541 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
33542 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
33543 (xdrrec_create): Likewise.
33544 (xdrrec_endofrecord): Likewise.
33545 (flush_out): Likewise.
33546 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
33547 (xdrstdio_putlong): Likewise.
33548 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
33549 Likewise.
33550
33551 * misc/sys/cdefs.h (__long_double_t): Remove.
33552 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
33553 instead of __long_double_t,
33554 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
33555
33556 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
33557
33558 * benchtests/scripts/compare_strings.py: Avoid display error when
33559 running on a text terminal.
33560
33561 * benchtests/scripts/compare_strings.py (main): Add an
33562 optional -base option.
33563 (process_results): New argument base_func.
33564
33565 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
33566 hardcoding memcpy.
33567 * benchtests/bench-memcpy-large.c (test_name): Likewise.
33568 * benchtests/bench-memcpy-random.c (test_name): Likewise.
33569
33570 2017-08-07 Andreas Schwab <schwab@suse.de>
33571
33572 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
33573 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
33574 * intl/Makefile ($(objpfx)tst-gettext.out)
33575 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
33576 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
33577 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
33578 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
33579 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
33580 * posix/Makefile ($(objpfx)globtest.out)
33581 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
33582 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
33583 ($(objpfx)tst-printf.out): Likewise.
33584 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
33585 ($(objpfx)tst-setcontext3.out): Likewise.
33586
33587 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
33588
33589 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33590 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
33591 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
33592 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
33593 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
33594 and mptan-fma.
33595 (CFLAGS-doasin-fma.c): New.
33596 (CFLAGS-dosincos-fma.c): Likewise.
33597 (CFLAGS-e_asin-fma.c): Likewise.
33598 (CFLAGS-e_atan2-fma.c): Likewise.
33599 (CFLAGS-e_exp-fma.c): Likewise.
33600 (CFLAGS-e_log-fma.c): Likewise.
33601 (CFLAGS-e_pow-fma.c): Likewise.
33602 (CFLAGS-halfulp-fma.c): Likewise.
33603 (CFLAGS-mpa-fma.c): Likewise.
33604 (CFLAGS-mpatan-fma.c): Likewise.
33605 (CFLAGS-mpatan2-fma.c): Likewise.
33606 (CFLAGS-mpexp-fma.c): Likewise.
33607 (CFLAGS-mplog-fma.c): Likewise.
33608 (CFLAGS-mpsqrt-fma.c): Likewise.
33609 (CFLAGS-mptan-fma.c): Likewise.
33610 (CFLAGS-s_atan-fma.c): Likewise.
33611 (CFLAGS-sincos32-fma.c): Likewise.
33612 (CFLAGS-slowexp-fma.c): Likewise.
33613 (CFLAGS-slowpow-fma.c): Likewise.
33614 (CFLAGS-s_sin-fma.c): Likewise.
33615 (CFLAGS-s_tan-fma.c): Likewise.
33616 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
33617 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
33618 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
33619 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
33620 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
33621 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
33622 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
33623 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
33624 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
33625 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
33626 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
33627 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
33628 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
33629 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
33630 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
33631 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
33632 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
33633 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
33634 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
33635 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
33636 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
33637 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
33638 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
33639 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
33640 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
33641 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
33642 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
33643 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
33644 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
33645 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
33646 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
33647
33648 2017-08-04 Joseph Myers <joseph@codesourcery.com>
33649
33650 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
33651 (min_of_type_f): New macro.
33652 (min_of_type_): Likewise.
33653 (min_of_type_l): Likewise.
33654 (min_of_type_f128): Likewise.
33655 (min_of_type): Define using __MATH_TG and taking an expression
33656 argument.
33657 (math_check_force_underflow): Pass expression instead of type to
33658 min_of_type.
33659 (math_check_force_underflow_nonneg): Likewise.
33660
33661 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33662
33663 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33664 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
33665 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
33666
33667 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33668
33669 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33670 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
33671 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
33672 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
33673 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
33674 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
33675 memcpy_chk-nonshared, mempcpy_chk-nonshared,
33676 memmove_chk-nonshared and memset_chk-nonshared
33677 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
33678 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
33679 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
33680 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
33681 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
33682 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
33683 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
33684 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
33685 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
33686 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
33687 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
33688 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
33689 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
33690 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
33691 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
33692 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
33693 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
33694 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
33695 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
33696 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
33697 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
33698 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
33699 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
33700 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
33701 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
33702 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
33703 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
33704 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
33705 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
33706 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
33707 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
33708 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
33709 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
33710 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
33711 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
33712 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
33713 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
33714 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
33715 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
33716 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
33717 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
33718 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
33719 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
33720 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
33721 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
33722 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
33723 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
33724 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
33725 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
33726 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
33727 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
33728 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
33729 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
33730 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
33731 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
33732 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
33733 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
33734 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
33735 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
33736 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
33737 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
33738 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
33739 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
33740 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
33741 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
33742 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
33743 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
33744 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
33745 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
33746 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
33747 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
33748 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
33749 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
33750 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
33751 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
33752 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
33753 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
33754 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
33755 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
33756 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
33757 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
33758 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
33759 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
33760 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
33761 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
33762 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
33763 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
33764 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
33765 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
33766 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
33767 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
33768 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
33769 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
33770 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
33771 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
33772 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
33773 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
33774 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
33775 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
33776 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
33777 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
33778 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
33779 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
33780 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
33781 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
33782 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
33783 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
33784 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
33785
33786 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33787
33788 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
33789 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
33790 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
33791 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
33792 svml_d_log2_core-sse2, svml_d_log4_core-sse,
33793 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
33794 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
33795 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
33796 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
33797 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
33798 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
33799 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
33800 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
33801 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
33802 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
33803 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
33804 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
33805 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
33806 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
33807 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
33808 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
33809 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
33810 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
33811 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
33812 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
33813 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
33814 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
33815 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
33816 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
33817 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
33818 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
33819 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
33820 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
33821 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
33822 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
33823 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
33824 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
33825 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
33826 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
33827 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
33828 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
33829 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
33830 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
33831 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
33832 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
33833 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
33834 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
33835 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
33836 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
33837 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
33838 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
33839 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
33840 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
33841 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
33842 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
33843 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
33844 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
33845 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
33846 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
33847 ...
33848 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
33849 Don't include <sysdep.h> nor <init-arch.h>.
33850 (_ZGVbN2v_cos): Removed.
33851 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
33852 ...
33853 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
33854 Don't include <sysdep.h> nor <init-arch.h>.
33855 (_ZGVdN4v_cos): Removed.
33856 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
33857 ...
33858 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
33859 Don't include <sysdep.h> nor <init-arch.h>.
33860 (_ZGVeN8v_cos): Removed.
33861 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
33862 ...
33863 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
33864 Don't include <sysdep.h> nor <init-arch.h>.
33865 (_ZGVbN2v_exp): Removed.
33866 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
33867 ...
33868 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
33869 Don't include <sysdep.h> nor <init-arch.h>.
33870 (_ZGVdN4v_exp): Removed.
33871 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
33872 ...
33873 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
33874 Don't include <sysdep.h> nor <init-arch.h>.
33875 (_ZGVeN8v_exp): Removed.
33876 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
33877 ...
33878 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
33879 Don't include <sysdep.h> nor <init-arch.h>.
33880 (_ZGVbN2v_log): Removed.
33881 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
33882 ...
33883 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
33884 Don't include <sysdep.h> nor <init-arch.h>.
33885 (_ZGVdN4v_log): Removed.
33886 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
33887 ...
33888 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
33889 Don't include <sysdep.h> nor <init-arch.h>.
33890 (_ZGVeN8v_log): Removed.
33891 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
33892 ...
33893 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
33894 Don't include <sysdep.h> nor <init-arch.h>.
33895 (_ZGVbN2vv_pow): Removed.
33896 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
33897 ...
33898 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
33899 Don't include <sysdep.h> nor <init-arch.h>.
33900 (_ZGVdN4vv_pow): Removed.
33901 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
33902 ...
33903 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
33904 Don't include <sysdep.h> nor <init-arch.h>.
33905 (_ZGVeN8vv_pow): Removed.
33906 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
33907 ...
33908 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
33909 Don't include <sysdep.h> nor <init-arch.h>.
33910 (_ZGVbN2v_sin): Removed.
33911 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
33912 ...
33913 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
33914 Don't include <sysdep.h> nor <init-arch.h>.
33915 (_ZGVbN4v_sin): Removed.
33916 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
33917 ...
33918 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
33919 Don't include <sysdep.h> nor <init-arch.h>.
33920 (_ZGVbN8v_sin): Removed.
33921 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
33922 ...
33923 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
33924 Don't include <sysdep.h> nor <init-arch.h>.
33925 (_ZGVbN2vvv_sincos): Removed.
33926 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
33927 ...
33928 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
33929 Don't include <sysdep.h> nor <init-arch.h>.
33930 (_ZGVdN4vvv_sincos): Removed.
33931 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
33932 ...
33933 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
33934 Don't include <sysdep.h> nor <init-arch.h>.
33935 (_ZGVeN8vvv_sincos): Removed.
33936 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
33937 ...
33938 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
33939 Don't include <sysdep.h> nor <init-arch.h>.
33940 (_ZGVeN16v_cosf): Removed.
33941 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
33942 ...
33943 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
33944 Don't include <sysdep.h> nor <init-arch.h>.
33945 (_ZGVbN4v_cosf): Removed.
33946 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
33947 ...
33948 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
33949 Don't include <sysdep.h> nor <init-arch.h>.
33950 (_ZGVdN8v_cosf): Removed.
33951 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
33952 ...
33953 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
33954 Don't include <sysdep.h> nor <init-arch.h>.
33955 (_ZGVeN16v_expf): Removed.
33956 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
33957 ...
33958 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
33959 Don't include <sysdep.h> nor <init-arch.h>.
33960 (_ZGVbN4v_expf): Removed.
33961 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
33962 ...
33963 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
33964 Don't include <sysdep.h> nor <init-arch.h>.
33965 (_ZGVdN8v_expf): Removed.
33966 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
33967 ...
33968 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
33969 Don't include <sysdep.h> nor <init-arch.h>.
33970 (_ZGVeN16v_logf): Removed.
33971 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
33972 ...
33973 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
33974 Don't include <sysdep.h> nor <init-arch.h>.
33975 (_ZGVbN4v_logf): Removed.
33976 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
33977 ...
33978 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
33979 Don't include <sysdep.h> nor <init-arch.h>.
33980 (_ZGVdN8v_logf): Removed.
33981 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
33982 ...
33983 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
33984 Don't include <sysdep.h> nor <init-arch.h>.
33985 (_ZGVeN16vv_powf): Removed.
33986 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
33987 ...
33988 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
33989 Don't include <sysdep.h> nor <init-arch.h>.
33990 (_ZGVbN4vv_powf): Removed.
33991 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
33992 ...
33993 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
33994 Don't include <sysdep.h> nor <init-arch.h>.
33995 (_ZGVdN8vv_powf): Removed.
33996 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
33997 ...
33998 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
33999 Don't include <sysdep.h> nor <init-arch.h>.
34000 (_ZGVeN16vvv_sincosf): Removed.
34001 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34002 ...
34003 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34004 Don't include <sysdep.h> nor <init-arch.h>.
34005 (_ZGVbN4vvv_sincosf): Removed.
34006 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34007 ...
34008 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34009 Don't include <sysdep.h> nor <init-arch.h>.
34010 (_ZGVdN8vvv_sincosf): Removed.
34011 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34012 ...
34013 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34014 Don't include <sysdep.h> nor <init-arch.h>.
34015 (_ZGVeN16v_sinf): Removed.
34016 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34017 ...
34018 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34019 Don't include <sysdep.h> nor <init-arch.h>.
34020 (_ZGVbN4v_sinf): Removed.
34021 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34022 ...
34023 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34024 Don't include <sysdep.h> nor <init-arch.h>.
34025 (_ZGVdN8v_sinf): Removed.
34026
34027 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34028
34029 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34030 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34031 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34032 s_rint-sse4_1 and s_rintf-sse4_1.
34033 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34034 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34035 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34036 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34037 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34038 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34039 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34040 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34041 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34042 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34043 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34044 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34045 (__ceil): Removed.
34046 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34047 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34048 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34049 (__ceilf): Removed.
34050 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34051 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34052 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34053 (__floor): Removed.
34054 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34055 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34056 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34057 (__floorf): Removed.
34058 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34059 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34060 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34061 (__nearbyint): Removed.
34062 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34063 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34064 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34065 (__nearbyintf): Removed.
34066 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34067 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34068 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34069 (__rint): Removed.
34070 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34071 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34072 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34073 (__rintf): Removed.
34074
34075 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34076
34077 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34078 SHARED. Avoid dynamic relocation against main in static PIE.
34079
34080 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34081
34082 [BZ #21815]
34083 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34084 (LDFLAGS-tst-prelink): Likewise.
34085
34086 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34087
34088 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34089 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34090 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34091 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34092 (INTERNAL_SYSCALL_NCS): Likewise.
34093 (LOADARGS_1): Likewise.
34094 (LOADARGS_5): Likewise.
34095 (RESTOREARGS_1): Likewise.
34096 (RESTOREARGS_5): Likewise.
34097
34098 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34099
34100 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34101 (MEMPCPY_SYMBOL): Likewise.
34102 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34103 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34104 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34105 in libc.a.
34106 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34107 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34108 Likewise.
34109 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34110 (__hidden_ver1): Don't use in libc.a.
34111 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34112 (__mempcpy): Don't create a weak alias in libc.a.
34113 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34114 libc.a.
34115 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34116 (__hidden_ver1): Don't use in libc.a.
34117
34118 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34119
34120 * config.make.in (have-insert): New.
34121 * configure.ac (libc_cv_insert): New. Set to yes if linker
34122 supports INSERT in linker script.
34123 (AC_SUBST(libc_cv_insert): New.
34124 * configure: Regenerated.
34125 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34126 if $(have-insert) == yes.
34127
34128 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34129
34130 * elf/Makefile (tests): Add vismain only if
34131 $(have-protected-data) == yes.
34132 (tests-pie): Likewise.
34133
34134 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34135
34136 [BZ #21871]
34137 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34138 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34139
34140 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34141
34142 [BZ #21790]
34143 * sysdeps/i386/i586/memset.S
34144 (__memset_zero_constant_len_parameter): Removed.
34145 * sysdeps/i386/i686/memset.S
34146 (__memset_zero_constant_len_parameter): Likewise.
34147 * sysdeps/i386/i686/multiarch/memset_chk.S
34148 (__memset_zero_constant_len_parameter): Likewise.
34149 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34150 Likewise.
34151
34152 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34153
34154 * stdlib/getentropy.c (getentropy): Change return type to int.
34155
34156 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34157
34158 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34159
34160 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34161
34162 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34163 u_intN_t.
34164 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34165 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34166 Likewise.
34167 (ieee_float_shape_type): Likewise.
34168 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34169 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34170 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34171 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34172 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34173 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34174 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34175 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34176 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34177 Likewise.
34178 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34179 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34180 (__ieee754_yn): Likewise.
34181 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34182 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34183 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34184 Likewise.
34185 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34186 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34187 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34188 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34189 (__erfc): Likewise.
34190 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34191 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34192 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34193 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34194 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34195 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34196 Likewise.
34197 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34198 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34199 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34200 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34201 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34202 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34203 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34204 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34205 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34206 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34207 (__issignaling): Likewise.
34208 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34209 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34210 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34211 Likewise.
34212 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34213 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34214 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34215 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34216 Likewise.
34217 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34218 Likewise.
34219 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34220 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34221 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34222 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34223 (__erfcf): Likewise.
34224 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34225 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34226 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34227 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34228 Likewise.
34229 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34230 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34231 Likewise.
34232 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34233 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34234 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34235 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34236 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34237 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34238 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34239 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34240 Likewise.
34241 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34242 Likewise.
34243 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34244 Likewise.
34245 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34246 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34247 Likewise.
34248 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34249 Likewise.
34250 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34251 (__ieee754_ynl): Likewise.
34252 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34253 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34254 Likewise.
34255 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34256 Likewise.
34257 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34258 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34259 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34260 Likewise.
34261 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34262 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34263 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34264 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34265 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34266 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34267 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34268 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34269 Likewise.
34270 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34271 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34272 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34273 Likewise.
34274 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34275 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34276 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34277 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34278 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34279 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34280 Likewise.
34281 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34282 Likewise.
34283 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34284 Likewise.
34285 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34286 Likewise.
34287 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34288 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34289 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34290 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34291 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34292 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34293 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34294 Likewise.
34295 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34296 Likewise.
34297 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34298 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34299 Likewise.
34300 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34301 (__ieee754_remainderl): Likewise.
34302 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34303 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34304 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34305 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34306 Likewise.
34307 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34308 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34309 Likewise.
34310 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34311 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34312 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34313 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34314 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34315 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34316 Likewise.
34317 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34318 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34319 (__ieee754_y0l): Likewise.
34320 (pzero): Likewise.
34321 (qzero): Likewise.
34322 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34323 (__ieee754_y1l): Likewise.
34324 (pone): Likewise.
34325 (qone): Likewise.
34326 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34327 (__ieee754_ynl): Likewise.
34328 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34329 (__ieee754_lgammal_r): Likewise.
34330 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34331 Likewise.
34332 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34333 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34334 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34335 (__erfcl): Likewise.
34336 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34337 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34338 Likewise.
34339 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34340 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34341 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34342 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34343 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34344 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34345 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34346 Likewise.
34347 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34348 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34349 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34350 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34351 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34352 Likewise.
34353 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34354 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34355 Likewise.
34356 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34357 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34358 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34359 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34360 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34361
34362 2017-08-03 Florian Weimer <fweimer@redhat.com>
34363
34364 [BZ #21885]
34365 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34366 on memory allocation failure.
34367
34368 2017-08-03 Alan Modra <amodra@gmail.com>
34369
34370 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34371 tst-tlsopt-powerpc.c with function name change and no test harness.
34372 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34373 Call tls_get_addr_opt_test.
34374 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34375 (modules-names): Add mod-tlsopt-powerpc.
34376 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34377 (tst-tlsopt-powerpc): Depend on .so.
34378 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34379 define. Expand use in TLS_GD and TLS_LD.
34380
34381 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34382
34383 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34384 function.
34385 * sysdeps/posix/shm_open.c: Include <pthread.h>.
34386
34387 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34388
34389 [BZ #21686]
34390 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34391 comparing size with that of double.
34392 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34393 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34394 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34395 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34396 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34397 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34398 unsigned __int128 types.
34399
34400 2017-08-02 Steve Ellcey <sellcey@cavium.com>
34401
34402 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
34403 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
34404 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
34405 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
34406 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
34407
34408 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34409
34410 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
34411
34412 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34413
34414 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
34415 of SHARED.
34416 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
34417 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
34418 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34419 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
34420 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
34421 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
34422 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
34423
34424 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34425
34426 [BZ #21685]
34427 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
34428 bit-field expressions passed to sizeof or typeof.
34429 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34430 (__TGMATH_F128): Likewise.
34431 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34432 (__TGMATH_CF128): Likewise.
34433 (__TGMATH_UNARY_REAL_ONLY): Likewise.
34434 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
34435 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
34436 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
34437 (__TGMATH_BINARY_REAL_ONLY): Likewise.
34438 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34439 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34440 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34441 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34442 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
34443 (__TGMATH_UNARY_REAL_IMAG): Likewise.
34444 (__TGMATH_UNARY_IMAG): Likewise.
34445 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
34446 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34447 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
34448 type.
34449 (define_vars_for_type): Handle bit_field type specially.
34450 (Tests.__init__): Declare structure with bit-field element.
34451
34452 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34453
34454 [BZ #21791]
34455 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
34456 (MEMCPY_CHK): Define only if SHARED is defined.
34457 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
34458 Likewise.
34459 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
34460 Likewise.
34461
34462 See ChangeLog.18 for earlier changes.