]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
x86: Remove arch-specific low level lock implementation
[thirdparty/glibc.git] / ChangeLog
1 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4 (lll_trylock): Call __lll_trylock.
5 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
6 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
7 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
8 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
9 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
10 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
11 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
12 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
13 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
14 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
15 lowlevellock-futex.h.
16
17 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
18 initialization for LLL_LOCK_INITIALIZER different than 0.
19 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
20 Assume LLL_LOCK_INITIALIZER being 0.
21 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
22 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
23 Likewise.
24 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
25 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
26
27 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
28 Optimize futex call and add systemtap probe.
29
30 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
31 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
32 __libc_disable_asynccancel, __librt_enable_asynccancel,
33 __libc_disable_asynccancel, __librt_enable_asynccancel,
34 __librt_disable_asynccancel): Move to ...
35 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
36 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
37 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
38 * sysdeps/generic/single-thread.h: New file.
39 * sysdeps/unix/sysdep.h: Include single-thread.h.
40 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
41 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
42
43 2019-05-08 Mike FABIAN <mfabian@redhat.com>
44
45 [BZ #24535]
46 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
47 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
48 Unicode 12.1.0.
49 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
50 * localedata/unicode-gen/PropList.txt: Likewise.
51 * localedata/unicode-gen/UnicodeData.txt: Likewise.
52 * localedata/charmaps/UTF-8: Regenerate.
53 * localedata/locales/i18n_ctype: Likewise.
54 * localedata/locales/tr_TR: Likewise.
55 * localedata/locales/translit_circle: Likewise.
56 * localedata/locales/translit_cjk_compat: Likewise.
57 * localedata/locales/translit_combining: Likewise.
58 * localedata/locales/translit_compat: Likewise.
59 * localedata/locales/translit_font: Likewise.
60 * localedata/locales/translit_fraction: Likewise.
61
62 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
63
64 [BZ #24531]
65 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
66 (do_set_tcache_count): Only update if count is small enough.
67 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
68
69 2019-05-10 Florian Weimer <fweimer@redhat.com>
70
71 * nptl/sem_close.c (struct walk_closure): Define.
72 (walker): Adjust for __twalk_r.
73 (sem_close): Call __twalk_r.
74
75 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
76
77 * support/timespec.c (test_timespec_before_impl,
78 test_timespec_equal_or_after_impl): print timespec member as intmax_t
79 insted of long int.
80
81 2019-05-09 Mike Crowe <mac@mcrowe.com>
82
83 * nptl/tst-abstime.c: Use libsupport.
84
85 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
86 small bug where only tv.tv_usec was checked which could cause an
87 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
88 than a second.
89
90 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
91 libsupport.
92
93 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
94 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
95
96 * nptl/tst-cond11.c: Use libsupport.
97
98 * support/timespec.h: New file. Provide timespec helper functions
99 along with macros in the style of those in check.h.
100 * support/timespec.c: New file. Implement check functions declared
101 in support/timespec.h.
102 * support/timespec-add.c: New file from gnulib containing
103 timespec_add implementation that handles overflow.
104 * support/timespec-sub.c: New file from gnulib containing
105 timespec_sub implementation that handles overflow.
106 * support/README: Mention timespec.h.
107
108 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
109
110 [BZ #24537]
111 * nptl/Makefile: Move tst-eintr1 to xtests.
112
113 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
114
115 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
116 TRUNC handling.
117 (round_mode): Add definition for TRUNC.
118 * sysdeps/powerpc/fpu/s_trunc.c: New file.
119 * sysdeps/powerpc/fpu/s_truncf.c: New file.
120 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
121 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
122 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
123 Likewise.
124 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
125 Likewise.
126 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
127 Likewise.
128 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
129 Likewise.
130 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
131 file.
132 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
133 Likewise.
134 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
135 Likewise.
136 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
137 Likewise.
138 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
139 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
140 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
141 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
142 s_truncf-power5+, and s_truncf-ppc64.
143 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
144 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
145 file.
146 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
148 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
149 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
150 file.
151 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
152 Likewise.
153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
154 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
155 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
156 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
157 s_truncf-power5+, and s_truncf-ppc64.
158 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
159 file.
160 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
161 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
162 Likewise.
163 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
164 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
165 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
166 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
167 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
168
169 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
170 ROUND handling.
171 (round_mode): Add definition for ROUND.
172 (round_to_integer_float): Likewise.
173 * sysdeps/powerpc/fpu/s_round.c: New file.
174 * sysdeps/powerpc/fpu/s_roundf.c: New file.
175 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
176 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
177 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
178 Likewise.
179 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
180 Likewise.
181 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
182 Likewise.
183 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
184 Likewise.
185 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
186 file.
187 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
188 Likewise.
189 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
190 Likewise.
191 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
192 Likewise.
193 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
194 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
195 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
196 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
197 s_roundf-power5+, and s_roundf-ppc64.
198 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
199 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
200 file.
201 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
202 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
203 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
204 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
205 file.
206 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
207 Likewise.
208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
209 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
210 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
211 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
212 s_roundf-power5+, and s_roundf-ppc64.
213 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
214 file.
215 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
216 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
217 Likewise.
218 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
219 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
220 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
221 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
222 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
223
224 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
225 Add FLOOR option.
226 (round_mode): Add definition for FLOOR.
227 * sysdeps/powerpc/fpu/s_floor.c: New file.
228 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
229 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
230 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
231 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
232 Remove file.
233 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
234 Likewise
235 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
236 Likewise.
237 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
238 Likewise.
239 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
240 New file.
241 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
242 Likewise.
243 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
244 Likewise.
245 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
246 Likewise.
247 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
248 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
249 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
250 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
251 s_floorf-power5+, and s_floorf-ppc64.
252 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
253 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
254 file.
255 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
257 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
258 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
259 file.
260 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
261 Likewise.
262 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
263 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
264 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
265 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
266 s_floorf-power5+, and s_floorf-ppc64.
267 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
268 file.
269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
270 file.
271 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
272 Likewise.
273 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
274 Likewise.
275 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
276 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
277 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
278 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
279
280 2019-05-08 Mike Crowe <mac@mcrowe.com>
281
282 * support/xclock_gettime.c (xclock_gettime): New file. Provide
283 clock_gettime wrapper for use in tests that fails the test rather
284 than returning failure.
285
286 * support/xtime.h: New file to declare xclock_gettime.
287
288 * support/Makefile: Add xclock_gettime.c.
289
290 * support/README: Mention xtime.h.
291
292 2019-05-08 Florian Weimer <fweimer@redhat.com>
293
294 malloc/tst-mallocfork2: Use process-shared barriers.
295 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
296 (signal_count, sigusr1_sender_pid): Remove.
297 (iterations): Define constant.
298 (shared): New variable.
299 (sigusr1_received): Update comment.
300 (sigusr1_handler): Do not send SIGSTOP to the sender process.
301 (signal_sender): Optional use barriers to avoid sending signals
302 during irrelevant times.
303 (do_it): Initialize variable shared. Use xfork for error
304 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
305 the iteration count, independent of signal delivery. Check for
306 deadlocks in fork. Introduce barriers for reducing signal
307 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
308 replaced by the barriers. Count signals during fork/free/malloc
309 and report them.
310 * malloc/Makefile (tst-mallocfork): Link with libpthread.
311
312 2019-05-07 Joseph Myers <joseph@codesourcery.com>
313
314 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
315 version to 5.1.
316 (clock_adjtime64) New syscall.
317 (clock_getres_time64) Likewise.
318 (clock_gettime64) Likewise.
319 (clock_nanosleep_time64) Likewise.
320 (clock_settime64) Likewise.
321 (futex_time64) Likewise.
322 (io_pgetevents_time64) Likewise.
323 (io_uring_enter) Likewise.
324 (io_uring_register) Likewise.
325 (io_uring_setup) Likewise.
326 (mq_timedreceive_time64) Likewise.
327 (mq_timedsend_time64) Likewise.
328 (pidfd_send_signal) Likewise.
329 (ppoll_time64) Likewise.
330 (pselect6_time64) Likewise.
331 (recvmmsg_time64) Likewise.
332 (rt_sigtimedwait_time64) Likewise.
333 (sched_rr_get_interval_time64) Likewise.
334 (semtimedop_time64) Likewise.
335 (timer_gettime64) Likewise.
336 (timer_settime64) Likewise.
337 (timerfd_gettime64) Likewise.
338 (timerfd_settime64) Likewise.
339 (utimensat_time64) Likewise.
340
341 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
342 version to 9 branch.
343
344 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
345
346 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
347 __memmove_thunderx2 to the list of implementations
348 * sysdeps/aarch64/multiarch/memmove.c: Likewise
349 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
350 (__memmove_thunderx2): Rewritten using SIMD ld/st
351 (__memcpy_thunderx2): Fixed handling overlapping cases.
352 Used ldp/stp instead of ldr/str if possible. Made loops
353 tails branchless.
354
355 2019-05-03 Florian Weimer <fweimer@redhat.com>
356
357 * misc/tst-tsearch.c (walk_tree): Add more error checking.
358
359 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
360
361 [BZ #24506]
362 * elf/tst-pldd.c (in_str_list): New function.
363 (do_test): Add default names for ld and libc as one option.
364
365 2019-05-02 Florian Weimer <fweimer@redhat.com>
366
367 misc: Add twalk_r function.
368 * include/search.h (__twalk_r): Declare.
369 * manual/examples/twalk.c: New file.
370 * manual/search.texi (Tree Search Function): Document twalk_r.
371 * misc/Versions (2.30): Export twalk_r.
372 (GLIBC_PRIVATE): Export __twalk_r.
373 * misc/search.h [__USE_GNU] (twalk_r): Declare.
374 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
375 (twalk_r): Add weak alias.
376 * misc/tst-tsearch.c (struct walk_trace_element): Define.
377 (walk_trace): New variable.
378 (struct twalk_with_twalk_r_closure): Define.
379 (twalk_with_twalk_r_action): New function.
380 (twalk_with_twalk_r): Likewise.
381 (walk_action): Call walk_trace_add.
382 (walk_tree_with): Rename from walk_tree. Add walk argument.
383 (walk_tree): New function.
384 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
385 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
386 Likewise.
387 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
388 Likewise.
389 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
390 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
391 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
392 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
393 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
394 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
395 Likewise.
396 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
397 Likewise.
398 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
399 Likewise.
400 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
401 (GLIBC_2.30): Likewise.
402 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
403 (GLIBC_2.30): Likewise.
404 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
405 (GLIBC_2.30): Likewise.
406 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
407 (GLIBC_2.30): Likewise.
408 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
409 Likewise.
410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
411 (GLIBC_2.30): Likewise.
412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
413 (GLIBC_2.30): Likewise.
414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
415 (GLIBC_2.30): Likewise.
416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
417 (GLIBC_2.30): Likewise.
418 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
419 Likewise.
420 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
421 Likewise.
422 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
423 Likewise.
424 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
425 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
426 Likewise.
427 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
428 Likewise.
429 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
430 Likewise.
431 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
432 Likewise.
433
434 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
435
436 Make mktime etc. compatible with __time64_t
437 Keep these functions compatible with Gnulib while adding
438 __time64_t support. The basic idea is to move private API
439 declarations from include/time.h to time/mktime-internal.h, since
440 the former file cannot easily be shared with Gnulib whereas the
441 latter can.
442 Also, do some other minor cleanup while in the neighborhood.
443 * include/time.h: Include stdbool.h, time/mktime-internal.h.
444 (__mktime_internal): Move this prototype to time/mktime-internal.h,
445 since Gnulib needs it.
446 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
447 Move these macros to time/mktime-internal.h, since Gnulib needs them.
448 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
449 (in_time_t_range): New static function.
450 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
451 so that glibc users are not tempted to use __time64_t.
452 * time/mktime-internal.h: Rewrite so that it does both glibc
453 and Gnulib work. Include time.h if not _LIBC.
454 (mktime_offset_t) [!_LIBC]: Define for gnulib.
455 (__time64_t): New type or macro, moved here from
456 posix/bits/types.h.
457 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
458 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
459 from include/time.h.
460 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
461 New macros, taken from GNulib.
462 (__mktime_internal): New prototype, moved here from include/time.h.
463 * time/mktime.c (mktime_min, mktime_max, convert_time)
464 (ranged_convert, __mktime_internal, __mktime64):
465 * time/timegm.c (__timegm64):
466 Use __time64_t, not time_t.
467 * time/mktime.c: Stop worrying about whether time_t is floating-point.
468 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
469 Rename from mktime.
470 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
471 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
472 for libc_hidden_def.
473 Include errno.h.
474 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
475 Rename from timegm.
476 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
477
478 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
479
480 [BZ #19444]
481 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
482 from `-Wmaybe-uninitialized'.
483 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
484
485 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
486
487 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
488 function.
489 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
490 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
491 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
492 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
493 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
494 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
495 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
497 Remove file.
498 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
499 Likewise.
500 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
501 Likewise.
502 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
503 Likewise.
504 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
505 New file.
506 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
507 Likewise.
508 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
509 Likewise.
510 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
511 Likewise.
512 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
513 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
514 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
515 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
516 Likewise.
517 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
518 Likewise.
519 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
520 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
521 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
522 file.
523 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
524 Likewise.
525 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
526 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
527 * here.
528 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
529 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
530 s_ceilf-power5+, and s_ceilf-ppc64.
531 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
532 file.
533 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
534 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
535 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
536 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
537 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
538 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
539 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
540
541 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
542 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
543 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
544
545 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
546
547 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
548 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
549 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
550 (sem_getvalue): Likewise.
551
552 2019-04-26 Florian Weimer <fweimer@redhat.com>
553
554 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
555 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
556
557 2019-04-26 Florian Weimer <fweimer@redhat.com>
558
559 Makeconfig: Move -Wl,-rpath-link options before library references.
560 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
561 (link-libc): Remove $(link-libc-rpath-link).
562
563 2019-04-25 Florian Weimer <fweimer@redhat.com>
564
565 * Makeconfig (+link-pie-before-libc): Remove $(CC).
566 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
567 (+link-static-before-libc): Remove $(CC).
568 (+link-static, +link-static-tests): Add $(CC).
569 (+link-before-libc): Remove $(CC).
570 (+link, +link-pie, +link-pie-printers): Add $(CC).
571
572 2019-04-26 Florian Weimer <fweimer@redhat.com>
573
574 * Makeconfig (+link-pie-before-libc): Remove $(CC).
575 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
576 (+link-static-before-libc): Remove $(CC).
577 (+link-static, +link-static-tests): Add $(CC).
578 (+link-before-libc): Remove $(CC).
579 (+link, +link-pie, +link-pie-printers): Add $(CC).
580
581 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
582
583 [BZ#24484]
584 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
585
586 2019-04-25 Florian Weimer <fweimer@redhat.com>
587
588 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
589 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
590 (bench-link-targets): New variable.
591 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
592
593 2019-04-25 Florian Weimer <fweimer@redhat.com>
594
595 Also enable BIND_NOW for programs if --enable-bind-now.
596 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
597 (+link-pie): Use $(link-extra-flags).
598 (+link-static): Likewise.
599 [! $(build-pie-default)] (+link): Likewise.
600 * manual/install.texi (Configuring and compiling): Update
601 --enable-bind-now description.
602 * INSTALL: Regenerated.
603
604 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
605
606 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
607 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
608
609 2019-04-24 Mike Frysinger <vapier@gentoo.org>
610
611 [BZ #18465]
612 * malloc/Makefile (others): Add memusagestat.
613 ($(objpfx)memusagestat): Delete rule.
614 (LDLIBS-memusagestat): New variable.
615
616 2019-04-24 Florian Weimer <fweimer@redhat.com>
617
618 * locale/Makefile (tests-special): Guard setting by
619 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
620 to run while cross-compiling.
621
622 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
623
624 [BZ #18035]
625 * elf/Makefile (tests-container): Add tst-pldd.
626 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
627 (E(find_maps)): Avoid use alloca, use default read file operations
628 instead of explicit LFS names, and fix infinite loop.
629 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
630 (get_process_info): Use _Static_assert instead of assert, use default
631 directory operations instead of explicit LFS names, and free some
632 leadek pointers.
633 * elf/tst-pldd.c: New file.
634
635 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
636
637 * malloc/arena.c (do_set_mallopt_check): Removed.
638
639 2019-04-23 Florian Weimer <fweimer@redhat.com>
640
641 locale: Add LOCPATH diagnostics to the locale program.
642 * locale/programs/locale.c (setlocale_failed): New variable.
643 (try_setlocale): New function.
644 (quote_string): Likewise.
645 (setlocale_diagnostics): Likewise.
646 (main): Call try_setlocale instead of setlocale. Call
647 setlocale_diagnostics.
648 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
649 (tst-locale-locpath.out): New target.
650 * locale/tst-locale-locpath.sh: New file.
651
652 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
653
654 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
655 to 2.30 notes.
656
657 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
658
659 [BZ #23741]
660 * malloc/hooks.c (malloc_check, realloc_check): Use
661 __builtin_add_overflow on overflow check and adapt to
662 checked_request2size change.
663 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
664 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
665 allocation size to PTRDIFF_MAX.
666 (REQUEST_OUT_OF_RANGE): Remove macro.
667 (checked_request2size): Change to inline function and limit maximum
668 requested size to PTRDIFF_MAX.
669 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
670 maximum allocation size to PTRDIFF_MAX.
671 (_mid_memalign): Use _int_memalign call for overflow check.
672 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
673 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
674 limit maximum requested size to PTRDIFF_MAX.
675 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
676 valloc, pvalloc): Add __attribute_alloc_size__.
677 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
678 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
679 larger than PTRDIFF_MAX.
680 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
681 around tests of malloc with negative sizes.
682 * malloc/tst-posix_memalign.c (do_test): Likewise.
683 * malloc/tst-pvalloc.c (do_test): Likewise.
684 * malloc/tst-valloc.c (do_test): Likewise.
685 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
686 with resulting size allocation larger than PTRDIFF_MAX with
687 reallocarray_nowarn.
688 (reallocarray_nowarn): New function.
689 * NEWS: Mention the malloc function semantic change.
690
691 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
692
693 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
694 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
695
696 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
697 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
698 * sysdeps/powerpc/fpu/s_fma.c: New file.
699 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
700
701 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
702 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
703
704 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
705 the magic flag store.
706 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
707 Likewise.
708 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
709 Likewise.
710 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
711 Remove rt_sigreturn call.
712
713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
714 Remove rt_sigreturn call.
715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
716 Likewise.
717 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
719
720 * support/Makefile (libsupport-routines): Add support_subprocess,
721 xposix_spawn, xposix_spawn_file_actions_addclose, and
722 xposix_spawn_file_actions_adddup2.
723 (tst-support_capture_subprocess-ARGS): New rule.
724 * support/capture_subprocess.h (support_capture_subprogram): New
725 prototype.
726 * support/support_capture_subprocess.c (support_capture_subprocess):
727 Refactor to use support_subprocess and support_capture_poll.
728 (support_capture_subprogram): New function.
729 * support/tst-support_capture_subprocess.c (write_mode_to_str,
730 str_to_write_mode, test_common, parse_int, handle_restart,
731 do_subprocess, do_subprogram, do_multiple_tests): New functions.
732 (do_test): Add support_capture_subprogram tests.
733 * support/subprocess.h: New file.
734 * support/support_subprocess.c: Likewise.
735 * support/xposix_spawn.c: Likewise.
736 * support/xposix_spawn_file_actions_addclose.c: Likewise.
737 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
738 * support/xspawn.h: Likewise.
739
740 2019-04-17 Mike Gerow <gerow@google.com>
741
742 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
743 groups limit.
744
745 2019-04-11 Florian Weimer <fweimer@redhat.com>
746
747 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
748 domain with empty string.
749 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
750
751 2019-04-11 Florian Weimer <fweimer@redhat.com>
752
753 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
754 comment.
755 (alloc_buffer_next): Change return type to non-const. Update
756 comment.
757
758 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
759
760 * manual/time.texi (Formatting Calendar Time): Add missing percent
761 sign to conversion specifier.
762
763 2019-04-09 Carlos O'Donell <carlos@redhat.com>
764 Kwok Cheung Yeung <kcy@codesourcery.com>
765
766 [BZ #16573]
767 * malloc/mtrace.c: Define prototypes for all hooks.
768 (set_default_hooks): New function.
769 (set_trace_hooks): Likewise.
770 (save_default_hooks): Likewise.
771 (tr_freehook): Use new s*_hooks functions.
772 (tr_mallochook): Likewise.
773 (tr_reallochook): Likewise.
774 (tr_memalignhook): Likewise.
775 (mtrace): Likewise.
776 (muntrace): Likewise.
777
778 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
779
780 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
781 (generic_stpcpy): New function.
782 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
783 (generic_stpncpy): New function.
784 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
785 (generic_strcat): New function.
786 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
787 (generic_strcpy): New function.
788 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
789 (STUPID_STRNCAT): Remove function.
790 (generic_strncat): New function.
791 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
792 (STUPID_STRNCPY): Remove function.
793 (generic_strncpy): New function.
794 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
795 (generic_strnlen): New function.
796 (memchr_strnlen): New function.
797 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
798 (memchr_strlen): Likewise.
799
800 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
801
802 * benchtests/bench-strstr.c (input): Add realistic input text.
803 (stupid_strstr): Remove function.
804 (basic_strstr): Add function.
805 (twoway_strstr): Add function.
806 (do_one_test): Add result checking.
807 (do_test): Use new input text. Remove accidental early matches.
808 (test_main): Improve range of tests, reduce unaligned cases.
809
810 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
811
812 * benchtests/bench-memmem.c (simple_memmem): Remove function.
813 (basic_memmem): Add function.
814 (twoway_memmem): Add function.
815
816 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
817
818 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
819 * benchtests/bench-malloc-thread.c: Likewise.
820 * benchtests/bench-skeleton.c: Likewise.
821 * benchtests/bench-strtod.c: Likewise.
822 * benchtests/bench-timing.h: Likewise.
823
824 2019-04-08 Florian Weimer <fweimer@redhat.com>
825
826 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
827 definitions.
828 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
829 RES_INSECURE2 security checks.
830 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
831 RES_INSECURE2 handling.
832
833 2019-04-08 Florian Weimer <fweimer@redhat.com>
834
835 resolv: Remove support for RES_USE_INET6 and the inet6 option.
836 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
837 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
838 GETHOSTBYNAME.
839 * resolv/Makefile (tests): Remove tst-res_use_inet6.
840 (tests-internal): Update justification for tst-resolv-res_init,
841 tst-resolv-res_init-thread.
842 (tst-res_use_inet6): Remove target.
843 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
844 * resolv/res_debug.c (p_option): Remove "inet6" support.
845 * resolv/res_init.c (res_setoptions): Likewise.
846 * resolv/res_use_inet6.h: Remove file.
847 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
848 definition.
849 (res_use_inet6): Always return false.
850 * resolv/resolv.h (RES_USE_INET6): Remove definition.
851 * resolv/resolv_context.h: Adjust file comment.
852 (struct resolv_context): Update comment on __next field.
853 (__resolv_context_put): Update comment.
854 * resolv/tst-res_use_inet6.c: Remove file.
855 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
856 "inet6" support.
857 (test_cases): Adjust test case.
858 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
859 (thread_byname2_af_inet6): Use old byname_inet6 code.
860 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
861 (gai): Remove do_inet6 argument.
862 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
863 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
864 (thread_gai_unspec_inet6): Remove functions.
865 (do_test): Adjust thread_funcs.
866 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
867 RES_USE_INET6 flag.
868 (gaih_inet): Do not disable RES_USE_INET6 flag.
869
870 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
871
872 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
873 and remove redundant code.
874
875 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
876
877 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
878 New rule.
879 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
880 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
881 Likewise.
882 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
883 Likewise.
884 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
885 Likewise.
886 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
887 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
888 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
889 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
890 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
891 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
892 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
893 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
894 wcsrchr-power7.
895 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
896 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
897 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
898 Remove wcsrchr optimizations.
899 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
900
901 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
902 the loop unroll.
903
904 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
905 New rule.
906 * sysdeps/powerpc/power6/wcschr.c: Remove file.
907 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
908 Likewise.
909 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
910 Likewise.
911 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
912 Likewise.
913 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
914 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
915 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
916 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
917 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
918 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
919 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
920 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
921 wcschr-power7.
922 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
923 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
924 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
925 Remove wcschr optimizations.
926 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
927
928 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
929 the loop unroll.
930
931 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
932 New rule.
933 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
934 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
935 Likewise.
936 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
937 Likewise.
938 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
939 Likewise.
940 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
941 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
942 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
943 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
944 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
945 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
946 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
947 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
948 wcscpy-power7.
949 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
950 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
951 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
952 Remove wcscpy optimizations.
953 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
954
955 * include/loop_unroll.h: New file.
956 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
957 besides generic implementation.
958
959 2019-04-03 DJ Delorie <dj@redhat.com>
960
961 * time/tst-strftime3.c (tm_to_printed): Disable warning about
962 snprintf truncating output.
963
964 2019-04-02 DJ Delorie <dj@redhat.com>
965
966 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
967 warning.
968
969 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
970
971 [BZ #22964]
972 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
973 era.
974 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
975 (mkreftable): Add rules for the new Japanese era and the new dates.
976
977 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
978 Rafal Luzynski <digitalfreak@lingonborough.com>
979
980 * time/tst-strftime2.c (date_t): Explicitly define the type.
981 (dates): Use natural month and year numbers to express a date.
982 (is_before): New function to compare dates.
983 (mkreftable): Minor improvements to simplify maintenance.
984 (do_test): Reflect the changes in dates array.
985
986 [BZ #24293]
987 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
988 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
989 * time/tst-strftime2.c (locales): Likewise.
990 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
991 2010-04-01, and 2011-04-01.
992 (mkreftable): Add rules for the new locales and the new dates.
993
994 2019-04-01 Carlos O'Donell <carlos@redhat.com>
995
996 * localedata/locales/ja_JP: Add comments to era entries.
997
998 2019-04-01 DJ Delorie <dj@redhat.com>
999
1000 [BZ #24394]
1001 * time/strptime_l.c (%Ey): Fix fencepost error.
1002 * time/tst-strftime3.c: New.
1003 * time/Makefile (tests): Add tst-strftime3.
1004
1005 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1006
1007 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1008 conditional branch to DIVBYZERO. Fix unwind info.
1009 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1010 excb after conditional branch to $powerof2. Add missing unop
1011 instructions and .align directives and reorder instructions to
1012 match __divqu.
1013
1014 2019-04-01 Richard Henderson <rth@twiddle.net>
1015
1016 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1017 Do not redefine.
1018 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1019 Do not redefine.
1020
1021 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1022
1023 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1024 $libc_cv_riscv_float_abi in `test' invocation.
1025 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1026
1027 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1028
1029 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1030 asm with builtin.
1031 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1032 Likewise.
1033 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1034 (_GET_SI_FPSCR): Likewise.
1035 (_SET_SI_FPSCR): Likewise.
1036
1037 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1038
1039 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1040 clang 2.8.
1041 (signbit): Use builtin for clang 3.3.
1042 (isinf): Use builtin for clang 3.7.
1043
1044 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1045
1046 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1047
1048 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1049
1050 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1051 quote in printf.
1052
1053 2019-03-25 Mike Crowe <mac@mcrowe.com>
1054
1055 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1056 pthread_rwlock_timedrdlock with calls to
1057 pthread_rwlock_timedwrlock to ensure that the latter is tested
1058 too. Use new function name in diagnostic messages too.
1059
1060 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1061 (do_test) Use libsupport test macros rather than hand-coded
1062 conditionals and error messages. Ensure that sem_init returns zero
1063 rather than not -1. Use <support/test-driver.c> rather than
1064 test-skeleton.c.
1065
1066 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1067 test macros rather than hand-coded conditionals and error messages.
1068 Use <support/test-driver.c> rather than test-skeleton.c.
1069
1070 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1071
1072 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1073
1074 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1075 (NT_MIPS_MSA): Likewise.
1076
1077 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1078
1079 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1080 * benchtests/README: Update description.
1081 * benchtests/bench-timing.h: Default to hp-timing.
1082 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1083 HP_TIMING_PRINT): Remove.
1084 (HP_TIMING_NOW): Add generic implementation.
1085 (hp_timing_t): Change to uint64_t.
1086
1087 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1088 HP_TIMING_INLINE.
1089 * nptl/descr.h: Likewise.
1090 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1091 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1092 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1093 Abstract hp-timing usage with RTLD_* macros.
1094 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1095 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1096 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1097 HP_TIMING_NONAVAIL): Likewise.
1098 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1099 Likewise.
1100 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1101 HP_SMALL_TIMING_AVAIL): Likewise.
1102 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1103 HP_SMALL_TIMING_AVAIL): Likewise.
1104 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1105 HP_SMALL_TIMING_AVAIL): Likewise.
1106 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1107 HP_SMALL_TIMING_AVAIL): Likewise.
1108 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1109 Likewise.
1110 * sysdeps/generic/hp-timing-common.h: Update comment with
1111 HP_TIMING_AVAIL removal.
1112
1113 * include/random-bits.h: New file.
1114 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1115 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1116 random_bits.
1117 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1118 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1119 Likewise.
1120
1121 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1122 * rt/Makefile (clock-routines): Remove get_clockfreq.
1123 * rt/get_clockfreq.c: Remove file.
1124 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1125 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1126 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1127 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1128 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1129
1130 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1131 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1132 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1133 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1134 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1135
1136 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1137 pthread_clock_settime.
1138 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1139 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1140 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1141 * elf/rtld.c (_dl_start_final): Likewise.
1142 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1143 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1144 Remove.
1145 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1146 (_dl_cpuclock_offset): Remove.
1147 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1148 cpuclock_offset_ununsed.
1149 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1150 cpuclock_offset set.
1151 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1152 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1153 * nptl/pthread_clock_gettime.c: Remove file.
1154 * nptl/pthread_clock_settime.c: Likewise.
1155 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1156 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1157 and CLOCK_PROCESS_CPUTIME_ID support.
1158 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1159 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1160 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1161 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1162 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1163 Likewise.
1164 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1165
1166 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1167
1168 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1169 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1170 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1171 New defines.
1172 * sysdeps/s390/memmem-arch13.S: New file.
1173 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1174 if it is only used as fallback.
1175 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1176 * sysdeps/s390/multiarch/ifunc-impl-list.c
1177 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1178
1179 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1180
1181 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1182 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1183 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1184 New defines.
1185 * sysdeps/s390/multiarch/ifunc-impl-list.c
1186 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1187 * sysdeps/s390/strstr-arch13.S: New file.
1188 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1189 if it is only used as fallback.
1190 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1191
1192 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1193
1194 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1195 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1196 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1197 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1198 ifunc selector.
1199 * sysdeps/s390/multiarch/ifunc-impl-list.c
1200 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1201 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1202 S390_IS_ARCH13_MIE3): New defines.
1203
1204 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1205
1206 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1207 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1208 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1209 * sysdeps/s390/configure: Regenerated.
1210
1211 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1212
1213 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1214 Add vxe2, vxp, dflt, sort flags.
1215 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1216 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1217 capabilities.
1218 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1219 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1220 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1221 HWCAP_S390_DFLT): Define.
1222
1223 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1224
1225 [BZ #24372]
1226 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1227 of compiler warning.
1228 * locale/programs/ld-collate.c (collate_output): Likewise.
1229
1230 2019-03-21 DJ Delorie <dj@redhat.com>
1231
1232 [BZ #24372]
1233 * iconv/iconvconfig.c (write_output): Replace floating point math
1234 with integer math to avoid imprecise results.
1235 * locale/programs/ld-collate.c (collate_output): Likewise.
1236
1237 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1238
1239 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1240 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1241
1242 2019-03-20 mansayk <6688000@gmail.com>
1243
1244 [BZ #24296]
1245 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1246 (abday): Likewise, but remove the trailing dots.
1247
1248 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1249
1250 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1251 macro.
1252 (HWCAP_PACA): Likewise.
1253 (HWCAP_PACG): Likewise.
1254 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1255 Increase to 32.
1256 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1257
1258 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1259
1260 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1261 should be handled.
1262
1263 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1264
1265 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1266 version to 5.0.
1267 (old_getpagesize): New syscall.
1268
1269 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1270
1271 [BZ #24293]
1272 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1273 * localedata/locales/cmn_TW (era): Likewise.
1274 * localedata/locales/hak_TW (era): Likewise.
1275 * localedata/locales/lzh_TW (era): Likewise.
1276 * localedata/locales/nan_TW (era): Likewise.
1277
1278 2019-03-14 Florian Weimer <fweimer@redhat.com>
1279
1280 Remove obsolete, never-implemented XSI STREAMS declarations.
1281 * manual/terminal.texi (Allocation): Remove portability note and
1282 adjust example.
1283 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1284 _SC_STREAMS.
1285 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1286 * sysdeps/unix/inet/Subdirs (streams): Remove.
1287 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1288 (conformtest-headers-UNIX98): Likewise.
1289 (conformtest-headers-XOPEN2K): Likewise.
1290 (conformtest-headers-POSIX2008): Likewise.
1291 * posix/compat-streams.c: New file.
1292 * posix/Makefile (routines): Add it.
1293 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1294 getpmsg, isastream, putmsg, putpmsg.
1295 (GLIBC_2.30): New section.
1296 * bits/stropts.h: Remove file.
1297 * bits/xtitypes.h: Likewise.
1298 * conform/data/stropts.h-data: Likewise.
1299 * include/stropts.h: Likewise.
1300 * include/sys/stropts.h: Likewise.
1301 * include/xtitypes.h: Likewise.
1302 * streams/Makefile: Likewise.
1303 * streams/fattach.c: Likewise.
1304 * streams/fdetach.c: Likewise.
1305 * streams/getmsg.c: Likewise.
1306 * streams/getpmsg.c: Likewise.
1307 * streams/isastream.c: Likewise.
1308 * streams/putmsg.c: Likewise.
1309 * streams/putpmsg.c: Likewise.
1310 * streams/stropts.h: Likewise.
1311 * streams/sys/stropts.h: Likewise.
1312 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1313 * sysdeps/s390/bits/xtitypes.h: Likewise.
1314 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1315 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1316 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1317 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1318 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1319 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1320 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1321 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1322 * sysdeps/x86/bits/xtitypes.h: Likewise.
1323
1324 2019-03-14 Florian Weimer <fweimer@redhat.com>
1325
1326 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1327 libnss_files.
1328 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1329 but not with libnss_files.
1330 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1331
1332 2019-03-14 Zack Weinberg <zackw@panix.com>
1333
1334 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1335 Specify encoding="utf-8" when opening headers to check.
1336
1337 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1338
1339 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1340 version to 5.0.
1341 (Context.checkout_tar): Handle variable major version for Linux
1342 kernel.
1343
1344 2019-03-13 Florian Weimer <fweimer@redhat.com>
1345
1346 [BZ #24047]
1347 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1348
1349 2019-03-13 Zack Weinberg <zackw@panix.com>
1350
1351 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1352 Move to stdlib.
1353 * include/inttypes.h: Adjust to match.
1354 * include/stdint.h: New wrapper.
1355
1356 2019-03-13 Zack Weinberg <zackw@panix.com>
1357
1358 * scripts/check-obsolete-constructs.py: New test script.
1359 * scripts/check-installed-headers.sh: Remove tests for
1360 obsolete typedefs, superseded by check-obsolete-constructs.py.
1361 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1362 as a special test. Update commentary.
1363 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1364 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1365 Update commentary.
1366 * posix/sys/types.h (__u_intN_t): Remove.
1367 (u_int8_t): Typedef using __uint8_t.
1368 (u_int16_t): Typedef using __uint16_t.
1369 (u_int32_t): Typedef using __uint32_t.
1370 (u_int64_t): Typedef using __uint64_t.
1371
1372 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1373
1374 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1375 call _dl_procinfo.
1376 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1377 Ignore types other than AT_HWCAP.
1378 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1379 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1380 Likewise.
1381 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1382 in the case of falling back to generic output mechanism.
1383 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1384 Likewise.
1385
1386 2019-03-12 Florian Weimer <fweimer@redhat.com>
1387
1388 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1389
1390 2019-03-12 Florian Weimer <fweimer@redhat.com>
1391
1392 [BZ #24047]
1393 resolv: Enable full ICMP errors for UDP DNS sockets
1394 * resolv/res_enable_icmp.c: New file.
1395 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1396 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1397 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1398 socket.
1399
1400 2019-03-11 Mao Han <han_mao@c-sky.com>
1401
1402 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1403 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1404
1405 2019-03-11 Mao Han <han_mao@c-sky.com>
1406
1407 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1408 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1409 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1410
1411 2019-03-11 Mao Han <han_mao@c-sky.com>
1412
1413 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
1414 directly.
1415 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
1416 definition.
1417
1418 2019-03-11 Mao Han <han_mao@c-sky.com>
1419
1420 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
1421 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
1422 in mcontext_t
1423
1424 2019-03-08 Mike FABIAN <mfabian@redhat.com>
1425
1426 [BZ #24307]
1427 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
1428 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1429 Unicode 12.0.0.
1430 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1431 * localedata/unicode-gen/PropList.txt: Likewise.
1432 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1433 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
1434 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
1435 * localedata/charmaps/UTF-8: Regenerate.
1436 * localedata/locales/i18n_ctype: Likewise.
1437 * localedata/locales/tr_TR: Likewise.
1438 * localedata/locales/translit_circle: Likewise.
1439 * localedata/locales/translit_cjk_compat: Likewise.
1440 * localedata/locales/translit_combining: Likewise.
1441 * localedata/locales/translit_compat: Likewise.
1442 * localedata/locales/translit_font: Likewise.
1443 * localedata/locales/translit_fraction: Likewise.
1444
1445 2019-03-07 Joseph Myers <joseph@codesourcery.com>
1446
1447 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
1448 than after operators.
1449 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
1450 (setitimer_locked): Likewise.
1451 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1452 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1453 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
1454 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
1455 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
1456 (PPC_CPU_SUPPORTED): Likewise.
1457 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
1458 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
1459 (stat_overflow): Likewise.
1460 (statfs_overflow): Likewise.
1461 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
1462 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
1463 (eq_ttyname_r): Likewise.
1464 (run_chroot_tests): Likewise.
1465
1466 2019-03-07 Florian Weimer <fweimer@redhat.com>
1467
1468 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
1469 header check.
1470
1471 2019-03-07 Martin Liska <mliska@suse.cz>
1472
1473 * math/Makefile: Change location where math-vector-fortran.h is
1474 installed.
1475 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
1476 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
1477 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
1478 * scripts/check-installed-headers.sh: Skip Fortran header files.
1479 * scripts/check-wrapper-headers.py: Likewise.
1480
1481 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1482
1483 * nptl/nptl-init.c (__have_futex_clock_realtime,
1484 __have_futex_clock_realtime): Remove definition.
1485 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
1486 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
1487 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
1488 __ASSUME_FUTEX_CLOCK_REALTIME support.
1489 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1490 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1491 * sysdeps/unix/sysv/linux/kernel-features.h
1492 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
1493 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
1494 Adjust comment.
1495
1496 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1497
1498 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
1499 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
1500 __GI___wcscpy and wcscpy.
1501
1502 2019-03-04 Florian Weimer <fweimer@redhat.com>
1503
1504 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
1505 declaration.
1506 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
1507 defined.
1508
1509 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
1510
1511 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
1512 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1513
1514 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1515
1516 [BZ #24162]
1517 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
1518 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
1519
1520 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1521
1522 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
1523 tests.
1524 (do_test): Likewise.
1525 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1526 (do_test_call_varg): Likewise.
1527 (do_test_call_rarg): Likewise.
1528 * sysdeps/ieee754/ldbl-opt/Makefile
1529 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
1530 tst-nldbl-error.
1531 ($(objpfx)tst-nldbl-warn.c): New rule.
1532 ($(objpfx)tst-nldbl-error.c): Likewise.
1533 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
1534 New variables.
1535
1536 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1537
1538 [BZ #23984]
1539 * include/bits/error-ldbl.h: New file.
1540 * include/error.h: Include stdarg.h. Declare internal functions
1541 __error_internal and __error_at_line_internal.
1542 * misc/Makefile (headers): Add bits/error-ldbl.h.
1543 * misc/bits/error-ldbl.h: New file.
1544 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
1545 avoid the inclusion of bits/error.h.
1546 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
1547 and __nldbl_error_at_line.
1548 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
1549 (__nldbl_error, __ndlbl_error_at_line): New functions.
1550 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
1551 Redirect error and error_at_line.
1552 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1554 Likewise.
1555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1556 Likewise.
1557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1558 Likewise.
1559 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1560 Likewise.
1561 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1562 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1563 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1564
1565 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1566
1567 [BZ #23984]
1568 * include/bits/err-ldbl.h: New file.
1569 * include/err.h: Add prototypes for the internal functions:
1570 __vwarnx_internal and __vwarn_internal.
1571 * misc/Makefile (headers): Add bits/err-ldbl.h.
1572 * misc/bits/err-ldbl.h: New file.
1573 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
1574 defined, i.e.: when -mlong-double-64 is in use.
1575 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
1576 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
1577 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
1578 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
1579 (VA_CALL): New macro.
1580 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
1581 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
1582 functions.
1583 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
1584 declare prototypes for the new functions.
1585 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1586 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1587 Likewise.
1588 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1589 Likewise.
1590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1591 Likewise.
1592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1593 Likewise.
1594 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1595 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1596 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1597
1598 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1599
1600 * sysdeps/ieee754/ldbl-opt/Makefile
1601 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
1602 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
1603 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
1604
1605 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1606
1607 [BZ #23983]
1608 * argp/Makefile (headers): Add bits/argp-ldbl.h.
1609 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
1610 * argp/bits/argp-ldbl.h: New file.
1611 * include/argp.h: Include stdarg.h. Add prototypes for internal
1612 functions: __argp_error_internal and __argp_failure_internal.
1613 * include/bits/argp-ldbl.h: New file.
1614 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
1615 __nldbl_argp_error and __nldbl_argp_failure.
1616 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
1617 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
1618 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
1619 Redirect argp_error and argp_failure calls.
1620 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1622 Likewise.
1623 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1624 Likewise.
1625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1626 Likewise.
1627 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1628 Likewise.
1629 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1630 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1631 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1632
1633 2019-03-01 Florian Weimer <fweimer@redhat.com>
1634
1635 [BZ #20419]
1636 * elf/tst-big-note-lib.S: Create a syntactically valid note.
1637 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
1638 code, to avoid creating an ABI tag note.
1639 (modules-names-nobuild): Add tst-big-note-lib.
1640
1641 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
1642
1643 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
1644 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
1645
1646 2019-03-01 Florian Weimer <fweimer@redhat.com>
1647
1648 [BZ #20271]
1649 * sysdeps/unix/sysv/linux/netlink_assert_response.c
1650 (__netlink_assert_response): Add additional missing newlines.
1651
1652 2019-02-28 Joseph Myers <joseph@codesourcery.com>
1653
1654 * sysdeps/powerpc/powerpc32/dl-machine.c
1655 (__elf_machine_fixup_plt): Use space before '('.
1656 (__process_machine_rela): Likewise.
1657 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
1658 Likewise.
1659 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
1660 Likewise.
1661 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
1662 Likewise.
1663 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
1664 (pattern): Likewise.
1665 (delta): Likewise.
1666 (check_result): Likewise.
1667 (check_excepts): Likewise.
1668 (check_op): Likewise.
1669 (fail_xr): Likewise.
1670 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
1671 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
1672 (SCNHSZ): Likewise.
1673 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
1674 Likewise.
1675 (ARGS): Likewise.
1676 (__makecontext): Likewise.
1677 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
1678 Likewise.
1679
1680 2019-02-28 Florian Weimer <fweimer@redhat.com>
1681
1682 [BZ #23937]
1683 elf: Add test with a local IFUNC resolver.
1684 * elf/ifuncmain9.c: New file.
1685 * elf/ifuncmain9pic.c: Likewise.
1686 * elf/ifuncmain9picstatic.c: Likewise.
1687 * elf/ifuncmain9pie.c: Likewise.
1688 * elf/ifuncmain9static.c: Likewise.
1689 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
1690 ifuncmain9static, ifuncmain9picstatic.
1691 * elf/Makefile [multi-arch && build-shared] (tests-internal):
1692 Add ifuncmain9, ifuncmain9pic.
1693 * elf/Makefile [multi-arch && build-shared && have-fpie]
1694 (ifunc-pie-tests): Add ifuncmain9pie.
1695 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
1696 (CFLAGS-ifuncmain9picstatic.c): Likewise.
1697 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
1698
1699 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1700
1701 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
1702 * configure: Regenerated.
1703 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
1704
1705 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1706
1707 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
1708 symbol as __wcspcy instead of wcscpy.
1709
1710 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1711
1712 * include/stdio.h (__renameat2): New hidden prototype.
1713 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
1714 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
1715 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
1716 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
1717
1718 2019-02-27 Joseph Myers <joseph@codesourcery.com>
1719
1720 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
1721 if statement.
1722
1723 * benchtests/bench-strcpy.c (do_test): Use space before '('.
1724 * benchtests/bench-string.h (cmdline_process_function): Likewise.
1725 * benchtests/bench-strlen.c (do_test): Likewise.
1726 (test_main): Likewise.
1727 * catgets/gencat.c (read_old): Likewise.
1728 * elf/cache.c (load_aux_cache): Likewise.
1729 * iconvdata/bug-iconv8.c (do_test): Likewise.
1730 * math/test-tgmath-ret.c (do_test): Likewise.
1731 * nis/nis_call.c (rec_dirsearch): Likewise.
1732 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
1733 * nptl/tst-audit-threads.c (do_test): Likewise.
1734 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
1735 * nss/nss_test1.c (init): Likewise.
1736 * nss/test-netdb.c (test_hosts): Likewise.
1737 * posix/execvpe.c (maybe_script_execute): Likewise.
1738 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
1739 * stdio-common/tst-printf.c (do_test): Likewise.
1740 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
1741 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
1742 * stdlib/qsort.c (STACK_SIZE): Likewise.
1743 * stdlib/test-canon.c (do_test): Likewise.
1744 * stdlib/tst-swapcontext1.c (do_test): Likewise.
1745 * string/memcmp.c (OPSIZ): Likewise.
1746 * string/test-strcpy.c (do_test): Likewise.
1747 (do_random_tests): Likewise.
1748 * string/test-strlen.c (do_test): Likewise.
1749 (test_main): Likewise.
1750 * string/test-strrchr.c (do_test): Likewise.
1751 (do_random_tests): Likewise.
1752 * string/tester.c (test_memrchr): Likewise.
1753 (test_memchr): Likewise.
1754 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
1755 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
1756 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
1757 (read_encoded_value_with_base): Likewise.
1758 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
1759 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
1760 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
1761 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
1762 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
1763 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
1764 Likewise.
1765 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
1766 Likewise.
1767 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
1768 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
1769 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
1770 Likewise.
1771 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
1772 Likewise.
1773 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
1774 Likewise.
1775 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
1776 Likewise.
1777 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
1778 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
1779 (FP_XSTATE_MAGIC2_SIZE): Likewise.
1780 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
1781 * time/test_time.c (main): Likewise.
1782
1783 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1784
1785 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
1786
1787 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
1788 wmemcpy.
1789
1790 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
1791 wmemcpy.
1792
1793 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
1794
1795 * include/wchar.h (__wcscpy): New prototype.
1796 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
1797 (__wcscpy): Route internal symbol to generic implementation.
1798 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
1799 Add internal __wcscpy alias.
1800 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
1801 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
1802 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
1803 * wcsmbs/wcscpy.c (wcscpy): Add
1804 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
1805 use generic implementation.
1806 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
1807
1808 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
1809 wmemset.
1810
1811 * sysdeps/m68k/wcpcpy.c: Remove file.
1812 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
1813
1814 2019-02-26 Joseph Myers <joseph@codesourcery.com>
1815
1816 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
1817 than after operators.
1818 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1819 * sysdeps/mach/hurd/getcwd.c
1820 (__hurd_canonicalize_directory_name_internal): Likewise.
1821 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
1822 (pthread_mutex_consistent): Likewise.
1823 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
1824 Likewise.
1825 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
1826 (__pthread_mutex_transfer_np): Likewise.
1827 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
1828 (__pthread_mutex_unlock): Likewise.
1829 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
1830 (mtx_owned_p): Likewise.
1831 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
1832 (pthread_mutexattr_getrobust): Likewise.
1833 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
1834 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1835 Likewise.
1836 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1837 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
1838 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
1839 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
1840 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
1841 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1842 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
1843 Likewise.
1844 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
1845 Likewise.
1846 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
1847 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
1848 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
1849 (____longjmp_chk): Likewise.
1850 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
1851 Likewise.
1852 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1853 (INTERNAL_SYSCALL): Likewise.
1854 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1855 (INTERNAL_SYSCALL): Likewise.
1856 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1857 (__get_clockfreq_via_cpuinfo): Likewise.
1858
1859 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
1860 comments.
1861 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
1862 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
1863 (WORD_COPY_BWD): Likewise.
1864 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1865 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1866 Likewise.
1867 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
1868 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
1869 comment.
1870 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
1871
1872 2019-02-25 Joseph Myers <joseph@codesourcery.com>
1873
1874 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
1875 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
1876 rather than after operators.
1877 * elf/cache.c (print_cache): Likewise.
1878 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
1879 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
1880 * hurd/hurdinit.c (_hurd_setproc): Likewise.
1881 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
1882 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
1883 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
1884 (reauth_proc): Likewise.
1885 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
1886 (__file_name_split_at): Likewise.
1887 (__directory_name_split_at): Likewise.
1888 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
1889 * hurd/port2fd.c (_hurd_port2fd): Likewise.
1890 * iconv/gconv_dl.c (do_print): Likewise.
1891 * inet/netinet/in.h (struct sockaddr_in): Likewise.
1892 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
1893 * locale/setlocale.c (new_composite_name): Likewise.
1894 * malloc/memusagestat.c (main): Likewise.
1895 * misc/fstab.c (fstab_convert): Likewise.
1896 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
1897 Likewise.
1898 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
1899 (getgrent_next_file): Likewise.
1900 (internal_getgrnam_r): Likewise.
1901 (internal_getgrgid_r): Likewise.
1902 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
1903 Likewise.
1904 (internal_getgrent_r): Likewise.
1905 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
1906 (getpwent_next_nss): Likewise.
1907 (getpwent_next_file): Likewise.
1908 (internal_getpwnam_r): Likewise.
1909 (internal_getpwuid_r): Likewise.
1910 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
1911 Likewise.
1912 (getspent_next_nss): Likewise.
1913 (internal_getspnam_r): Likewise.
1914 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
1915 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
1916 * string/strchr.c (STRCHR): Likewise.
1917 * string/strchrnul.c (STRCHRNUL): Likewise.
1918 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
1919 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
1920 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
1921 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
1922 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
1923 Likewise.
1924 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
1925 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
1926 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
1927 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
1928 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
1929 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
1930 (open_file): Likewise.
1931 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
1932 (pthread_mutexattr_setprotocol): Likewise.
1933 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1934 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
1935 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
1936 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
1937 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
1938 Likewise.
1939 (elf_machine_rela): Likewise.
1940 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
1941 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
1942 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
1943 * sysdeps/posix/rename.c (rename): Likewise.
1944 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
1945 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
1946 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
1947 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
1948 * sysdeps/unix/grantpt.c (grantpt): Likewise.
1949 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
1950 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
1951 Likewise.
1952 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
1953 Likewise.
1954 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
1955 * time/tzfile.c (__tzfile_compute): Likewise.
1956
1957 2019-02-22 Joseph Myers <joseph@codesourcery.com>
1958
1959 * benchtests/bench-memmem.c (simple_memmem): Break lines before
1960 rather than after operators.
1961 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
1962 * crypt/md5.c (md5_finish_ctx): Likewise.
1963 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
1964 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
1965 * elf/cache.c (load_aux_cache): Likewise.
1966 * elf/dl-load.c (open_verify): Likewise.
1967 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
1968 * elf/readelflib.c (process_elf_file): Likewise.
1969 * elf/rtld.c (dl_main): Likewise.
1970 * elf/sprof.c (generate_call_graph): Likewise.
1971 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
1972 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
1973 * hurd/dtable.c (reauth_dtable): Likewise.
1974 * hurd/getdport.c (__getdport): Likewise.
1975 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
1976 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
1977 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
1978 Likewise.
1979 * hurd/hurdioctl.c (fioctl): Likewise.
1980 * hurd/hurdselect.c (_hurd_select): Likewise.
1981 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
1982 (STOPSIGS): Likewise.
1983 * hurd/hurdstartup.c (_hurd_startup): Likewise.
1984 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
1985 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
1986 * hurd/msgportdemux.c (msgport_server): Likewise.
1987 * hurd/setauth.c (_hurd_setauth): Likewise.
1988 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
1989 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
1990 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
1991 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
1992 * login/tst-utmp.c (do_check): Likewise.
1993 (simulate_login): Likewise.
1994 * mach/lowlevellock.h (lll_lock): Likewise.
1995 (lll_trylock): Likewise.
1996 * math/test-fenv.c (ALL_EXC): Likewise.
1997 * math/test-fenvinline.c (ALL_EXC): Likewise.
1998 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
1999 * nis/nis_call.c (__do_niscall3): Likewise.
2000 * nis/nis_callback.c (cb_prog_1): Likewise.
2001 * nis/nis_defaults.c (searchaccess): Likewise.
2002 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2003 * nis/nis_ismember.c (internal_ismember): Likewise.
2004 * nis/nis_local_names.c (nis_local_principal): Likewise.
2005 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2006 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2007 Likewise.
2008 * nis/ypclnt.c (yp_match): Likewise.
2009 (yp_first): Likewise.
2010 (yp_next): Likewise.
2011 (yp_master): Likewise.
2012 (yp_order): Likewise.
2013 * nscd/hstcache.c (cache_addhst): Likewise.
2014 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2015 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2016 (internal_getpwuid_r): Likewise.
2017 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2018 * posix/glob.h (__GLOB_FLAGS): Likewise.
2019 * posix/regcomp.c (peek_token): Likewise.
2020 (peek_token_bracket): Likewise.
2021 (parse_expression): Likewise.
2022 * posix/regexec.c (sift_states_iter_mb): Likewise.
2023 (check_node_accept_bytes): Likewise.
2024 * posix/tst-spawn3.c (do_test): Likewise.
2025 * posix/wordexp-test.c (testit): Likewise.
2026 * posix/wordexp.c (parse_tilde): Likewise.
2027 (exec_comm): Likewise.
2028 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2029 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2030 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2031 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2032 * stdio-common/tst-fileno.c (do_test): Likewise.
2033 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2034 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2035 * stdlib/strtod_l.c (round_and_return): Likewise.
2036 (____STRTOF_INTERNAL): Likewise.
2037 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2038 * string/strcspn.c (STRCSPN): Likewise.
2039 * string/test-memmem.c (simple_memmem): Likewise.
2040 * termios/tcsetattr.c (tcsetattr): Likewise.
2041 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2042 * time/asctime.c (asctime_internal): Likewise.
2043 * time/strptime_l.c (__strptime_internal): Likewise.
2044 * time/sys/time.h (timercmp): Likewise.
2045 * time/tzfile.c (__tzfile_compute): Likewise.
2046
2047 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2048
2049 [BZ #21915]
2050 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2051
2052 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2053
2054 * argp/argp-help.c (__argp_error_internal): New function,
2055 renamed from __argp_error, but that takes a 'mode_flags'
2056 parameter to control the format of long double parameters.
2057 (__argp_error): Converted into a call __argp_error_internal.
2058 (__argp_failure_internal): New function, renamed from
2059 __argp_failure, but that takes a 'mode_flags' parameter.
2060 (__argp_failure): Converted into a call __argp_failure_internal.
2061 * misc/err.c (__vwarnx_internal): New function, renamed from
2062 vwarnx, but that takes a 'mode_flags' parameter.
2063 (vwarnx): Converted into a call to __vwarnx_internal.
2064 (__vwarn_internal): New function, renamed from vwarn, but that
2065 takes a 'mode_flags' parameter.
2066 (vwarn): Converted into a call to __vwarn_internal.
2067 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2068 call to __vfxprintf with 'mode_flags'.
2069 (__error_internal): New function, renamed from error, but that
2070 takes a 'mode_flags' parameter.
2071 (error): Converted into a call to __error_internal.
2072 (__error_at_line_internal): New function, renamed from
2073 error_at_line, but that takes a 'mode_flags' parameter.
2074 (error_at_line): Converted into a call to
2075 __error_at_line_internal.
2076 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2077 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2078 Likewise.
2079
2080 2019-02-20 Martin Liska <mliska@suse.cz>
2081
2082 * math/Makefile: Install math-vector-fortran.h.
2083 * bits/math-vector-fortran.h: New file.
2084 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2085
2086 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2087
2088 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2089 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2090
2091 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2092
2093 * nptl/pthread_mutex_trylock.c: Fix comment.
2094
2095 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2096
2097 * nptl/pthread_tryjoin.c: Fix comment.
2098
2099 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2100
2101 [BZ #24231]
2102 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2103 after R_SPARC_H34 case.
2104
2105 2019-02-18 Florian Weimer <fweimer@redhat.com>
2106
2107 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2108 (getanswer): Do not call Dprintf.
2109 (res_gethostbyname2_context): Likewise.
2110 (res_gethostbyaddr_context): Likewise.
2111
2112 2019-02-18 Florian Weimer <fweimer@redhat.com>
2113
2114 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2115 declaration.
2116 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2117 Remove definitions.
2118 * libio/stdfiles.c: Update comment.
2119 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2120 set _IO_stdin, _IO_stdout, _IO_stderr.
2121 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2122 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2123 inline function.
2124 (_IO_deallocate_file): New inline function.
2125 * libio/iolibio.h (_IO_vprintf): Remove definition.
2126 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2127 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2128 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2129 _IO_legacy_file.
2130 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2131 __builtin_expect. Use _IO_legacy_file.
2132
2133 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2134
2135 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2136 Initialize ctid with a known value and remove update of ctid
2137 after clone.
2138 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2139 as assumed current value of ctid_ptr.
2140
2141 2019-02-16 Florian Weimer <fweimer@redhat.com>
2142
2143 Check that non-sysdeps headers have wrapper headers.
2144 * scripts/check-wrapper-headers.py: New file.
2145 * Makefile (tests-special): Add check-wrapper-headers.out.
2146 (check-wrapper-headers.out): New target.
2147 * Rules (tests-special): Add check-wrapper-headers.out.
2148 (check-wrapper-headers.out): New target.
2149
2150 2019-02-16 Florian Weimer <fweimer@redhat.com>
2151
2152 Add missing header wrappers under include/.
2153 * include/ar.h: New file.
2154 * include/bits/mqueue2.h: Likewise.
2155 * include/bits/stdio.h: Likewise.
2156 * include/bits/stdio2.h: Likewise.
2157 * include/fstab.h: Likewise.
2158 * include/fts.h: Likewise.
2159 * include/lastlog.h: Likewise.
2160 * include/netinet/icmp6.h: Likewise.
2161 * include/netinet/igmp.h: Likewise.
2162 * include/netinet/ip6.h: Likewise.
2163 * include/re_comp.h: Likewise.
2164 * include/regexp.h: Likewise.
2165 * include/rpcsvc/bootparam.h: Likewise.
2166 * include/rpcsvc/yp_prot.h: Likewise.
2167 * include/sys/random.h: Likewise.
2168 * include/sys/stropts.h: Likewise.
2169 * include/sys/ttychars.h: Likewise.
2170 * include/sys/vfs.h: Likewise.
2171 * include/wait.h: Likewise.
2172
2173 2019-02-16 Florian Weimer <fweimer@redhat.com>
2174
2175 * nptl_db/proc_service.h: Move to ...
2176 * sysdeps/nptl/proc_service.h: ... here.
2177 * nptl_db/thread_db.h: Move to ...
2178 * sysdeps/nptl/thread_db.h: ... here.
2179 * nptl/descr.h: Include <thread_db.h>.
2180
2181 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2182
2183 * io/Makefile (tests): Add tst-lockf.
2184 * io/lockf.c (lockf): Use __fcntl and only define for
2185 !__OFF_T_MATCHES_OFF64_T.
2186 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2187 __OFF_T_MATCHES_OFF64_T case.
2188 * io/tst-lockf.c: New file.
2189 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2190 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2191 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2192 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2193 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2195 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2196 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2197 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2198
2199 2019-02-15 Florian Weimer <fweimer@redhat.com>
2200
2201 [BZ #24211]
2202 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2203 pd->result after the thread descriptor has been freed.
2204
2205 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2206
2207 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2208 from function return type.
2209
2210 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2211
2212 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2213
2214 * scripts/test_printers_common.py: Set TERM to a known harmless
2215 value.
2216
2217 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2218
2219 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2220 (xdr_u_int): Likewise.
2221 (xdr_enum): Likewise.
2222 (xdr_bytes): Reword fall-through comment.
2223 (xdr_string): Likewise.
2224
2225 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2226
2227 [BZ #2421]
2228 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2229 (tests): Add tst-join8 tst-join9.
2230 * nptl/lll_timedwait_tid.c: Remove file.
2231 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2232 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2233 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2234 * nptl/pthread_join_common.c (timedwait_tid): New function.
2235 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2236 is set.
2237 * nptl/tst-join5.c (thread_join): New function.
2238 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2239 check.
2240 * nptl/tst-join8.c: New file.
2241 * nptl/tst-join9.c: Likewise.
2242 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2243 lll_futex_timed_wait_cancel): Add generic macros.
2244 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2245 Remove definitions.
2246 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2247 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2248 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2249 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2250 Remove function.
2251 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2252 Likewise.
2253 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2254 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2255 (lll_futex_timed_wait_cancel): New macro.
2256
2257 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2258
2259 * benchtests/Makefile: Add malloc-simple benchmark.
2260 * benchtests/bench-malloc-simple.c: New benchmark.
2261
2262 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2263
2264 * benchtests/bench-memmove.c (do_one_test): Remove unused
2265 ORIG_SRC.
2266 (do_test): Adjust.
2267 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2268 ORIG_SRC.
2269 (do_test): Adjust.
2270
2271 2019-01-13 Jim Wilson <jimw@sifive.com>
2272
2273 [BZ #24040]
2274 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2275 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2276 (func): New.
2277 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2278 call func directly.
2279 * nptl/Makefile (tests): Add tst-unwind-thread.
2280 (CFLAGS-tst-unwind-thread.c): Define.
2281 * nptl/tst-unwind-thread.c: New file.
2282 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2283 as undefined.
2284
2285 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2286
2287 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2288 comment wording.
2289 * nis/nis_call.c (__do_niscall3): Likewise.
2290
2291 * catgets/gencat.c (normalize_line): Use braces around empty
2292 'else' body.
2293 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2294 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2295 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2296 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2297 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2298 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2299 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2300 definition.
2301
2302 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2303 execlp returns.
2304
2305 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2306
2307 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2308 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2309 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2310 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2311 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2312 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2313 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2314 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2315 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2316 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2317 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2318 * benchtests/bench-bcopy.c: Delete file.
2319 * benchtests/bench-bzero.c: Likewise.
2320 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2321 (simple_memccpy): Remove.
2322 (generic_memccpy): Add function.
2323 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2324 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2325 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2326 (generic_mempcpy): Add new function.
2327 * benchtests/bench-memset.c (simple_bzero): Remove.
2328 (builtin_bzero): Remove.
2329 (builtin_memset): Remove.
2330 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2331 (generic_rawmemchr): Add new function.
2332
2333 2019-02-12 Florian Weimer <fweimer@redhat.com>
2334
2335 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2336
2337 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2338
2339 [BZ #24122]
2340 * elf/Makefile (tests): Add tst-audit13.
2341 (modules-names): Add tst-audit13mod1.
2342 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2343 rule.
2344 * elf/tst-audit13.c: New file.
2345 * elf/tst-audit13mod1.c: Likewise.
2346
2347 2019-02-12 Florian Weimer <fweimer@redhat.com>
2348
2349 [BZ #24122]
2350 * elf/rtld.c (unload_audit_module): New function.
2351 (report_audit_module_load_error): Likewise.
2352 (load_audit_module): Likewise. Extracted from dl_main. Call
2353 _dl_close if the laversion symbol cannot be found. Use early
2354 returns for error handling. Add malloc error check. Check for a
2355 zero return value from la_version. Remove spurious comment about
2356 static TLS initialization. Remove useless casts.
2357 (notify_audit_modules_of_loaded_object): New function. Extracted
2358 from dl_main.
2359 (load_audit_module): Likewise.
2360 (dl_main): Call load_audit_modules.
2361
2362 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2363
2364 * elf/dl-exception.c (_dl_exception_create_format): Add
2365 fall-through comments.
2366 * elf/ldconfig.c (parse_conf_include): Likewise.
2367 * elf/rtld.c (print_statistics): Likewise.
2368 * locale/programs/charmap.c (parse_charmap): Likewise.
2369 * misc/mntent_r.c (__getmntent_r): Likewise.
2370 * posix/wordexp.c (parse_arith): Likewise.
2371 (parse_backtick): Likewise.
2372 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2373 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2374 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2375
2376 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2377
2378 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2379 Use float instead of double.
2380
2381 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2382
2383 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2384
2385 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2386
2387 * sysdeps/powerpc/bits/mathinline.h: Remove.
2388
2389 2019-02-08 Florian Weimer <fweimer@redhat.com>
2390
2391 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2392 * math/bits/math-finite.h: Move to ...
2393 * bits/math-finite.h: ... here.
2394
2395 2019-02-08 Florian Weimer <fweimer@redhat.com>
2396
2397 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2398 * bits/unistd_ext.h: here.
2399
2400 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2401
2402 [BZ #21915]
2403 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2404 * nss/tst-nss-files-hosts-long.c: New file.
2405 * nss/tst-nss-files-hosts-long.root: New directory.
2406 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2407 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2408
2409 2019-02-08 Florian Weimer <fweimer@redhat.com>
2410
2411 * include/bits/unistd_ext.h: Remove file.
2412 * posix/bits/unistd_ext.h: Move to ...
2413 * sysdeps/generic/bits/unistd_ext.h: ... here.
2414
2415 2019-02-08 Florian Weimer <fweimer@redhat.com>
2416
2417 * include/bits/unistd_ext.h: New file.
2418
2419 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
2420
2421 * time/tst-strftime2.c: Use array_length macros instead of magic
2422 numbers.
2423
2424 2019-02-08 Florian Weimer <fweimer@redhat.com>
2425
2426 [BZ #24161]
2427 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
2428 argument.
2429 * nptl/register-atfork.c (__run_fork_handlers): Only perform
2430 locking if the new do_locking argument is true.
2431 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
2432 __run_fork_handlers.
2433
2434 2019-02-08 Florian Weimer <fweimer@redhat.com>
2435
2436 [BZ #6399]
2437 Linux: Add gettid system call wrapper.
2438 * posix/Makefile (headers): Add bits/unistd_ext.h.
2439 * posix/bits/unistd_ext.h: New file.
2440 * posix/unistd.h: Include it.
2441 * manual/process.texi (Process Identification): Document gettid.
2442 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
2443 tst-gettid, tst-gettid-kill.
2444 (tst-gettid): Link with $(shared-thread-library).
2445 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
2446 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
2447 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
2448 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
2449 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
2450 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2451 Add gettid.
2452 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2453 Likewise.
2454 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2455 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2456 Likewise.
2457 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2458 Likewise.
2459 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2460 Likewise.
2461 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2462 Likewise.
2463 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2464 Likewise.
2465 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2466 Likewise.
2467 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2468 Likewise.
2469 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2470 (GLIBC_2.30): Likewise.
2471 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2472 (GLIBC_2.30): Likewise.
2473 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2474 (GLIBC_2.30): Likewise.
2475 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2476 (GLIBC_2.30): Likewise.
2477 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2478 Likewise.
2479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2480 (GLIBC_2.30): Likewise.
2481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2482 (GLIBC_2.30): Likewise.
2483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2484 (GLIBC_2.30): Likewise.
2485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2486 (GLIBC_2.30): Likewise.
2487 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2488 Likewise.
2489 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2490 Likewise.
2491 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2492 Likewise.
2493 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2494 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2495 Likewise.
2496 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2497 Likewise.
2498 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2499 Likewise.
2500 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2501 Likewise.
2502 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
2503
2504 2019-02-08 Florian Weimer <fweimer@redhat.com>
2505
2506 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
2507 compatibility symbols.
2508
2509 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
2510
2511 [BZ #24180]
2512 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
2513 Add compiler barriers and comments.
2514
2515 2019-02-07 Florian Weimer <fweimer@redhat.com>
2516
2517 * include/array_length.h (array_length): Do not use a statement
2518 expression and _Static_assert, so that array_length can be used at
2519 file scope and as a constant expression.
2520
2521 2019-02-07 Florian Weimer <fweimer@redhat.com>
2522
2523 * support/xdlfcn.h (xdlmopen): Declare.
2524 * support/xdlmopen.c: New file.
2525 * support/Makefile (libsupport-routines): Add xdlmopen.
2526
2527 2019-02-06 Joseph Myers <joseph@codesourcery.com>
2528
2529 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
2530 before return type, without separate inline.
2531 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
2532 * elf/dl-tunables.h (tunable_is_name): Likewise.
2533 * malloc/malloc.c (do_set_trim_threshold): Likewise.
2534 (do_set_top_pad): Likewise.
2535 (do_set_mmap_threshold): Likewise.
2536 (do_set_mmaps_max): Likewise.
2537 (do_set_mallopt_check): Likewise.
2538 (do_set_perturb_byte): Likewise.
2539 (do_set_arena_test): Likewise.
2540 (do_set_arena_max): Likewise.
2541 (do_set_tcache_max): Likewise.
2542 (do_set_tcache_count): Likewise.
2543 (do_set_tcache_unsorted_limit): Likewise.
2544 * nis/nis_subr.c (count_dots): Likewise.
2545 * nptl/allocatestack.c (advise_stack_range): Likewise.
2546 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
2547 (do_sin): Likewise.
2548 (reduce_sincos): Likewise.
2549 (do_sincos): Likewise.
2550 * sysdeps/unix/sysv/linux/x86/elision-conf.c
2551 (do_set_elision_enable): Likewise.
2552 (TUNABLE_CALLBACK_FNDECL): Likewise.
2553
2554 2019-02-06 Florian Weimer <fweimer@redhat.com>
2555
2556 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
2557 (xdlsym): Use dlerror to detect a NULL symbol.
2558
2559 2019-02-06 Florian Weimer <fweimer@redhat.com>
2560
2561 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
2562 <stap-probe.h>.
2563 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2564
2565 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2566
2567 * libio/tst-bz24153.c (wide): Use wide char format specifier.
2568
2569 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2570
2571 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
2572 __wmemcmp and weak alias to wmemcmp.
2573
2574 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2575
2576 [BZ #23403]
2577 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
2578 TLS_TCB_AT_TP tls variant.
2579 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
2580 Add alignment checks.
2581 * support/Makefile (libsupport-routines): Add xposix_memalign and
2582 xpthread_setstack.
2583 * support/support.h: Add xposix_memalign.
2584 * support/xthread.h: Add xpthread_attr_setstack.
2585 * support/xposix_memalign.c: New File.
2586 * support/xpthread_attr_setstack.c: Likewise.
2587
2588 2019-02-05 Florian Weimer <fweimer@redhat.com>
2589
2590 [BZ #24164]
2591 arm: Use "nr" constraint for Systemtap probes, to avoid the
2592 compiler using memory operands for constants, due to the "o"
2593 alternative in the default "nor" constraint.
2594 * include/stap-probe.h [USE_STAP_PROBE]: Include
2595 <stap-probe-machine.h>
2596 * sysdeps/generic/stap-probe-machine.h: New file.
2597 * sysdeps/arm/stap-probe-machine.h: Likewise.
2598
2599 2019-02-04 Joseph Myers <joseph@codesourcery.com>
2600
2601 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
2602 with 0, not tcache->entries[tc_idx].
2603
2604 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
2605 once.
2606
2607 2019-02-04 Andreas Schwab <schwab@suse.de>
2608
2609 [BZ #16976]
2610 [BZ #17396]
2611 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
2612 looking up collating elements match against (wide) character
2613 sequence instead of name. Correct alignment adjustment.
2614 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
2615 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
2616 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
2617 (LOCALES): Add cs_CZ.ISO-8859-2.
2618 * posix/tst-fnmatch4.c: New file.
2619 * posix/tst-fnmatch5.c: New file.
2620 * include/wchar.h (__wmemcmp): Declare.
2621 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
2622 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2623 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
2624 * sysdeps/s390/wmemcmp.c: Likewise.
2625
2626 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
2627
2628 [BZ #24155]
2629 CVE-2019-7309
2630 * NEWS: Updated for CVE-2019-7309.
2631 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
2632 upper 32 bits of RDX register for x32. Use unsigned Jcc
2633 instructions, instead of signed.
2634 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
2635 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
2636
2637 2019-02-04 Florian Weimer <fweimer@redhat.com>
2638
2639 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
2640 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
2641 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
2642 Likewise.
2643 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
2644 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
2645 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
2646 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
2647 Likewise.
2648 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
2649 Likewise.
2650 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
2651 Likewise.
2652 (posix_spawn_file_actions_addopen): Likewise.
2653 (posix_spawn_file_actions_addclose): Likewise.
2654 (posix_spawn_file_actions_adddup2): Likewise.
2655 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
2656 qualifiers.
2657 (posix_spawn_file_actions_addfchdir_np): Likewise.
2658
2659 2019-02-04 David Newall <glibc@davidnewall.com>
2660
2661 elf: Implement --preload option for the dynamic linker.
2662 * elf/rtld.c (preloadarg): New variable.
2663 (handle_preload_list): Pass through “where” argument to
2664 do_preload.
2665 (dl_main): Handle "--preload" and add second call to
2666 handle_preload_list.
2667 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
2668 (tst-rtld-preload-OBJS): Set variable.
2669 (tst-rtld-preload.out): New target.
2670 * elf/tst-rtld-preload.sh: New file.
2671
2672 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
2673
2674 * Makefile (testrun.sh): Exit in case of incorrect argument.
2675
2676 2019-02-04 Florian Weimer <fweimer@redhat.com>
2677
2678 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
2679 alignment gaps.
2680
2681 2019-02-03 Florian Weimer <fweimer@redhat.com>
2682
2683 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
2684 implicit overflow checks.
2685
2686 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
2687
2688 * stdlib/isomac.c: Include <unistd.h>.
2689
2690 2019-02-03 Florian Weimer <fweimer@redhat.com>
2691
2692 * include/time.h (__tzfile_default): Use int, not long int, for
2693 the GMT offsets.
2694 * time/tzfile.c (struct ttinfo): Change type of the offset member
2695 to int.
2696 (__tzfile_read): Remove useless cast.
2697 (__tzfile_default): Adjust prototype.
2698 * time/tzset.c (tz_rule): Change type of the offset member to int.
2699 (parse_offset): Change the type of the sign variable to int.
2700
2701 2019-02-03 Florian Weimer <fweimer@redhat.com>
2702
2703 [BZ #24153]
2704 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
2705 * libio/getchar.c (getchar): Likewise.
2706 * libio/getchar_u.c (getchar_unlocked): Likewise.
2707 * libio/getwchar.c (getwchar): Likewise.
2708 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
2709 * libio/iogets.c (_IO_gets): Likewise.
2710 * libio/vscanf.c (_IO_vscanf): Likewise.
2711 * libio/vwscanf.c (__vwscanf): Likewise.
2712 * libio/tst-bz24153.c: New file.
2713 * libio/Makefile (tests): Add it.
2714
2715 2019-02-02 Florian Weimer <fweimer@redhat.com>
2716
2717 [BZ #14829]
2718 * manual/resource.texi (Basic Scheduling Functions): Add
2719 portability note. Change process to task throughout the section.
2720 Remove incorrect comment about sched_yield as it affects
2721 tasks/threads, not entire processes.
2722 * sysdeps/unix/sysv/linux/bits/posix_opt.h
2723 (_POSIX_PRIORITY_SCHEDULING): Update comment.
2724
2725 2019-02-01 Joseph Myers <joseph@codesourcery.com>
2726
2727 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
2728 * configure: Regenerated.
2729 * manual/install.texi (Tools for Compilation): Update minimum GCC
2730 version.
2731 * INSTALL: Regenerated.
2732
2733 2019-02-01 Florian Weimer <fweimer@redhat.com>
2734
2735 * support/support_test_compare_string.c
2736 (support_test_compare_string): Use "string" in error message.
2737 * support/tst-test_compare_string.c (do_test): Adjust.
2738
2739 2019-02-01 Florian Weimer <fweimer@redhat.com>
2740
2741 * support/support_format_address_family.c
2742 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
2743
2744 2019-02-01 Florian Weimer <fweimer@redhat.com>
2745
2746 * manual/socket.texi (Internet Address Formats): Clarify the byte
2747 order of struct sockaddr_in, struct sockaddr_in6. Document
2748 sin6_flowinfo and sin6_scope_id.
2749
2750 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
2751
2752 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
2753 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
2754 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
2755 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
2756 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
2757 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
2758
2759 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2760
2761 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
2762 [!MEMCHR](MEMCHR): Set to __memchr.
2763 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2764 Add memchr_generic and memchr_nosimd.
2765 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2766 (__libc_ifunc_impl_list): Add memchr ifuncs.
2767 * sysdeps/aarch64/multiarch/memchr.c: New file.
2768 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
2769 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
2770
2771 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2772
2773 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2774 Add memset_emag.
2775 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2776 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
2777 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
2778 Add IS_EMAG check for ifunc dispatch.
2779 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
2780 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
2781
2782 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2783
2784 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
2785 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2786 Add emag.
2787 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
2788 New macro.
2789
2790 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
2791
2792 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
2793
2794 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
2795
2796 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
2797 syscall-template file.
2798
2799 2019-01-31 Carlos O'Donell <carlos@redhat.com>
2800 Torvald Riegel <triegel@redhat.com>
2801 Rik Prohaska <prohaska7@gmail.com>
2802
2803 [BZ# 23844]
2804 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
2805 tst-rwlock-trywrlock-stall.
2806 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
2807 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
2808 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
2809 Set __wrphase_fute to 1 only if we started the write phase.
2810 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
2811 * nptl/tst-rwlock-trywrlock-stall.c: New file.
2812 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
2813 * support/xpthread_rwlock_destroy.c: New file.
2814 * support/xthread.h: Declare xpthread_rwlock_destroy.
2815
2816 2019-02-01 Joseph Myers <joseph@codesourcery.com>
2817
2818 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
2819 version to 4.0.2.
2820
2821 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2822
2823 [BZ #24051]
2824 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
2825 * libio/fileops.c (_IO_new_file_underflow): Likewise
2826 * libio/wfileops.c (_IO_wfile_underflow): Likewise
2827 * libio/putchar.c (putchar): Likewise.
2828 * libio/putchar_u.c (putchar_unlocked): Likewise.
2829 * libio/putwchar.c (putchar): Likewise.
2830 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
2831 * libio/tst-bz24051.c: New test.
2832 * libio/Makefile (tests): Add tst-bz24051
2833
2834 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
2835
2836 CVE-2019-9169
2837 regex: fix read overrun [BZ #24114]
2838 Problem found by AddressSanitizer, reported by Hongxu Chen in:
2839 https://debbugs.gnu.org/34140
2840 * posix/regexec.c (proceed_next_node):
2841 Do not read past end of input buffer.
2842
2843 2019-01-31 Florian Weimer <fweimer@redhat.com>
2844
2845 [BZ #24059]
2846 * nss/nss_files/files-alias.c (get_next_alias): Handle
2847 continuation line without newline at the end.
2848 * nss/tst-nss-files-alias-truncated.c: New file.
2849 * nss/Makefile [$(build-shared)] (tests): Add
2850 tst-nss-files-alias-truncated.
2851 (tst-nss-files-alias-truncated): Link with libnss_files.so.
2852 * support/namespace.h (struct support_chroot_configuration): Add
2853 aliases member.
2854 (struct support_chroot): Add path_aliases member.
2855 * support/support_chroot.c (support_chroot_create): Handle
2856 aliases.
2857 (support_chroot_free): Free path_aliases.
2858
2859 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
2860
2861 * version.h (RELEASE): Set to "development".
2862 (VERSION): Set to "2.29.9000".
2863 * NEWS: Add section for 2.30.
2864
2865 * version.h (RELEASE): Set to "stable".
2866 (VERSION): Set to "2.29".
2867 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
2868
2869 * NEWS: Add the list of bugs fixed in 2.29.
2870 * manual/contrib.texi: Update contributors list with some more
2871 names.
2872 * manual/install.texi: Update latest versions of packages
2873 tested.
2874 * INSTALL: Regenerated.
2875
2876 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
2877
2878 * po/be.po: Update translations.
2879 * po/bg.po: Likewise.
2880 * po/ca.po: Likewise.
2881 * po/cs.po: Likewise.
2882 * po/da.po: Likewise.
2883 * po/de.po: Likewise.
2884 * po/el.po: Likewise.
2885 * po/eo.po: Likewise.
2886 * po/es.po: Likewise.
2887 * po/fi.po: Likewise.
2888 * po/fr.po: Likewise.
2889 * po/gl.po: Likewise.
2890 * po/hr.po: Likewise.
2891 * po/hu.po: Likewise.
2892 * po/ia.po: Likewise.
2893 * po/id.po: Likewise.
2894 * po/it.po: Likewise.
2895 * po/ja.po: Likewise.
2896 * po/ko.po: Likewise.
2897 * po/lt.po: Likewise.
2898 * po/nb.po: Likewise.
2899 * po/nl.po: Likewise.
2900 * po/pl.po: Likewise.
2901 * po/pt_BR.po: Likewise.
2902 * po/ru.po: Likewise.
2903 * po/rw.po: Likewise.
2904 * po/sk.po: Likewise.
2905 * po/sl.po: Likewise.
2906 * po/sv.po: Likewise.
2907 * po/tr.po: Likewise.
2908 * po/uk.po: Likewise.
2909 * po/vi.po: Likewise.
2910 * po/zh_CN.po: Likewise.
2911 * po/zh_TW.po: Likewise.
2912
2913 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
2914
2915 [BZ #24130]
2916 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
2917 of $f3 register on $y_is_neg path.
2918
2919 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
2920
2921 [BZ #24110]
2922 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
2923 sigaltstack.ss_flags.
2924
2925 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
2926
2927 [BZ #23758]
2928 * manual/time.texi (strftime): Document "%Ey".
2929 * time/strftime_l.c (__strftime_internal): Set the default width
2930 padding with zero of "%Ey" to 2.
2931
2932 [BZ #24096]
2933 * manual/time.texi (strftime): Document "%EC" and "%EY".
2934 * time/Makefile (tests): Add tst-strftime2.
2935 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
2936 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
2937 override padding for "%Ey".
2938 If an optional flag ('_' or '-') is specified to "%EY", interpret the
2939 "%Ey" in the subformat as if decorated with that flag.
2940 * time/tst-strftime2.c: New file.
2941
2942 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2943
2944 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
2945 are not defined.
2946
2947 [BZ #24122]
2948 * elf/Makefile (tests): Add tst-audit13.
2949 (modules-names): Add tst-audit13mod1.
2950 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2951 rule.
2952 * elf/rtld.c (dl_main): Handle invalid audit module version.
2953 * elf/tst-audit13.c: New file.
2954 * elf/tst-audit13mod1.c: Likewise.
2955
2956 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
2957
2958 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
2959 returned by __hurd_at_flags.
2960 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
2961 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
2962 directly instead of __hurd_file_name_lookup.
2963
2964 2019-01-21 Joseph Myers <joseph@codesourcery.com>
2965
2966 * scripts/build-many-glibcs.py (Context.checkout): Default
2967 binutils version to 2.32 branch.
2968
2969 2019-01-21 Florian Weimer <fweimer@redhat.com>
2970
2971 [BZ #20018]
2972 CVE-2016-10739
2973 resolv: Reject trailing characters in host names
2974 * include/arpa/inet.h (__inet_aton_exact): Declare.
2975 (inet_aton): Remove hidden prototype. No longer used internally.
2976 * nscd/gai.c (__inet_aton): Do not define.
2977 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
2978 * nss/digits_dots.c (__inet_aton): Likewise.
2979 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
2980 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
2981 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
2982 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
2983 (tst-resolv-trailing): Likewise.
2984 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
2985 libc.
2986 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
2987 Make static. Add endp parameter.
2988 (__inet_aton_exact): New function.
2989 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
2990 (__inet_addr): Call inet_aton_end.
2991 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
2992 not just IPv6. Call __inet_aton_exact.
2993 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
2994 (tests): Make const. Add additional test cases with trailing
2995 characters.
2996 (do_test): Use array_length.
2997 * resolv/tst-inet_aton_exact.c: New file.
2998 * resolv/tst-resolv-trailing.c: Likewise.
2999 * resolv/tst-resolv-nondecimal.c: Likewise.
3000 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3001
3002 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3003
3004 [BZ# 24097]
3005 CVE-2019-6488
3006 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3007 Clear the upper 32 bits of RSI register.
3008 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3009 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3010 and tst-size_t-wcsnlen.
3011 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3012 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3013
3014 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3015
3016 [BZ# 24097]
3017 CVE-2019-6488
3018 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3019 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3020 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3021 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3022 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3023
3024 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3025
3026 [BZ# 24097]
3027 CVE-2019-6488
3028 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3029 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3030 * sysdeps/x86_64/strcmp.S: Likewise.
3031 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3032 tst-size_t-strncmp and tst-size_t-wcsncmp.
3033 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3034 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3035 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3036
3037 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3038
3039 [BZ# 24097]
3040 CVE-2019-6488
3041 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3042 RDX_LP for length. Clear the upper 32 bits of RDX register.
3043 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3044 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3045 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3046 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3047
3048 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3049
3050 [BZ# 24097]
3051 CVE-2019-6488
3052 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3053 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3054 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3055 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3056
3057 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3058
3059 [BZ# 24097]
3060 CVE-2019-6488
3061 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3062 length. Clear the upper 32 bits of RDX register.
3063 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3064 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3065 Likewise.
3066 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3067 Likewise.
3068 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3069 tst-size_t-wmemchr.
3070 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3071
3072 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3073
3074 [BZ# 24097]
3075 CVE-2019-6488
3076 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3077 length. Clear the upper 32 bits of RDX register.
3078 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3079 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3080 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3081 tst-size_t-wmemcmp.
3082 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3083 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3084
3085 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3086
3087 [BZ# 24097]
3088 CVE-2019-6488
3089 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3090 upper 32 bits of RDX register.
3091 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3092 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3093 tst-size_t-wmemchr.
3094 * sysdeps/x86_64/x32/test-size_t.h: New file.
3095 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3096 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3097
3098 2019-01-18 Florian Weimer <fweimer@redhat.com>
3099
3100 [BZ #24112]
3101 resolv: Do not send queries for non-host-names in nss_dns.
3102 * resolv/nss_dns/dns-host.c (check_name): New function.
3103 (_nss_dns_gethostbyname2_r): Use it.
3104 (_nss_dns_gethostbyname_r): Likewise.
3105 (_nss_dns_gethostbyname4_r): Likewise.
3106
3107 2019-01-21 Florian Weimer <fweimer@redhat.com>
3108
3109 * resolv/inet_addr.c: Reformat to GNU style.
3110 (__inet_addr, __inet_aton): Update comment.
3111
3112 2019-01-18 Florian Weimer <fweimer@redhat.com>
3113
3114 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3115 ("malloc: Use current (C11-style) atomics for fastbin access").
3116 This commit introduces a substantial performance regression on
3117 POWER and Aarch64.
3118 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3119 (REMOVE_FB): Define.
3120 (_int_malloc): Use it and reindent.
3121 (_int_free): Use CAS loop with
3122 catomic_compare_and_exchange_val_rel.
3123 (malloc_consolidate): Use atomic_exchange_acq.
3124
3125
3126 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3127
3128 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3129 -Wl,-z,now.
3130 (LDFLAGS-tst-minsigstksz-2): Likewise.
3131 (LDFLAGS-tst-minsigstksz-3): Likewise.
3132 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3133 (LDFLAGS-tst-minsigstksz-4): Likewise.
3134
3135 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3136
3137 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3138 than "alternate".
3139
3140 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3141
3142 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3143
3144 2019-01-16 Zack Weinberg <zackw@panix.com>
3145
3146 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3147 (xget_sigstack_location): New test support functions.
3148 * support/xsigstack.c: New file, implementing them.
3149 * support/tst-xsigstack.c: New test for them.
3150 * support/Makefile: Update.
3151
3152 * signal/tst-minsigstksz-1.c
3153 * signal/tst-minsigstksz-2.c
3154 * signal/tst-minsigstksz-3.c
3155 * signal/tst-minsigstksz-3a.c
3156 * signal/tst-minsigstksz-4.c: New tests.
3157 * signal/Makefile: Run them.
3158
3159 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3160
3161 * po/libc.pot: Regenerate.
3162
3163 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3164
3165 * math/libm-test-fma.inc (fma_test_data): Set
3166 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3167
3168 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3169
3170 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3171 (do_test): Changed __vector __int128_t to __vector unsigned int.
3172
3173 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3174
3175 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3176 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3177 stpcpy-avx2 and stpncpy-avx2.
3178 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3179 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3180 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3181 and __stpncpy_avx2.
3182 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3183 ifunc-strcpy.h}: rename header for a more generic name.
3184 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3185 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3186 AVX unaligned load is fast and vzeroupper is preferred.
3187 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3188 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3189 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3190 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3191 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3192 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3193
3194 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3195
3196 * argp/argp-help.c: Fix typo in comment.
3197 * misc/sys/cdefs.h: Likewise.
3198 * posix/regexec.c (sift_states_iter_mb): Likewise.
3199 * socket/sockatmark.c: Likewise.
3200 * socket/sys/socket.h: Likewise.
3201 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3202 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3203 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3204 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3205 * sysdeps/unix/sockatmark.c: Likewise.
3206 * time/strptime_l.c: Likewise.
3207
3208 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3209
3210 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3211 missing space after the cast of "_NL_CURRENT".
3212
3213 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3214
3215 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3216 ifdef to fix read of VSCR.
3217 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3218 tst-ucontext-ppc64-vscr.c to test list.
3219 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3220
3221 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3222
3223 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3224 fall-through.
3225
3226 2019-01-09 Jim Wilson <jimw@sifive.com>
3227
3228 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3229
3230 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3231
3232 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3233 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3234 __memcpy_falkor for ares.
3235 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3236 Add new define.
3237 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3238 Add ares cpu.
3239
3240 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3241
3242 [BZ #24066]
3243 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3244 4_FP_W_TYPEs are used for IEEE quad precision.
3245 * soft-fp/extendhftf2.c: Likewise.
3246 * soft-fp/extendsftf2.c: Likewise.
3247 * soft-fp/extendxftf2.c: Likewise.
3248 * soft-fp/trunctfdf2.c: Likewise.
3249 * soft-fp/trunctfhf2.c: Likewise.
3250 * soft-fp/trunctfsf2.c: Likewise.
3251 * soft-fp/trunctfxf2.c: Likewise.
3252 * sysdeps/alpha/ots_cvttx.c: Likewise.
3253 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3254 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3255 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3256 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3257 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3258 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3259 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3260 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3261 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3262 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3263 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3264 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3265 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3266 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3267 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3268 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3269 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3270
3271 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3272
3273 [BZ #24024]
3274 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3275 code with -fmath-errno.
3276 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3277 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3278 * string/test-strerror-errno.c: New file.
3279
3280 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3281
3282 [BZ #24046]
3283 * localedata/locales/en_US (date_fmt): Add, set to
3284 "%a %d %b %Y %r %Z".
3285
3286 2019-01-07 Florian Weimer <fweimer@redhat.com>
3287
3288 [BZ #24063]
3289 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3290 instead of @var{errno}.
3291 (Parsing of Integers): Likewise.
3292 (Parsing of Floats): Likewise.
3293 * manual/filesys.texi (Working with Directory Trees): Likewise.
3294 (Temporary Files): Likewise.
3295 * manual/job.texi (Terminal Access Functions): Likewise.
3296 * manual/llio.texi (Synchronizing I/O): Likewise.
3297 * manual/math.texi (SVID Random): Likewise.
3298 * manual/message.texi (The catgets Functions): Likewise.
3299 (Translation with gettext): Likewise.
3300 (Locating gettext catalog): Likewise.
3301 (Charset conversion in gettext): Likewise.
3302 * manual/nss.texi (NSS Module Function Internals): Likewise.
3303 * manual/search.texi (Hash Search Function): Likewise.
3304 * manual/setjmp.texi (System V contexts): Likewise.
3305 * manual/time.texi (Sleeping): Likewise.
3306 * manual/users.texi (Lookup User): Likewise.
3307 (Lookup Group): Likewise.
3308
3309 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3310
3311 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3312 fix typo.
3313
3314 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3315
3316 [BZ #19444]
3317 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3318 __builtin_unreachable for default case in switch.
3319 (__ieee754_yn): Likewise.
3320 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3321 (__ieee754_ynl): Likewise.
3322 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3323 (__ieee754_ynl): Likewise.
3324 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3325 (__ieee754_ynl): Likewise.
3326
3327 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3328
3329 * manual/maint.texi: Use @{ and @}.
3330
3331 2019-01-04 Florian Weimer <fweimer@redhat.com>
3332
3333 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3334 function.
3335 (do_in_chroot_1): Call it.
3336 (run_chroot_tests):
3337 Improve error reporting in case it is not possible to create a
3338 collision for the PTY name required by the test.
3339
3340 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3341
3342 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3343 lll_wait_tid with timeout.
3344 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3345 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3346 futex_reltimed_wait_cancelable for cancelabla mode.
3347 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3348 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3349 macros.
3350 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3351 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3352 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3353 SYSCALL_CANCEL_NCS): New macro.
3354 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3355 (lll_timedwait_tid): Remove macro.
3356 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3357 Likewise.
3358 (lll_timedwait_tid): Likewise.
3359 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3360 Likewise.
3361 (lll_timedwait_tid): Likewise.
3362 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3363 Likewise.
3364 (lll_timedwait_tid): Likewise.
3365 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3366 Use INTERNAL_SYSCALL_CANCEL.
3367 * sysdeps/unix/sysv/linux/futex-internal.h
3368 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3369 instead of __pthread_{enable,disable}_asynccancel.
3370 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3371 (lll_futex_wait_cancel): New macro.
3372
3373 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3374 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3375
3376 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3377 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3378
3379 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3380 in backtrace analysis.
3381 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3382 side-effects.
3383 (tf_send): Likewise.
3384
3385 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3386 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3387 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3388 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3389 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3390 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3391 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3392 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3393 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3394 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3395 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3396 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3397 Likewise.
3398 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3399 tst-cancel-wrappers.sh.
3400 (generated): Remove tst-cancel-wrappers.out.
3401 (tst-cancel-wrappers.out): Remove rule.
3402 * nptl/tst-cancel-wrappers.sh: Remove file.
3403
3404 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3405
3406 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3407 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3408 Update.
3409
3410 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3411
3412 [BZ #23640]
3413 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
3414 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
3415 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
3416 close-on-exec reset for adddup2 file action.
3417 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3418
3419 2019-01-03 Zack Weinberg <zackw@panix.com>
3420
3421 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
3422 parameter. Only use deprecated scanf when __USE_GNU is defined
3423 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
3424 than 201103L, whichever is relevant for the language being compiled.
3425
3426 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
3427 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
3428 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
3429 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
3430 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
3431
3432 * libio/iovsscanf.c
3433 * libio/fwscanf.c
3434 * libio/iovswscanf.c
3435 * libio/swscanf.c
3436 * libio/vscanf.c
3437 * libio/vwscanf.c
3438 * libio/wscanf.c
3439 * stdio-common/fscanf.c
3440 * stdio-common/scanf.c
3441 * stdio-common/vfscanf.c
3442 * stdio-common/vfwscanf.c
3443 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3444 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
3445 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
3446 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
3447 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
3448 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
3449 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
3450 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
3451 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
3452 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
3453 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
3454 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
3455 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
3456 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
3457 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
3458
3459 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
3460 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
3461 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
3462 not sscanf.
3463 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
3464 with a preprocessor macro.
3465
3466 * stdio-common/bug21.c, stdio-common/scanf14.c:
3467 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
3468 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3469 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
3470 to xscanf, xfscanf, xsscanf.
3471
3472 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
3473 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3474 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
3475 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
3476 xfscanf, xsscanf.
3477 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
3478 override feature selection macros or provide definitions of u_char etc.
3479 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
3480 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
3481 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
3482 with -std=gnu89.
3483
3484 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3485
3486 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3487 bits/termios-misc.h.
3488 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
3489 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3490 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3491 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3492 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
3493 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
3494
3495 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
3496 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3497 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
3498 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
3499 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
3500 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
3501 termios-misc.h.
3502 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
3503 (sysdep_headers): Add termios-misc.h.
3504
3505 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
3506 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3507 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3508
3509 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3510 termios-tcflow.h.
3511 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
3512 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
3513 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
3514 TCSAFLUSH): Move to termios-tcflow.h.
3515 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3516 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3517 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3518 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3519
3520 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3521 termios-c_lflag.h.
3522 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
3523 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
3524 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
3525 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
3526 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
3527 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
3528 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
3529 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
3530 Likewise.
3531 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3532 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3533 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3534 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3535
3536 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3537 termios-c_cflag.h.
3538 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
3539 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
3540 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
3541 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
3542 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
3543 termios-c_cflag.h.
3544 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3545 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3546 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3547 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3548
3549 [BZ #23783]
3550 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3551 termios-baud.h.
3552 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
3553 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
3554 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
3555 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
3556 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
3557 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
3558 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
3559 __MAX_BAUD): Move to termios-baud.h.
3560 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
3561 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
3562 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3563 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3564 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3565
3566 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
3567 termios-c_oflag.h.
3568 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
3569 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
3570 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
3571 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
3572 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
3573 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
3574 termios-c_oflag.h.
3575 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
3576 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
3577 FFR1): Likewise.
3578 [USE_MISC] (XTABS): Likewise.
3579 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3580 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3581 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3582 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
3583
3584 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3585 termios-c_iflag.h.
3586 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
3587 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
3588 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
3589 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
3590 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
3591 IUTF8): Move to termios-c_iflag.h.
3592 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3593 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3594 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3595 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3596
3597 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3598 termios-cc.h.
3599 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
3600 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
3601 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
3602 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
3603 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
3604 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
3605 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
3606 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
3607 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3608 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3609 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3610 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3611
3612 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
3613 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
3614 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
3615 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
3616 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3617 termios-struct.h.
3618 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
3619 termios-struct.h.
3620 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
3621 Likewise.
3622 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
3623 Likewise.
3624 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
3625 Likewise.
3626 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
3627 Likewise.
3628 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
3629 _HAVE_C_OSPEED): Define.
3630 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
3631 _HAVE_C_OSPEED): Likewise.
3632 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
3633 _HAVE_C_OSPEED): Likewise.
3634 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
3635 (cfsetospeed): Check for define value instead of existence.
3636 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
3637 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3638 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
3639 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3640 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
3641
3642 [BZ #17783]
3643 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
3644 Define.
3645 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3646 (TIOCSER_TEMT): Likewise.
3647 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
3648 (TEOCSER_TEMT): Likewise.
3649
3650 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
3651
3652 [BZ #24011]
3653 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
3654
3655 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3656
3657 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3658
3659 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3660
3661 * sysdeps/htl/pt-barrierattr-setpshared.c
3662 (pthread_barrierattr_setpshared): Add stub warning.
3663 * sysdeps/htl/pt-condattr-setpshared.c
3664 (pthread_condattr_setpshared): Likewise.
3665 * sysdeps/htl/pt-mutexattr-setpshared.c
3666 (pthread_mutexattr_setpshared): Likewise.
3667 * sysdeps/htl/pt-rwlockattr-setpshared.c
3668 (pthread_rwlockattr_setpshared): Likewise.
3669 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
3670 (pthread_mutexattr_setpshared): Likewise.
3671
3672 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3673
3674 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
3675 constants to match with Linux 4.20.
3676
3677 * sysdeps/mips/mips32/libm-test-ulps: Update.
3678 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3679
3680 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
3681
3682 [BZ #24034]
3683 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
3684 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
3685 than __typeof (...) for the a_ptr variable.
3686
3687 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3688
3689 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
3690 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
3691 * libio/Makefile (tests): Add tst-sprintf-ub and
3692 tst-sprintf-chk-ub.
3693 (CFLAGS-tst-sprintf-ub.c): New variable.
3694 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
3695 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
3696 destination buffer and check for overflows in fortified mode.
3697 * libio/libioP.h (PRINTF_CHK): New macro.
3698 * libio/tst-sprintf-chk-ub.c: New file.
3699 * libio/tst-sprintf-ub.c: Likewise.
3700
3701 2019-01-02 Florian Weimer <fweimer@redhat.com>
3702
3703 [BZ #24018]
3704 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
3705 failure.
3706
3707 2019-01-02 Florian Weimer <fweimer@redhat.com>
3708
3709 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
3710
3711 2019-01-01 Joseph Myers <joseph@codesourcery.com>
3712
3713 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
3714 macro.
3715
3716 * sysdeps/unix/sysv/linux/netpacket/packet.h
3717 (PACKET_IGNORE_OUTGOING): New macro.
3718
3719 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
3720 macro.
3721
3722 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3723 version to 4.20.
3724 (riscv_flush_icache): New syscall.
3725
3726 * manual/texinfo.tex: Update to version 2018-12-28.17 with
3727 trailing whitespace removed.
3728 * scripts/config.guess: Update to version 2019-01-01.
3729 * scripts/config.sub: Update to version 2019-01-01.
3730 * scripts/move-if-change: Update from gnulib.
3731
3732 * NEWS: Update copyright dates.
3733 * catgets/gencat.c (print_version): Likewise.
3734 * csu/version.c (banner): Likewise.
3735 * debug/catchsegv.sh: Likewise.
3736 * debug/pcprofiledump.c (print_version): Likewise.
3737 * debug/xtrace.sh (do_version): Likewise.
3738 * elf/ldconfig.c (print_version): Likewise.
3739 * elf/ldd.bash.in: Likewise.
3740 * elf/pldd.c (print_version): Likewise.
3741 * elf/sotruss.sh: Likewise.
3742 * elf/sprof.c (print_version): Likewise.
3743 * iconv/iconv_prog.c (print_version): Likewise.
3744 * iconv/iconvconfig.c (print_version): Likewise.
3745 * locale/programs/locale.c (print_version): Likewise.
3746 * locale/programs/localedef.c (print_version): Likewise.
3747 * login/programs/pt_chown.c (print_version): Likewise.
3748 * malloc/memusage.sh (do_version): Likewise.
3749 * malloc/memusagestat.c (print_version): Likewise.
3750 * malloc/mtrace.pl: Likewise.
3751 * manual/libc.texinfo: Likewise.
3752 * nptl/version.c (banner): Likewise.
3753 * nscd/nscd.c (print_version): Likewise.
3754 * nss/getent.c (print_version): Likewise.
3755 * nss/makedb.c (print_version): Likewise.
3756 * posix/getconf.c (main): Likewise.
3757 * scripts/test-installation.pl: Likewise.
3758 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3759
3760 * All files with FSF copyright notices: Update copyright dates
3761 using scripts/update-copyrights.
3762 * locale/programs/charmap-kw.h: Regenerated.
3763 * locale/programs/locfile-kw.h: Likewise.
3764
3765 2018-12-31 Joseph Myers <joseph@codesourcery.com>
3766
3767 * timezone/zdump.c: Update from tzcode 2018i.
3768 * timezone/zic.c: Likewise.
3769
3770 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
3771
3772 regex: improve Gnulib port to AIX
3773 From the glibc point of view, this removes duplicate macro
3774 definitions and is obviously safe.
3775 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
3776 * posix/regex_internal.h:
3777 (__attribute__, __attribute_warn_unused_result__):
3778 Remove; already defined elsewhere.
3779
3780 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
3781
3782 [BZ #24027]
3783 * malloc/malloc.c (_int_realloc): Always call memcpy for the
3784 copying operation. (ncopies had the wrong type, resulting in an
3785 integer wraparound and too few elements being copied.)
3786
3787 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
3788
3789 [BZ #24022]
3790 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
3791 <asm/syscalls.h> exists with __has_include__ before including it.
3792
3793 2018-12-31 Joseph Myers <joseph@codesourcery.com>
3794
3795 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3796 version to 4.20.
3797
3798 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
3799
3800 * hurd/lookup-retry: Include <unistd.h>.
3801 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
3802 Release it on return. Handle "pid" magical lookup retry.
3803
3804 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
3805
3806 [BZ #10496]
3807 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
3808 (t_fmt_ampm): Likewise.
3809 * localedata/locales/aa_ER (t_fmt): Likewise.
3810 (t_fmt_ampm): Likewise.
3811 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
3812 (t_fmt_ampm): Likewise.
3813 * localedata/locales/aa_ET (t_fmt): Likewise.
3814 (t_fmt_ampm): Likewise.
3815 * localedata/locales/am_ET (t_fmt): Likewise.
3816 (t_fmt_ampm): Likewise.
3817 * localedata/locales/byn_ER (t_fmt): Likewise.
3818 (t_fmt_ampm): Likewise.
3819 * localedata/locales/om_ET (t_fmt): Likewise.
3820 (t_fmt_ampm): Likewise.
3821 * localedata/locales/sid_ET (t_fmt): Likewise.
3822 (t_fmt_ampm): Likewise.
3823 * localedata/locales/so_DJ (t_fmt): Likewise.
3824 (t_fmt_ampm): Likewise.
3825 * localedata/locales/so_ET (t_fmt): Likewise.
3826 (t_fmt_ampm): Likewise.
3827 * localedata/locales/so_SO (t_fmt): Likewise.
3828 (t_fmt_ampm): Likewise.
3829 * localedata/locales/ti_ER (t_fmt): Likewise.
3830 (t_fmt_ampm): Likewise.
3831 * localedata/locales/ti_ET (t_fmt): Likewise.
3832 (t_fmt_ampm): Likewise.
3833 * localedata/locales/tig_ER (t_fmt): Likewise.
3834 (t_fmt_ampm): Likewise.
3835 * localedata/locales/wal_ET (t_fmt): Likewise.
3836 (t_fmt_ampm): Likewise.
3837
3838 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
3839 * localedata/locales/ar_IN (t_fmt): Likewise.
3840 * localedata/locales/bhb_IN (t_fmt): Likewise.
3841 * localedata/locales/bho_IN (t_fmt): Likewise.
3842 * localedata/locales/bi_VU (t_fmt): Likewise.
3843 * localedata/locales/bn_BD (t_fmt): Likewise.
3844 * localedata/locales/bn_IN (t_fmt): Likewise.
3845 * localedata/locales/brx_IN (t_fmt): Likewise.
3846 * localedata/locales/doi_IN (t_fmt): Likewise.
3847 * localedata/locales/en_HK (t_fmt): Likewise.
3848 (t_fmt_ampm): Likewise.
3849 * localedata/locales/en_IN (t_fmt): Likewise.
3850 * localedata/locales/en_PH (t_fmt): Likewise.
3851 * localedata/locales/gu_IN (t_fmt): Likewise.
3852 * localedata/locales/hi_IN (t_fmt): Likewise.
3853 * localedata/locales/hif_FJ (t_fmt): Likewise.
3854 * localedata/locales/hne_IN (t_fmt): Likewise.
3855 * localedata/locales/kn_IN (t_fmt): Likewise.
3856 * localedata/locales/kok_IN (t_fmt): Likewise.
3857 * localedata/locales/ks_IN (t_fmt): Likewise.
3858 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
3859 * localedata/locales/mag_IN (t_fmt): Likewise.
3860 * localedata/locales/mai_IN (t_fmt): Likewise.
3861 * localedata/locales/mjw_IN (t_fmt): Likewise.
3862 * localedata/locales/ml_IN (t_fmt): Likewise.
3863 * localedata/locales/mni_IN (t_fmt): Likewise.
3864 * localedata/locales/mr_IN (t_fmt): Likewise.
3865 * localedata/locales/ms_MY (t_fmt): Likewise.
3866 * localedata/locales/pa_IN (t_fmt): Likewise.
3867 * localedata/locales/raj_IN (t_fmt): Likewise.
3868 * localedata/locales/sa_IN (t_fmt): Likewise.
3869 * localedata/locales/sat_IN (t_fmt): Likewise.
3870 * localedata/locales/sd_IN (t_fmt): Likewise.
3871 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
3872 * localedata/locales/tcy_IN (t_fmt): Likewise.
3873 * localedata/locales/the_NP (t_fmt): Likewise.
3874 * localedata/locales/to_TO (t_fmt): Likewise.
3875 * localedata/locales/ur_IN (t_fmt): Likewise.
3876
3877 * localedata/locales/hif_FJ (d_t_fmt): Set to
3878 "%A %d %b %Y %I:%M:%S %p".
3879 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
3880
3881 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
3882 * localedata/locales/ar_BH (t_fmt): Likewise.
3883 * localedata/locales/ar_DZ (t_fmt): Likewise.
3884 * localedata/locales/ar_EG (t_fmt): Likewise.
3885 * localedata/locales/ar_IQ (t_fmt): Likewise.
3886 * localedata/locales/ar_JO (t_fmt): Likewise.
3887 * localedata/locales/ar_KW (t_fmt): Likewise.
3888 * localedata/locales/ar_LB (t_fmt): Likewise.
3889 * localedata/locales/ar_LY (t_fmt): Likewise.
3890 * localedata/locales/ar_OM (t_fmt): Likewise.
3891 * localedata/locales/ar_QA (t_fmt): Likewise.
3892 * localedata/locales/ar_SD (t_fmt): Likewise.
3893 * localedata/locales/ar_SS (t_fmt): Likewise.
3894 * localedata/locales/ar_SY (t_fmt): Likewise.
3895 * localedata/locales/ar_TN (t_fmt): Likewise.
3896 * localedata/locales/ar_YE (t_fmt): Likewise.
3897
3898 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
3899 (t_fmt_ampm): Likewise.
3900 * localedata/locales/gez_ET (t_fmt): Likewise.
3901 (t_fmt_ampm): Likewise.
3902
3903 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
3904 (t_fmt_ampm): Likewise.
3905 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
3906
3907 * localedata/locales/zh_HK (t_fmt):
3908 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
3909
3910 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
3911 because this locale does not use the 12-hour clock.
3912 (t_fmt): Set to "%Z %H:%M:%S".
3913 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
3914
3915 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
3916 because this locale does not use the 12-hour clock.
3917 (t_fmt): Set to "%H:%M:%S %Z".
3918 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
3919
3920 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
3921 because this locale does not use the 12-hour clock.
3922 (t_fmt): Set to "%T".
3923 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
3924 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
3925
3926 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
3927 because this locale does not use the 12-hour clock.
3928 (t_fmt): Set to "%H:%M:%S %Z".
3929 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
3930
3931 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
3932 because this locale does not use the 12-hour clock.
3933 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
3934 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
3935
3936 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
3937
3938 [BZ #10496]
3939 [BZ #23724]
3940 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
3941 (t_fmt_ampm): Likewise.
3942 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
3943 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
3944 (d_fmt): Set to "%-d.%-m.%y".
3945
3946 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3947
3948 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
3949 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
3950 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
3951 Likewise.
3952 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
3953 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
3954 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
3955 function.
3956 * support/blob_repeat.c (check_mul_overflow_size_t,
3957 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
3958
3959 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
3960
3961 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
3962
3963 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
3964
3965 regex: simplify Gnulib port
3966 This simplifies the code, by removing stuff intended for porting
3967 to Gnulib but no longer needed there.
3968 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
3969 uses of libc_hidden_def, weak_alias.
3970 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
3971 _Restrict_ except for public-facing headers.
3972 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
3973 Remove; already defined elsewhere.
3974 * posix/regex.c, posix/regex_internal.h:
3975 Use __GNUC_PREREQ instead of rolling our own.
3976 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
3977
3978 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
3979
3980 * benchtests/bench-strlen.c (generic_strlen): New function.
3981 (memchr_strlen): New function.
3982
3983 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
3984
3985 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
3986 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
3987 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
3988
3989 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
3990
3991 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
3992
3993 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
3994
3995 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
3996 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
3997 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
3998 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
3999 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4000 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4001 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4002
4003 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4004
4005 [BZ #24023]
4006 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4007 PLT reference in libc.so.
4008 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4009 _Q_lltoq and _Q_qtod PLT references in libc.so.
4010
4011 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4012
4013 * benchtests/bench-memchr.c: Cleanup defines.
4014 * benchtests/bench-memcmp.c: Likewise.
4015 * benchtests/bench-memset.c: Likewise.
4016 * benchtests/bench-memset-large.c: Likewise.
4017 * benchtests/bench-memset-walk.c: Likewise.
4018 * benchtests/bench-stpcpy.c: Likewise.
4019 * benchtests/bench-stpncpy.c: Likewise.
4020 * benchtests/bench-strcat.c: Likewise.
4021 * benchtests/bench-strchr.c: Likewise.
4022 * benchtests/bench-strcmp.c: Likewise.
4023 * benchtests/bench-strcpy.c: Likewise.
4024 * benchtests/bench-strcspn.c: Likewise.
4025 * benchtests/bench-string.h: Likewise.
4026 * benchtests/bench-strlen.c: Likewise.
4027 * benchtests/bench-strncat.c: Likewise.
4028 * benchtests/bench-strncmp.c: Likewise.
4029 * benchtests/bench-strncpy.c: Likewise.
4030 * benchtests/bench-strnlen.c: Likewise.
4031 * benchtests/bench-strpbrk.c: Likewise.
4032 * benchtests/bench-strrchr.c: Likewise.
4033 * benchtests/bench-strspn.c: Likewise.
4034
4035 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4036
4037 * stdlib/longlong.h: Update from GCC.
4038
4039 [BZ #23993]
4040 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4041 * configure: Regenerated.
4042 * manual/install.texi (Tools for Compilation): Update minimum GCC
4043 version.
4044 * INSTALL: Regenerated.
4045
4046 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4047
4048 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4049
4050 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4051
4052 * malloc/malloc.c (mremap_chunk): Additional checks.
4053
4054 2018-12-21 Mao Han <han_mao@c-sky.com>
4055
4056 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4057 * scripts/build-many-glibcs.py: Add C-SKY targets.
4058 * sysdeps/csky/Implies: New file.
4059 * sysdeps/csky/Makefile: Likewise.
4060 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4061 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4062 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4063 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4064 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4065 * sysdeps/csky/abiv2/memmove.S: Likewise.
4066 * sysdeps/csky/abiv2/memset.S: Likewise.
4067 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4068 * sysdeps/csky/abiv2/start.S: Likewise.
4069 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4070 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4071 * sysdeps/csky/abiv2/strlen.S: Likewise.
4072 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4073 * sysdeps/csky/abort-instr.h: Likewise.
4074 * sysdeps/csky/atomic-machine.h: Likewise.
4075 * sysdeps/csky/bits/endian.h: Likewise.
4076 * sysdeps/csky/bits/fenv.h: Likewise.
4077 * sysdeps/csky/bits/link.h: Likewise.
4078 * sysdeps/csky/bits/setjmp.h: Likewise.
4079 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4080 * sysdeps/csky/bsd-setjmp.S: Likewise.
4081 * sysdeps/csky/configure: Likewise.
4082 * sysdeps/csky/configure.ac: Likewise.
4083 * sysdeps/csky/dl-machine.h: Likewise.
4084 * sysdeps/csky/dl-procinfo.c: Likewise.
4085 * sysdeps/csky/dl-procinfo.h: Likewise.
4086 * sysdeps/csky/dl-sysdep.h: Likewise.
4087 * sysdeps/csky/dl-tls.h: Likewise.
4088 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4089 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4090 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4091 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4092 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4093 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4094 * sysdeps/csky/fpu/fegetround.c: Likewise.
4095 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4096 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4097 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4098 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4099 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4100 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4101 * sysdeps/csky/fpu/fesetround.c: Likewise.
4102 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4103 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4104 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4105 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4106 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4107 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4108 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4109 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4110 * sysdeps/csky/fpu_control.h: Likewise.
4111 * sysdeps/csky/gccframe.h: Likewise.
4112 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4113 * sysdeps/csky/ldsodefs.h: Likewise.
4114 * sysdeps/csky/libc-tls.c: Likewise.
4115 * sysdeps/csky/linkmap.h: Likewise.
4116 * sysdeps/csky/machine-gmon.h: Likewise.
4117 * sysdeps/csky/memusage.h: Likewise.
4118 * sysdeps/csky/nofpu/Implies: Likewise.
4119 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4120 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4121 * sysdeps/csky/nptl/Makefile: Likewise.
4122 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4123 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4124 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4125 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4126 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4127 * sysdeps/csky/nptl/tls.h: Likewise.
4128 * sysdeps/csky/preconfigure: Likewise.
4129 * sysdeps/csky/sfp-machine.h: Likewise.
4130 * sysdeps/csky/sotruss-lib.c: Likewise.
4131 * sysdeps/csky/stackinfo.h: Likewise.
4132 * sysdeps/csky/sysdep.h: Likewise.
4133 * sysdeps/csky/tininess.h: Likewise.
4134 * sysdeps/csky/tst-audit.h: Likewise.
4135 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4136 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4137 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4138 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4139 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4140 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4141 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4142 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4143 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4144 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4145 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4146 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4147 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4148 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4149 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4150 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4151 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4152 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4153 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4154 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4155 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4156 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4157 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4158 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4159 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4160 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4161 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4162 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4163 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4164 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4165 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4166 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4167 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4168 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4169 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4170 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4171 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4172 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4173 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4174 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4175 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4176 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4177 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4178 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4179
4180 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4181
4182 * include/time.h (__difftime64): Add.
4183 * time/difftime.c (subtract): convert to 64-bit time.
4184 * time/difftime.c (__difftime64): Add.
4185 * time/difftime.c (__difftime): Wrap around __difftime64.
4186
4187 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4188
4189 * manual/examples/add.c: Remove redundant "if not".
4190 * manual/examples/argp-ex1.c: Likewise.
4191 * manual/examples/argp-ex2.c: Likewise.
4192 * manual/examples/argp-ex3.c: Likewise.
4193 * manual/examples/argp-ex4.c: Likewise.
4194 * manual/examples/atexit.c: Likewise.
4195 * manual/examples/db.c: Likewise.
4196 * manual/examples/dir.c: Likewise.
4197 * manual/examples/dir2.c: Likewise.
4198 * manual/examples/execinfo.c: Likewise.
4199 * manual/examples/filecli.c: Likewise.
4200 * manual/examples/filesrv.c: Likewise.
4201 * manual/examples/fmtmsgexpl.c: Likewise.
4202 * manual/examples/genpass.c: Likewise.
4203 * manual/examples/inetcli.c: Likewise.
4204 * manual/examples/inetsrv.c: Likewise.
4205 * manual/examples/isockad.c: Likewise.
4206 * manual/examples/longopt.c: Likewise.
4207 * manual/examples/memopen.c: Likewise.
4208 * manual/examples/memstrm.c: Likewise.
4209 * manual/examples/mkdirent.c: Likewise.
4210 * manual/examples/mkfsock.c: Likewise.
4211 * manual/examples/mkisock.c: Likewise.
4212 * manual/examples/mygetpass.c: Likewise.
4213 * manual/examples/pipe.c: Likewise.
4214 * manual/examples/popen.c: Likewise.
4215 * manual/examples/rprintf.c: Likewise.
4216 * manual/examples/search.c: Likewise.
4217 * manual/examples/select.c: Likewise.
4218 * manual/examples/setjmp.c: Likewise.
4219 * manual/examples/sigh1.c: Likewise.
4220 * manual/examples/sigusr.c: Likewise.
4221 * manual/examples/stpcpy.c: Likewise.
4222 * manual/examples/strdupa.c: Likewise.
4223 * manual/examples/strftim.c: Likewise.
4224 * manual/examples/subopt.c: Likewise.
4225 * manual/examples/swapcontext.c: Likewise.
4226 * manual/examples/termios.c: Likewise.
4227 * manual/examples/testopt.c: Likewise.
4228 * manual/examples/testpass.c: Likewise.
4229 * manual/examples/timeval_subtract.c: Likewise.
4230
4231 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4232
4233 * sysdeps/x86/fpu/math_private.h: New file.
4234 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4235
4236 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4237 definition.
4238 (cosh): Likewise.
4239 (tanh): Likewise.
4240
4241 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4242
4243 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4244 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4245 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4246 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4247 fields.
4248 (_dl_show_auxv): Give a special treatment to
4249 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4250 and AT_L3_CACHEGEOMETRY.
4251 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4252 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4253 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4254 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4255
4256 2018-12-19 Andreas Schwab <schwab@suse.de>
4257
4258 * nscd/connections.c (check_use): Don't abort on invalid len.
4259
4260 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4261
4262 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4263 values in the 64bit value cases.
4264
4265 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4266
4267 * include/time.h
4268 (__ctime64_r): Add.
4269 * time/ctime_r.c
4270 (__ctime64_r): Add.
4271 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4272
4273 * include/time.h
4274 (__ctime64): Add.
4275 * time/gmtime.c
4276 (__ctime64): Add.
4277 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4278
4279 * include/time.h
4280 (__gmtime64_r): Add.
4281 * time/gmtime.c
4282 (__gmtime64_r): Add.
4283 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4284
4285 * include/time.h
4286 (__gmtime64): Add.
4287 * time/gmtime.c
4288 (__gmtime64): Add.
4289 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4290
4291 * include/time.h
4292 (__localtime64_r): Add.
4293 * time/localtime.c
4294 (__localtime64_r): Add.
4295 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4296
4297 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4298
4299 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4300 kernel_sigction definition.
4301
4302 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4303
4304 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4305
4306 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4307 __syscall_rt_sigaction.
4308 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4309 (kernel_sigaction): Use Linux generic defintion.
4310 (STUB): Define.
4311 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4312 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4313 (__syscall_rt_sigaction): Remove implementation.
4314 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4315 hidden.
4316 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4317 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4318 INTERNAL_SYSCALL): Remove definitions.
4319 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4320 action and signal set size.
4321 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4322 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4323
4324 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4325 James Clarke <jrtc27@jrtc27.com>
4326
4327 [BZ #23967]
4328 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4329 Define if SA_RESTORER is defined.
4330 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4331 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4332 already defined.
4333 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4334 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4335 definitions.
4336 (HAS_SA_RESTORER): Define.
4337 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4338 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4339 (HAS_SA_RESTORER): Define.
4340 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4341 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4342 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4343 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4344 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4345
4346 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4347
4348 * sysdeps/unix/sysv/linux/kernel-features.h
4349 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4350 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4351 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4352 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4353 (__ASSUME_ST_INO_64_BIT): Likewise.
4354 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4355 <kernel-features.h>.
4356 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4357 Remove conditional code.
4358 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4359 <kernel-features.h>.
4360 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4361 Remove conditional code.
4362 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4363 <kernel-features.h>.
4364 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4365 Remove conditional code.
4366 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4367 <kernel-features.h>.
4368 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4369 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4370
4371 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4372
4373 * sysdeps/s390/multiarch/ifunc-resolve.h
4374 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4375 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4376 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4377 Delete macro definition.
4378 (s390_libc_ifunc_init): Rename to
4379 s390_libc_ifunc_expr_stfle_init.
4380 * sysdeps/s390/bzero: Use
4381 s390_libc_ifunc_expr_stfle_init instead of
4382 s390_libc_ifunc_init.
4383 * sysdeps/s390/memcmp.c: Likewise.
4384 * sysdeps/s390/memcpy.c: Likewise.
4385 * sysdeps/s390/mempcpy.c: Likewise.
4386 * sysdeps/s390/memset.c: Likewise.
4387
4388 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4389
4390 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4391 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4392
4393 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4394
4395 * sysdeps/s390/multiarch/Makefile
4396 (sysdep_routines): Remove wmemcmp variants.
4397 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4398 * sysdeps/s390/multiarch/ifunc-impl-list.c
4399 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4400 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4401 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4402 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4403 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4404 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4405 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4406 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4407
4408 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4409
4410 * sysdeps/s390/multiarch/Makefile
4411 (sysdep_routines): Remove wmemset variants.
4412 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
4413 * sysdeps/s390/multiarch/ifunc-impl-list.c
4414 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
4415 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
4416 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
4417 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
4418 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
4419 * sysdeps/s390/multiarch/wmemset.c: Move to ...
4420 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
4421 * sysdeps/s390/ifunc-wmemset.h: New file.
4422
4423 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4424
4425 * sysdeps/s390/multiarch/Makefile
4426 (sysdep_routines): Remove wmemchr variants.
4427 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
4428 * sysdeps/s390/multiarch/ifunc-impl-list.c
4429 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
4430 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
4431 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
4432 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
4433 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
4434 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
4435 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
4436 * sysdeps/s390/ifunc-wmemchr.h: New file.
4437
4438 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4439
4440 * sysdeps/s390/multiarch/Makefile
4441 (sysdep_routines): Remove wcscspn variants.
4442 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
4443 * sysdeps/s390/multiarch/ifunc-impl-list.c
4444 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
4445 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
4446 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
4447 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
4448 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
4449 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
4450 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
4451 * sysdeps/s390/ifunc-wcscspn.h: New file.
4452
4453 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4454
4455 * sysdeps/s390/multiarch/Makefile
4456 (sysdep_routines): Remove wcspbrk variants.
4457 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
4458 * sysdeps/s390/multiarch/ifunc-impl-list.c
4459 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
4460 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
4461 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
4462 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
4463 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
4464 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
4465 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
4466 * sysdeps/s390/ifunc-wcspbrk.h: New file.
4467
4468 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4469
4470 * sysdeps/s390/multiarch/Makefile
4471 (sysdep_routines): Remove wcsspn variants.
4472 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
4473 * sysdeps/s390/multiarch/ifunc-impl-list.c
4474 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
4475 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
4476 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
4477 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
4478 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
4479 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
4480 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
4481 * sysdeps/s390/ifunc-wcsspn.h: New file.
4482
4483 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4484
4485 * sysdeps/s390/multiarch/Makefile
4486 (sysdep_routines): Remove wcsrchr variants.
4487 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
4488 * sysdeps/s390/multiarch/ifunc-impl-list.c
4489 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
4490 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
4491 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
4492 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
4493 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
4494 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
4495 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
4496 * sysdeps/s390/ifunc-wcsrchr.h: New file.
4497
4498 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4499
4500 * sysdeps/s390/multiarch/Makefile
4501 (sysdep_routines): Remove wcschrnul variants.
4502 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
4503 * sysdeps/s390/multiarch/ifunc-impl-list.c
4504 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
4505 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
4506 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
4507 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
4508 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
4509 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
4510 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
4511 * sysdeps/s390/ifunc-wcschrnul.h: New file.
4512
4513 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4514
4515 * sysdeps/s390/multiarch/Makefile
4516 (sysdep_routines): Remove wcschr variants.
4517 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
4518 * sysdeps/s390/multiarch/ifunc-impl-list.c
4519 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
4520 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
4521 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
4522 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
4523 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
4524 * sysdeps/s390/multiarch/wcschr.c: Move to ...
4525 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
4526 * sysdeps/s390/ifunc-wcschr.h: New file.
4527
4528 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4529
4530 * sysdeps/s390/multiarch/Makefile
4531 (sysdep_routines): Remove wcsncmp variants.
4532 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
4533 * sysdeps/s390/multiarch/ifunc-impl-list.c
4534 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
4535 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
4536 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
4537 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
4538 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
4539 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
4540 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
4541 * sysdeps/s390/ifunc-wcsncmp.h: New file.
4542
4543 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4544
4545 * sysdeps/s390/multiarch/Makefile
4546 (sysdep_routines): Remove wcscmp variants.
4547 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
4548 * sysdeps/s390/multiarch/ifunc-impl-list.c
4549 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
4550 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
4551 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
4552 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
4553 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
4554 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
4555 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
4556 * sysdeps/s390/ifunc-wcscmp.h: New file.
4557
4558 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4559
4560 * sysdeps/s390/multiarch/Makefile
4561 (sysdep_routines): Remove wcsncat variants.
4562 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
4563 * sysdeps/s390/multiarch/ifunc-impl-list.c
4564 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
4565 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
4566 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
4567 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
4568 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
4569 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
4570 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
4571 * sysdeps/s390/ifunc-wcsncat.h: New file.
4572
4573 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4574
4575 * sysdeps/s390/multiarch/Makefile
4576 (sysdep_routines): Remove wcscat variants.
4577 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
4578 * sysdeps/s390/multiarch/ifunc-impl-list.c
4579 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
4580 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
4581 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
4582 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
4583 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
4584 * sysdeps/s390/multiarch/wcscat.c: Move to ...
4585 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
4586 * sysdeps/s390/ifunc-wcscat.h: New file.
4587
4588 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4589
4590 * sysdeps/s390/multiarch/Makefile
4591 (sysdep_routines): Remove wcpncpy variants.
4592 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
4593 * sysdeps/s390/multiarch/ifunc-impl-list.c
4594 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
4595 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
4596 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
4597 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
4598 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
4599 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
4600 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
4601 * sysdeps/s390/ifunc-wcpncpy.h: New file.
4602
4603 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4604
4605 * sysdeps/s390/multiarch/Makefile
4606 (sysdep_routines): Remove wcsncpy variants.
4607 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
4608 * sysdeps/s390/multiarch/ifunc-impl-list.c
4609 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
4610 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
4611 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
4612 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
4613 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
4614 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
4615 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
4616 * sysdeps/s390/ifunc-wcsncpy.h: New file.
4617
4618 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4619
4620 * sysdeps/s390/multiarch/Makefile
4621 (sysdep_routines): Remove wcpcpy variants.
4622 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
4623 * sysdeps/s390/multiarch/ifunc-impl-list.c
4624 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
4625 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
4626 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
4627 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
4628 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
4629 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
4630 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
4631 * sysdeps/s390/ifunc-wcpcpy.h: New file.
4632
4633 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4634
4635 * sysdeps/s390/multiarch/Makefile
4636 (sysdep_routines): Remove wcscpy variants.
4637 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
4638 * sysdeps/s390/multiarch/ifunc-impl-list.c
4639 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
4640 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
4641 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
4642 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
4643 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
4644 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
4645 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
4646 * sysdeps/s390/ifunc-wcscpy.h: New file.
4647
4648 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4649
4650 * sysdeps/s390/multiarch/Makefile
4651 (sysdep_routines): Remove wcsnlen variants.
4652 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
4653 * sysdeps/s390/multiarch/ifunc-impl-list.c
4654 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
4655 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
4656 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
4657 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
4658 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
4659 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
4660 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
4661 * sysdeps/s390/ifunc-wcsnlen.h: New file.
4662
4663 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4664
4665 * sysdeps/s390/multiarch/Makefile
4666 (sysdep_routines): Remove wcslen variants.
4667 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
4668 * sysdeps/s390/multiarch/ifunc-impl-list.c
4669 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
4670 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
4671 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
4672 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
4673 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
4674 * sysdeps/s390/multiarch/wcslen.c: Move to ...
4675 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
4676 * sysdeps/s390/ifunc-wcslen.h: New file.
4677
4678 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4679
4680 * sysdeps/s390/multiarch/Makefile
4681 (sysdep_routines): Remove memrchr variants.
4682 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
4683 * sysdeps/s390/multiarch/ifunc-impl-list.c
4684 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
4685 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
4686 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
4687 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
4688 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
4689 * sysdeps/s390/multiarch/memrchr.c: Move to ...
4690 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
4691 * sysdeps/s390/ifunc-memrchr.h: New file.
4692
4693 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4694
4695 * sysdeps/s390/multiarch/Makefile
4696 (sysdep_routines): Remove memccpy variants.
4697 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
4698 * sysdeps/s390/multiarch/ifunc-impl-list.c
4699 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
4700 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
4701 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
4702 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
4703 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
4704 * sysdeps/s390/multiarch/memccpy.c: Move to ...
4705 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
4706 * sysdeps/s390/ifunc-memccpy.h: New file.
4707
4708 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4709
4710 * sysdeps/s390/multiarch/Makefile
4711 (sysdep_routines): Remove rawmemchr variants.
4712 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
4713 * sysdeps/s390/multiarch/ifunc-impl-list.c
4714 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
4715 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
4716 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
4717 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
4718 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
4719 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
4720 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
4721 * sysdeps/s390/ifunc-rawmemchr.h: New file.
4722
4723 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4724
4725 * sysdeps/s390/multiarch/Makefile
4726 (sysdep_routines): Remove memchr variants.
4727 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
4728 * sysdeps/s390/multiarch/ifunc-impl-list.c
4729 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
4730 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
4731 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
4732 * sysdeps/s390/multiarch/memchr.c: Move to ...
4733 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
4734 * sysdeps/s390/ifunc-memchr.h: New file.
4735 * sysdeps/s390/s390-64/memchr.S: Move to ...
4736 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
4737 for 31/64bit and ifunc handling.
4738 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
4739 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
4740 * sysdeps/s390/s390-32/memchr.S: Likewise.
4741
4742 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4743
4744 * sysdeps/s390/multiarch/Makefile
4745 (sysdep_routines): Remove strcspn variants.
4746 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
4747 * sysdeps/s390/multiarch/ifunc-impl-list.c
4748 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
4749 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
4750 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
4751 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
4752 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
4753 * sysdeps/s390/multiarch/strcspn.c: Move to ...
4754 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
4755 * sysdeps/s390/ifunc-strcspn.h: New file.
4756
4757 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4758
4759 * sysdeps/s390/multiarch/Makefile
4760 (sysdep_routines): Remove strpbrk variants.
4761 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
4762 * sysdeps/s390/multiarch/ifunc-impl-list.c
4763 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
4764 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
4765 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
4766 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
4767 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
4768 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
4769 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
4770 * sysdeps/s390/ifunc-strpbrk.h: New file.
4771
4772 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4773
4774 * sysdeps/s390/multiarch/Makefile
4775 (sysdep_routines): Remove strspn variants.
4776 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
4777 * sysdeps/s390/multiarch/ifunc-impl-list.c
4778 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
4779 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
4780 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
4781 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
4782 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
4783 * sysdeps/s390/multiarch/strspn.c: Move to ...
4784 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
4785 * sysdeps/s390/ifunc-strspn.h: New file.
4786
4787 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4788
4789 * sysdeps/s390/multiarch/Makefile
4790 (sysdep_routines): Remove strrchr variants.
4791 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
4792 * sysdeps/s390/multiarch/ifunc-impl-list.c
4793 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
4794 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
4795 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
4796 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
4797 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
4798 * sysdeps/s390/multiarch/strrchr.c: Move to ...
4799 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
4800 * sysdeps/s390/ifunc-strrchr.h: New file.
4801
4802 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4803
4804 * sysdeps/s390/multiarch/Makefile
4805 (sysdep_routines): Remove strchrnul variants.
4806 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
4807 * sysdeps/s390/multiarch/ifunc-impl-list.c
4808 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
4809 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
4810 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
4811 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
4812 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
4813 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
4814 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
4815 * sysdeps/s390/ifunc-strchrnul.h: New file.
4816
4817 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4818
4819 * sysdeps/s390/multiarch/Makefile
4820 (sysdep_routines): Remove strchr variants.
4821 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
4822 * sysdeps/s390/multiarch/ifunc-impl-list.c
4823 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
4824 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
4825 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
4826 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
4827 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
4828 * sysdeps/s390/multiarch/strchr.c: Move to ...
4829 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
4830 * sysdeps/s390/ifunc-strchr.h: New file.
4831
4832 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4833
4834 * sysdeps/s390/multiarch/Makefile
4835 (sysdep_routines): Remove strncmp variants.
4836 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
4837 * sysdeps/s390/multiarch/ifunc-impl-list.c
4838 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
4839 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
4840 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
4841 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
4842 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
4843 * sysdeps/s390/multiarch/strncmp.c: Move to ...
4844 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
4845 * sysdeps/s390/ifunc-strncmp.h: New file.
4846
4847 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4848
4849 * sysdeps/s390/multiarch/Makefile
4850 (sysdep_routines): Remove strcmp variants.
4851 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
4852 * sysdeps/s390/multiarch/ifunc-impl-list.c
4853 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
4854 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
4855 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
4856 * sysdeps/s390/multiarch/strcmp.c: Move to ...
4857 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
4858 * sysdeps/s390/ifunc-strcmp.h: New file.
4859 * sysdeps/s390/s390-64/strcmp.S: Move to ...
4860 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
4861 for 31/64bit and ifunc handling.
4862 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
4863 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
4864 * sysdeps/s390/s390-32/strcmp.S: Likewise.
4865
4866 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4867
4868 * sysdeps/s390/multiarch/Makefile
4869 (sysdep_routines): Remove strncat variants.
4870 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
4871 * sysdeps/s390/multiarch/ifunc-impl-list.c
4872 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
4873 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
4874 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
4875 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
4876 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
4877 * sysdeps/s390/multiarch/strncat.c: Move to ...
4878 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
4879 * sysdeps/s390/ifunc-strncat.h: New file.
4880
4881 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4882
4883 * sysdeps/s390/multiarch/Makefile
4884 (sysdep_routines): Remove strcat variants.
4885 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
4886 * sysdeps/s390/multiarch/ifunc-impl-list.c
4887 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
4888 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
4889 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
4890 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
4891 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
4892 * sysdeps/s390/multiarch/strcat.c: Move to ...
4893 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
4894 * sysdeps/s390/ifunc-strcat.h: New file.
4895
4896 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4897
4898 * sysdeps/s390/multiarch/Makefile
4899 (sysdep_routines): Remove stpncpy variants.
4900 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
4901 * sysdeps/s390/multiarch/ifunc-impl-list.c
4902 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
4903 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
4904 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
4905 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
4906 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
4907 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
4908 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
4909 * sysdeps/s390/ifunc-stpncpy.h: New file.
4910
4911 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4912
4913 * sysdeps/s390/multiarch/Makefile
4914 (sysdep_routines): Remove strncpy variants.
4915 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
4916 * sysdeps/s390/multiarch/ifunc-impl-list.c
4917 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
4918 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
4919 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
4920 * sysdeps/s390/multiarch/strncpy.c: Move to ...
4921 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
4922 * sysdeps/s390/ifunc-strncpy.h: New file.
4923 * sysdeps/s390/s390-64/strncpy.S: Move to ...
4924 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
4925 and adjust ifunc handling.
4926 * sysdeps/s390/s390-32/strncpy.S: Move to ...
4927 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
4928 and adjust ifunc handling.
4929 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
4930 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
4931
4932 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4933
4934 * sysdeps/s390/multiarch/Makefile
4935 (sysdep_routines): Remove stpcpy variants.
4936 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
4937 * sysdeps/s390/multiarch/ifunc-impl-list.c
4938 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
4939 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
4940 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
4941 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
4942 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
4943 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
4944 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
4945 * sysdeps/s390/ifunc-stpcpy.h: New file.
4946
4947 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4948
4949 * sysdeps/s390/multiarch/Makefile
4950 (sysdep_routines): Remove strcpy variants.
4951 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
4952 * sysdeps/s390/multiarch/ifunc-impl-list.c
4953 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
4954 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
4955 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
4956 * sysdeps/s390/multiarch/strcpy.c: Move to ...
4957 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
4958 * sysdeps/s390/ifunc-strcpy.h: New file.
4959 * sysdeps/s390/s390-64/strcpy.S: Move to ...
4960 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
4961 for 31/64bit and ifunc handling.
4962 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
4963 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
4964 * sysdeps/s390/s390-32/strcpy.S: Likewise.
4965
4966 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4967
4968 * sysdeps/s390/multiarch/Makefile
4969 (sysdep_routines): Remove strnlen variants.
4970 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
4971 * sysdeps/s390/multiarch/ifunc-impl-list.c
4972 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
4973 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
4974 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
4975 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
4976 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
4977 * sysdeps/s390/multiarch/strnlen.c: Move to ...
4978 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
4979 * sysdeps/s390/ifunc-strnlen.h: New file.
4980
4981 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4982
4983 * sysdeps/s390/multiarch/Makefile
4984 (sysdep_routines): Remove strlen variants.
4985 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
4986 * sysdeps/s390/multiarch/ifunc-impl-list.c
4987 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
4988 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
4989 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
4990 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
4991 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
4992 * sysdeps/s390/multiarch/strlen.c: Move to ...
4993 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
4994 * sysdeps/s390/ifunc-strlen.h: New file.
4995
4996 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4997
4998 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
4999 * sysdeps/s390/multiarch/ifunc-impl-list.c
5000 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5001 * sysdeps/s390/ifunc-memmem.h: New file.
5002 * sysdeps/s390/memmem.c: Likewise.
5003 * sysdeps/s390/memmem-c.c: Likewise.
5004 * sysdeps/s390/memmem-vx.c: Likewise.
5005
5006 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5007
5008 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5009 * sysdeps/s390/multiarch/ifunc-impl-list.c
5010 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5011 * sysdeps/s390/ifunc-strstr.h: New file.
5012 * sysdeps/s390/strstr.c: Likewise.
5013 * sysdeps/s390/strstr-c.c: Likewise.
5014 * sysdeps/s390/strstr-vx.c: Likewise.
5015
5016 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5017
5018 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5019 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5020 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5021 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5022 New defines.
5023 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5024 * sysdeps/s390/memmove-c.c: New file.
5025 * sysdeps/s390/memmove.c: Likewise.
5026 * sysdeps/s390/multiarch/ifunc-impl-list.c
5027 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5028
5029 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5030
5031 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5032 * sysdeps/s390/configure.ac: Add check for z13 support.
5033 * sysdeps/s390/configure: Regenerated.
5034
5035 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5036
5037 * sysdeps/s390/memcopy.h: New file.
5038
5039 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5040
5041 * sysdeps/s390/s390-32/bcopy.S: Remove.
5042 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5043
5044 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5045
5046 * sysdeps/s390/ifunc-memcpy.h: New File.
5047 * sysdeps/s390/memcpy.S: Move to ...
5048 * sysdeps/s390/memcpy-z900.S ... here.
5049 Move implementations from memcpy-s390x.s to here.
5050 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5051 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5052 Remove memcpy/mempcpy variants.
5053 * sysdeps/s390/Makefile (sysdep_routines):
5054 Add memcpy/mempcpy variants.
5055 * sysdeps/s390/multiarch/ifunc-impl-list.c
5056 (__libc_ifunc_impl_list): Adjust ifunc variants for
5057 memcpy and mempcpy.
5058 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5059 to ...
5060 * sysdeps/s390/memcpy.c: ... here.
5061 Adjust ifunc variants for memcpy.
5062 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5063 * sysdeps/s390/mempcpy.c: ... here.
5064 Adjust ifunc variants for mempcpy.
5065 * sysdeps/s390/mempcpy.S: Delete file.
5066
5067 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5068
5069 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5070 * sysdeps/s390/memcpy.S: ... here.
5071 Adjust to be usable for 31/64bit.
5072 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5073 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5074 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5075 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5076 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5077 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5078 Adjust to be usable for 31/64bit.
5079 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5080 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5081 * sysdeps/s390/multiarch/memcpy.c: ... here.
5082 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5083
5084 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5085
5086 * sysdeps/s390/ifunc-memcmp.h: New File.
5087 * sysdeps/s390/memcmp.S: Move to ...
5088 * sysdeps/s390/memcmp-z900.S ... here.
5089 Move implementations from memcmp-s390x.s to here.
5090 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5091 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5092 Remove memcmp variants.
5093 * sysdeps/s390/Makefile (sysdep_routines):
5094 Add memcmp variants.
5095 * sysdeps/s390/multiarch/ifunc-impl-list.c
5096 (__libc_ifunc_impl_list): Adjust ifunc variants for
5097 memcmp.
5098 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5099 to ...
5100 * sysdeps/s390/memcmp.c: ... here.
5101 Adjust ifunc variants for memcmp.
5102
5103 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5104
5105 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5106 * sysdeps/s390/memcmp.S: ... here.
5107 Adjust to be usable for 31/64bit.
5108 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5109 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5110 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5111 Remove memcmp.
5112 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5113 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5114 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5115 Adjust to be usable for 31/64bit.
5116 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5117 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5118 * sysdeps/s390/multiarch/memcmp.c: ... here.
5119 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5120
5121 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5122
5123 * sysdeps/s390/s390-32/bzero.S: Delete file.
5124 * sysdeps/s390/s390-64/bzero.S: Likewise.
5125 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5126 * sysdeps/s390/bzero.c: New file.
5127 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5128 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5129 * sysdeps/s390/multiarch/ifunc-impl-list.c
5130 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5131
5132 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5133
5134 * sysdeps/s390/ifunc-memset.h: New File.
5135 * sysdeps/s390/memset.S: Move to ...
5136 * sysdeps/s390/memset-z900.S ... here.
5137 Move implementations from memset-s390x.s to here.
5138 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5139 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5140 Remove memset variants.
5141 * sysdeps/s390/Makefile (sysdep_routines):
5142 Add memset variants.
5143 * sysdeps/s390/multiarch/ifunc-impl-list.c
5144 (__libc_ifunc_impl_list): Adjust ifunc variants for
5145 memset.
5146 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5147 to ...
5148 * sysdeps/s390/memset.c: ... here.
5149 Adjust ifunc variants for memset.
5150
5151 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5152
5153 * sysdeps/s390/s390-64/memset.S: Move to ...
5154 * sysdeps/s390/memset.S: ... here.
5155 Adjust to be usable for 31/64bit.
5156 * sysdeps/s390/s390-32/memset.S: Delete File.
5157 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5158 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5159 Remove memset.
5160 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5161 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5162 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5163 Adjust to be usable for 31/64bit.
5164 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5165 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5166 * sysdeps/s390/multiarch/memset.c: ... here.
5167 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5168
5169 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5170
5171 * sysdeps/s390/multiarch/ifunc-resolve.h
5172 (s390_libc_ifunc_init, s390_libc_ifunc,
5173 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5174
5175 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5176
5177 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5178 * sysdeps/s390/configure.ac: Add check for z10 support.
5179 * sysdeps/s390/configure: Regenerated.
5180
5181 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5182
5183 * sysdeps/i386/atomic-machine.h: Merged with ...
5184 * sysdeps/x86_64/atomic-machine.h: To ...
5185 * sysdeps/x86/atomic-machine.h: This. New file.
5186
5187 2018-12-18 Florian Weimer <fweimer@redhat.com>
5188
5189 Rewrite locale/gen-translit.pl in Python.
5190 * locale/Makefile (generated): Add C-translit.h.
5191 (before-compile): Add $(objpfx)C-translit.h.
5192 (C-translit.h): Move to $(objpfx). Create target directory.
5193 Build using Python script.
5194 * locale/gen-translit.py: New file.
5195 * locale/gen-translit.pl: Remove file.
5196 * locale/C-translit.h.in: Change comment character to '#' for
5197 easier parsing without a C preprocessor.
5198 * locale/C-translit.h: Remove generated file.
5199 * manual/install.texi (Tools for Compilation): Do not mention
5200 C-translit.h.
5201 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5202 Remove locale/C-translit.h.
5203 * scripts/update-copyrights: Likewise.
5204 * INSTALL: Regenerate.
5205
5206 2018-12-18 Florian Weimer <fweimer@redhat.com>
5207
5208 [BZ #23995]
5209 * localedata/locales/bi_VU: Remove executable bit from file.
5210
5211 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5212
5213 * include/time.h
5214 (__localtime64): Add.
5215 * manual/maint.texi: Document Y2038 symbol handling.
5216 * time/localtime.c
5217 (__localtime64): Add.
5218 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5219
5220 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5221
5222 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5223 Do not clobber r12.
5224
5225 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5226 to allow extra macros from first or second sources.
5227 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5228 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5229 (tests-special): Add $(objpfx)tst-mman-consts.out.
5230 ($(objpfx)tst-mman-consts.out): New makefile target.
5231
5232 2018-12-17 Mao Han <han_mao@c-sky.com>
5233
5234 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5235 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5236 without stat64 system call support.
5237 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5238 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5239 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5240 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5241 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5242 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5243 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5244 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5245 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5246 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5247 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5248
5249 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5250
5251 regex: fix storage-exhaustion error
5252 [BZ #18040]
5253 * posix/regexec.c (get_subexp):
5254 Do not continue if storage is exhausted.
5255
5256 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5257
5258 regex: fix heap-use-after-free error
5259 [BZ #18040]
5260 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5261 https://debbugs.gnu.org/32592
5262 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5263 call extend_buffers which reallocates the re_string_t internal buffer.
5264 Local variable 'buf' was not updated in such case, resulting in
5265 use-after-free.
5266 * posix/regexec.c (get_subexp): Update 'buf' after call to
5267 get_subexp_sub.
5268
5269 2018-12-15 Florian Weimer <fweimer@redhat.com>
5270
5271 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5272 (minimum_stride_size): Use it.
5273 (support_blob_repeat_allocate): Likewise.
5274
5275 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5276
5277 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5278 definition.
5279 (acosh): Likewise.
5280 (atanh): Likewise.
5281
5282 2018-12-14 Florian Weimer <fweimer@redhat.com>
5283
5284 * manual/process.texi (Process Creation Concepts): Remove
5285 documentation of process (ID) lifetime. List more process
5286 creation functions. Reference Process Identification section.
5287 (Process Identification): Add information about process ID
5288 lifetime. Describe Linux thread/task IDs.
5289 * manual/signal.texi (Signaling Another Process): Mention that the
5290 signal is always sent to the process.
5291
5292 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5293
5294 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5295 and tst-ldbl-efgcvt.
5296 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5297 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5298 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5299 (fcvt_tests, output_error, output_r_error, do_test): Use the
5300 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5301 select the type of floating-point variables and arguments; to
5302 produce extra tests for double and conversion specifiers for
5303 printf; and to set the names of called functions.
5304 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5305 in tst-efgcvt-template.c.
5306 * misc/tst-ldbl-efgcvt.c: Likewise.
5307
5308 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5309
5310 * nss/Makefile (tst-nss-test3.out): New rule.
5311
5312 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5313
5314 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5315 clobber sp.
5316
5317 2018-12-13 fanjinke <fanjinke@hygon.cn>
5318
5319 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5320 "HygonGenuine".
5321
5322 2018-12-13 Andreas Schwab <schwab@suse.de>
5323
5324 [BZ #23861]
5325 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5326 (__pthread_rwlock_rdlock_full): Update expected value for
5327 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5328 * nptl/tst-rwlock-pwn.c: New file.
5329 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5330
5331 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5332
5333 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5334 definition.
5335
5336 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5337
5338 * benchtests/scripts/compare_bench.py (do_compare): write to
5339 stderr in casestat is not present.
5340 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5341 stderr in case timings field is not present. Also string showing
5342 the output filename goes into the stderr.
5343
5344 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5345
5346 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5347 and ZeroDivisorError exceptions.
5348 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5349 argument to loop through user provided statistics.
5350 * benchtests/scripts/compare_bench.py (main): Include the --stats
5351 argument.
5352
5353 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5354
5355 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5356 instead of return.
5357
5358 2018-12-12 Florian Weimer <fweimer@redhat.com>
5359
5360 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5361 clause to copyright header.
5362
5363 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5364
5365 [BZ #23614]
5366 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5367 registers saved in the stack frame.
5368 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5369 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5370
5371 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5372
5373 * include/bits/monetary-ldbl.h: New file.
5374 * include/bits/printf-ldbl.h: Likewise.
5375 * include/bits/stdio-ldbl.h: Likewise.
5376 * include/bits/stdlib-ldbl.h: Likewise.
5377 * include/bits/syslog-ldbl.h: Likewise.
5378 * include/bits/wchar-ldbl.h: Likewise.
5379
5380 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5381
5382 * libio/libio.h: Remove redirection for _IO_vfprintf.
5383
5384 2018-12-11 Andreas Schwab <schwab@suse.de>
5385
5386 * Makerules: Remove all references to abilist-pattern.
5387 (update-all-abi): Simplify find expression.
5388
5389 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5390
5391 [BZ #23961]
5392 * math/auto-libm-test-in: Add new test case.
5393 * math/auto-libm-test-out-pow: Regenerated.
5394 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5395
5396 2018-12-10 DJ Delorie <dj@redhat.com>
5397
5398 [BZ #23948]
5399 * support/test-container.c: Move postclean step to before we
5400 change namespaces.
5401
5402 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5403
5404 * scripts/gen-as-const.py (main): Handle --python option.
5405 * scripts/gen-py-const.awk: Remove.
5406 * Makerules (py-const-script): Use gen-as-const.py.
5407 ($(py-const)): Likewise.
5408 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5409 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5410 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5411 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5412 ~PTHREAD_MUTEX_NO_ELISION_NP.
5413 * manual/README.pretty-printers: Update reference to
5414 gen-py-const.awk.
5415
5416 * scripts/glibcextract.py: New file.
5417 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
5418 or tempfile. Import glibcexctract.
5419 (compute_c_consts): Remove. Moved to glibcextract.py.
5420 (gen_test): Update reference to compute_c_consts.
5421 (main): Likewise.
5422 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
5423 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
5424 * sysdeps/unix/sysv/linux/Makefile
5425 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
5426 Redirect stderr as well as stdout.
5427
5428 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
5429
5430 [BZ #19767]
5431 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
5432 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
5433 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
5434 ALWAYS_USE_VSYSCALL.
5435 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
5436 ALWAYS_USE_VSYSCALL.
5437 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
5438 ALWAYS_USE_VSYSCALL.
5439
5440 2018-12-10 Florian Weimer <fweimer@redhat.com>
5441
5442 [BZ #23972]
5443 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
5444 offset instead of count for clarity. Fix typo in comment.
5445 (__old_getdents64): Keep track of previous offset. Use it to call
5446 handle_overflow.
5447 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
5448 that d_off is never zero.
5449
5450 2018-12-10 Andreas Schwab <schwab@suse.de>
5451
5452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
5453 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
5454 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
5455 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
5456 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
5457
5458 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5459
5460 * timezone/private.h: Update from tzcode 2018g.
5461 * timezone/tzfile.h: Likewise.
5462 * timezone/tzselect.ksh: Likewise.
5463 * timezone/zdump.c: Likewise.
5464 * timezone/zic.c: Likewise.
5465
5466 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
5467
5468 [BZ #23490]
5469 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
5470 (do_test): Adjust buffer size and fix format.
5471
5472 2018-12-07 DJ Delorie <dj@redhat.com>
5473
5474 [BZ #23907]
5475 * malloc/tst-tcfree3.c: New.
5476 * malloc/Makefile: Add it.
5477
5478 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5479
5480 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
5481
5482 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5483
5484 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
5485 used as a mask for the mode argument of __vfscanf_internal and
5486 __vfwscanf_internal.
5487 * stdio-common/vfscanf-internal.c
5488 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
5489 (__strtof128_internal): Define to __wcstof128_internal.
5490 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
5491 __strtof128_internal or __wcstof128_internal when the format of
5492 long double is the same as _Float128.
5493
5494 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5495
5496 * include/unistd.h (__confstr): Add prototype and hidden prototype.
5497 * posix/confstr.c (confstr): Rename to __confstr.
5498 (__confstr): Add hidden def.
5499 (confstr): Add weak alias for __confstr.
5500 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
5501 confstr.
5502
5503 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5504
5505 * NEWS: Mention getcpu.
5506 * include/sched.h (__getcpu): New libc_hidden_proto.
5507 * manual/resource.texi: Document getcpu.
5508 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
5509 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
5510 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
5511 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5512 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5513 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5514 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5515 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5516 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5517 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5518 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5519 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5520 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5521 Likewise.
5522 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5523 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5524 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5526 Likewise.
5527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5528 Likewise.
5529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5530 Likewise.
5531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5532 Likewise.
5533 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5534 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5535 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5536 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5537 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5538 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5539 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5540 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5541 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
5542 * sysdeps/unix/sysv/linux/getcpu.c: New file.
5543 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
5544 Also check getcpu.
5545
5546 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5547
5548 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
5549 functions.
5550 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
5551
5552 2018-12-07 Florian Weimer <fweimer@redhat.com>
5553
5554 [BZ #17405]
5555 * posix/Makefile (routines): Add spawn_faction_addfchdir.
5556 * posix/Versions (GLIBC_2.29): Export
5557 posix_spawn_file_actions_addfchdir_np.
5558 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
5559 * posix/spawn_faction_destroy.c
5560 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
5561 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
5562 and the field action.fchdir_action.
5563 * posix/tst-spawn-chdir.c (add_chdir): New function.
5564 (do_test): Add do_fchdir loop. Call add_chdir.
5565 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
5566 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5567 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5568 posix_spawn_file_actions_addfchdir_np.
5569 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5570 Likewise.
5571 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5572 Likewise.
5573 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5574 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5575 Likewise.
5576 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5577 Likewise.
5578 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5579 Likewise.
5580 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5581 Likewise.
5582 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5583 Likewise.
5584 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5585 Likewise.
5586 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5587 (GLIBC_2.29): Likewise.
5588 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5589 (GLIBC_2.29): Likewise.
5590 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5591 (GLIBC_2.29): Likewise.
5592 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5593 (GLIBC_2.29): Likewise.
5594 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5595 Likewise.
5596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5597 (GLIBC_2.29): Likewise.
5598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5599 (GLIBC_2.29): Likewise.
5600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5601 (GLIBC_2.29): Likewise.
5602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5603 (GLIBC_2.29): Likewise.
5604 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5605 Likewise.
5606 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5607 Likewise.
5608 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5609 Likewise.
5610 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5611 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5612 Likewise.
5613 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5614 Likewise.
5615 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5616 Likewise.
5617 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5618 Likewise.
5619
5620 2018-12-06 Joseph Myers <joseph@codesourcery.com>
5621
5622 * manual/texinfo.tex: Update to version 2018-09-21.20 with
5623 trailing whitespace removed.
5624 * scripts/config.guess: Update to version 2018-11-28.
5625 * scripts/config.sub: Update to version 2018-11-28.
5626 * scripts/install-sh: Update to version 2018-03-11.20.
5627 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
5628 * scripts/move-if-change: Update to version 2018-03-07 03:47.
5629
5630 2018-12-07 Florian Weimer <fweimer@redhat.com>
5631
5632 [BZ #23927]
5633 CVE-2018-19591
5634 * inet/tst-if_index-long.c: New file.
5635 * inet/Makefile (tests): Add tst-if_index-long.
5636
5637 2018-12-07 Florian Weimer <fweimer@redhat.com>
5638
5639 * support/check.h (support_record_failure_is_failed): Declare.
5640 * support/descriptors.h: New file.
5641 * support/support_descriptors.c: Likewise.
5642 * support/tst-support_descriptors.c: Likewise.
5643 * support/support_record_failure.c
5644 (support_record_failure_is_failed): New function.
5645 * support/Makefile (libsupport-routines): Add support_descriptors.
5646 (tests): Add tst-support_descriptors.
5647
5648 2018-12-05 Zack Weinberg <zackw@panix.com>
5649 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5650
5651 * stdio-common/vfprintf-internal.c
5652 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
5653 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
5654 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
5655 and __no_long_double.
5656 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
5657 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
5658 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
5659 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
5660 and __nldbl_*syslog* functions.
5661 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
5662 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
5663 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
5664 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
5665 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
5666 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
5667 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
5668 (__nldbl_vwprintf, __nldbl_wprintf):
5669 Directly call the appropriate __v*printf_internal routine, passing
5670 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
5671 variable names.
5672 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
5673 (__nldbl___printf_chk, __nldbl___snprintf_chk)
5674 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
5675 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
5676 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
5677 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5678 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
5679 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
5680 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
5681 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
5682 Likewise, and also pass PRINTF_FORTIFY when appropriate.
5683 (__nldbl_syslog, __nldbl_vsyslog):
5684 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
5685 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5686 appropriate.
5687 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5688 appropriate.
5689
5690 2018-12-05 Zack Weinberg <zackw@panix.com>
5691 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5692
5693 [BZ #11319]
5694 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
5695 Moved here from debug/vsprintf_chk.c.
5696 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
5697 and completion logic for the strfile to match exactly what
5698 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
5699 _IO_str_init_static_internal instead of maxlen-1.
5700 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5701 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
5702 __vsprintf_internal.
5703
5704 * debug/vsprintf_chk.c (__vsprintf_chk)
5705 * debug/sprintf_chk.c (__sprintf_chk):
5706 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
5707 'flags' argument is positive, and slen as maxlen. No need to lock
5708 the FILE and/or construct a temporary FILE. Minimize and normalize
5709 header inclusions and variable names. Do not libc_hidden_def anything.
5710
5711 * debug/asprintf_chk.c (__asprintf_chk)
5712 * debug/dprintf_chk.c (__dprintf_chk)
5713 * debug/fprintf_chk.c (__fprintf_chk)
5714 * debug/fwprintf_chk.c (__fwprintf_chk)
5715 * debug/printf_chk.c (__printf_chk)
5716 * debug/snprintf_chk.c (__snprintf_chk)
5717 * debug/swprintf_chk.c (__swprintf_chk)
5718 * debug/vasprintf_chk.c (__vasprintf_chk)
5719 * debug/vdprintf_chk.c (__vdprintf_chk)
5720 * debug/vfprintf_chk.c (__vfprintf_chk)
5721 * debug/vfwprintf_chk.c (__vfwprintf_chk)
5722 * debug/vprintf_chk.c (__vprintf_chk)
5723 * debug/vsnprintf_chk.c (__vsnprintf_chk)
5724 * debug/vswprintf_chk.c (__vswprintf_chk)
5725 * debug/vwprintf_chk.c (__vwprintf_chk)
5726 * debug/wprintf_chk.c (__wprintf_chk):
5727 Directly call the corresponding vxxprintf_internal function, passing
5728 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
5729 the FILE and/or construct a temporary FILE. Minimize and normalize
5730 header inclusions and variable names. Do not libc_hidden_def anything.
5731
5732 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
5733 __obstack_vprintf_internal.
5734 (__obstack_vprintf_chk): Convert into a wrapper that calls
5735 __obstack_vprintf_internal (these two functions already had the
5736 same code) and move to new file...
5737 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
5738 file.
5739 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
5740 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
5741 * debug/Makefile (routines): Add vobprintf_chk.
5742
5743 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5744 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5745 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
5746 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5747 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
5748 (__nldbl___obstack_vfprintf_chk):
5749 Directly call the corresponding vxxprintf_internal function,
5750 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
5751 duplicate comparison of slen with 0 or maxlen from the corresponding
5752 non-__nldbl function.
5753
5754 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
5755 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
5756 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
5757 Remove libc_hidden_proto.
5758
5759 * stdio-common/vfprintf-internal.c
5760 (__vfprintf_internal, __vfwprintf_internal):
5761 Do not check _IO_FLAGS2_FORTIFY.
5762 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
5763 * libio/libioP.h: Update prototype of __vsprintf_internal and add
5764 a comment explaining why it has the maxlen argument.
5765 (_IO_acquire_lock_clear_flags2_fct): Remove.
5766 (_IO_acquire_lock_clear_flags2): Remove.
5767 (_IO_release_lock): Remove conditional statement which will
5768 now never execute.
5769 (_IO_acquire_lock): Remove variable which is now unused.
5770 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
5771 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
5772
5773 * stdio-common/Makefile (tests): Add tst-bz11319 and
5774 tst-bz11319-fortify2.
5775 (CFLAGS-tst-bz11319-fortify2.c): New macro.
5776 * stdio-common/tst-bz11319-fortify2.c: New file.
5777 * stdio-common/tst-bz11319.c: Likewise.
5778
5779 2018-12-05 Zack Weinberg <zackw@panix.com>
5780 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5781
5782 * misc/syslog.c: Include libioP.h, not iolibio.h.
5783 (__vsyslog_internal): New function with the former body of
5784 __vsyslog_chk; takes mode_flags argument same as
5785 __v*printf_internal. Call __vfprintf_internal directly.
5786
5787 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
5788 Remove libc_hidden_def.
5789 (__syslog, __syslog_chk): Use __vsyslog_internal.
5790 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
5791
5792 * include/sys/syslog.h: Add multiple inclusion guard.
5793 Add prototype for __vsyslog_internal.
5794 Remove declaration and libc_hidden_proto for __vsyslog_chk.
5795
5796 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
5797 Use __vsyslog_internal.
5798
5799 2018-12-05 Zack Weinberg <zackw@panix.com>
5800 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5801
5802 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
5803 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
5804 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
5805 New functions.
5806 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
5807 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
5808
5809 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
5810 Include wctype.h here if COMPILE_WPRINTF is defined.
5811 Define __vfprintf_internal or __vfwprintf_internal, depending
5812 on COMPILE_WPRINTF.
5813 Temporarily, on entry to this function, update mode_flags
5814 according to the environmental settings corresponding to
5815 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
5816 Throughout, check mode_flags instead of __ldbl_is_dbl and
5817 _IO_FLAGS2_FORTIFY on the destination FILE.
5818 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
5819 Include vfprintf-internal.c. Don't include wctype.h.
5820 * stdio-common/vfprintf.c: New file. Just define __vfprintf
5821 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
5822 and vfprintf.
5823 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
5824 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
5825 and vfwprintf.
5826 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
5827
5828 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
5829 and add mode_flags argument; use __vfprintf_internal.
5830 (__vdprintf): New function. Alias vdprintf to this.
5831 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
5832 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
5833 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
5834 (__obstack_printf): Use __obstack_printf_internal.
5835 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
5836 public aliases __vsnprintf and vsnprintf.
5837 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
5838 called internally.
5839 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
5840 public aliases _IO_vsprintf and vsprintf.
5841 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
5842 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
5843 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
5844 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
5845 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
5846
5847 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
5848 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
5849 * stdio-common/fprintf.c, stdio-common/fxprintf.c
5850 * stdio-common/printf.c: Use __vfprintf_internal.
5851
5852 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
5853 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
5854 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
5855
5856 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
5857 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
5858 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
5859 __vfwprintf_internal.
5860
5861 * libio/libio.h: Remove libc_hidden_proto and declaration for
5862 _IO_vfprintf.
5863 Remove declaration of _IO_vfwprintf.
5864 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
5865 _IO_vsprintf.
5866 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
5867 _IO_obstack_printf.
5868 * include/stdio.h: Add prototype for __vasprintf.
5869 (__vsnprintf): Remove declaration, because there are no more
5870 internal calls.
5871 * include/wchar.h (__vfwprintf, __vswprintf): Remove
5872 declaration, because there are no more internal calls.
5873
5874 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
5875 __vsnprintf_internal, instead of _IO_vsnprintf.
5876 * argp/argp-help.c (__argp_error, __argp_failure): Use
5877 __vasprintf_internal, instead of _IO_vasprintf.
5878 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
5879 redefine, because there are no more internal calls.
5880
5881 2018-12-05 Zack Weinberg <zackw@panix.com>
5882 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5883
5884 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
5885 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
5886 Include libio/strfile.h instead of libioP.h.
5887 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
5888 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
5889 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
5890 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
5891 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
5892 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
5893 necessary. Do not set __no_long_double. Normalize variable names.
5894 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
5895 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
5896 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
5897 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
5898 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
5899 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
5900 Call __vfscanf_internal / __vfwscanf_internal directly, passing
5901 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
5902 Do not set __no_long_double. Normalize variable names.
5903
5904 2018-12-05 Zack Weinberg <zackw@panix.com>
5905 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5906
5907 * stdio-common/isoc99_scanf.c
5908 * stdio-common/isoc99_fscanf.c
5909 * stdio-common/isoc99_sscanf.c
5910 * stdio-common/isoc99_vscanf.c
5911 * stdio-common/isoc99_vfscanf.c
5912 * stdio-common/isoc99_vsscanf.c
5913 * wcsmbs/isoc99_wscanf.c
5914 * wcsmbs/isoc99_fwscanf.c
5915 * wcsmbs/isoc99_swscanf.c
5916 * wcsmbs/isoc99_vwscanf.c
5917 * wcsmbs/isoc99_vfwscanf.c
5918 * wcsmbs/isoc99_vswscanf.c:
5919 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
5920 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
5921 No need to lock and unlock the FILE passed to that function.
5922
5923 * stdio-common/vfscanf-internal.c
5924 (__vfscanf_internal, __vfwscanf_internal):
5925 Don't look at _IO_FLAGS2_SCANF_STD.
5926 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
5927 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
5928 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
5929
5930 2018-12-05 Zack Weinberg <zackw@panix.com>
5931 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5932
5933 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
5934 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
5935 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
5936 * libio/strfile.h: Add multiple inclusion guard.
5937 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
5938
5939 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
5940 consistency with the other version of this file.
5941 (ldbl_compat_symbol): New macro.
5942 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
5943 New macro.
5944
5945 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
5946 Define __vfscanf_internal or __vfwscanf_internal, depending on
5947 COMPILE_WSCANF; don't define any other public symbols.
5948 Remove errval and code to set errp.
5949 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
5950 as the mode_flags argument.
5951 (encode_error, conv_error, input_error): Don't set errval.
5952 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
5953 Include vfscanf-internal.c.
5954 * stdio-common/vfscanf.c: New file defining the public entry
5955 point vfscanf, which calls __vfscanf_internal.
5956 * stdio-common/vfwscanf.c: New file defining the public entry
5957 point vfwscanf, which calls __vfwscanf_internal.
5958
5959 * stdio-common/iovfscanf.c: New file.
5960 * stdio-common/iovfwscanf.c: Likewise.
5961
5962 * stdio-common/Makefile (routines): Add vfscanf-internal,
5963 vfwscanf-internal, iovfscanf, iovfwscanf.
5964 * stdio-common/Versions: Mention GLIBC_2.29, so that
5965 it can be used in SHLIB_COMPAT expressions.
5966 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
5967 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
5968 Call __vfscanf_internal, instead of _IO_vfscanf.
5969 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
5970 _IO_vfscanf.
5971 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
5972 _IO_vfwscanf.
5973
5974 * libio/iovsscanf.c: Clean up includes, when possible. Use
5975 _IO_strfile_read or _IO_strfile_readw, when needed. Call
5976 __vfscanf_internal or __vfwscanf_internal directly.
5977 * libio/iovswscanf.c: Likewise.
5978 * libio/swscanf.c: Likewise.
5979 * libio/vscanf.c: Likewise.
5980 * libio/vwscanf.c: Likewise.
5981 * libio/wscanf.c: Likewise.
5982 * stdio-common/isoc99_fscanf.c: Likewise.
5983 * stdio-common/isoc99_scanf.c: Likewise.
5984 * stdio-common/isoc99_sscanf.c: Likewise.
5985 * stdio-common/isoc99_vfscanf.c: Likewise.
5986 * stdio-common/isoc99_vscanf.c: Likewise.
5987 * stdio-common/isoc99_vsscanf.c: Likewise.
5988 * stdio-common/scanf.c: Likewise.
5989 * stdio-common/sscanf.c: Likewise.
5990 * wcsmbs/isoc99_fwscanf.c: Likewise.
5991 * wcsmbs/isoc99_swscanf.c: Likewise.
5992 * wcsmbs/isoc99_vfwscanf.c: Likewise.
5993 * wcsmbs/isoc99_vswscanf.c: Likewise.
5994 * wcsmbs/isoc99_vwscanf.c: Likewise.
5995 * wcsmbs/isoc99_wscanf.c: Likewise.
5996
5997 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
5998
5999 * include/time.h
6000 (__tz_compute): Replace time_t with __time64_t.
6001 (__tz_convert): Replace time_t* with __time64_t.
6002 (__offtime): Replace time_t* with __time64_t.
6003 * time/gmtime.c
6004 (__gmtime_r): Adjust call to __tz_convert.
6005 (gmtime): Likewise.
6006 * time/localtime.c
6007 (__localtime_r): Likewise.
6008 (localtime): Likewise.
6009 * time/offtime.c: Replace time_t with __time64_t.
6010 * time/tzset.c: Likewise.
6011
6012 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6013
6014 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6015 dynamic linker unless [$(run-built-tests) = yes].
6016
6017 2018-12-03 DJ Delorie <dj@delorie.com>
6018
6019 * support/test-container.c (check_for_unshare_hints): New.
6020 (main): Call it if unshare fails. Add support for "su" scriptlet
6021 command.
6022
6023 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6024
6025 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6026 'START' to indicate that start text should be output.
6027 (gen_test): Likewise.
6028 (main): Generate 'START' for first symbol or '--' line, or at end
6029 of input if not previously generated.
6030
6031 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6032
6033 [BZ #19767]
6034 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6035 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6036 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6037 ALWAYS_USE_VSYSCALL.
6038
6039 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6040
6041 [BZ #23913]
6042 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6043 new_argv by one.
6044
6045 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6046
6047 [BZ #23923]
6048 * locale/programs/localedef.c: Declare boolean hard_links default true.
6049 (options): Add --no-hard-links option.
6050 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6051 * locale/programs/localedef.h: Declare prototype for hard_links.
6052 * locale/programs/locfile.c (write_locale_data): Don't use hard
6053 links if hard_links is false.
6054
6055 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6056
6057 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6058 cpu_features_basic.
6059 (__cache_sysconf): Likewise.
6060 (init_cacheinfo): Likewise.
6061 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6062 populate COMMON_CPUID_INDEX_80000007 and
6063 COMMON_CPUID_INDEX_80000008.
6064 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6065 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6066 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6067 (init_cpu_features): Use _Static_assert on
6068 index_arch_Fast_Unaligned_Load.
6069 __get_cpuid_registers and __get_arch_feature. Updated for
6070 cpu_features_basic. Set stepping in cpu_features.
6071 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6072 (FEATURE_INDEX_2): New.
6073 (FEATURE_INDEX_MAX): Changed to enum.
6074 (COMMON_CPUID_INDEX_D_ECX_1): New.
6075 (COMMON_CPUID_INDEX_80000007): Likewise.
6076 (COMMON_CPUID_INDEX_80000008): Likewise.
6077 (cpuid_registers): Likewise.
6078 (cpu_features_basic): Likewise.
6079 (CPU_FEATURE_USABLE): Likewise.
6080 (bit_arch_XXX_Usable): Likewise.
6081 (cpu_features): Use cpuid_registers and cpu_features_basic.
6082 (bit_arch_XXX): Reweritten.
6083 (bit_cpu_XXX): Likewise.
6084 (index_cpu_XXX): Likewise.
6085 (reg_XXX): Likewise.
6086 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6087 <support/check.h>.
6088 (CHECK_CPU_FEATURE): New.
6089 (CHECK_CPU_FEATURE_USABLE): Likewise.
6090 (cpu_kinds): Likewise.
6091 (do_test): Print vendor, family, model and stepping. Check
6092 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6093 (TEST_FUNCTION): Removed.
6094 Include <support/test-driver.c> instead of
6095 "../../test-skeleton.c".
6096 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6097 Check POPCNT instead of POPCOUNT.
6098 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6099
6100 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6101
6102 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6103 there is no element in `consts'.
6104
6105 2018-12-01 Florian Weimer <fweimer@redhat.com>
6106
6107 * support/support_capture_subprocess.c
6108 (support_capture_subprocess): Check that pipe descriptors have
6109 expected values. Close original pipe descriptors in subprocess.
6110
6111 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6112
6113 [BZ #23032]
6114 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6115 attr with __pthread_default_barrierattr.
6116 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6117 attr with __pthread_default_condattr.
6118 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6119 attr with __pthread_default_mutexattr.
6120 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6121 attr with __pthread_default_rwlockattr.
6122
6123 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6124
6125 * manual/tunables.texi (POSIX Thread Tunables): New node.
6126 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6127 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6128 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6129 __pthread_tunables_init.
6130 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6131 (max_adaptive_count): Define.
6132 * nptl/pthread_mutex_conf.c: New file.
6133 * nptl/pthread_mutex_conf.h: New file.
6134 * sysdeps/generic/adaptive_spin_count.h: New file.
6135 * sysdeps/nptl/dl-tunables.list: New file.
6136 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6137 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6138 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6139 Likewise.
6140
6141 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6142
6143 [BZ #20544]
6144 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6145 * stdlib/on_exit.c (__on_exit): Likewise.
6146 * stdlib/Makefile (tests): Add tst-bz20544.
6147 * stdlib/tst-bz20544.c: New test.
6148
6149 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6150
6151 [BZ #19767]
6152 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6153 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6154 New.
6155
6156 2018-11-30 Florian Weimer <fweimer@redhat.com>
6157
6158 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6159 Extend error logging.
6160 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6161 symbol.
6162
6163 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6164
6165 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6166 __sigismember instead of sigismember.
6167 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6168 cancel_handler): New definitions.
6169 (do_system): Use posix_spawn instead of fork and execl and remove
6170 reentracy code.
6171 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6172 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6173 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6174 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6175 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6176 * sysdeps/unix/sysv/linux/system.c: Likewise.
6177
6178 [BZ #22834]
6179 [BZ #17490]
6180 * NEWS: Add new semantic for atfork with popen and system.
6181 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6182 fork and execl.
6183
6184 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6185
6186 [BZ #23690]
6187 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6188 modification order when accessing reloc_result->addr.
6189 * include/link.h (reloc_result): Add field init.
6190 * nptl/Makefile (tests): Add tst-audit-threads.
6191 (modules-names): Add tst-audit-threads-mod1 and
6192 tst-audit-threads-mod2.
6193 Add rules to build tst-audit-threads.
6194 * nptl/tst-audit-threads-mod1.c: New file.
6195 * nptl/tst-audit-threads-mod2.c: Likewise.
6196 * nptl/tst-audit-threads.c: Likewise.
6197 * nptl/tst-audit-threads.h: Likewise.
6198
6199 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6200
6201 * scripts/gen-as-const.py: New file.
6202 * scripts/gen-as-const.awk: Remove.
6203 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6204 gen-as-const.py.
6205 ($(objpfx)test-as-const-%.c): Likewise.
6206
6207 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6208
6209 * elf/dl-exception.c: Include <_itoa.h>.
6210
6211 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6212
6213 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6214 returned by __f_setlk.
6215
6216 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6217 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6218
6219 * elf/Makefile (tests-internal): Add tst-create_format1.
6220 * elf/dl-exception.c (_dl_exception_create_format): Support
6221 %x, %lx and %zx.
6222 * elf/tst-create_format1.c: New file.
6223
6224 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6225
6226 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6227 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6228 gnulib.)
6229 * argp/argp-help.c (__argp_failure): Likewise.
6230
6231 2018-11-29 Mao Han <han_mao@c-sky.com>
6232
6233 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6234 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6235 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6236 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6237 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6238 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6239 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6240 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6241 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6242 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6243 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6244 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6245 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6246 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6247 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6248 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6249 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6250 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6251 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6252 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6253 (R_CKCORE_TLS_TPOFF32): New defines.
6254
6255 2018-11-29 Florian Weimer <fweimer@redhat.com>
6256
6257 * posix/Makefile (before-compile): Remove testcases.h and
6258 ptestcases.h.
6259 (generated): Add testcases.h and ptestcases.h.
6260 (testcases.h, ptestcases.h): Move to $(objpfx).
6261 (runtests.o): Add dependency on testcases.h.
6262 (runptests.o): Add dependency on ptestcases.h.
6263 * posix/testcases.h, posix/ptestcases.h: Remove files.
6264 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6265 not touch posix/testcases.h and posix/ptestcases.h.
6266
6267 2018-11-28 Florian Weimer <fweimer@redhat.com>
6268
6269 support: Add signal support to support_capture_subprocess_check.
6270 * support/capture_subprocess.h (support_capture_subprocess_check):
6271 Adjust comment and rename parameter.
6272 * support/support_capture_subprocess_check.c
6273 (print_actual_status): New function.
6274 (support_capture_subprocess_check): Support negative
6275 status_or_signal. Call print_actual_status.
6276 * support/tst-support_capture_subprocess.c (do_test): Call
6277 support_capture_subprocess_check.
6278 * libio/tst-vtables-common.c (termination_status)
6279 (init_termination_status): Remove.
6280 (check_for_termination): Adjust support_capture_subprocess_check
6281 call.
6282 (do_test): Remove call to init_termination_status.
6283
6284 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6285
6286 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6287 source directory instead of a copy.
6288 (CommandList.create_copy_dir): Remove.
6289
6290 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6291
6292 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6293
6294 2018-11-28 Florian Weimer <fweimer@redhat.com>
6295
6296 * support/support.h (support_quote_string): Do not use str
6297 parameter name.
6298
6299 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6300
6301 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6302 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6303
6304 2018-11-27 Florian Weimer <fweimer@redhat.com>
6305
6306 * support/support.h (support_quote_string): Declare.
6307 * support/support_quote_string.c: New file.
6308 * support/tst-support_quote_string.c: Likewise.
6309 * support/Makefile (libsupport-routines): Add
6310 support_quote_string.
6311 (tests): Add tst-support_quote_string.
6312
6313 2018-11-27 Florian Weimer <fweimer@redhat.com>
6314
6315 [BZ #23927]
6316 CVE-2018-19591
6317 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6318 descriptor leak in case of ENODEV error.
6319
6320 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6321
6322 [BZ #19767]
6323 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6324 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6325 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6326
6327 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6328
6329 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6330 Error for unknown lines.
6331
6332 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6333
6334 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6335 Touch additional files.
6336
6337 2018-11-26 Florian Weimer <fweimer@redhat.com>
6338
6339 [BZ #23907]
6340 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6341 double-frees.
6342
6343 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6344
6345 [BZ #19767]
6346 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6347 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6348 SHARED. Include sysdep.h.
6349 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6350 ALWAYS_USE_VSYSCALL.
6351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6352 ALWAYS_USE_VSYSCALL.
6353
6354 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6355
6356 [BZ #19767]
6357 * nptl/Makefile (tests-static): Add tst-cond11-static.
6358 (tests): Likewise.
6359 * nptl/tst-cond11-static.c: New File.
6360 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6361 tst-affinity-static.
6362 (tests): Likewise.
6363 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6364 instead of SHARED.
6365 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6366 (USE_VSYSCALL): Likewise.
6367 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6368 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6369 instead of SHARED.
6370 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6371 SHARED.
6372 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6373 New.
6374
6375 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6376
6377 [BZ #23915]
6378 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6379 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6380 Undefine.
6381
6382 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6383
6384 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6385 (tst-cet-legacy-1a-ARGS): New.
6386 ($(objpfx)tst-cet-legacy-1a): New target.
6387 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6388
6389 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6390
6391 * conform/conformtest.py (CompileSubTest.__init__): Set
6392 self.run_early to False.
6393 (ExecuteSubTest.__init__): Likewise.
6394 (HeaderTests.run): Try running all non-optional, non-XFAILed
6395 compilation tests in a single execution of the compiler.
6396
6397 * conform/conformtest.py (CompileSubTest): New class.
6398 (ExecuteSubTest): Likewise.
6399 (ElementTest.run): Rename to gen_subtests. Append tests to
6400 self.subtests instead of running them.
6401 (ConstantTest.run): Likewise.
6402 (SymbolTest.run): Likewise.
6403 (TypeTest.run): Likewise.
6404 (TagTest.run): Likewise.
6405 (FunctionTest.run): Likewise.
6406 (VariableTest.run): Likewise.
6407 (MacroFunctionTest.run): Likewise.
6408 (MacroStrTest.run): Likewise.
6409 (HeaderTests.handle_test_line): Generate subtests for tests.
6410 (HeaderTests.run): Run subtests for tests.
6411
6412 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6413
6414 * math/Versions (GLIBC_2.29): Add pow.
6415 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
6416 symbol.
6417 * math/w_pow.c: New file.
6418 * sysdeps/i386/fpu/w_pow.c: New file.
6419 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
6420 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
6421 and add necessary aliases.
6422 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
6423 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
6424 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6425 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6426 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6427 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6428 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6429 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6430 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6431 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6432 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6433 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6434 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6435 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6436 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6437 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6438 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6440 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6441 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6442 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6443 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6444 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6445 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6446 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6447 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6448 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
6449 __pow.
6450 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
6451 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
6452 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
6453
6454 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6455
6456 * math/Versions (GLIBC_2.29): Add log2.
6457 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
6458 symbol.
6459 * math/w_log2.c: New file.
6460 * sysdeps/i386/fpu/w_log2.c: New file.
6461 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
6462 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
6463 and add necessary aliases.
6464 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
6465 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
6466 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6467 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6468 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6469 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6470 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6471 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6472 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6473 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6474 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6475 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6476 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6477 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6478 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6483 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6484 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6485 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6486 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6487 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6488 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6489 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6490
6491 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6492
6493 * math/Versions (GLIBC_2.29): Add log.
6494 * math/w_log_compat.c (__log_compat): Change to versioned compat
6495 symbol.
6496 * math/w_log.c: New file.
6497 * sysdeps/i386/fpu/w_log.c: New file.
6498 * sysdeps/ia64/fpu/e_log.S: Update.
6499 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
6500 and add necessary aliases.
6501 * sysdeps/ieee754/dbl-64/w_log.c: New file.
6502 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
6503 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6504 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6505 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6506 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6507 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6508 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6509 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6510 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6511 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6512 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6513 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6514 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6515 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6517 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6520 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6521 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6522 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6523 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6524 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6525 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6526 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6527 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
6528 __log.
6529 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
6530 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
6531 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
6532 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
6533
6534 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6535
6536 * math/Versions (GLIBC_2.29): Add exp and exp2.
6537 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
6538 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
6539 * math/w_exp_compat.c (__exp_compat): Likewise.
6540 * math/w_exp.c: New file.
6541 * math/w_exp2.c: New file.
6542 * sysdeps/i386/fpu/w_exp.c: New file.
6543 * sysdeps/i386/fpu/w_exp2.c: New file.
6544 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
6545 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6546 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
6547 and add necessary aliases.
6548 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
6549 and add necessary aliases.
6550 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
6551 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
6552 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
6553 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
6554 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6555 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6556 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6557 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6558 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6559 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6560 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6561 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6562 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6563 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6564 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6565 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6566 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6567 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6568 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6569 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6571 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6572 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6573 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6574 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6575 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6576 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6577 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6578 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
6579 (__ieee754_exp): Rename to __exp.
6580 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
6581 (__ieee754_exp): Rename to __exp.
6582 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
6583 (__ieee754_exp): Rename to __exp.
6584 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
6585 __exp.
6586 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
6587
6588 2018-11-20 DJ Delorie <dj@redhat.com>
6589
6590 * malloc/malloc.c (tcache_entry): Add key field.
6591 (tcache_put): Set it.
6592 (tcache_get): Likewise.
6593 (_int_free): Check for double free in tcache.
6594 * malloc/tst-tcfree1.c: New.
6595 * malloc/tst-tcfree2.c: New.
6596 * malloc/Makefile: Run the new tests.
6597 * manual/probes.texi: Document memory_tcache_double_free probe.
6598
6599 * dlfcn/dlerror.c (check_free): Prevent double frees.
6600
6601 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
6602
6603 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
6604
6605 2018-11-20 Joseph Myers <joseph@codesourcery.com>
6606
6607 * conform/conformtest.py (ElementTest.run): Use unique identifiers
6608 in tests. Use names for format arguments.
6609 (ConstantTest.run): Likewise.
6610 (SymbolTest.run): Likewise.
6611 (TypeTest.run): Likewise.
6612 (TagTest.run): Likewise.
6613 (FunctionTest.run): Likewise.
6614 (VariableTest.run): Likewise.
6615 (MacroFunctionTest.run): Likewise.
6616 (MacroStrTest.run): Likewise.
6617 (HeaderTests.__init__): Set self.num_tests.
6618 (HeaderTests.handle_test_line): Set test.num. Increment
6619 self.num_tests.
6620
6621 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6622
6623 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
6624 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
6625 SEEK_SET.
6626
6627 2018-11-19 Mao Han <han_mao@c-sky.com>
6628
6629 * scripts/config.guess: Update to version 2018-08-29.
6630 * scripts/config.sub: Update to version 2018-08-29.
6631
6632 2018-11-19 Florian Weimer <fweimer@redhat.com>
6633
6634 support: Print timestamps in timeout handler.
6635 * support/support_test_main.c (print_timestamp): New function.
6636 (signal_handler): Use it to print the termination time and the
6637 time of the last write to standard output.
6638
6639 2018-11-16 Zack Weinberg <zackw@panix.com>
6640 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6641
6642 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
6643 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
6644 argument.
6645 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
6646 and add flags argument. Check flags instead of __ldbl_is_dbl when
6647 deciding whether to set is_long_double.
6648 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
6649 passing zero for flags argument.
6650 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
6651
6652 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6653 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
6654 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
6655 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
6656 variable names. Remove libc_hidden_def/libc_hidden_proto from
6657 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
6658 longer called from within the library.
6659 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
6660 for __nldbl___vstrfmon_l, declare it explicitly.
6661
6662 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
6663
6664 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
6665
6666 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
6667 macros
6668 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
6669 F_SETLK64, F_SETLKW64, respectively.
6670 * sysdeps/mach/hurd/f_setlk.c: New file.
6671 * sysdeps/mach/hurd/f_setlk.h: New file.
6672 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
6673 f_setlk.
6674 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
6675 (__libc_fcntl): Move non-flock operations to...
6676 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
6677 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
6678
6679 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
6680
6681 mktime: DEBUG_MKTIME cleanup
6682 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
6683 And it’s no longer needed now that glibc and Gnulib both have
6684 their own testing mechanisms for mktime.
6685 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
6686
6687 mktime: fix non-EOVERFLOW errno handling
6688 [BZ#23789]
6689 mktime was not properly reporting failures when the underlying
6690 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
6691 them like EOVERFLOW failures, and set errno to EOVERFLOW.
6692 The problem could happen on non-glibc platforms, with Gnulib.
6693 * time/mktime.c (guess_time_tm): Remove, replacing with ...
6694 (tm_diff): ... this simpler function, which does not change errno.
6695 All callers changed to deal with errno themselves.
6696 (ranged_convert, __mktime_internal): Return failure immediately if
6697 the underlying function reports any failure other than EOVERFLOW.
6698 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
6699 gap code fails.
6700
6701 mktime: fix bug with Y2038 DST transition
6702 [BZ#23789]
6703 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
6704 mishandle a DST transition that jumps over the Y2038 boundary.
6705 No such DST transitions are known so this is only a theoretical
6706 bug, but we might as well do things right.
6707
6708 mktime: make more room for overflow
6709 [BZ#23789]
6710 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
6711 This is so that we can add tm_diff results to a previous guess,
6712 which will be useful in a later patch.
6713
6714 mktime: simplify offset guess
6715 [BZ#23789]
6716 * time/mktime.c (__mktime_internal): Omit excess precision.
6717
6718 mktime: new test for mktime failure
6719 [BZ#23789]
6720 Based on a test suggested by Albert Aribaud in:
6721 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
6722 * time/Makefile (tests): Add bug-mktime4.
6723 * time/bug-mktime4.c: New file.
6724
6725 mktime: fix EOVERFLOW bug
6726 [BZ#23789]
6727 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
6728 Include libc-config.h, not config.h, for __set_errno.
6729 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
6730
6731 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6732
6733 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
6734 __attribute_copy__ to copy attributes from name. Drop static qualifier
6735 to avoid warnings about leaf attribute not having effect on static
6736 functions.
6737
6738 2018-11-13 Florian Weimer <fweimer@redhat.com>
6739
6740 * malloc/malloc.c (fastbin_push_entry): New function.
6741 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
6742 (REMOVE_FB): Remove macro.
6743 (_int_malloc): Use fastbin_pop_entry and reindent.
6744 (_int_free): Use fastbin_push_entry.
6745 (malloc_consolidate): Use atomic_exchange_acquire.
6746
6747 2018-11-13 Joseph Myers <joseph@codesourcery.com>
6748
6749 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
6750 alias attribute, not with strong_alias.
6751
6752 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
6753 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
6754 with additional parameter thread.
6755 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
6756 in terms of __hidden_ver2.
6757 (hidden_tls_def): New macro.
6758 (libc_hidden_tls_def): Likewise.
6759 (rtld_hidden_tls_def): Likewise.
6760 (libm_hidden_tls_def): Likewise.
6761 (libmvec_hidden_tls_def): Likewise.
6762 (libresolv_hidden_tls_def): Likewise.
6763 (librt_hidden_tls_def): Likewise.
6764 (libdl_hidden_tls_def): Likewise.
6765 (libnss_files_hidden_tls_def): Likewise.
6766 (libnsl_hidden_tls_def): Likewise.
6767 (libnss_nisplus_hidden_tls_def): Likewise.
6768 (libutil_hidden_tls_def): Likewise.
6769 (libutil_hidden_tls_def): Likweise.
6770 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
6771 libc_hidden_tls_def.
6772 (__sim_disabled_exceptions_thread): Likewise.
6773 (__sim_round_mode_thread): Likewise.
6774
6775 * sysdeps/sparc/sparc-ifunc.h [SHARED]
6776 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
6777 copy attributes from name.
6778
6779 2018-11-12 Joseph Myers <joseph@codesourcery.com>
6780
6781 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
6782 Use __attribute_copy__ to copy attributes from name.
6783
6784 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
6785 with __hidden_ver1 call.
6786 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
6787 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
6788 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
6789 (__cosf): Do not declare here.
6790 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
6791 (__sincosf): Do not declare here.
6792 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
6793 (__sinf): Do not declare here.
6794
6795 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
6796 (__BIG_ENDIAN): Likewise.
6797 (__BYTE_ORDER): Likewise.
6798 (strong_alias): Likewise.
6799 (_strong_alias): Likewise.
6800
6801 2018-11-12 Florian Weimer <fweimer@redhat.com>
6802
6803 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
6804 function. Move after the definition of in_smallbin_range. Do not
6805 use __builtin_expect for paths that lead to a noreturn function.
6806 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
6807 because it is unclear whether this is in fact an unlikely
6808 condition.
6809 (_int_malloc, _int_free): Adjust.
6810 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
6811 variables.
6812 * malloc/arena.c (heap_trim): Likewise.
6813
6814 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
6815
6816 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
6817 it, free it if needed.
6818 (reauthenticate): Test and use ccwdir.
6819 (child_init_port): In non-resetids case, test and use ccwdir.
6820 (child_chdir): New nested function to set ccwdir.
6821 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
6822 * hurd/hurd/port.h (_hurd_port_move): New function.
6823 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
6824 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
6825 * hurd/Versions (_hurd_port_move): Export function.
6826 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
6827 symbol.
6828 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
6829 of dtablesize for allocating dtable_cloexec.
6830
6831 2018-11-09 Martin Sebor <msebor@redhat.com>
6832
6833 * include/libc-symbols.h (__attribute_copy__): Define macro unless
6834 it's already defined.
6835 (_strong_alias): Use __attribute_copy__.
6836 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
6837 * misc/sys/cdefs.h (__attribute_copy__): New macro.
6838 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
6839 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
6840 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
6841 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
6842 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
6843 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
6844 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
6845 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
6846 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
6847 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
6848 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
6849 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
6850 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
6851 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
6852 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
6853 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
6854 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
6855
6856 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6857
6858 * misc/tst-efgcvt.c: Include support/check.h and
6859 support/test-driver.c. Do not include test-skeleton.c.
6860 (error_count): Remove.
6861 (output_error): Replace increments to error_count with calls to
6862 support_record_failure.
6863 (output_r_error): Likewise.
6864 (special): Likewise.
6865 (do_test): Unconditionally return zero.
6866 (TEST_FUNCTION): Remove.
6867
6868 2018-11-09 Joseph Myers <joseph@codesourcery.com>
6869
6870 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
6871 not $(@D)/scratch.
6872 ($(linknamespace-header-tests)): Likewise.
6873
6874 * conform/conformtest.py: New file.
6875 * conform/conformtest.pl: Remove.
6876 * conform/GlibcConform.pm: Likewise.
6877 * conform/glibcconform.py (KEYWORDS_C90): New constant.
6878 (KEYWORDS_C99): Likewise.
6879 (KEYWORDS): Likewise.
6880 * conform/Makefile ($(conformtest-header-tests)): Use
6881 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
6882 option. Use --header instead of --headers.
6883 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
6884 function entries.
6885 * conform/data/spawn.h-data: Likewise.
6886 * conform/data/fcntl.h-data (openat): Add space after function
6887 name.
6888 * conform/data/wchar.h-data (wcscasecmp): Likewise.
6889 (wcscasecmp_l): Likewise.
6890 * conform/data/termios.h-data (c_cc): Add space after element
6891 name.
6892
6893 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6894
6895 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
6896 instead of manually comparing and reporting mismatching strings.
6897 * misc/tst-ldbl-error.c (do_one_test): Likewise.
6898 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
6899
6900 2018-11-08 Joseph Myers <joseph@codesourcery.com>
6901
6902 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
6903 __ASSUME_SOCKETCALL.
6904 * sysdeps/unix/sysv/linux/i386/kernel-features.h
6905 (__ASSUME_SOCKETCALL): Remove.
6906 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6907 (__ASSUME_SOCKETCALL): Likewise.
6908 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6909 (__ASSUME_SOCKETCALL): Likewise.
6910 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
6911 (__ASSUME_SOCKETCALL): Likewise.
6912 * sysdeps/unix/sysv/linux/s390/kernel-features.h
6913 (__ASSUME_SOCKETCALL): Likewise.
6914 * sysdeps/unix/sysv/linux/sh/kernel-features.h
6915 (__ASSUME_SOCKETCALL): Likewise.
6916 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6917 (__ASSUME_SOCKETCALL): Likewise.
6918
6919 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
6920
6921 [BZ #23509]
6922 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
6923 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
6924 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
6925 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
6926 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
6927 lc_unknown.
6928
6929 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
6930
6931 [BZ #17630]
6932 * resolv/tst-resolv-network.c: Add test for getnetbyname.
6933
6934 2018-11-07 Joseph Myers <joseph@codesourcery.com>
6935
6936 [BZ #23867]
6937 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6938 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
6939 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6940 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
6941
6942 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6943
6944 * support/support_test_compare_string.c
6945 (support_test_compare_string): Fix printf format.
6946
6947 2018-11-07 Florian Weimer <fweimer@redhat.com>
6948
6949 Implement TEST_COMPARE_STRING.
6950 * support/check.h (TEST_COMPARE_STRING): Define.
6951 (support_test_compare_string): Declare.
6952 * support/Makefile (libsupport-routines): Add
6953 support_test_compare_string.
6954 (tests): Add tst-test_compare_string.
6955 * support/support_test_compare_string.c: New file.
6956 * support/tst-test_compare_string.c: Likewise.
6957
6958 2018-11-07 Andreas Schwab <schwab@suse.de>
6959
6960 [BZ #23864]
6961 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
6962 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
6963 Undef.
6964
6965 2018-11-06 Joseph Myers <joseph@codesourcery.com>
6966
6967 [BZ #23862]
6968 * sysdeps/unix/sysv/linux/sh/kernel-features.h
6969 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
6970 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
6971 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
6972 Likewise.
6973
6974 2018-11-06 Florian Weimer <fweimer@redhat.com>
6975
6976 [BZ #17405]
6977 * posix/Makefile (routines): Add spawn_faction_addchdir.
6978 (tests): Add tst-spawn-chdir.
6979 * posix/Versions (GLIBC_2.29): Add
6980 posix_spawn_file_actions_addchdir_np.
6981 * posix/spawn_faction_addchdir.c: New file.
6982 * posix/spawn_faction_destroy.c
6983 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
6984 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
6985 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
6986 chdir_action.
6987 * posix/tst-spawn-chdir.c: New file.
6988 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
6989 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6990 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6991 posix_spawn_file_actions_addchdir_np.
6992 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6993 Likewise.
6994 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6995 Likewise.
6996 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6997 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6998 Likewise.
6999 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7000 Likewise.
7001 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7002 Likewise.
7003 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7004 Likewise.
7005 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7006 Likewise.
7007 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7008 Likewise.
7009 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7010 (GLIBC_2.29): Likewise.
7011 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7012 (GLIBC_2.29): Likewise.
7013 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7014 (GLIBC_2.29): Likewise.
7015 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7016 (GLIBC_2.29): Likewise.
7017 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7018 Likewise.
7019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7020 (GLIBC_2.29): Likewise.
7021 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7022 (GLIBC_2.29): Likewise.
7023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7024 (GLIBC_2.29): Likewise.
7025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7026 (GLIBC_2.29): Likewise.
7027 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7028 Likewise.
7029 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7030 Likewise.
7031 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7032 Likewise.
7033 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7034 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7035 Likewise.
7036 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7037 Likewise.
7038 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7039 Likewise.
7040 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7041 Likewise.
7042
7043 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7044
7045 * misc/Makefile (tests): Add tst-ldbl-error.
7046 * misc/tst-ldbl-error.c: New file.
7047
7048 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7049
7050 * misc/Makefile (tests): Add tst-ldbl-warn.
7051 * misc/tst-ldbl-warn.c: New file.
7052
7053 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7054
7055 * argp/Makefile (tests): Add tst-ldbl-argp.
7056 * argp/tst-ldbl-argp.c: New file.
7057
7058 2018-11-05 Arjun Shankar <arjun@redhat.com>
7059
7060 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7061 __gconv_path_elem and call __gconv_get_path unconditionally.
7062
7063 2018-11-05 Andreas Schwab <schwab@suse.de>
7064
7065 [BZ #22927]
7066 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7067 creating the first helper thread failed.
7068
7069 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7070
7071 * sysdeps/mach/hurd/msync.c: New file.
7072
7073 2018-11-02 Florian Weimer <fweimer@redhat.com>
7074
7075 * support/shell-container.c (copy_func): Call
7076 support_copy_file_range instead of copy_file_range to support
7077 cross-device copies.
7078
7079 2018-11-02 Florian Weimer <fweimer@redhat.com>
7080
7081 * support/test-container.c: Include <libc-pointer-arith.h> for
7082 ALIGN_UP.
7083
7084 2018-11-01 Zong Li <zong@andestech.com>
7085
7086 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7087 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7088 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7089 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7090
7091 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7092 variable to avoid overlap arguments.
7093
7094 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7095
7096 * posix/bug-regex22.c (main): Use puts with distinct error
7097 messages for unexpected success of re_compile_pattern, not printf
7098 with NULL argument to %s.
7099
7100 * stdio-common/bug22.c: Include <libc-diag.h>.
7101 (do_test): Disable -Wformat-overflow= warnings around fprintf
7102 calls outputting more than INT_MAX characters.
7103 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7104 around printf call with NULL %s argument.
7105
7106 [BZ #23848]
7107 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7108 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7109 Undefine.
7110 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7111 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7112 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7113 (__ASSUME_SENDTO_SYSCALL): Likewise.
7114 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7115 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7116 [!__arch64__].
7117 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7118 (__ASSUME_CONNECT_SYSCALL): Likewise.
7119 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7120 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7121 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7122 Define.
7123 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7124 Likewise.
7125 [__LINUX_KERNEL_VERSION >= 0x040400]
7126 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7127 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7128 Remove.
7129 (listen): Likewise.
7130 (setsockopt): Likewise.
7131
7132 2018-11-01 Fredrik Noring <noring@nocrew.org>
7133
7134 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7135 with the ISA override.
7136
7137 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7138
7139 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7140 #endif.
7141
7142 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7143
7144 * manual/errno.texi (EIEIO): Document how translators should
7145 translate the error message.
7146 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7147 printing trailing whitespaces refused by git.
7148 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7149 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7150 * hurd/Makefile (user-interfaces): Add pci.
7151
7152 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7153
7154 * conform/linknamespace.py: New file.
7155 * conform/linknamespace.pl: Remove file.
7156 * conform/Makefile ($(linknamespace-header-tests)): Use
7157 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7158 option.
7159
7160 2018-10-30 Florian Weimer <fweimer@redhat.com>
7161
7162 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7163 memory leaks.
7164
7165 2018-10-30 Florian Weimer <fweimer@redhat.com>
7166
7167 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7168
7169 2018-10-30 Florian Weimer <fweimer@redhat.com>
7170
7171 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7172 support_blob_repeat.
7173
7174 2018-10-30 Florian Weimer <fweimer@redhat.com>
7175
7176 Avoid spurious test failures in stdlib/test-bz22786.
7177 * support/Makefile (libsupport-routines): Add blob_repeat.
7178 (tests): Add tst-support_blob_repeat.
7179 * support/blob_repeat.h: New file.
7180 * support/blob_repeat.c: Likewise.
7181 * support/tst-support_blob_repeat.c: Likewise.
7182 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7183 support_blob_repeat_allocate.
7184
7185 2018-10-30 Andreas Schwab <schwab@suse.de>
7186
7187 [BZ #23125]
7188 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7189 Don't use tail call.
7190 * elf/tst-unwind-main.c: New file.
7191 * elf/Makefile (tests): Add tst-unwind-main.
7192 (CFLAGS-tst-unwind-main.c): Define.
7193
7194 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7195
7196 [BZ #23791]
7197 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7198 n_cs_precedes to 0.
7199 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7200
7201 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7202
7203 * conform/glibcconform.py: Do not import shutil.
7204 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7205 of mkdtemp.
7206
7207 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7208 critic_missing for versions before 3.4.
7209 * configure: Regenerated.
7210 * manual/install.texi (Tools for Compilation): Document
7211 requirement for Python to build glibc.
7212 * INSTALL: Regenerated.
7213 * Rules [PYTHON]: Make code unconditional.
7214 * benchtests/Makefile [PYTHON]: Likewise.
7215 * conform/Makefile [PYTHON]: Likewise.
7216 * manual/Makefile [PYTHON]: Likewise.
7217 * math/Makefile [PYTHON]: Likewise.
7218
7219 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7220
7221 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7222 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7223 answer to interrupt_operation, return EIEIO instead of EINTR.
7224 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7225 _hurd_intr_rpc_msg_about_to global point to start of controlled
7226 assembly snippet. Make it check canceled flag.
7227 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7228 the _hurd_intr_rpc_msg_about_to point.
7229 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7230 issue, remove cancel flag check.
7231
7232 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7233
7234 * scripts/build-many-glibcs.py: Remove compatibility for missing
7235 os.cpu_count and re.fullmatch.
7236
7237 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7238
7239 [BZ #23822]
7240 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7241 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7242 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7243
7244 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7245
7246 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7247 macro.
7248
7249 2018-10-25 Florian Weimer <fweimer@redhat.com>
7250
7251 [BZ #23562]
7252 [BZ #23821]
7253 XFAIL siginfo_t si_band conform test on sparc64.
7254 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7255 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7256 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7257 (conformtest-xfail-conds): Add sparc64-linux.
7258 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7259 sparc64.
7260 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7261
7262 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7263
7264 * elf/elf.h (NT_MIPS_DSP): New macro.
7265 (NT_MIPS_FP_MODE): Likewise.
7266
7267 2018-10-25 Zong Li <zong@andestech.com>
7268
7269 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7270 name by adding the file extension (.so).
7271
7272 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7273
7274 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7275 (test-xfail-ISO11/threads.h/linknamespace,
7276 test-xfail-ISO11/threads.h/conform): Add.
7277
7278 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7279
7280 * math/gen-libm-test.py: Import os.
7281 (ALL_FLOATS_MANUAL): New constant.
7282 (ALL_FLOATS_SUFFIX): Likewise.
7283 (Ulps.all_functions): New function.
7284 (real_all_ulps): Likewise.
7285 (generate_err_table_sub): Likewise.
7286 (generate_err_table): Likewise.
7287 (main): Handle -s and -m options.
7288 * manual/libm-err-tab.pl: Remove.
7289 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7290 instead of libm-err-tab.pl.
7291 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7292 != no].
7293 * manual/install.texi (Tools for Compilation): Document
7294 requirement for Python to build manual.
7295 * INSTALL: Regenerated.
7296
7297 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7298
7299 * bits/time64.h: New file.
7300 * include/time.h: Replace internal_time_t with __time64_t.
7301 * posix/bits/types (__time64_t): Add.
7302 * stdlib/Makefile: Add bits/time64.h to includes.
7303 * time/tzfile.c: Replace internal_time_t with __time64_t.
7304
7305 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7306
7307 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7308 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7309 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7310 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7311 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7312 prototype.
7313 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7314 * posix/spawn_faction_addclose.c
7315 (__posix_spawn_file_actions_addclose): Add hidden definition.
7316 * posix/spawn_faction_adddup2.c
7317 (__posix_spawn_file_actions_adddup2): Likewise.
7318 * posix/spawn_faction_destroy.c
7319 (__posix_spawn_file_actions_destroy): Likewise.
7320 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7321 Likewise.
7322 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7323 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7324 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7325 Likewise.
7326 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7327 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7328 Likewise.
7329
7330 2018-10-24 Andreas Schwab <schwab@suse.de>
7331
7332 [BZ #18093]
7333 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7334 format cache.
7335 * elf/cache.c (print_cache): Likewise.
7336
7337 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7338
7339 * bits/timesize.h: New file.
7340 * stdlib/Makefile (headers): Add bits/timesize.h.
7341 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7342 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7343 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7344 (__SEM_PAD_AFTER_TIME): Likewise.
7345 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7346 (__SHM_PAD_AFTER_TIME): Likewise.
7347 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7348 (__MSQ_PAD_BEFORE_TIME): Likewise.
7349 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7350 (__SEM_PAD_BEFORE_TIME): Likewise.
7351 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7352 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7353 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7354 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7355 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7356 (__MSQ_PAD_BEFORE_TIME): Likewise.
7357 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7358 (__SEM_PAD_BEFORE_TIME): Likewise.
7359 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7360 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7361 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7362 (__MSQ_PAD_BEFORE_TIME): Likewise.
7363 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7364 (__SEM_PAD_BEFORE_TIME): Likewise.
7365 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7366 (__SHM_PAD_BEFORE_TIME): Likewise.
7367 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7368 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7369 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7370
7371 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7372
7373 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7374 USE_RDTSCP is defined.
7375 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7376 USE_RDTSCP is defined.
7377
7378 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7379
7380 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7381 defined.
7382
7383 [BZ #23709]
7384 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7385 independently of other flags.
7386
7387 2018-10-23 Florian Weimer <fweimer@redhat.com>
7388
7389 * time/tst-mktime2.c (N_STRINGS): Remove.
7390 (set_timezone): New function.
7391 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7392 (mktime_test1): Report localtime failure and check errno value.
7393 Use TEST_COMPARE.
7394 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7395 (do_test): Remove alarm call. Use set_timezone and array_length.
7396
7397 2018-10-23 Andreas Schwab <schwab@suse.de>
7398
7399 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7400 (__start_context): Use END instead of PSEUDO_END.
7401
7402 2018-10-22 Joseph Myers <joseph@codesourcery.com>
7403
7404 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7405 version to 4.19.
7406
7407 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7408 version to 4.19.
7409
7410 [BZ #23793]
7411 * wcsmbs/c32rtomb.c: New file.
7412 * wcsmbs/mbrtoc32.c: Likewise.
7413 * wcsmbs/tst-c32-state.c: Likewise.
7414 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
7415 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
7416 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
7417 (tests): Add tst-c32-state.
7418 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
7419 $(gen-locales).
7420
7421 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
7422
7423 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
7424 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
7425
7426 2018-10-19 Joseph Myers <joseph@codesourcery.com>
7427
7428 [BZ #23794]
7429 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
7430 pair and return 0 in that case, and use saved character to
7431 interpret following character.
7432 * wcsmbs/tst-c16-surrogate.c: New file.
7433 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
7434 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
7435 Depend on $(gen-locales)
7436
7437 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7438
7439 [BZ #23562]
7440 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
7441 (struct siginfo_t): Use correct type for si_band.
7442
7443 2018-10-19 Florian Weimer <fweimer@redhat.com>
7444
7445 [BZ #23689]
7446 * resource/bits/types/struct_rusage.h (struct rusage): Update
7447 comment on struct. Remove extraneous field comment.
7448
7449 2018-10-18 David S. Miller <davem@davemloft.net>
7450
7451 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
7452 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
7453 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
7454 sysdep_routines in subdir elf.
7455 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
7456 version for __vdso_clock_gettime.
7457 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
7458 Define.
7459 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7460 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7461
7462 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
7463
7464 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
7465
7466 * sysdeps/i386/init-arch.h: Removed.
7467 * sysdeps/i386/i586/init-arch.h: Likewise.
7468 * sysdeps/i386/i686/init-arch.h: Likewise.
7469 * sysdeps/i386/i686/hp-timing.h: Likewise.
7470 * sysdeps/x86_64/hp-timing.h: Likewise.
7471 * sysdeps/i386/isa.h: New file.
7472 * sysdeps/i386/i586/isa.h: Likewise.
7473 * sysdeps/i386/i686/isa.h: Likewise.
7474 * sysdeps/x86_64/isa.h: Likewise.
7475 * sysdeps/x86/hp-timing.h: New file.
7476 * sysdeps/x86/init-arch.h: Include <isa.h>.
7477
7478 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7479
7480 * math/libm-test-pow.inc (pow_test_data): Do not allow
7481 divide-by-zero exception for pow(+/- 0, -Inf).
7482
7483 2018-10-17 Zack Weinberg <zackw@panix.com>
7484
7485 * manual/job.texi (Job Control is Optional): Remove node, as
7486 job control has not been optional in quite some time.
7487 (Job Control): Mention briefly that systems older than
7488 POSIX.1-2001 might not support job control.
7489 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
7490 defined on systems conforming to POSIX.1-2001.
7491
7492 2018-10-17 Arjun Shankar <arjun@redhat.com>
7493
7494 [BZ #22062]
7495 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
7496 indentation.
7497 * (__gconv_read_conf): Mark function static.
7498 * (once): New static variable.
7499 * (__gconv_load_conf): New function.
7500 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
7501 * iconv/gconv_db.c (once): Remove static variable.
7502 * (__gconv_compare_alias): Use __gconv_load_conf instead of
7503 __gconv_read_conf.
7504 * (__gconv_find_transform): Likewise.
7505 * iconv/tst-iconv-mt.c: New test.
7506 * iconv/Makefile: Add tst-iconv_mt.
7507
7508 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7509
7510 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7511 bits/shm-pad.h.
7512 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
7513 (shmatt_t): Define as __syscall_ulong_t.
7514 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
7515 and [__SHM_PAD_AFTER_TIME].
7516 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
7517 Define shm_segsz and associated padding based on
7518 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
7519 Use __syscall_ulong_t instead of unsigned long int.
7520 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
7521 unsigned long int.
7522 [__USE_MISC] (struct shm_info): Likewise.
7523 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
7524 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
7525 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
7526 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
7527 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
7528 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7529 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
7530 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7531 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7532 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7533 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
7534
7535 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7536 bits/shmlba.h.
7537 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
7538 (SHMLBA): Remove macro.
7539 (__getpagesize): Remove function declaration.
7540 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
7541 <bits/shmlba.h>.
7542 (SHMLBA): Remove macro.
7543 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
7544 <bits/shmlba.h>.
7545 (SHMLBA): Remove macro.
7546 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
7547 <bits/shmlba.h>.
7548 (SHMLBA): Remove macro.
7549 (__getpagesize): Remove function declaration.
7550 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
7551 <bits/shmlba.h>.
7552 (SHMLBA): Remove macro.
7553 (__getshmlba): Remove function declaration.
7554 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
7555 (SHMLBA): Remove macro.
7556 (__getpagesize): Remove function declaration.
7557 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
7558 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7559 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7560 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
7561 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
7562 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
7563 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
7564 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
7565 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
7566 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
7567
7568 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
7569
7570 [BZ #23275]
7571 * nptl/tst-mutex10.c: New File.
7572 * nptl/Makefile (tests): Add tst-mutex10.
7573 (tst-mutex10-ENV): New variable.
7574 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
7575 Ensure that elision path is used if elision is available.
7576 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
7577 Likewise.
7578 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
7579 Likewise.
7580 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
7581 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
7582 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
7583 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
7584 Likewise.
7585 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
7586 (__pthread_mutex_cond_lock_adjust): Likewise.
7587 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
7588 Likewise.
7589 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
7590 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
7591 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
7592 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
7593 Add comments.
7594 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
7595 Use atomic_load_relaxed and atomic_store_relaxed.
7596 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
7597 Use atomic_store_relaxed.
7598
7599 2018-10-17 Andreas Schwab <schwab@suse.de>
7600
7601 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
7602 * crypt/badsalttest.c (TIMEOUT): Likewise.
7603 * crypt/sha256c-test.c (TIMEOUT): Likewise.
7604 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
7605 * io/test-lfs.c (TIMEOUT): Likewise.
7606 * libio/tst-atime.c (TIMEOUT): Likewise.
7607 * localedata/tst-leaks.c (TIMEOUT): Likewise.
7608 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
7609 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
7610 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
7611 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
7612 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
7613 * nptl/tst-cond11.c (TIMEOUT): Likewise.
7614 * nptl/tst-cond14.c (TIMEOUT): Likewise.
7615 * nptl/tst-cond15.c (TIMEOUT): Likewise.
7616 * nptl/tst-cond24.c (TIMEOUT): Likewise.
7617 * nptl/tst-cond25.c (TIMEOUT): Likewise.
7618 * nptl/tst-kill2.c (TIMEOUT): Likewise.
7619 * nptl/tst-kill3.c (TIMEOUT): Likewise.
7620 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
7621 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
7622 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
7623 * nptl/tst-once2.c (TIMEOUT): Likewise.
7624 * nptl/tst-once3.c (TIMEOUT): Likewise.
7625 * nptl/tst-once4.c (TIMEOUT): Likewise.
7626 * nptl/tst-robust8.c (TIMEOUT): Likewise.
7627 * nptl/tst-robust9.c (TIMEOUT): Likewise.
7628 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
7629 * nptl/tst-sem14.c (TIMEOUT): Likewise.
7630 * nptl/tst-sem6.c (TIMEOUT): Likewise.
7631 * nptl/tst-signal3.c (TIMEOUT): Likewise.
7632 * nptl/tst-spin4.c (TIMEOUT): Likewise.
7633 * nptl/tst-tls3.c (TIMEOUT): Likewise.
7634 * nptl/tst-tls4.c (TIMEOUT): Likewise.
7635 * posix/tst-chmod.c (TIMEOUT): Likewise.
7636 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
7637 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
7638 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
7639 * posix/tst-regex2.c (TIMEOUT): Likewise.
7640 * posix/tst-waitid.c (TIMEOUT): Likewise.
7641 * rt/tst-aio.c (TIMEOUT): Likewise.
7642 * rt/tst-aio10.c (TIMEOUT): Likewise.
7643 * rt/tst-aio4.c (TIMEOUT): Likewise.
7644 * rt/tst-aio5.c (TIMEOUT): Likewise.
7645 * rt/tst-aio6.c (TIMEOUT): Likewise.
7646 * rt/tst-aio64.c (TIMEOUT): Likewise.
7647 * rt/tst-aio7.c (TIMEOUT): Likewise.
7648 * rt/tst-aio9.c (TIMEOUT): Likewise.
7649 * rt/tst-clock.c (TIMEOUT): Likewise.
7650 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
7651 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
7652 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
7653 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
7654 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
7655 * rt/tst-timer4.c (TIMEOUT): Likewise.
7656 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
7657 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
7658 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
7659 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
7660 * time/tst-ftime.c (TIMEOUT): Likewise.
7661 * timezone/tst-tzset.c (TIMEOUT): Likewise.
7662
7663 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
7664
7665 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
7666 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
7667 for thunderX2.
7668
7669 2018-10-15 Joseph Myers <joseph@codesourcery.com>
7670
7671 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7672 bits/sem-pad.h.
7673 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
7674 instead of <bits/wordsize.h>.
7675 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
7676 and [__SEM_PAD_AFTER_TIME].
7677 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
7678 __syscall_ulong_t instead of unsigned long int.
7679 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
7680 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
7681 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
7682 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
7683 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
7684 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
7685 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
7686 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
7687 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
7688 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
7689 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
7690
7691 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
7692
7693 regex: simplify by using intprops.h
7694 [BZ#23744]
7695 * posix/regex_internal.h [_LIBC]: Include intprops.h.
7696 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
7697 intprops.h defines them.
7698
7699 regex: __builtin_expect → __glibc_unlikely
7700 [BZ#23744]
7701 This refactoring was prompted by a problem when the regex code is
7702 used as part of Gnulib and when the builder’s compiler does not grok
7703 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
7704 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
7705 Although this refactoring does not fix the problem directly,
7706 we might as well have Gawk use the now-preferred glibc style for when
7707 __builtin_expect is unavailable.
7708 * posix/regex_internal.h (BE): Remove.
7709 All uses replaced by __glibc_unlikely or __glibc_likely.
7710
7711 2018-10-11 Joseph Myers <joseph@codesourcery.com>
7712
7713 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7714 bits/msq-pad.h.
7715 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
7716 instead of <bits/wordsize.h>.
7717 (msgqnum_t): Define as __syscall_ulong_t.
7718 (msglen_t): Likewise.
7719 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
7720 and [__MSQ_PAD_AFTER_TIME].
7721 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
7722 __syscall_ulong_t instead of unsigned long int.
7723 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
7724 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
7725 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
7726 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
7727 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
7728 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
7729 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
7730 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
7731 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
7732 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
7733 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
7734
7735 2018-10-10 Joseph Myers <joseph@codesourcery.com>
7736
7737 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
7738 (struct shmid_ds): Condition padding after time fields on
7739 [__WORDSIZE == 32].
7740 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
7741 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
7742 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7743
7744 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
7745 (struct semid_ds): Condition padding after time fields on
7746 [__WORDSIZE == 32].
7747 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
7748 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
7749 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
7750 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
7751
7752 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
7753 (struct msqid_ds): Condition padding after time fields on
7754 [__WORDSIZE == 32].
7755 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
7756 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
7757 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
7758 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
7759
7760 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
7761
7762 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
7763
7764 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
7765
7766 * libio/tst-readline.c (TIMEOUT): Define.
7767
7768 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
7769
7770 mktime fix for Gnulib + coreutils
7771 [BZ#23745]
7772 This fix affects only Gnulib. Problem discovered when
7773 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
7774 * time/mktime.c:
7775 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
7776 Do not define since it is not used. Defining an unused static
7777 function prompts a warning from GCC when Coreutils is configured
7778 with --enable-gcc-warnings.
7779
7780 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7781
7782 * benchtests/scripts/compare_bench.py (main): set float type on
7783 threshold argument.
7784
7785 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
7786
7787 [BZ #23740]
7788 * localedata/locales/kl_GL (mon): Update, the relative case.
7789 (alt_mon): Add, fill with month names in the nominative case.
7790 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
7791 (d_fmt): Set to "%b %d %Y".
7792
7793 2018-10-04 Joseph Myers <joseph@codesourcery.com>
7794
7795 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
7796 <bits/mman-linux.h>.
7797 (PROT_READ): Don't define here.
7798 (PROT_WRITE): Likewise.
7799 (PROT_EXEC): Likewise.
7800 (PROT_NONE): Likewise.
7801 (PROT_GROWSDOWN): Likewise.
7802 (PROT_GROWSUP): Likewise.
7803 (MAP_SHARED): Likewise.
7804 (MAP_PRIVATE): Likewise.
7805 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
7806 [__USE_MISC] (MAP_FILE): Likewise.
7807 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
7808 [__USE_MISC] (MAP_ANON): Likewise.
7809 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
7810 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
7811 (MCL_CURRENT): Likewise.
7812 (MCL_FUTURE): Likewise.
7813 (MCL_ONFAULT): Likewise.
7814 [__USE_MISC] (MADV_NORMAL): Likewise.
7815 [__USE_MISC] (MADV_RANDOM): Likewise.
7816 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
7817 [__USE_MISC] (MADV_WILLNEED): Likewise.
7818 [__USE_MISC] (MADV_DONTNEED): Likewise.
7819 [__USE_MISC] (MADV_FREE): Likewise.
7820 [__USE_MISC] (MADV_REMOVE): Likewise.
7821 [__USE_MISC] (MADV_DONTFORK): Likewise.
7822 [__USE_MISC] (MADV_DOFORK): Likewise.
7823 [__USE_MISC] (MADV_HWPOISON): Likewise.
7824 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
7825 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
7826 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
7827 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
7828 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
7829 (__MAP_ANONYMOUS): New macro.
7830 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
7831 <bits/mman-linux.h> inclusion.
7832 (MAP_FIXED): Likewise.
7833 (MS_SYNC): Likewise.
7834 (MS_ASYNC): Likewise.
7835 (MS_INVALIDATE): Likewise.
7836 [__USE_MISC] (MADV_MERGEABLE): Likewise.
7837 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
7838 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
7839 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
7840 [__USE_MISC] (MADV_DONTDUMP): Likewise.
7841 [__USE_MISC] (MADV_DODUMP): Likewise.
7842 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
7843 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
7844
7845 [BZ #23735]
7846 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
7847 Define.
7848 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
7849 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
7850 Add test-nldbl-redirect.
7851 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
7852 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
7853 $(objpfx)libnldbl_nonshared.a.
7854
7855 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
7856
7857 * support/support.h (support_objdir_elf_ldso): New variable.
7858 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
7859 * support/Makefile (CFLAGS-support_paths.c): Add definition
7860 for OBJDIR_ELF_LDSO_PATH.
7861 * support/test-container.c (main): Search for the ld.so
7862 which is also used by the testsuite.
7863
7864 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
7865
7866 [BZ #20209]
7867 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
7868 should be "sap" rather than "sab".
7869 (day): Fix spelling of Sunday, should be "sapaat" rather than
7870 "sabaat".
7871
7872 2018-10-02 Joseph Myers <joseph@codesourcery.com>
7873
7874 * math/libm-test-fma.inc (fma_test_data): Add more tests.
7875
7876 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
7877
7878 [BZ #19444]
7879 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
7880 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
7881 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
7882
7883 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7884
7885 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
7886
7887 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
7888
7889 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
7890 Add -mrtm.
7891 (CFLAGS-elision-unlock.c): Likewise.
7892 (CFLAGS-elision-timed.c): Likewise.
7893 (CFLAGS-elision-trylock.c): Likewise.
7894 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
7895
7896 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7897
7898 [BZ #21037]
7899 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
7900 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
7901 new fd_to_filename interface.
7902 * libio/freopen64.c (freopen64): Likewise.
7903 * libio/tst-memstream.h: New file.
7904 * libio/tst-memstream4.c: Likewise.
7905 * libio/tst-wmemstream4.c: Likewise.
7906 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
7907 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
7908 and remove internal dynamic allocation.
7909
7910 2018-10-01 Joseph Myers <joseph@codesourcery.com>
7911
7912 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
7913 (MREMAP_MAYMOVE): Do not define here.
7914 [__USE_GNU] (MREMAP_FIXED): Likewise.
7915 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
7916 (MREMAP_MAYMOVE): Define here instead.
7917 [__USE_GNU] (MREMAP_FIXED): Likewise.
7918 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
7919 (MREMAP_MAYMOVE): Remove.
7920 [__USE_GNU] (MREMAP_FIXED): Likewise.
7921
7922 2018-09-28 Joseph Myers <joseph@codesourcery.com>
7923
7924 * math/fromfp.h: Do not include <math_private.h>.
7925 * math/s_cacosh_template.c: Likewise.
7926 * math/s_casin_template.c: Likewise.
7927 * math/s_casinh_template.c: Likewise.
7928 * math/s_ccos_template.c: Likewise.
7929 * math/s_cproj_template.c: Likewise.
7930 * math/s_fdim_template.c: Likewise.
7931 * math/s_fmaxmag_template.c: Likewise.
7932 * math/s_fminmag_template.c: Likewise.
7933 * math/s_iseqsig_template.c: Likewise.
7934 * math/s_ldexp_template.c: Likewise.
7935 * math/s_nextdown_template.c: Likewise.
7936 * math/w_log1p_template.c: Likewise.
7937 * math/w_scalbln_template.c: Likewise.
7938 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7939 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7940 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7941 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7942 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
7943 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
7944 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
7945 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
7946 * sysdeps/i386/fpu/s_atanl.c: Likewise.
7947 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
7948 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
7949 * sysdeps/i386/fpu/s_fdim.c: Likewise.
7950 * sysdeps/i386/fpu/s_logbl.c: Likewise.
7951 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7952 * sysdeps/i386/fpu/s_significandl.c: Likewise.
7953 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
7954 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
7955 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7956 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
7957 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7958 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7959 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
7960 * sysdeps/ieee754/k_standardf.c: Likewise.
7961 * sysdeps/ieee754/k_standardl.c: Likewise.
7962 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7963 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
7964 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
7965 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
7966 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
7967 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
7968 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
7969 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7970 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7971 * sysdeps/ieee754/s_signgam.c: Likewise.
7972 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
7973 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
7974 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
7975 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7976 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7977 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7978 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7979 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7980 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7981 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7982 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7983 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7984 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7985 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7986 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7987 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7988 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7989 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7990 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7991 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7992 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7993 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7994 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7995 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7996 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7997 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7998 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7999 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8000 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8001 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8002 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8003 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8004 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8005 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8006 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8007 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8008 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8009 <math_private.h>.
8010 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8011
8012 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8013
8014 [BZ #23716]
8015 * sysdeps/i386/dl-cet.c: Removed.
8016 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8017 prototype.
8018 (_dl_runtime_profile_shstk): Likewise.
8019 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8020 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8021
8022 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8023
8024 [BZ #23579]
8025 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8026 do_test_with_invalid_iov): New tests.
8027 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8028 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8029 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8030 errno is ENOSYS.
8031 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8032 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8033 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8034
8035 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8036
8037 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8038 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8039 (MATH_REDIRECT_BINARY_ARGS): New macro.
8040 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8041 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8042 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8043 header inclusion.
8044 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8045 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8046 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8047 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8048 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8049 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8050 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8051 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8052 Likewise.
8053 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8054 Likewise.
8055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8056 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8057 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8058 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8059 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8060 Likewise.
8061 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8062 Likewise.
8063 * sysdeps/generic/math_private_calls.h
8064 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8065 Do not declare and define as an inline function.
8066 * math/divtc3.c (__divtc3): Use copysign functions instead of
8067 __copysign variants.
8068 * math/multc3.c (__multc3): Likewise.
8069 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8070 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8071 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8072 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8073 Likewise.
8074 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8075 (__ieee754_yn): Likewise.
8076 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8077 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8078 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8079 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8080 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8081 (__sin): Likewise.
8082 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8083 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8084 Likewise.
8085 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8086 Likewise.
8087 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8088 Likewise.
8089 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8090 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8091 Likewise.
8092 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8093 (__ieee754_ynf): Likewise.
8094 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8095 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8096 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8097 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8098 Likewise.
8099 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8100 (__ieee754_ynl): Likewise.
8101 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8102 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8103 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8104 Likewise.
8105 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8106 (__ieee754_ynl): Likewise.
8107 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8108 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8109 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8110 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8111 Likewise.
8112 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8113 (__ieee754_ynl)
8114 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8115 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8116 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8117 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8118 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8119
8120 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8121 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8122 using MATH_REDIRECT.
8123 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8124 header inclusion.
8125 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8126 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8127 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8128 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8129 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8130 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8131 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8132 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8133 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8136 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8137 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8138 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8139 (round): Redirect to __round.
8140 (__roundl): Call round instead of __round.
8141 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8142 Remove macro.
8143 [_ARCH_PWR5X] (__roundf): Likewise.
8144 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8145 functions instead of __round variants.
8146 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8147 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8148 Likewise.
8149 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8150 Likewise.
8151 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8152 Likewise.
8153 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8154 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8155 __lroundl.
8156 (__ieee754_expl): Call roundl instead of __roundl.
8157
8158 2018-09-27 Andreas Schwab <schwab@suse.de>
8159
8160 [BZ #23717]
8161 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8162 (do_test): Make st1 static.
8163
8164 2018-09-26 Andreas Schwab <schwab@suse.de>
8165
8166 [BZ #23707]
8167 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8168 * elf/Makefile (tests): Add tst-unwind-ctor.
8169 (modules-names): Add tst-unwind-ctor-lib.
8170 ($(objpfx)tst-unwind-ctor): Depend on
8171 $(objpfx)tst-unwind-ctor-lib.so.
8172
8173 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8174
8175 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8176 file. Most contents moved from ....
8177 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8178 and include <bits/mman-map-flags-generic.h>.
8179 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8180 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8181 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8182 <bits/mman-map-flags-generic.h>.
8183 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8184 macros defined in <bits/mman-map-flags-generic.h>.
8185 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8186 <bits/mman-map-flags-generic.h>.
8187 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8188 defined in <bits/mman-map-flags-generic.h>.
8189
8190 2018-09-26 Andreas Schwab <schwab@suse.de>
8191
8192 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8193 output.
8194
8195 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8196 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8197 Fangrui Song <maskray@google.com>
8198
8199 [BZ #20480]
8200 * config.make.in (have-textrel_ifunc): New define.
8201 * configure.ac: Add check if linker supports textrel relocation with
8202 ifunc.
8203 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8204 tst-ifunc-textrel.
8205 (CFLAGS-tst-ifunc-textrel.c): New rule.
8206 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8207 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8208 * elf/tst-ifunc-textrel.c: New file.
8209
8210 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8211
8212 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8213 <bits/procfs-prregset.h>.
8214 (prgregset_t): Define using __prgregset_t.
8215 (prfpregset_t): Define using __prfpregset_t.
8216 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8217 (sysdep_headers): Add bits/procfs-prregset.h.
8218 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8219 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8220 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8221 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8222
8223 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8224 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8225 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8226 pr_uid and pr_gid.
8227 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8228 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8229 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8230 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8231 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8232 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8233 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8234 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8235 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8236 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8237 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8238 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8239 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8240 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8241 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8242 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8243 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8244 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8245 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8246 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8247 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8248 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8249 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8250 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8251
8252 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8253 AArch64 version. Include <bits/procfs.h>.
8254 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8255 (sysdep_headers): Add bits/procfs.h.
8256 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8257 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8258 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8259 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8260 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8261 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8262 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8263 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8264 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8265 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8266 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8267 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8268 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8269 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8270 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8271 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8272 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8273
8274 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8275
8276 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8277 Use libsupport.
8278
8279 2018-09-25 Arjun Shankar <arjun@redhat.com>
8280
8281 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8282 (__gconv_max_path_elem_len): Likewise.
8283 (__gconv_nmodules): Likewise.
8284 (__gconv_get_path): Likewise.
8285 (path_elem): Move to ...
8286 * iconv/gconv_conf.c: ... here.
8287 (__gconv_get_path): Mark function static.
8288 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8289 * iconv/gconv_open.c: ... here.
8290
8291 2018-09-24 Andreas Schwab <schwab@suse.de>
8292
8293 * scripts/haveversions.awk: New file.
8294 * Makerules ($(common-objpfx)Versions.def)
8295 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8296 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8297 Move rules ...
8298 * Makeconfig ($(common-objpfx)Versions.def)
8299 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8300 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8301 ... here.
8302 ($(common-objpfx)Versions.mk): New rule. Include it.
8303 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8304 Emit error if build-obsolete-nsl = yes.
8305 * manual/install.texi (Configuring and compiling): Describe
8306 --enable-obsolete-nsl as unavaiable after version 2.28.
8307 * INSTALL: Regenerate.
8308
8309 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8310
8311 * NEWS: Add note about new TLE support on powerpc64le.
8312 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8313 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8314 __ununsed1.
8315 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8316 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8317 * sysdeps/powerpc/powerpc32/sysdep.h,
8318 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8319 ABORT_TRANSACTION): Remove macros.
8320 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8321 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8322 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8323 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8324 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8325 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8326 usage.
8327 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8328
8329 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8330
8331 [BZ #10425]
8332 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8333 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8334 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8335 which is the same as in it_IT.
8336 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8337 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8338
8339 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8340
8341 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8342 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8343 using MATH_REDIRECT.
8344 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8345 header inclusion.
8346 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8347 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8348 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8349 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8350 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8351 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8352 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8353 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8355 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8356 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8357 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8358 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8359 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8360 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8361 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8362 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8363 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8364 (ceil): Redirect to __ceil.
8365 (floor): Redirect to __floor.
8366 (trunc): Redirect to __trunc.
8367 (__truncl): Call trunc instead of __trunc.
8368 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8369 Remove macro.
8370 [_ARCH_PWR5X] (__truncf): Likewise.
8371 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8372 trunc functions instead of __trunc variants.
8373 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8374 Likewise.
8375 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8376 Likewise.
8377 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8378 Likewise.
8379 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8380 Likewise.
8381
8382 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8383 [__i586__ || __pentium__].
8384 [__i486__]: Handle explicitly.
8385 (HAS_CPUID): Define to 1 if above macros are undefined.
8386 (HAS_I586): Likewise.
8387 (HAS_I686): Likewise.
8388
8389 2018-09-20 Florian Weimer <fweimer@redhat.com>
8390
8391 * misc/tst-gethostid.c: New file.
8392 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8393 (tst-gethostid): Link with -ldl.
8394
8395 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8396
8397 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8398 value from gethostbyname_r.
8399
8400 2018-09-19 Carlos O'Donell <carlos@redhat.com>
8401
8402 * stdlib/tst-setcontext9.c (f1): Rename to...
8403 (f1a): ... this.
8404 (f1b): New function implementing lower half of f1 in alternate stack.
8405
8406 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8407
8408 Fix mktime localtime offset confusion
8409 [BZ #23603]
8410 * include/time.h (__mktime_internal): The localtime offset is now
8411 of type long int instead of time_t. This is the longstanding type
8412 in glibc, and it is more than enough to represent difference
8413 between localtime and gmtime even if it is 32 bits and time_t is
8414 64. Changing it now will let us avoid an unnecessary change when
8415 time_t is widened to 64 bits on 32-bit platforms.
8416 * time/mktime-internal.h (mktime_offset_t): Now long int.
8417
8418 Merge mktime, timegm from upstream Gnulib
8419 [BZ #23603][BZ #16346]
8420 This fixes some obscure problems with integer overflow.
8421 Although it looks scary, it is almost all a byte-for-byte copy
8422 from Gnulib, and the Gnulib code has been tested reasonably well.
8423 * include/intprops.h: New file, copied from Gnulib.
8424 * include/verify.h, time/mktime-internal.h:
8425 New tiny files, simplified from Gnulib.
8426 * time/mktime.c: Copy from Gnulib. This has the following changes:
8427 Do not include config.h if DEBUG_MKTIME is nonzero.
8428 Include stdbool.h, intprops.h, verify.h.
8429 Include string.h only if needed.
8430 Include stdlib.h on MS-Windows.
8431 Include mktime-internal.h.
8432 (DEBUG_MKTIME): Default to 0, and simplify later uses.
8433 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8434 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8435 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8436 simplify later conditionals; default the others to zero. Use
8437 these conditionals to express only the code needed on the current
8438 platform. In uses of these conditionals, explicitly spell out how
8439 _LIBC affects things, so it’s easier to review from a glibc
8440 viewpoint.
8441 (WRAPV): Remove; no longer needed now that we have
8442 systematic overflow checking.
8443 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8444 compartmentalize tzset issues. Move system-dependent tzsettish
8445 code here from mktime.
8446 (verify): Remove; now done by verify.h. All uses changed.
8447 (long_int): Use a more-conservative definition, to avoid
8448 integer overflow.
8449 (SHR): Remove, replacing with ...
8450 (shr): New function, which means we needn’t worry about side
8451 effects in args, and conversion analysis is simpler.
8452 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
8453 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
8454 (time_t_avg, time_t_add_ok): Remove.
8455 (mktime_min, mktime_max): New constants.
8456 (leapyear, isdst_differ): Use bool for booleans.
8457 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8458 Use long_int, not time_t, for mktime differences.
8459 (long_int_avg): New function, replacing time_t_avg.
8460 INT_ADD_WRAPV replaces time_t_add_ok.
8461 (guess_time_tm): 6th arg is now long_int, not time_t const *.
8462 All uses changed.
8463 (convert_time): New function.
8464 (ranged_convert): Use it.
8465 (__mktime_internal): Last arg now points to mktime_offset_t, not
8466 time_t. All uses changed. This is a no-op on glibc, where
8467 mktime_offset_t is always time_t. Use int, not time_t, for UTC
8468 offset guess. Directly check for integer overflow instead of
8469 using a heuristic that works only 99.9...% of the time.
8470 Access *OFFSET only once, to avoid an unlikely race if the
8471 compiler delays a load and if this cascades into a signed integer
8472 overflow.
8473 (mktime): Move tzsettish code to my_tzset, and move
8474 localtime_offset to within mktime so that it doesn’t
8475 need a separate ifdef.
8476 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
8477 instead of localtime.
8478 * time/timegm.c: Copy from Gnulib. This has the following changes:
8479 Include mktime-internal.h.
8480 [!_LIBC]: Include config.h and time.h. Do not include
8481 timegm.h or time_r.h. Make __mktime_internal a macro,
8482 and include mktime-internal.h to get its declaration.
8483 (timegm): Temporary is now mktime_offset_t, not time_t.
8484 This affects only Gnulib.
8485
8486 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8487
8488 [BZ #23637]
8489 * string/test-strstr.c (pr23637): New function.
8490 (test_main): Add tests with longer needles.
8491 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
8492 * string/strstr.c (AVAILABLE): Likewise.
8493
8494 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8495
8496 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
8497
8498 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8499
8500 * NEWS: Mention pow improvements.
8501 * math/Makefile (type-double-routines): Add e_pow_log_data.
8502 * sysdeps/generic/math_private.h (__exp1): Remove.
8503 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
8504 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
8505 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
8506 contraction.
8507 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
8508 (exp_inline): Remove.
8509 (__ieee754_exp): Only single double input is handled.
8510 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
8511 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
8512 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
8513 (__pow_log_data): Define.
8514 * sysdeps/ieee754/dbl-64/upow.h: Remove.
8515 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
8516 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
8517 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
8518 contraction.
8519 (CFLAGS-e_pow-fma4.c): Likewise.
8520
8521 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
8522
8523 Simplify tzfile fstat failure code
8524 [BZ #21716]
8525 * time/tzfile.c (__tzfile_read): Simplify slightly.
8526
8527 Fix tzfile low-memory assertion failure
8528 [BZ #21716]
8529 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
8530 when registering time zone abbreviations.
8531
8532 2018-09-18 Joseph Myers <joseph@codesourcery.com>
8533
8534 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
8535 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
8536 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8537 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8538 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
8539 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
8540 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
8541 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8542 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8543
8544 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
8545 __ceil.
8546 (__ceill): Call ceil instead of __ceil.
8547 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
8548 __floor.
8549 (__floorl): Call floor instead of __floor.
8550
8551 2018-09-17 Joseph Myers <joseph@codesourcery.com>
8552
8553 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8554 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
8555 using MATH_REDIRECT.
8556 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
8557 header inclusion.
8558 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
8559 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8560 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8561 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
8562 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8563 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8564 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8565 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
8566 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
8567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
8568 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
8569 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
8570 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8571 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8572 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
8573 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
8574 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8575 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8576 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
8577 Remove macro.
8578 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
8579 functions instead of __ceil variants.
8580 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8581 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8582 Likewise.
8583 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8584 Likewise.
8585 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8586 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8587 Likewise.
8588 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8589 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8590
8591 [BZ #21286]
8592 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
8593 constant.
8594 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
8595 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
8596 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
8597 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
8598 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
8599 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
8600 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
8601 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
8602 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
8603 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
8604 (ILL_BADIADDR): Remove constant.
8605 (TRAP_BRANCH): Likewise.
8606 (TRAP_HWBKPT): Likewise.
8607
8608 2018-09-14 Joseph Myers <joseph@codesourcery.com>
8609
8610 [BZ #23656]
8611 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
8612 Remove [_MIPS_SIM = _ABIN32] conditional case.
8613 (struct elf_prpsinfo): Likewise.
8614
8615 [BZ #23649]
8616 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
8617 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
8618 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
8619 Likewise.
8620 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
8621 elf_prpsinfo): Likewise.
8622 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
8623 elf_prpsinfo): Likewise.
8624 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
8625 Likewise.
8626
8627 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8628 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
8629 using MATH_REDIRECT.
8630 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
8631 header inclusion.
8632 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
8633 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8634 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8635 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8636 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8637 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8638 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
8639 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8640 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8641 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8642 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
8643 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
8644 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
8645 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
8646 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
8647 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8648 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8649 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
8650 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8651 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
8652 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
8653 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
8654 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
8655 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
8656 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
8657 * sysdeps/x86_64/fpu/math_private.h: Remove file.
8658 * math/e_scalb.c (invalid_fn): Use rint functions instead of
8659 __rint variants.
8660 * math/e_scalbf.c (invalid_fn): Likewise.
8661 * math/e_scalbl.c (invalid_fn): Likewise.
8662 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8663 Likewise.
8664 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8665 Likewise.
8666 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8667 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
8668 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8669 Likewise.
8670 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8671 Likewise.
8672 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8673 Likewise.
8674 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
8675 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
8676
8677 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8678 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
8679 New macro.
8680 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8681 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
8682 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8683 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
8684 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8685 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
8686 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8687 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
8688 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8689 && !NO_MATH_REDIRECT] (floor): Likewise.
8690 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
8691 header inclusion.
8692 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
8693 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8694 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8695 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
8696 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8697 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8698 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8699 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
8700 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
8701 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
8702 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
8703 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
8704 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8705 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8706 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
8707 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
8708 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
8709 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
8710 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
8711 Remove macro.
8712 [_ARCH_PWR5X] (__floorf): Likewise.
8713 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
8714 inline function.
8715 [__SSE4_1__] (__floorf): Likewise.
8716 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
8717 instead of __floor variants.
8718 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
8719 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
8720 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
8721 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
8722 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
8723 * math/w_tgamma_compat.c (__tgamma): Likewise.
8724 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
8725 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
8726 * math/w_tgammal_compat.c (__tgammal): Likewise.
8727 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
8728 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
8729 Likewise.
8730 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
8731 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
8732 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
8733 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8734 Likewise.
8735 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
8736 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
8737 Likewise.
8738 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
8739 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
8740 Likewise.
8741 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
8742 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
8743 Likewise.
8744 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
8745 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8746 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
8747 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
8748 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8749 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8750
8751 2018-09-12 Joseph Myers <joseph@codesourcery.com>
8752
8753 * elf/Makefile (modules-names-tests): New variable.
8754
8755 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8756
8757 * NEWS: Mention log2 improvements.
8758 * math/Makefile (type-double-routines): Add e_log2_data.
8759 * sysdeps/i386/fpu/e_log2_data.c: New file.
8760 * sysdeps/ia64/fpu/e_log2_data.c: New file.
8761 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
8762 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
8763 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
8764 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
8765 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
8766
8767 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8768
8769 * NEWS: Mention log improvement.
8770 * math/Makefile (type-double-routines): Add e_log_data.
8771 * sysdeps/i386/fpu/e_log_data.c: New file.
8772 * sysdeps/ia64/fpu/e_log_data.c: New file.
8773 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
8774 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
8775 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
8776 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
8777 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
8778 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
8779
8780 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
8781 Xuepeng Guo <xuepeng.guo@intel.com>
8782
8783 [BZ #23606]
8784 * sysdeps/i386/start.S: Include <sysdep.h>
8785 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
8786 enabled. Add cfi_undefined (eip).
8787
8788 2018-09-11 Joseph Myers <joseph@codesourcery.com>
8789
8790 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
8791 (MOVQ): Likewise.
8792 (EXTRACT_WORDS64): Likewise.
8793 (INSERT_WORDS64): Likewise.
8794 (GET_FLOAT_WORD): Likewise.
8795 (SET_FLOAT_WORD): Likewise.
8796
8797 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
8798 argument.
8799 (Config.build_gcc): Use --disable-libsanitizer for first GCC
8800 build, but not for second build if --full-gcc. Use
8801 --enable-languages=all for second build if --full-gcc.
8802 (get_parser): Add --full-gcc option.
8803 (main): Update call to Context.
8804
8805 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
8806
8807 [BZ #10797]
8808 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
8809 Single Quotation Mark).
8810 (thousands_sep): Likewise.
8811 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
8812 * localedata/locales/it_IT (thousands_sep): Use ".".
8813 (grouping): Use "3;3".
8814
8815 2018-09-10 Joseph Myers <joseph@codesourcery.com>
8816
8817 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
8818 x86_64 and i686 configs using --enable-obsolete-rpc
8819 --enable-obsolete-nsl.
8820
8821 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
8822
8823 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8824
8825 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
8826
8827 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
8828 Increment size of new_argv by one.
8829
8830 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
8831
8832 [BZ #17426]
8833 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
8834 * localedata/locales/ar_IN (d_fmt): Likewise.
8835 * localedata/locales/bhb_IN (d_fmt): Likewise.
8836 * localedata/locales/bho_IN (d_fmt): Likewise.
8837 * localedata/locales/bn_BD (d_fmt): Likewise.
8838 * localedata/locales/bn_IN (d_fmt): Likewise.
8839 * localedata/locales/doi_IN (d_fmt): Likewise.
8840 * localedata/locales/gu_IN (d_fmt): Likewise.
8841 * localedata/locales/hi_IN (d_fmt): Likewise.
8842 * localedata/locales/hne_IN (d_fmt): Likewise.
8843 * localedata/locales/kn_IN (d_fmt): Likewise.
8844 * localedata/locales/mag_IN (d_fmt): Likewise.
8845 * localedata/locales/mai_IN (d_fmt): Likewise.
8846 * localedata/locales/mjw_IN (d_fmt): Likewise.
8847 * localedata/locales/ml_IN (d_fmt): Likewise.
8848 * localedata/locales/mni_IN (d_fmt): Likewise.
8849 * localedata/locales/mr_IN (d_fmt): Likewise.
8850 * localedata/locales/pa_IN (d_fmt): Likewise.
8851 * localedata/locales/raj_IN (d_fmt): Likewise.
8852 * localedata/locales/sat_IN (d_fmt): Likewise.
8853 * localedata/locales/sd_IN (d_fmt): Likewise.
8854 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
8855 * localedata/locales/ta_IN (d_fmt): Likewise.
8856 * localedata/locales/ta_LK (d_fmt): Likewise.
8857 * localedata/locales/tcy_IN (d_fmt): Likewise.
8858 * localedata/locales/ur_IN (d_fmt): Likewise.
8859
8860 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
8861 * localedata/locales/ks_IN (d_fmt): Likewise.
8862 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
8863
8864 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
8865 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
8866 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
8867 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
8868
8869 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
8870
8871 * NEWS: Mention exp and exp2 improvements.
8872 * math/Makefile (libm-support): Remove t_exp.
8873 (type-double-routines): Add math_err and e_exp_data.
8874 * sysdeps/aarch64/libm-test-ulps: Update.
8875 * sysdeps/arm/libm-test-ulps: Update.
8876 * sysdeps/i386/fpu/e_exp_data.c: New file.
8877 * sysdeps/i386/fpu/math_err.c: New file.
8878 * sysdeps/i386/fpu/t_exp.c: Remove.
8879 * sysdeps/ia64/fpu/e_exp_data.c: New file.
8880 * sysdeps/ia64/fpu/math_err.c: New file.
8881 * sysdeps/ia64/fpu/t_exp.c: Remove.
8882 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
8883 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
8884 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
8885 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
8886 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
8887 * sysdeps/ieee754/dbl-64/math_config.h: New file.
8888 * sysdeps/ieee754/dbl-64/math_err.c: New file.
8889 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
8890 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
8891 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
8892 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
8893 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
8894 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
8895 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
8896 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8897 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8898
8899 2018-09-05 Joseph Myers <joseph@codesourcery.com>
8900
8901 * sysdeps/alpha/fpu/math_private.h: Remove.
8902
8903 * sysdeps/generic/math_private.h
8904 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
8905 Move this inline function ....
8906 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
8907 * include/math.h [!_ISOMAC]: To here....
8908
8909 2018-09-04 Joseph Myers <joseph@codesourcery.com>
8910
8911 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
8912 code ....
8913 [!FE_HAVE_ROUNDING_MODES]: And this code ....
8914 * include/fenv.h [!_ISOMAC]: ... to here.
8915 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
8916 (feraiseexcept): Likewise.
8917 * math/fromfp.h: Do not include <fenv_private.h>.
8918 * math/s_cexp_template.c: Likewise.
8919 * math/s_csin_template.c: Likewise.
8920 * math/s_csinh_template.c: Likewise.
8921 * math/s_ctan_template.c: Likewise.
8922 * math/s_ctanh_template.c: Likewise.
8923 * math/s_iseqsig_template.c: Likewise.
8924 * math/w_acos_compat.c: Likewise.
8925 * math/w_acosf_compat.c: Likewise.
8926 * math/w_acosl_compat.c: Likewise.
8927 * math/w_asin_compat.c: Likewise.
8928 * math/w_asinf_compat.c: Likewise.
8929 * math/w_asinl_compat.c: Likewise.
8930 * math/w_j0_compat.c: Likewise.
8931 * math/w_j0f_compat.c: Likewise.
8932 * math/w_j0l_compat.c: Likewise.
8933 * math/w_j1_compat.c: Likewise.
8934 * math/w_j1f_compat.c: Likewise.
8935 * math/w_j1l_compat.c: Likewise.
8936 * math/w_jn_compat.c: Likewise.
8937 * math/w_jnf_compat.c: Likewise.
8938 * math/w_log10_compat.c: Likewise.
8939 * math/w_log10f_compat.c: Likewise.
8940 * math/w_log10l_compat.c: Likewise.
8941 * math/w_log2_compat.c: Likewise.
8942 * math/w_log2f_compat.c: Likewise.
8943 * math/w_log2l_compat.c: Likewise.
8944 * math/w_log_compat.c: Likewise.
8945 * math/w_logf_compat.c: Likewise.
8946 * math/w_logl_compat.c: Likewise.
8947 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8948 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8949 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8950 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8951 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8952 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8953 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8954 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8955 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8956 * sysdeps/ieee754/k_standardl.c: Likewise.
8957 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8958 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8959 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8960 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8961 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8962 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8963 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8964 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8965 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8966 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8967 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8968 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8969 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8970 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8971 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8972 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8973 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8974 * math/w_ilogb_template.c: Include <fenv.h> instead of
8975 <fenv_private.h>.
8976 * math/w_llogb_template.c: Likewise.
8977 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8978 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8979
8980 2018-09-03 Joseph Myers <joseph@codesourcery.com>
8981
8982 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
8983 * math/fromfp.h: Include <fenv_private.h>.
8984 * math/math-narrow.h: Likewise.
8985 * math/s_cexp_template.c: Likewise.
8986 * math/s_csin_template.c: Likewise.
8987 * math/s_csinh_template.c: Likewise.
8988 * math/s_ctan_template.c: Likewise.
8989 * math/s_ctanh_template.c: Likewise.
8990 * math/s_iseqsig_template.c: Likewise.
8991 * math/w_acos_compat.c: Likewise.
8992 * math/w_acosf_compat.c: Likewise.
8993 * math/w_acosl_compat.c: Likewise.
8994 * math/w_asin_compat.c: Likewise.
8995 * math/w_asinf_compat.c: Likewise.
8996 * math/w_asinl_compat.c: Likewise.
8997 * math/w_ilogb_template.c: Likewise.
8998 * math/w_j0_compat.c: Likewise.
8999 * math/w_j0f_compat.c: Likewise.
9000 * math/w_j0l_compat.c: Likewise.
9001 * math/w_j1_compat.c: Likewise.
9002 * math/w_j1f_compat.c: Likewise.
9003 * math/w_j1l_compat.c: Likewise.
9004 * math/w_jn_compat.c: Likewise.
9005 * math/w_jnf_compat.c: Likewise.
9006 * math/w_llogb_template.c: Likewise.
9007 * math/w_log10_compat.c: Likewise.
9008 * math/w_log10f_compat.c: Likewise.
9009 * math/w_log10l_compat.c: Likewise.
9010 * math/w_log2_compat.c: Likewise.
9011 * math/w_log2f_compat.c: Likewise.
9012 * math/w_log2l_compat.c: Likewise.
9013 * math/w_log_compat.c: Likewise.
9014 * math/w_logf_compat.c: Likewise.
9015 * math/w_logl_compat.c: Likewise.
9016 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9017 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9018 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9019 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9020 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9021 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9022 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9023 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9024 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9025 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9026 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9027 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9028 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9029 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9030 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9031 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9032 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9033 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9034 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9035 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9036 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9037 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9038 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9039 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9040 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9041 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9042 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9043 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9044 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9045 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9046 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9047 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9048 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9049 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9050 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9051 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9052 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9053 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9054 * sysdeps/ieee754/k_standardl.c: Likewise.
9055 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9056 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9057 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9058 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9059 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9060 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9061 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9062 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9063 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9064 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9065 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9066 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9067 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9068 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9069 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9070 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9071 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9072 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9073 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9074 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9075 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9076 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9077 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9078 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9079 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9080 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9081 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9082 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9083 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9084 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9085 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9086 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9087 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9088 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9089 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9090 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9091 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9092 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9093 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9094 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9095 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9096 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9097 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9098 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9099 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9100 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9101 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9102 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9103 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9104 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9105 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9106 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9107 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9108 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9109 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9110 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9111 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9112 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9113 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9114 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9115 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9116 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9117 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9118 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9119 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9120 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9121 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9122 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9123 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9124 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9125 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9126
9127 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9128
9129 [BZ #20271]
9130 * include/stdio.h (__libc_fatal): Mention newline in comment.
9131 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9132 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9133 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9134 * nss/nsswitch.c (__nss_next2): Likewise.
9135 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9136 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9137 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9138 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9139 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9140 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9141 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9142 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9143 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9144 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9145 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9146 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9147 (__netlink_assert_response): Likewise.
9148
9149 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9150
9151 * conform/glibcconform.py: New file.
9152 * conform/list-header-symbols.py: Likewise.
9153 * conform/list-header-symbols.pl: Remove.
9154 * conform/Makefile (tests-special): Only add linknamespace tests
9155 if [PYTHON].
9156 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9157
9158 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9159
9160 [BZ #23597]
9161 * support/Makefile (libsupport-routines): Add
9162 support_copy_file_range and xcopy_file_range.
9163 * support/support.h: Include <sys/types.h>.
9164 (support_copy_file_range): New prototype.
9165 * support/support_copy_file_range.c: New file. Copied and
9166 modified from io/copy_file_range-compat.c.
9167 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9168 instead of copy_file_range.
9169 * support/xcopy_file_range.c: New file.
9170 * support/xunistd.h (xcopy_file_range): New prototype.
9171
9172 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9173
9174 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9175 xpthread_create and xpthread_join.
9176
9177 2018-08-30 Florian Weimer <fweimer@redhat.com>
9178
9179 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9180
9181 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9182
9183 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9184 if malloc fails.
9185
9186 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9187
9188 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9189 and minus_oflow as non-finite.
9190
9191 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9192
9193 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9194 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9195 moved to fenv_private.h except for ...
9196 (TOINT_INTRINSICS): Kept in math_private.h.
9197 (roundtoint): Likewise.
9198 (converttoint): Likewise.
9199 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9200 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9201 * sysdeps/arm/math_private.h: Remove.
9202 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9203 ....
9204 * sysdeps/generic/math_private.h: ... this file. Include
9205 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9206 Include <fenv_private.h>. Remove functions and macros moved to
9207 fenv_private.h.
9208 * sysdeps/i386/fpu/math_private.h: Remove.
9209 * sysdeps/mips/math_private.h: Move to ....
9210 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9211 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9212 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9213 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9214 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9215 * sysdeps/powerpc/fpu/math_private.h: Do not include
9216 <fenv_private.h>.
9217 * sysdeps/riscv/rvf/math_private.h: Move to ....
9218 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9219 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9220 <fenv_private.h>.
9221 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9222 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9223 * sysdeps/sparc/fpu/math_private.h: Remove.
9224 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9225 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9226 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9227 <fenv_private.h>.
9228 * sysdeps/x86_64/fpu/math_private.h: Do not include
9229 <sysdeps/i386/fpu/fenv_private.h>.
9230
9231 2018-08-28 Florian Weimer <fweimer@redhat.com>
9232
9233 [BZ #23578]
9234 * posix/tst-regcomp-truncated.c: New file.
9235 * posix/Makefile (tests): Add it.
9236 (tst-regcomp-truncated.out): Depend on generated locales.
9237
9238 2018-08-28 Florian Weimer <fweimer@redhat.com>
9239
9240 * support/test-container.c (main): Treat unshare failure with
9241 EPERM as an unsupported test.
9242
9243 2018-08-28 Florian Weimer <fweimer@redhat.com>
9244
9245 [BZ #23520]
9246 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9247 * nscd/netgroupcache.c
9248 (addgetnetgrentX): Add tofreep parameter. Do not free
9249 heap-allocated buffer.
9250 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9251 (addgetnetgrentX_ignore): New function.
9252 (addgetnetgrent): Call it.
9253 (readdgetnetgrent): Likewise.
9254
9255 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9256
9257 * string/memmem.c: Use memcmp for first match.
9258
9259 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9260
9261 [BZ #17426]
9262 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9263
9264 2018-08-27 DJ Delorie <dj@redhat.com>
9265
9266 * support/Makefile (others): Don't list programs explicitly as a
9267 dependency of "others".
9268
9269 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9270
9271 * sysdeps/generic/math-tests-trap-force.h: New file.
9272 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9273 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9274 * sysdeps/powerpc/math-tests.h: Remove file.
9275 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9276
9277 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9278 Torvald Riegel <triegel@redhat.com>
9279
9280 [BZ #23538]
9281 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9282 Update r to include the set wake-request flag if waiters are
9283 remaining after spinning.
9284
9285 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9286
9287 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9288
9289 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9290
9291 [BZ #23578]
9292 regex: fix uninitialized memory access
9293 I introduced this bug into gnulib in commit
9294 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9295 eventually it was merged into glibc. The bug was found by
9296 project-repo <bugs@feusi.co> and reported here:
9297 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9298 Diagnosis and draft fix reported by Assaf Gordon here:
9299 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9300 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9301 * posix/regex_internal.c (build_wcs_upper_buffer):
9302 Fix bug when mbrtowc returns 0.
9303
9304 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9305
9306 * po/be.po: Update translation.
9307
9308 2018-08-24 DJ Delorie <dj@delorie.com>
9309
9310 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9311 $(libunwind).
9312
9313 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9314
9315 [BZ #23400]
9316 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9317 create temporary files in source tree.
9318
9319 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9320
9321 * sysdeps/generic/math-tests-trap.h: New file.
9322 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9323 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9324 * sysdeps/aarch64/math-tests.h: Remove file.
9325 * sysdeps/arm/math-tests.h: Likewise.
9326 * sysdeps/riscv/math-tests.h: Likewise.
9327 * sysdeps/aarch64/math-tests-trap.h: New file.
9328 * sysdeps/arm/math-tests-trap.h: Likewise.
9329 * sysdeps/riscv/math-tests-trap.h: Likewise.
9330
9331 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9332
9333 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9334 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9335 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9336 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9337 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9338 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9339 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9340 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9341 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9342 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9343 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9344 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9345 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9346 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9347 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9348 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9349 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9350 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9351
9352 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9353
9354 * sysdeps/generic/math-tests-exceptions.h: New file.
9355 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9356 (EXCEPTION_TESTS_float): Do not define here.
9357 (EXCEPTION_TESTS_double): Likewise.
9358 (EXCEPTION_TESTS_long_double): Likewise.
9359 (EXCEPTION_TESTS_float128): Likewise.
9360 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9361 Likewise.
9362 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9363 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9364 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9365 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9366 * sysdeps/mips/math-tests.h: Likewise.
9367 * sysdeps/nios2/math-tests.h: Likewise.
9368 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9369 (EXCEPTION_TESTS_float): Do not define here.
9370 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9371 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9372 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9373
9374 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9375
9376 * NEWS: Move optimized sinf entry to 2.29.
9377
9378 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9379
9380 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9381
9382 2018-08-22 DJ Delorie <dj@redhat.com>
9383
9384 * Makefile (testroot.pristine): New rules to initialize the
9385 test-in-container "testroot".
9386 * Makerules (all-testsuite): Add tests-container.
9387 * Rules (tests-expected): Add tests-container.
9388 (binaries-all-tests): Likewise.
9389 (tests-container): New, run these tests in the testroot container.
9390 * support/Makefile (others): Add *-container, support_paths.c,
9391 xmkdirp, and links-dso-program.
9392 * support/links-dso-program-c.c: New.
9393 * support/links-dso-program.cc: New.
9394 * support/test-container.c: New.
9395 * support/shell-container.c: New.
9396 * support/echo-container.c: New.
9397 * support/true-container.c: New.
9398 * support/xmkdirp.c: New.
9399 * support/xsymlink.c: New.
9400 * support/support_paths.c: New.
9401 * support/support.h: Add support paths prototypes.
9402 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9403
9404 * nss/tst-nss-test3.c: Convert to test-in-container.
9405 * nss/tst-nss-test3.root/: New.
9406
9407 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9408
9409 regex: port Gnulib code to z/OS POSIX environment
9410 Problem reported by Arnold Robbins in:
9411 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9412 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
9413 Undef.
9414
9415 2018-08-22 Joseph Myers <joseph@codesourcery.com>
9416
9417 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
9418 (ROUNDING_TESTS_double): Remove.
9419 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
9420 (ROUNDING_TESTS_double): Remove.
9421 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
9422 (ROUNDING_TESTS_double): Remove.
9423 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
9424 (ROUNDING_TESTS_float): Remove.
9425 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
9426 (ROUNDING_TESTS_float): Remove.
9427 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
9428 (ROUNDING_TESTS_float): Remove.
9429 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
9430 !TEST_MATHVEC here.
9431 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9432 (IF_ROUND_INIT_FE_UPWARD): Likewise.
9433
9434 * sysdeps/generic/math-tests-rounding.h: New file.
9435 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
9436 (ROUNDING_TESTS_float): Do not define here.
9437 (ROUNDING_TESTS_double): Likewise.
9438 (ROUNDING_TESTS_long_double): Likewise.
9439 (ROUNDING_TESTS_float128): Likewise.
9440 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
9441 (ROUNDING_TESTS_double): Undefine before defining.
9442 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
9443 (ROUNDING_TESTS_double): Undefine before defining.
9444 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
9445 (ROUNDING_TESTS_double): Undefine before defining.
9446 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
9447 (ROUNDING_TESTS_float): Undefine before defining.
9448 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
9449 (ROUNDING_TESTS_float): Undefine before defining.
9450 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
9451 (ROUNDING_TESTS_float): Undefine before defining.
9452 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
9453 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
9454 not define here.
9455 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
9456 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
9457 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
9458 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9459 (ROUNDING_TESTS_float): Do not define here.
9460 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
9461 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
9462 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
9463 (ROUNDING_TESTS_float): Likewise.
9464 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
9465 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
9466 * sysdeps/mips/math-tests.h [__mips_soft_float]
9467 (ROUNDING_TESTS_float): Likewise.
9468 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
9469 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
9470 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
9471 (ROUNDING_TESTS_double): Likewise.
9472 (ROUNDING_TESTS_long_double): Likewise.
9473
9474 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
9475
9476 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
9477 (PF_XDP): New macro.
9478 (AF_XDP): New macro.
9479 (SOL_XDP): New macro.
9480
9481 2018-08-21 Joseph Myers <joseph@codesourcery.com>
9482
9483 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
9484 (TCP_INQ): Likewise.
9485 (TCP_CM_INQ): Likewise.
9486 (TCP_REPAIR_ON): Likewise.
9487 (TCP_REPAIR_OFF): Likewise.
9488 (TCP_REPAIR_OFF_NO_WP): Likewise.
9489 (struct tcp_zerocopy_receive): New type.
9490
9491 2018-08-21 Florian Weimer <fweimer@redhat.com>
9492
9493 * support/support.h (support_descriptor_supports_holes): Declare.
9494 * support/Makefile (libsupport-routines): Add
9495 support_descriptor_supports_holes.
9496 * support/support_descriptor_supports_holes.c: New file.
9497 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
9498 and stop testing if holes are not supported.
9499 * io/test-lfs.c (do_prepare): Likewise.
9500 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
9501 Likewise.
9502 * timezone/tst-tzset.c (create_tz_file): Likewise.
9503 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
9504 variable.
9505 (do_prepare): Set it.
9506 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
9507
9508 2018-08-21 Florian Weimer <fweimer@redhat.com>
9509
9510 [BZ #17248]
9511 * Makeconfig (+cflags): Do not sort (and deduplicate).
9512
9513 2018-08-21 Florian Weimer <fweimer@redhat.com>
9514
9515 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
9516 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
9517
9518 2018-08-20 Florian Weimer <fweimer@redhat.com>
9519
9520 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
9521 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
9522
9523 2018-08-20 Joseph Myers <joseph@codesourcery.com>
9524
9525 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
9526 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
9527 and ssi_arch members.
9528
9529 * elf/elf.c (NT_VMCOREDD): New macro.
9530 (AT_MINSIGSTKSZ): Likewise.
9531
9532 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9533
9534 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
9535 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
9536 s_cosf-ppc64 and s_cosf-power8.
9537 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
9538 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9539 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9540 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9541 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
9542 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
9543 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
9544 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
9545 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
9546 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
9547 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
9548 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
9549
9550 2018-08-17 Florian Weimer <fweimer@redhat.com>
9551
9552 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9553
9554 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
9555
9556 * malloc/malloc.c (_int_malloc): Additional binning code checks.
9557
9558 2018-08-16 Florian Weimer <fweimer@redhat.com>
9559
9560 * configure.ac: Add --with-nonshared-cflags option.
9561 * config.make.in (extra-nonshared-cflags): Set variable.
9562 * Makeconfig (CFLAGS-.oS): Use it.
9563 * manual/install.texi (Configuring and compiling): Document
9564 --with-nonshared-cflags.
9565 * configure: Regenerate.
9566 * INSTALL: Likewise.
9567
9568 2018-08-16 Florian Weimer <fweimer@redhat.com>
9569
9570 * Makeconfig (ASFLAGS): Always append required assembler flags.
9571
9572 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
9573
9574 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
9575 (malloc_consolidate): Likewise.
9576
9577 2018-08-16 Pochang Chen <johnchen902@gmail.com>
9578
9579 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
9580
9581 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
9582
9583 * benchtests/bench-strlen.c (do_test): Allocate buffers before
9584 every strlen call.
9585
9586 * benchtests/bench-strlen.c: Print performance numbers in json.
9587
9588 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9589
9590 * sysdeps/powerpc/powerpc64/multiarch/Makefile
9591 (sysdep_routines): Build strcmp-power9 and strncmp-power9
9592 only for little endian.
9593 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9594 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
9595 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
9596 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
9597 Add check for little endian.
9598 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
9599 (__strcmp_power9): Add check for little endian.
9600 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
9601 Add check for little endian.
9602 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
9603 (__strncmp_power9): Add check for little endian.
9604 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
9605 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
9606 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
9607 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
9608 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
9609
9610 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
9611
9612 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
9613 [!STRLEN](STRLEN): Set to __strlen.
9614 * sysdeps/aarch64/multiarch/strlen.c: New file.
9615 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
9616 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
9617 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
9618 (__libc_ifunc_impl_list): Add strlen.
9619 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9620 strlen_generic and strlen_asimd.
9621
9622 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9623
9624 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
9625 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
9626 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
9627
9628 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9629
9630 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
9631
9632 2018-08-14 Florian Weimer <fweimer@redhat.com>
9633
9634 [BZ #23519]
9635 * include/stdio.h (__vfxprintf): Declare.
9636 * stdio-common/fxprintf.c (__vfxprintf): New function.
9637 (__fxprintf): Call it.
9638 * misc/err.c (convert_and_print): Remove function.
9639 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
9640 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
9641 * misc/Makefile (tests): Add tst-warn-wide.
9642 * misc/tst-warn-wide.c: New file.
9643
9644 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
9645 Szabolcs Nagy <szabolcs.nagy@arm.com>
9646
9647 * NEWS: Mention sinf, cosf, sincosf.
9648 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
9649 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
9650 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
9651 constants rather than including generic sincosf.h.
9652 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
9653 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
9654 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
9655 (reduced_cos): Remove.
9656 (sinf_poly): New function.
9657 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
9658
9659 2018-08-14 Florian Weimer <fweimer@redhat.com>
9660
9661 [BZ #23521]
9662 [BZ #23522]
9663 * nss/nss_files/files-alias.c (get_next_alias): During :include:
9664 processing, bail out if no room, and close the stream before
9665 returning ERANGE.
9666 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
9667 (tst-nss-files-alias-leak): Link with libdl.
9668 (tst-nss-files-alias-leak.out): Depend on nss_files.
9669
9670 * nss/tst-nss-files-alias-leak.c: New file.
9671
9672 2018-08-14 Florian Weimer <fweimer@redhat.com>
9673
9674 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
9675 server_user, stat_user.
9676
9677 2018-08-13 Joseph Myers <joseph@codesourcery.com>
9678
9679 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9680 version to 4.18.
9681 (io_pgetevents): New syscall.
9682 (rseq): Likewise.
9683
9684 * manual/install.texi (Configuring and compiling): Do not list
9685 tools used for testing pretty printers here.
9686 (Tools for Compilation): List Python, PExpect and GDB here.
9687 Update descriptions of uses of Perl and Python.
9688 * INSTALL: Regenerate.
9689
9690 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9691 version to 4.18.
9692
9693 2018-08-13 Florian Weimer <fweimer@redhat.com>
9694
9695 * misc/error.c (error): Add missing va_end call.
9696 (error_at_line): Likewise.
9697
9698 2018-08-13 Florian Weimer <fweimer@redhat.com>
9699
9700 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
9701
9702 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
9703
9704 * benchtests/scripts/benchout.schema.json (properties): Add
9705 new properties.
9706
9707 * benchtests/bench-skeleton.c (main): Add duration and
9708 iterations attributes.
9709
9710 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
9711
9712 regex: Gnulib unibyte RRI uses bytes not chars
9713 Adjust the non-glibc code to agree with what Gawk needs for
9714 rational range interpretation (RRI) for regular expression ranges.
9715 In unibyte locales, Gawk wants ranges to use the underlying byte
9716 rather than the character code point. This change does not affect
9717 glibc proper.
9718 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
9719 In unibyte locales, use the byte value rather than
9720 running it through btowc.
9721
9722 2018-08-10 Joseph Myers <joseph@codesourcery.com>
9723
9724 * sysdeps/generic/math-tests-snan.h: New file.
9725 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
9726 (SNAN_TESTS_float): Do not define here.
9727 (SNAN_TESTS_double): Likewise.
9728 (SNAN_TESTS_long_double): Likewise.
9729 (SNAN_TESTS_float128): Likewise.
9730 * sysdeps/i386/fpu/math-tests-snan.h: New file.
9731 * sysdeps/i386/fpu/math-tests.h: Remove file.
9732 * sysdeps/ia64/math-tests-snan.h: New file.
9733 * sysdeps/ia64/math-tests.h: Remove file.
9734 * sysdeps/x86/math-tests.h: Likewise.
9735 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
9736
9737 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
9738 Szabolcs Nagy <szabolcs.nagy@arm.com>
9739
9740 * math/Makefile: Add s_sincosf_data.c.
9741 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
9742 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
9743 (sincosf_poly): Likewise.
9744 (reduce_small): Likewise.
9745 (reduce_large): Likewise.
9746 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
9747 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
9748 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
9749 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
9750
9751 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
9752 Szabolcs Nagy <szabolcs.nagy@arm.com>
9753
9754 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
9755 (converttoint): Use lround.
9756 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
9757 document the semantics when TOINT_INTRINSICS is set.
9758 (converttoint): Likewise.
9759 (TOINT_RINT): Remove.
9760 (TOINT_SHIFT): Remove.
9761 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
9762 path.
9763
9764 2018-08-10 Florian Weimer <fweimer@redhat.com>
9765
9766 [BZ #23497]
9767 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
9768 function.
9769 (__old_getdents64): Use getdents64. Convert entries without
9770 moving them.
9771 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
9772 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
9773 tst-readdir64-compat.
9774
9775 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9776
9777 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
9778 Fix unwind.
9779
9780 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9781
9782 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
9783 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
9784 code to s390x-mcount.h and #include it.
9785 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
9786 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
9787 (__fentry__): Add.
9788
9789 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9790
9791 * stdlib/Versions: Remove __fentry__.
9792 * sysdeps/i386/Versions: Add __fentry__.
9793 * sysdeps/x86_64/Versions: Add __fentry__.
9794
9795 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9796
9797 * sysdeps/s390/Makefile: Register the new tests.
9798 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
9799 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
9800 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
9801 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
9802 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
9803 * sysdeps/s390/tst-dl-runtime.c: New file.
9804
9805 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9806
9807 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
9808 Do not clobber R0.
9809
9810 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9811
9812 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
9813 Do not clobber R0.
9814
9815 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9816
9817 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
9818 Do not clobber R0.
9819
9820 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9821
9822 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
9823 Do not clobber R0.
9824
9825 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9826
9827 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
9828 Use symbolic offsets for stack variables.
9829
9830 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9831
9832 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
9833 Use symbolic offsets for stack variables.
9834
9835 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9836
9837 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
9838 Use symbolic offsets for stack variables.
9839
9840 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9841
9842 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
9843 Use symbolic offsets for stack variables.
9844
9845 2018-08-09 Joseph Myers <joseph@codesourcery.com>
9846
9847 * math/gen-libm-test.py: New file.
9848 * math/gen-libm-test.pl: Remove.
9849 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
9850 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
9851 gen-libm-test.pl.
9852 ($(libm-test-c-noauto-obj)): Likewise.
9853 ($(libm-test-c-auto-obj)): Likewise.
9854 ($(libm-test-c-narrow-obj)): Likewise.
9855 (regen-ulps): Likewise.
9856 * math/README.libm-test: Update references to gen-libm-test.pl.
9857 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
9858 referencing gen-libm-test.pl.
9859 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
9860 * math/libm-test-support.c: Likewise.
9861 * math/libm-test-support.h: Likewise.
9862 * sysdeps/generic/libm-test-ulps: Likewise.
9863
9864 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
9865
9866 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
9867 Fix value.
9868
9869 2018-08-08 Joseph Myers <joseph@codesourcery.com>
9870
9871 * math/libm-test-nextdown.inc (do_test): Move comment to ....
9872 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
9873
9874 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9875
9876 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
9877 symbols.
9878 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
9879 __pthread_setspecific): Add hidden proto.
9880 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
9881 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
9882
9883 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
9884
9885 * benchtests/bench-string.h (buf1_size, buf2_size): New
9886 variables.
9887 (init_sizes): New function.
9888 (test_init): Use it.
9889 (alloc_buf, exit_error): New functions.
9890 (alloc_bufs): Use ALLOC_BUF.
9891 (realloc_bufs): Remove.
9892 * benchtests/bench-memcmp.c (do_test): Adjust.
9893 * benchtests/bench-memset-large.c (do_test): Likewise.
9894 * benchtests/bench-memset-walk.c (do_test): Likewise.
9895 * benchtests/bench-memset.c (do_test): Likewise.
9896 * benchtests/bench-strncmp.c (do_test): Likewise.
9897
9898 2018-08-06 Andreas Schwab <schwab@suse.de>
9899
9900 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
9901 of CONST_THREAD_AREA.
9902
9903 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
9904
9905 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
9906 (STATE_SAVE_MASK): Likewise.
9907 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
9908 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
9909 (STATE_SAVE_MASK): Likewise.
9910 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
9911 instead of <cpu-features.h>.
9912
9913 2018-08-03 DJ Delorie <dj@redhat.com>
9914
9915 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
9916 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
9917
9918 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
9919
9920 2018-08-03 Joseph Myers <joseph@codesourcery.com>
9921
9922 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
9923 after TEST_* calls.
9924 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
9925 * math/libm-test-logb.inc (logb_test_data): Likewise.
9926
9927 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
9928
9929 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
9930 * string/strstr.c (AVAILABLE): Likewise.
9931
9932 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
9933
9934 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
9935 <init-arch.h>.
9936 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
9937 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
9938 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
9939
9940 2018-08-03 Carlos O'Donell <carlos@redhat.com>
9941
9942 * po/be.po: Update translation.
9943
9944 * po/be.po: Update translation.
9945
9946 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
9947
9948 * sysdeps/x86/cpu-features-offsets.sym
9949 (rtld_global_ro_offsetof): Removed.
9950 (CPU_FEATURES_SIZE): Likewise.
9951 (CPUID_OFFSET): Likewise.
9952 (CPUID_SIZE): Likewise.
9953 (CPUID_EAX_OFFSET): Likewise.
9954 (CPUID_EBX_OFFSET): Likewise.
9955 (CPUID_ECX_OFFSET): Likewise.
9956 (CPUID_EDX_OFFSET): Likewise.
9957 (FAMILY_OFFSET): Likewise.
9958 (MODEL_OFFSET): Likewise.
9959 (FEATURE_OFFSET): Likewise.
9960 (FEATURE_SIZ): Likewise.
9961 (COMMON_CPUID_INDEX_1): Likewise.
9962 (COMMON_CPUID_INDEX_7): Likewise.
9963 (FEATURE_INDEX_1): Likewise.
9964 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
9965
9966 2018-08-02 Carlos O'Donell <carlos@redhat.com>
9967
9968 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
9969 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
9970 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
9971 (install-locales): Depend on install-locale-archive.
9972 (install-locale-archive): Define.
9973 (install-locale-files): Define.
9974 (build-one-locale): Define macro.
9975 * manual/install.texi (Running make install): Document.
9976 * manual/INSTALL: Regenerate.
9977
9978 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
9979
9980 * benchtests/scripts/compare_strings.py: Import traceback.
9981 (parse_file): Pretty-print error.
9982
9983 * NEWS: Mention the change.
9984 * elf/dl-tunables.list: Rename tune namespace to cpu.
9985 * sysdeps/powerpc/dl-tunables.list: Likewise.
9986 * sysdeps/x86/dl-tunables.list: Likewise.
9987 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
9988 cpu.name.
9989 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
9990 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
9991 * manual/README.tunables: Likewise.
9992 * manual/tunables.texi: Likewise.
9993 * sysdeps/powerpc/cpu-features.c: Likewise.
9994 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
9995 (init_cpu_features): Likewise.
9996 * sysdeps/x86/cpu-features.c: Likewise.
9997 * sysdeps/x86/cpu-features.h: Likewise.
9998 * sysdeps/x86/cpu-tunables.c: Likewise.
9999 * sysdeps/x86_64/Makefile: Likewise.
10000 * sysdeps/x86/dl-cet.c: Likewise.
10001
10002 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10003
10004 [BZ #23479]
10005 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10006 [__mips_hard_float].
10007 (FE_UNDERFLOW): Likewise.
10008 (FE_OVERFLOW): Likewise.
10009 (FE_DIVBYZERO): Likewise.
10010 (FE_INVALID): Likewise.
10011 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10012 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10013 (FE_UPWARD): Likewise.
10014 (FE_DOWNWARD): Likewise.
10015 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10016 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10017 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10018 [__mips_hard_float].
10019 (FP_ROUNDMODE): Likewise.
10020 (FP_RND_NEAREST): Likewise.
10021 (FP_RND_ZERO): Likewise.
10022 (FP_RND_PINF): Likewise.
10023 (FP_RND_MINF): Likewise.
10024 (FP_EX_INVALID): Likewise.
10025 (FP_EX_OVERFLOW): Likewise.
10026 (FP_EX_UNDERFLOW): Likewise.
10027 (FP_EX_DIVZERO): Likewise.
10028 (FP_EX_INEXACT): Likewise.
10029 (FP_INIT_ROUNDMODE): Likewise.
10030 * sysdeps/mips/nofpu/fesetenv.c: New file.
10031 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10032
10033 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10034
10035 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10036 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10037 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10038 conditional on [FE_UPWARD].
10039
10040 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10041
10042 regex: fix memory leak in Gnulib
10043 Problem and fix reported by Assaf Gordon in:
10044 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10045 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10046 range_ends members too, as they are defined in 'struct
10047 re_charset_t' even if not _LIBC. This affects only Gnulib.
10048
10049 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10050
10051 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10052 ...
10053 (get_common_indices): This.
10054 (init_cpu_features): Updated.
10055
10056 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10057
10058 * sysdeps/generic/math-tests-snan-payload.h: New file.
10059 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10060 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10061 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10062 * sysdeps/generic/math-tests.h: Include
10063 <math-tests-snan-payload.h>.
10064 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10065 * sysdeps/hppa/math-tests.h: Remove file.
10066 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10067 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10068 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10069 Likewise.
10070
10071 * sysdeps/generic/math-tests-snan-cast.h: New file.
10072 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10073 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10074 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10075 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10076
10077 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10078
10079 * version.h (RELEASE): Set to "development".
10080 (VERSION): Set to "2.28.9000".
10081 * NEWS (2.29): New section.
10082
10083 * version.h (RELEASE): Set to "stable".
10084 (VERSION): Set to "2.28".
10085 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10086 * NEWS: Add the list of bugs fixed in 2.28.
10087
10088 * po/ca.po: Update to latest version.
10089 * po/cs.po: Likewise
10090 * po/da.po: Likewise
10091 * po/el.po: Likewise
10092 * po/eo.po: Likewise
10093 * po/es.po: Likewise
10094 * po/fi.po: Likewise
10095 * po/fr.po: Likewise
10096 * po/gl.po: Likewise
10097 * po/hu.po: Likewise
10098 * po/ia.po: Likewise
10099 * po/id.po: Likewise
10100 * po/it.po: Likewise
10101 * po/ja.po: Likewise
10102 * po/ko.po: Likewise
10103 * po/lt.po: Likewise
10104 * po/nb.po: Likewise
10105 * po/nl.po: Likewise
10106 * po/pt_BR.po: Likewise
10107 * po/ru.po: Likewise
10108 * po/rw.po: Likewise
10109 * po/sk.po: Likewise
10110 * po/sl.po: Likewise
10111 * po/tr.po: Likewise
10112 * po/zh_CN.po: Likewise
10113 * po/zh_TW.po: Likewise
10114
10115 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10116
10117 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10118 initialization...
10119 (init): ... before initializing libpthread.
10120
10121 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10122 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10123 (__mach_setup_tls): ... new function.
10124 (mach_setup_tls): New alias.
10125 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10126 __mach_setup_thread.
10127 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10128 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10129 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10130 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10131
10132 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10133
10134 * manual/install.texi: Update versions.
10135 * INSTALL: Regenerate.
10136
10137 * manual/contrib.texi (Contributors): Update contributions.
10138
10139 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10140
10141 * po/be.po: Update translations.
10142
10143 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10144
10145 * sysdeps/sh/libm-test-ulps: Update.
10146
10147 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10148
10149 * po/bg.po: Update translations.
10150 * po/de.po: Likewise.
10151 * po/hr.po: Likewise.
10152 * po/pt_BR.po: Likewise.
10153 * po/sv.po: Likewise.
10154 * po/vi.po: Likewise.
10155
10156 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10157
10158 [BZ #23467]
10159 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10160 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10161 (CFLAGS-tst-cet-property-1.o): New.
10162 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10163 ($(objpfx)tst-cet-property-2): Likewise.
10164 ($(objpfx)tst-cet-property-2.out): Likewise.
10165 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10166 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10167 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10168 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10169 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10170
10171 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10172
10173 [BZ #23458]
10174 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10175
10176 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10177
10178 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10179 __sbrk): Do not set attribute_hidden.
10180 * sysdeps/mach/hurd/not-errno.h: New file.
10181 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10182 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10183
10184 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10185
10186 * po/uk.po: Update translations.
10187 * po/cs.po: Likewise.
10188 * po/pl.po: Likewise.
10189
10190 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10191
10192 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10193 parse beyond the note end.
10194
10195 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10196
10197 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10198 kernel does not support OFD locks.
10199 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10200
10201 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10202
10203 * sysdeps/mach/hurd/Versions (libc): Make __access and
10204 __access_noerrno external so they can override the ld symbols.
10205 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10206 __writev, __open64, __access_noerrno extern so they can be overrided.
10207 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10208 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10209
10210 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10211
10212 * po/libc.pot: Regenerate.
10213
10214 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10215
10216 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10217
10218 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10219
10220 [BZ #23459]
10221 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10222 function.
10223 (init_cpu_features): Call get_extended_indices for both Intel
10224 and AMD CPUs.
10225 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10226 Remove "for AMD" comment.
10227
10228 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10229
10230 [BZ # 23456]
10231 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10232 COMMON_CPUID_INDEX_80000001.
10233
10234 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10235
10236 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10237 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10238
10239 2018-07-26 Florian Weimer <fweimer@redhat.com>
10240
10241 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10242 aliases for symbols not in the implementation namespace.
10243
10244 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10245
10246 [BZ #23393]
10247 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10248 lowercase in LATIN script.
10249 * localedata/Makefile (test-input): Add en_US.UTF-8.
10250 * localedata/en_US.UTF-8.in: New file.
10251 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10252 and restore old tests.
10253 * posix/tst-regexloc.c (do_test): Add back range expression test.
10254
10255 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10256
10257 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10258
10259 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10260
10261 * nptl/threads.h: Move to ...
10262 * sysdeps/nptl/threads.h: ... here.
10263 * sysdeps/hurd/stdc-predef.h: New file.
10264
10265 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10266
10267 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10268 tst-cet-setcontext-1 if CET is enabled.
10269 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10270 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10271
10272 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10273
10274 * include/threads.h: Move to ...
10275 * sysdeps/nptl/threads.h: ... here.
10276 * sysdeps/htl/threads.h: New file.
10277 * conform/Makefile (linknamespace-libs-ISO11): Use
10278 static-thread-library instead of linking libpthread.
10279 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10280
10281 2018-07-25 Florian Weimer <fweimer@redhat.com>
10282
10283 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10284 nanoseconds into seconds.
10285 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10286 (do_test): Likewise.
10287 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10288 (do_test): Likewise. Avoid nanosecond overflow and spurious
10289 timeouts due to system load.
10290 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10291 (child_wait): Increment it.
10292 (do_test): Wait as long as necessary until all expected threads
10293 have arrived.
10294
10295 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10296 H.J. Lu <hongjiu.lu@intel.com>
10297
10298 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10299 __ssp.
10300 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10301 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10302 (__push___start_context): New.
10303 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10304 <asm/prctl.h>.
10305 (__getcontext): Record the current shadow stack base. Save the
10306 caller's shadow stack pointer and base.
10307 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10308 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10309 (__push___start_context): New prototype.
10310 (__makecontext): Call __push___start_context to allocate a new
10311 shadow stack, push __start_context onto the new stack as well
10312 as the new shadow stack.
10313 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10314 <asm/prctl.h>.
10315 (__setcontext): Restore the target shadow stack.
10316 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10317 <asm/prctl.h>.
10318 (__swapcontext): Record the current shadow stack base. Save
10319 the caller's shadow stack pointer and base. Restore the target
10320 shadow stack.
10321 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10322 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10323 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10324
10325 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10326
10327 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10328 tst-setcontext8 and tst-setcontext9.
10329 * stdlib/tst-setcontext6.c: New file.
10330 * stdlib/tst-setcontext7.c: Likewise.
10331 * stdlib/tst-setcontext8.c: Likewise.
10332 * stdlib/tst-setcontext9.c: Likewise.
10333
10334 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10335
10336 * stdlib/Makefile ((tests): Add tst-setcontext5.
10337 * stdlib/tst-setcontext5.c: New file.
10338
10339 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10340
10341 * stdlib/Makefile (tests): Add tst-setcontext4.
10342 * stdlib/tst-setcontext4.c: New file.
10343
10344 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10345
10346 * stdlib/Makefile (tests): Add tst-swapcontext1.
10347 * stdlib/tst-swapcontext1.c: New test.
10348
10349 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10350
10351 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10352 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10353 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10354 and tst-cet-legacy-4c.
10355 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10356 and tst-cet-legacy-mod-4.
10357 (CFLAGS-tst-cet-legacy-2.c): New.
10358 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10359 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10360 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10361 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10362 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10363 ($(objpfx)tst-cet-legacy-1): Likewise.
10364 ($(objpfx)tst-cet-legacy-2): Likewise.
10365 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10366 ($(objpfx)tst-cet-legacy-2a): Likewise.
10367 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10368 ($(objpfx)tst-cet-legacy-4): Likewise.
10369 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10370 ($(objpfx)tst-cet-legacy-4a): Likewise.
10371 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10372 (tst-cet-legacy-4a-ENV): Likewise.
10373 ($(objpfx)tst-cet-legacy-4b): Likewise.
10374 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10375 (tst-cet-legacy-4b-ENV): Likewise.
10376 ($(objpfx)tst-cet-legacy-4c): Likewise.
10377 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10378 (tst-cet-legacy-4c-ENV): Likewise.
10379 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10380 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10381 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10382 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10383 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10384 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10385 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10386 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10387 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10388 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10389 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10390
10391 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10392
10393 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10394 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10395 with ssp_base.
10396 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10397 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10398 with ssp_base.
10399
10400 2018-07-25 Andreas Schwab <schwab@suse.de>
10401
10402 [BZ #23442]
10403 * locale/weightwc.h (findidx): Handle the case where usrc is a
10404 prefix of cp but one character too short.
10405
10406 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10407
10408 * NEWS: Add ISO C threads addition.
10409
10410 2018-07-24 Florian Weimer <fweimer@redhat.com>
10411
10412 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10413 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
10414 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
10415 4.13.
10416
10417 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10418
10419 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
10420 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
10421 <sys/prctl.h> and <asm/prctl.h>.
10422 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
10423 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
10424 and <asm/prctl.h>.
10425 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
10426 ARCH_CET_LEGACY_BITMAP.
10427 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
10428 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
10429 * sysdeps/x86/libc-start.c: Include <startup.h>.
10430
10431 2018-07-24 Florian Weimer <fweimer@redhat.com>
10432
10433 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
10434 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
10435
10436 2018-07-24 Rical Jasan <rj@2c3t.io>
10437 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10438 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10439
10440 [BZ #14092]
10441 * manual/debug.texi: Update adjacent chapter name.
10442 * manual/probes.texi: Likewise.
10443 * manual/threads.texi (ISO C Threads): New section.
10444 (POSIX Threads): Convert to a section.
10445
10446 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10447 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10448
10449 [BZ# 14092]
10450 * nptl/Makefile (tests): Add new test files.
10451 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
10452 * nptl/tst-cnd-basic.c: Likewise.
10453 * nptl/tst-cnd-broadcast.c: Likewise.
10454 * nptl/tst-cnd-timedwait.c: Likewise.
10455 * nptl/tst-mtx-basic.c: Likewise.
10456 * nptl/tst-mtx-recursive.c: Likewise.
10457 * nptl/tst-mtx-timedlock.c: Likewise.
10458 * nptl/tst-mtx-trylock.c: Likewise.
10459 * nptl/tst-thrd-basic.c: Likewise.
10460 * nptl/tst-thrd-detach.c: Likewise.
10461 * nptl/tst-thrd-sleep.c: Likewise.
10462 * nptl/tst-tss-basic.c: Likewise.
10463
10464 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10465
10466 [BZ #14092]
10467 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10468 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
10469 symbols.
10470 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10471 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10472 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10473 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10474 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10475 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10476 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10477 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10478 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10479 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10480 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10481 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10483 Likewise.
10484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10485 Likewise.
10486 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10487 Likewise.
10488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10489 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10490 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10491 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10492 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10493 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10494 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10495 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10496 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10497 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
10498 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
10499 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
10500 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
10501 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
10502 Likewise.
10503 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
10504 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
10505 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
10506 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
10507 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
10508 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
10509 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
10510 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
10511 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
10512 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
10513 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
10514 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
10515 ikewise.
10516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
10517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
10518 Likewise.
10519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
10520 Likewise.
10521 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
10522 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
10523 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
10524 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
10525 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
10526 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
10527 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
10528 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
10529
10530 [BZ #14092]
10531 * conform/data/threads.h-data (thread_local): New macro.
10532 (TSS_DTOR_ITERATIONS): Likewise.
10533 (tss_t): New type.
10534 (tss_dtor_t): Likewise.
10535 (tss_create): New function.
10536 (tss_get): Likewise.
10537 (tss_set): Likewise.
10538 (tss_delete): Likewise.
10539 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
10540 tss_get, and tss_set objects.
10541 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10542 * nptl/tss_create.c: New file.
10543 * nptl/tss_delete.c: Likewise.
10544 * nptl/tss_get.c: Likewise.
10545 * nptl/tss_set.c: Likewise.
10546 * sysdeps/nptl/threads.h (thread_local): New define.
10547 (TSS_DTOR_ITERATIONS): Likewise.
10548 (tss_t): New typedef.
10549 (tss_dtor_t): Likewise.
10550 (tss_create): New prototype.
10551 (tss_get): Likewise.
10552 (tss_set): Likewise.
10553 (tss_delete): Likewise.
10554
10555 [BZ #14092]
10556 * conform/data/threads.h-data (cnd_t): New type.
10557 (cnd_init): New function.
10558 (cnd_signal): Likewise.
10559 (cnd_broadcast): Likewise.
10560 (cnd_wait): Likewise.
10561 (cnd_timedwait): Likewise.
10562 (cnd_destroy): Likewise.
10563 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
10564 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
10565 object.
10566 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10567 * nptl/cnd_broadcast.c: New file.
10568 * nptl/cnd_destroy.c: Likewise.
10569 * nptl/cnd_init.c: Likewise.
10570 * nptl/cnd_signal.c: Likewise.
10571 * nptl/cnd_timedwait.c: Likewise.
10572 * nptl/cnd_wait.c: Likewise.
10573 * sysdeps/nptl/threads.h (cnd_t): New type.
10574 (cnd_init): New prototype.
10575 (cnd_signa): Likewise.
10576 (cnd_broadcast): Likewise.
10577 (cnd_wait): Likewise.
10578 (cnd_timedwait): Likewise.
10579 (cnd_destroy): Likewise.
10580
10581 [BZ #14092]
10582 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
10583 (once_flag): New type.
10584 (call_once): New function.
10585 * nptl/Makefile (libpthread-routines): Add call_once object.
10586 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
10587 * nptl/call_once.c: New file.
10588 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
10589 (once_flag): New type.
10590 (call_once): New prototype.
10591
10592 [BZ #14092]
10593 * conform/data/threads.h-data (mtx_plain): New constant.
10594 (mtx_recursive): Likewise.
10595 (mtx_timed): Likewise.
10596 (mtx_t): New type.
10597 (mtx_init): New function.
10598 (mtx_lock): Likewise.
10599 (mtx_timedlock): Likewise.
10600 (mtx_trylock): Likewise.
10601 (mtx_unlock): Likewise.
10602 (mtx_destroy): Likewise.
10603 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
10604 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
10605 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
10606 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
10607 * nptl/mtx_destroy.c: New file.
10608 * nptl/mtx_init.c: Likewise.
10609 * nptl/mtx_lock.c: Likewise.
10610 * nptl/mtx_timedlock.c: Likewise.
10611 * nptl/mtx_trylock.c: Likewise.
10612 * nptl/mtx_unlock.c: Likewise.
10613 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
10614 (mtx_recursive): Likewise.
10615 (mtx_timed): Likewise.
10616 (mtx_t): New type.
10617 (mtx_init): New prototype.
10618 (mtx_lock): Likewise.
10619 (mtx_timedlock): Likewise.
10620 (mtx_trylock): Likewise.
10621 (mtx_unlock): Likewise.
10622 (mtx_destroy): Likewise.
10623
10624 [BZ #14092]
10625 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
10626 (linknamespace-libs-ISO11): Add libpthread.a.
10627 * conform/data/threads.h-data: New file: add C11 thrd_* types and
10628 functions.
10629 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
10630 * nptl/Makefile (headers): Add threads.h.
10631 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
10632 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
10633 thrd_yield.
10634 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
10635 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
10636 thrd_join, thrd_sleep, and thrd_yield symbols.
10637 * nptl/descr.h (struct pthread): Add c11 field.
10638 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
10639 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
10640 routine with expected function prototype.
10641 (__pthread_create_2_1): Add C11 threads check based on attribute
10642 value.
10643 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
10644 * nptl/thrd_create.c: New file.
10645 * nptl/thrd_current.c: Likewise.
10646 * nptl/thrd_detach.c: Likewise.
10647 * nptl/thrd_equal.c: Likewise.
10648 * nptl/thrd_exit.c: Likewise.
10649 * nptl/thrd_join.c: Likewise.
10650 * nptl/thrd_priv.h: Likewise.
10651 * nptl/thrd_sleep.c: Likewise.
10652 * nptl/thrd_yield.c: Likewise.
10653 * include/threads.h: Likewise.
10654
10655 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10656
10657 * bits/indirect-return.h: New file.
10658 * misc/sys/cdefs.h (__glibc_has_attribute): New.
10659 * sysdeps/x86/bits/indirect-return.h: Likewise.
10660 * stdlib/Makefile (headers): Add bits/indirect-return.h.
10661 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
10662 (swapcontext): Add __INDIRECT_RETURN.
10663 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
10664 (prepare_test_buffer): Use it.
10665
10666 2018-07-24 Andreas Schwab <schwab@suse.de>
10667
10668 [BZ #23448]
10669 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
10670 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
10671
10672 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10673
10674 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
10675 Redefine if shadow stack is enabled.
10676 (SYSCALL_ERROR_LABEL): Likewise.
10677 (__vfork): Pop shadow stack and jump back to to caller directly
10678 when shadow stack is in use.
10679 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
10680 Redefine if shadow stack is enabled.
10681 (SYSCALL_ERROR_LABEL): Likewise.
10682 (__vfork): Pop shadow stack and jump back to to caller directly
10683 when shadow stack is in use.
10684
10685 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10686
10687 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
10688 enabled.
10689 (foo): Likewise.
10690 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
10691 (foo): Likewise.
10692
10693 2018-07-20 Joseph Myers <joseph@codesourcery.com>
10694
10695 * scripts/build-many-glibcs.py (Context.checkout): Default
10696 binutils version to 2.31 branch.
10697
10698 2018-07-20 Zong Li <zong@andestech.com>
10699
10700 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
10701 URL of gcc's tarball.
10702
10703 2018-07-20 Florian Weimer <fweimer@redhat.com>
10704
10705 [BZ #23396]
10706 * posix/regcomp.c (build_equiv_class): When comparing weights, do
10707 not compare an extra byte after the end of the weights.
10708
10709 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
10710
10711 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
10712 to 1.
10713 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
10714 hidden prototypes.
10715 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
10716 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
10717 * scripts/check-execstack.awk: Consider `xfail' variable containing a
10718 list of libraries whose stack executability is expected.
10719 * elf/Makefile ($(objpfx)check-execstack.out): Pass
10720 $(check-execstack-xfail) to check-execstack.awk through `xfail'
10721 variable.
10722 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
10723 libc.so libpthread.so.
10724
10725 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
10726
10727 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
10728 SOCK_NONBLOCK.
10729 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
10730 and SOCK_NONBLOCK.
10731 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
10732 implement __pipe2.
10733 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
10734
10735 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10736
10737 * benchtests/scripts/compare_bench.py (__main__): use the argparse
10738 library to improve command line parsing.
10739 (__main__): make schema file as optional parameter (--schema),
10740 defaulting to benchtests/scripts/benchout.schema.json.
10741 (main): move out of the parsing stuff to __main_  and leave it
10742 only as caller of main comparison functions.
10743
10744 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
10745
10746 * NEWS: Add a note for Intel CET status.
10747 * manual/install.texi: Likewise.
10748 * INSTALL: Regenerated.
10749
10750 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
10751
10752 [BZ #23140]
10753 * localedata/locales/oc_FR (mon): Rename to...
10754 (alt_mon): This, then update October (typo fix).
10755 (mon): New content (genitive case, month names preceded by
10756 "de" or "d’").
10757
10758 [BZ #23422]
10759 * localedata/locales/oc_FR (abday): Update all items.
10760 (day): Update Wednesday and Saturday (typo fixes).
10761 (abmon): Update all items, except May.
10762 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
10763 (LC_IDENTIFICATION): Bump the revision number and date.
10764 Keep the "category" entries in alphabetic order.
10765 (LC_ADDRESS): Remove no longer needed comment.
10766 (LC_COLLATE): Use “copy "ca_ES"”.
10767 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
10768 "name_mrs".
10769
10770 2018-07-18 Joseph Myers <joseph@codesourcery.com>
10771
10772 * grp/tst_fgetgrent.c: Include <unistd.h>.
10773 (main): Use mkstemp instead of tmpnam.
10774 * io/test-utime.c (main): Likewise.
10775 * posix/annexc.c (macrofile): Change to modifiable array.
10776 (main): Remove macrofile here.
10777 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
10778 macrofile here.
10779 (check_header): Do not remove macrofile here.
10780 * posix/bug-getopt1.c: Include <stdlib.h>.
10781 (do_test): Use mkstemp instead of tmpnam.
10782 * posix/bug-getopt2.c: Include <stdlib.h>.
10783 (do_test): Use mkstemp instead of tmpnam.
10784 * posix/bug-getopt3.c: Include <stdlib.h>.
10785 (do_test): Use mkstemp instead of tmpnam.
10786 * posix/bug-getopt4.c: Include <stdlib.h>.
10787 (do_test): Use mkstemp instead of tmpnam.
10788 * posix/bug-getopt5.c: Include <stdlib.h>.
10789 (do_test): Use mkstemp instead of tmpnam.
10790 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
10791 (main): Use mkstemp instead of tmpnam.
10792 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
10793 (main): Use mkstemp instead of tmpnam.
10794 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
10795 (main): use mkstemp instead of tmpnam.
10796 * stdlib/isomac.c (macrofile): Change to modifiable array.
10797 (main): Remove macrofile here.
10798 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
10799 macrofile here.
10800 (check_header): Do not remove macrofile here.
10801
10802 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10803
10804 * manual/tunables.texi: Document glibc.tune.x86_ibt and
10805 glibc.tune.x86_shstk.
10806
10807 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10808
10809 * NEWS: Mention --enable-cet.
10810 * manual/install.texi: Document --enable-cet.
10811 * INSTALL: Regenerated.
10812
10813 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10814
10815 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
10816 Add _CET_NOTRACK before indirect jump to jump table.
10817
10818 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10819
10820 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
10821 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10822 to jump table.
10823
10824 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10825
10826 * sysdeps/i386/i686/multiarch/strcat-sse2.S
10827 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10828 to jump table.
10829
10830 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10831
10832 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
10833 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10834 to jump table.
10835
10836 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10837
10838 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
10839 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10840 to jump table.
10841
10842 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10843
10844 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
10845 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10846 to jump table.
10847 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
10848
10849 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10850
10851 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
10852 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10853 to jump table.
10854
10855 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10856
10857 * sysdeps/i386/i686/multiarch/memset-sse2.S
10858 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10859 to jump table.
10860
10861 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10862
10863 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
10864 indirect jump to jump table.
10865
10866 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10867
10868 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
10869 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10870 to jump table.
10871 (MEMCPY): Likewise.
10872
10873 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10874
10875 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
10876 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10877 to jump table.
10878 (MEMCPY): Likewise.
10879
10880 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10881
10882 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
10883 _CET_NOTRACK before indirect jump to jump table.
10884
10885 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10886
10887 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
10888 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
10889 to jump table.
10890
10891 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
10892
10893 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
10894 indirect jump to jump table.
10895
10896 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
10897
10898 [BZ #22241]
10899 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
10900 (LOCALES): Likewise.
10901 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
10902 * localedata/locales/sah_RU: New file.
10903 * localedata/sah_RU.UTF-8.in: New file.
10904
10905 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10906
10907 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
10908 "sysdep.h".
10909 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
10910 _CET_ENDBR to indirect jump targets and adjust jump destination
10911 for _CET_ENDBR.
10912 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
10913 "sysdep.h".
10914 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
10915 _CET_ENDBR to indirect jump targets and adjust jump destination
10916 for _CET_ENDBR.
10917 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
10918 "sysdep.h".
10919 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
10920 _CET_ENDBR to indirect jump targets and adjust jump destination
10921 for _CET_ENDBR.
10922
10923 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10924
10925 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
10926 _CET_ENDBR.
10927
10928 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10929
10930 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
10931 _CET_ENDBR.
10932 (_dl_tlsdesc_undefweak): Likewise.
10933 (_dl_tlsdesc_dynamic): Likewise.
10934 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
10935 (_dl_tlsdesc_resolve_rel): Likewise.
10936 (_dl_tlsdesc_resolve_rela): Likewise.
10937 (_dl_tlsdesc_resolve_hold): Likewise.
10938 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
10939 (_dl_tlsdesc_undefweak): Likewise.
10940 (_dl_tlsdesc_dynamic): Likewise.
10941 (_dl_tlsdesc_resolve_rela): Likewise.
10942 (_dl_tlsdesc_resolve_hold): Likewise.
10943
10944 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10945
10946 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
10947 (_fini): Likewise.
10948 * sysdeps/x86_64/crti.S (_init): Likewise.
10949 (_fini): Likewise.
10950
10951 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
10952
10953 [BZ #23140]
10954 * localedata/locales/os_RU (mon): Rename to...
10955 (alt_mon): This.
10956 (mon): Import from CLDR (genitive case).
10957
10958 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
10959
10960 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
10961 cet-tunables.h> when CET is enabled.
10962
10963 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
10964
10965 [BZ #21598]
10966 * configure.ac: Add --enable-cet.
10967 * configure: Regenerated.
10968 * elf/Makefille (all-built-dso): Add a comment.
10969 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
10970 Include <dl-prop.h>.
10971 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
10972 segment.
10973 * elf/dl-open.c: Include <dl-prop.h>.
10974 (dl_open_worker): Call _dl_open_check.
10975 * elf/rtld.c: Include <dl-prop.h>.
10976 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
10977 _rtld_main_check.
10978 * sysdeps/generic/dl-prop.h: New file.
10979 * sysdeps/i386/dl-cet.c: Likewise.
10980 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
10981 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
10982 * sysdeps/x86/cet-tunables.h: Likewise.
10983 * sysdeps/x86/check-cet.awk: Likewise.
10984 * sysdeps/x86/configure: Likewise.
10985 * sysdeps/x86/configure.ac: Likewise.
10986 * sysdeps/x86/dl-cet.c: Likewise.
10987 * sysdeps/x86/dl-procruntime.c: Likewise.
10988 * sysdeps/x86/dl-prop.h: Likewise.
10989 * sysdeps/x86/libc-start.h: Likewise.
10990 * sysdeps/x86/link_map.h: Likewise.
10991 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
10992 _CET_ENDBR.
10993 (_dl_runtime_profile): Likewise.
10994 (_dl_runtime_resolve_shstk): New.
10995 (_dl_runtime_profile_shstk): Likewise.
10996 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
10997 if CET is enabled.
10998 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
10999 (CFLAGS-.os): Likewise.
11000 (CFLAGS-.op): Likewise.
11001 (CFLAGS-.oS): Likewise.
11002 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11003 is enabled.
11004 (tests-special): Add $(objpfx)check-cet.out.
11005 (cet-built-dso): New.
11006 (+$(cet-built-dso:=.note)): Likewise.
11007 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11008 ($(objpfx)check-cet.out): New.
11009 (generated): Add check-cet.out.
11010 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11011 <cet-tunables.h>.
11012 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11013 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11014 (init_cpu_features): Call get_cet_status to check CET status
11015 and update dl_x86_feature_1 with CET status. Call
11016 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11017 (set_x86_shstk). Disable and lock CET in libc.a.
11018 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11019 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11020 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11021 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11022 (_CET_ENDBR): Define if not defined.
11023 (ENTRY): Add _CET_ENDBR.
11024 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11025 x86_shstk.
11026 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11027 _CET_ENDBR.
11028 (_dl_runtime_profile): Likewise.
11029
11030 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11031
11032 [BZ #21895]
11033 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11034 restore r2 on longjmp.
11035 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11036 test list.
11037 Added rules to build test tst-setjmp-bug21895-static.
11038 Added module setjmp-bug21895 and rules to build a shared object from it.
11039 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11040 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11041
11042 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11043
11044 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11045 * benchtests/bench-strstr.c: Likewise.
11046 * string/memmem.c (FASTSEARCH): Define.
11047 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11048 Add support for FASTSEARCH.
11049 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11050 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11051 (FASTSEARCH): Define.
11052 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11053 * string/test-strstr.c: Likewise.
11054
11055 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11056
11057 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11058 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11059
11060 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11061 H.J. Lu <hongjiu.lu@intel.com>
11062
11063 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11064 (__longjmp): Restore shadow stack pointer if shadow stack is
11065 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11066 isn't defined for __longjmp_cancel.
11067 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11068 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11069 and SHADOW_STACK_POINTER_OFFSET is defined.
11070 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11071 (setjmp): Save shadow stack pointer if shadow stack is enabled
11072 and SHADOW_STACK_POINTER_OFFSET is defined.
11073 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11074 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11075 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11076 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11077 <jmp_buf-ssp.h>.
11078 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11079 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11080 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11081 Remove jmp_buf-ssp.sym.
11082 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11083 <jmp_buf-ssp.h>.
11084 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11085 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11086 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11087 jmp_buf-ssp.sym.
11088 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11089 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11090 (__longjmp): Restore shadow stack pointer if shadow stack is
11091 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11092 isn't defined for __longjmp_cancel.
11093 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11094 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11095 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11096
11097 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11098
11099 [BZ #22563]
11100 * nptl/pthread_create.c: Include <tls-setup.h>.
11101 (__pthread_create_2_1): Call tls_setup_tcbhead.
11102 * sysdeps/generic/tls-setup.h: New file.
11103 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11104 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11105 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11106 Likewise.
11107 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11108 to feature_1.
11109 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11110 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11111 (X86_FEATURE_1_SHSTK): Likewise.
11112 (CET_ENABLED): Likewise.
11113 (IBT_ENABLED): Likewise.
11114 (SHSTK_ENABLED): Likewise.
11115
11116 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11117
11118 [BZ #23208]
11119 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11120 (LOCALES): Likewise.
11121 * localedata/dsb_DE.UTF-8.in: New file.
11122 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11123
11124 2018-07-12 Florian Weimer <fweimer@redhat.com>
11125
11126 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11127 __mprotect, not mprotect.
11128
11129 2018-07-11 Florian Weimer <fweimer@redhat.com>
11130
11131 * io/Makefile (headers): Add bits/statx.h.
11132
11133 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11134
11135 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11136 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11137 and headers.
11138 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11139 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11140 for utf8_gen.py
11141
11142 2018-07-10 Florian Weimer <fweimer@redhat.com>
11143
11144 * io/Makefile (routines): Add statx.
11145 (tests-internal): Add tst-statx.
11146 * io/Versions (GLIBC_2.28): Export statx.
11147 * io/bits/statx.h: New file.
11148 * io/sys/stat.h [__USE_GNU]: Include it.
11149 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11150 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11151 Define.
11152 * io/statx.c: New file.
11153 * io/statx_generic.: Likewise.
11154 * io/tst-statx.: Likewise.
11155 * include/bits/statx.h: Likewise.
11156 * sysdeps/unix/sysv/linux/kernel-features.h
11157 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11158 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11159 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11160 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11161 Undefine.
11162 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11163 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11164 * sysdeps/unix/sysv/linux/statx.c: New file.
11165 * manual/filesys.texi: Note that statx is undocumented.
11166 * sysdeps/**/libc*.abilist: Update.
11167
11168 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11169
11170 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11171 a kernel issue which lead to test failure in some cases.
11172
11173 2018-07-10 Florian Weimer <fweimer@redhat.com>
11174
11175 [BZ #23036]
11176 * posix/regexec.c (check_node_accept_bytes): When comparing
11177 weights, do not compare an extra byte after the end of the
11178 weights.
11179
11180 2018-07-10 Florian Weimer <fweimer@redhat.com>
11181
11182 * libio/readline.c: Fix copyright year.
11183 * libio/tst-readline.c Likewise.
11184 * nss/tst-nss-files-hosts-getent.c: Likewise.
11185
11186 2018-07-06 Florian Weimer <fweimer@redhat.com>
11187
11188 [BZ #18991]
11189 * nss/nss_files/files-XXX.c (internal_getent): Use
11190 __libc_readline_unlocked. Seek back to the start of the line if
11191 parsing failes with ERANGE.
11192 (get_contents_ret, get_contents): Remove.
11193 * nss/tst-nss-files-hosts-getent.c: New file.
11194 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11195 (tst-nss-files-hosts-getent): Link with -ldl.
11196
11197 2018-07-06 Florian Weimer <fweimer@redhat.com>
11198
11199 * include/stdio.h (__libc_readline_unlocked): Declare.
11200 (__ftello64, __fseeko64): Declare aliases.
11201 * libio/readline.c: New file.
11202 * libio/tst-readline.c: Likewise.
11203 (routines): Add readline.
11204 (tests-internal): Add tst-readlime.
11205 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11206 __libc_readline_unlocked.
11207 * libio/fseeko.c (__fseeko): Rename from fseeko.
11208 (fseeko): Add alias.
11209 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11210 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11211 (fseeko64): Add alias.
11212 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11213 * libio/ftello64.c (__ftello64): Rename from ftello64.
11214 (ftello64): Add alias.
11215
11216 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11217
11218 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11219 HWCAP_ATOMICS.
11220
11221 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11222
11223 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11224 Use dl_hwcap without masking.
11225 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11226 Remove HWCAP_CPUID.
11227
11228 2018-07-06 Florian Weimer <fweimer@redhat.com>
11229
11230 * conform/conformtest.pl (checknamespace): Escape literal braces
11231 in regular expressions.
11232
11233 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11234
11235 * sysdeps/x86/cpu-features.c (get_common_indeces):
11236 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11237 * sysdeps/x86/cpu-features.c (init_cpu_features):
11238 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11239
11240 2018-07-05 Florian Weimer <fweimer@redhat.com>
11241
11242 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11243 protector.
11244 (CFLAGS-elf-init.oS): Likewise.
11245
11246 2018-07-05 Florian Weimer <fweimer@redhat.com>
11247 Carlos O'Donell <carlos@redhat.com>
11248
11249 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11250 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11251 with stack protector enabled because there is no risk of infinite
11252 recursion.
11253
11254 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11255
11256 [BZ #19818]
11257 [BZ #23307]
11258 * libc-abis (ABSOLUTE): New ABI.
11259 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11260 * NEWS: Mention the new ABI.
11261
11262 2018-07-05 Florian Weimer <fweimer@redhat.com>
11263
11264 [BZ # 17662]
11265 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11266 (RENAME_WHITEOUT): Define.
11267 [__USE_GNU] (renameat2): Declare.
11268 * stdio-common/Makefile (routines): Add renameat2.
11269 (tests): Add tst-renameat2.
11270 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11271 * stdio-common/renameat2.c: New file.
11272 * stdio-common/tst-renameat2.c: Likewise.
11273 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11274 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11275 undocumented.
11276 * sysdeps/unix/sysv/linux/kernel-features.h
11277 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11278 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11279 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11280 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11281 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11282 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11283 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11284 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11285 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11286 * include/stdio.h (__renameat): Add alias for renameat.
11287 * stdio-common/renameat.c (__renameat): Rename from renameat.
11288 Add hidden definition and alias.
11289 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11290 * sysdeps/mach/hurd/renameat.c: Likewise.
11291 * sysdeps/**/libc*.abilist: Add renameat2.
11292
11293 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11294
11295 * posix/bug-regex33.c: Fix build after regex sync.
11296
11297 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11298
11299 [BZ #23164]
11300 * localedata/tst-langinfo-setlocale.c: New file.
11301 * localedata/tst-langinfo-setlocale-static.c: New file.
11302 * localedata/tst-langinfo-newlocale.c: New file.
11303 * localedata/tst-langinfo-newlocale-static.c: New file.
11304 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11305 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11306 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11307 (tests-static): Remove tst-langinfo-static. Add
11308 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11309 (tests-special): Remove $(objpfx)tst-langinfo.out,
11310 $(objpfx)tst-langinfo-static.out. Add
11311 $(objpfx)tst-langinfo-setlocale.out,
11312 $(objpfx)tst-langinfo-newlocale.out,
11313 $(objpfx)tst-langinfo-setlocale-static.out,
11314 $(objpfx)tst-langinfo-newlocale-static.out.
11315 ($(objpfx)tst-langinfo.out): Remove.
11316 ($(objpfx)tst-langinfo-static.out): Remove.
11317 ($(objpfx)tst-langinfo-newlocale.out): New target.
11318 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11319 (test-xfail-tst-langinfo-newlocale-static): Add.
11320 ($(objpfx)tst-langinfo-setlocale.out): New target.
11321 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11322 * localedata/tst-langinfo.c: Call test_locale.
11323 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11324 data.
11325
11326 2018-07-04 Florian Weimer <fweimer@redhat.com>
11327
11328 testrun.sh: Implement --tool=strace, --tool=valgrind
11329 * Makefile (testrun-script): Define variable.
11330 (testrun.sh): Use variable.
11331 * manual/install.texi (Tools for Compilation): make 4.0 or later
11332 is required.
11333 * configure.ac: Check for make 4.0 or later.
11334 * INSTALL: Regenerate.
11335 * configure: Likewise.
11336
11337 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11338
11339 [BZ #23233]
11340 [BZ #21163]
11341 [BZ #18986]
11342 [BZ #13762]
11343 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11344 * posix/PCRE.tests: Remove invalid test.
11345 * posix/bug-regex28.c: Fix expected values for used syntax.
11346 * posix/bug-regex37.c: New file.
11347 * posix/bug-regex38.c: Likewise.
11348 * posix/regcomp.c: Sync with gnulib.
11349 * posix/regex.c: Likewise.
11350 * posix/regex.h: Likewise.
11351 * posix/regex_internal.c: Likewise.
11352 * posix/regex_internal.h: Likewise.
11353 * posix/regexec.c: Likewise.
11354
11355 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11356
11357 [BZ #23308]
11358 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11359 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11360 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11361 * localedata/unicode-gen/PropList.txt: likewise.
11362 * localedata/unicode-gen/UnicodeData.txt: likewise.
11363 * localedata/charmaps/UTF-8: Regenerate.
11364 * localedata/locales/i18n_ctype: likewise.
11365 * localedata/locales/tr_TR: likewise.
11366 * localedata/locales/translit_circle: likewise.
11367 * localedata/locales/translit_cjk_compat: likewise.
11368 * localedata/locales/translit_combining: likewise.
11369 * localedata/locales/translit_compat: likewise.
11370 * localedata/locales/translit_font: likewise.
11371 * localedata/locales/translit_fraction: likewise.
11372
11373 2018-07-03 Florian Weimer <fweimer@redhat.com>
11374
11375 [BZ #23363]
11376 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11377 * stdio-common/tst-printf.sh: Adjust expected output.
11378 * LICENSES: Update.
11379
11380 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11381
11382 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11383 symbol.
11384
11385 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11386
11387 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11388 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11389 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11390 * stdio-common/tst-printfsz-islongdouble.c: New file.
11391 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11392 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11393 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11394 [subdir == stdio-common] (tests-internal): Add
11395 test-printf-size-ieee128, and test-printf-size-ibm128.
11396 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11397 (CFLAGS-test-printf-size-ibm128.c): New variables.
11398 [subdir == stdio-common] (tests-special): Add
11399 $(objpfx)test-printf-size-ieee128.out and
11400 $(objpfx)test-printf-size-ibm128.out.
11401 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11402 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11403 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11404 __printf_sizeieee128.
11405 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11406 New file.
11407 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11408 Likewise.
11409 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11410 Likewise.
11411
11412 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
11413
11414 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
11415 (exp2f_inline): Likewise.
11416 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
11417 (__math_uflowf): Likewise.
11418 (__math_may_uflowf): Likewise.
11419 (__math_divzerof): Likewise.
11420 (__math_invalidf): Likewise.
11421 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
11422 (__math_oflowf): Likewise.
11423 (__math_uflowf): Likewise.
11424 (__math_may_uflowf): Likewise.
11425 (__math_divzerof): Likewise.
11426 (__math_invalidf): Likewise.
11427
11428 2018-06-29 DJ Delorie <dj@redhat.com>
11429 Carlos O'Donell <carlos@redhat.com>
11430
11431 [BZ #23329]
11432 * include/libc-symbols.h: Comment the freeres framework.
11433 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
11434 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
11435 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
11436 * dlfcn/dlerror.c: Include libc-symbols.h
11437 (__dlerror_main_freeres): New function.
11438 * dlfcn/dlfreeres.c: New file.
11439 * dlfcn/sdlfreeres.c: New file.
11440 * include/dlfcn.h: Declare __dlerror_main_freeres.
11441 * malloc/set-freeres.c: Declare __libdl_freeres, and
11442 __libpthread_freeres.
11443 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
11444 the releavant libraries are loaded.
11445 * malloc/thread-freeres.c: Add comments.
11446 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
11447 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
11448 * nptl/allocatestack.c (__nptl_free_stacks): New function.
11449 (__free_stacks): Rename to...
11450 (free_stacks): ...this. Mark static.
11451 (queue_stack): Call free_stacks.
11452 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
11453 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
11454 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
11455 ptr_freeres element from struct.
11456 (pthread_functions): Remove .ptr_freeres from struct initializer.
11457 [SHARED] (nptl_freeres): Remove.
11458 * nptl/nptlfreeres.c: New file.
11459 * nptl/pthreadP.h
11460 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
11461 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
11462 attribute_hidden.
11463 (__free_stacks): Rename to...
11464 (__nptl_stacks_freeres): ...this.
11465 (__shm_directory_freeres): Declare.
11466 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
11467 (__nptl_unwind_freeres): ...this.
11468 * resolv/res-close.c: Add comment.
11469 * resolv/resolv_conf.c: Include libc-symbols.h.
11470 * string/strerror_l.c: Include libc-symbols.h.
11471 * sunrpc/rpc_thread.c: Include libc-symbols.h.
11472 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
11473 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
11474 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
11475
11476 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11477
11478 * stdlib/tst-strfmon_l.c: Add tests for long double.
11479
11480 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
11481
11482 [BZ #23208]
11483 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
11484 * localedata/locales/dsb_DE: New file.
11485
11486 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11487
11488 [BZ #23140]
11489 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
11490 genitive case).
11491 (alt_mon): New entry, import from CLDR (nominative case).
11492
11493 2018-06-29 Sylvain Lesage <severo@rednegra.net>
11494
11495 [BZ #22996]
11496 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
11497
11498 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
11499
11500 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11501 Use vector registers.
11502
11503 * sysdeps/aarch64/multiarch/memmove_falkor.S
11504 (__memcpy_falkor): Use vector registers.
11505
11506 2018-06-29 Martin Sebor <msebor@redhat.com>
11507
11508 * manual/stdio.texi (Customizing Printf): Mention interaction
11509 with GCC built-ins.
11510
11511 2018-06-29 Maciej W. Rozycki <macro@mips.com>
11512
11513 [BZ #23307]
11514 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
11515 `st_value' is 0 if `st_shndx' is SHN_ABS.
11516 * elf/tst-absolute-zero.c: New file.
11517 * elf/tst-absolute-zero-lib.c: New file.
11518 * elf/tst-absolute-zero-lib.lds: New file.
11519 * elf/Makefile (tests): Add `tst-absolute-zero'.
11520 (modules-names): Add `tst-absolute-zero-lib'.
11521 (LDLIBS-tst-absolute-zero-lib.so): New variable.
11522 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
11523 ($(objpfx)tst-absolute-zero: New dependency.
11524
11525 2018-06-29 Zack Weinberg <zackw@panix.com>
11526
11527 * configure.ac: New command-line option --disable-crypt.
11528 Force --disable-nss-crypt when --disable-crypt is given, with a
11529 warning if it was explicitly enabled.
11530 * configure: Regenerate.
11531 * config.make.in: New boolean substitution variable $(build-crypt).
11532 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
11533 when $(build-crypt).
11534 * manual/install.texi: Document --disable-crypt.
11535 * INSTALL: Regenerate.
11536
11537 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
11538 which is never set.
11539 * conform/Makefile: Only include libcrypt.a in
11540 linknamespace-libs-xsi and linknamespace-libs-XPG4
11541 when $(build-crypt).
11542 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
11543 USE_CRYPT to 1 when $(build-crypt).
11544 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
11545 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
11546 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
11547
11548 2018-06-29 Zack Weinberg <zackw@panix.com>
11549
11550 * crypt/crypt.h, posix/unistd.h: Update comments and
11551 prototypes for crypt and crypt_r.
11552
11553 * manual/crypt.texi (Cryptographic Functions): New initial
11554 exposition.
11555 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
11556 (Unpredictable Bytes): Improve initial exposition. Clarify error
11557 behavior of getentropy and getrandom.
11558 * manual/examples/genpass.c: Generate a salt using getentropy
11559 instead of the current time. Use hash $5$ (SHA-2-256).
11560 * manual/examples/testpass.c: Demonstrate validation against
11561 hashes generated with three different one-way functions.
11562
11563 * manual/intro.texi: crypt.texi does not need an overview
11564 anymore.
11565
11566 * manual/nss.texi, manual/memory.texi, manual/socket.texi
11567 * manual/terminal.texi: Consistently refer to "passphrases"
11568 * instead of "passwords", and to the "user database" instead
11569 * of the "password database".
11570 * manual/users.texi: Similarly. Add notes about how actual
11571 passphrase hashes are now stored in the shadow database.
11572 Remove 20-year-old junk todo note.
11573
11574 2018-06-29 Zack Weinberg <zackw@panix.com>
11575
11576 * manual/crypt.texi: Use a normal top-level @node declaration.
11577 Move most of the introductory text to the 'crypt' section.
11578 Move the example programs below the @deftypefun for 'crypt_r'.
11579 Move the 'getpass' section...
11580 * manual/terminal.texi: ...here.
11581
11582 2018-06-29 Zack Weinberg <zackw@panix.com>
11583 Florian Weimer <fweimer@redhat.com>
11584
11585 * posix/unistd.h: Do not declare encrypt.
11586 (_XOPEN_CRYPT): Remove macro definition.
11587 (crypt): Declare only for _USE_MISC.
11588 * stdlib/stdlib.h: Do not declare setkey.
11589 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
11590 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
11591
11592 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
11593 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
11594 into compat symbols. Don't define initial_perm if it's not
11595 going to be used.
11596 * crypt/cert.c: Link explicitly with the expected versions for
11597 setkey and encrypt. If they are not available at all, mark
11598 the test as unsupported.
11599
11600 * sunrpc/des_crypt.c: Unconditionally block linkage with
11601 cbc_crypt and ecb_crypt for new binaries.
11602 * sunrpc/des_soft.c: Unconditionally block linkage with
11603 des_setparity for new binaries.
11604
11605 * manual/crypt.texi: Remove the entire "DES Encryption"
11606 section. Also remove the paragraph talking about FIPS 140-2
11607 from the introduction.
11608 * manual/string.texi (strfry, memfrob): Revise. Recommend use
11609 of libgcrypt for "real" encryption, not DES.
11610 * manual/conf.texi (Constants for Sysconf): Mention that
11611 _XOPEN_CRYPT is no longer impelemented.
11612
11613 * conform/data/unistd.h-data: Remove crypt function declaration.
11614
11615 2018-06-29 Florian Weimer <fweimer@redhat.com>
11616
11617 [BZ #23351]
11618 * malloc/hooks.c: Update comments on restoring of dumped heaps.
11619 (disallow_malloc_check): Remove variable.
11620 (__malloc_check_init): Adjust.
11621 (malloc_set_state): Update comment.
11622 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
11623 declarations.
11624
11625 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11626
11627 [BZ #23140]
11628 * localedata/locales/ast_ES (mon): Rename to...
11629 (alt_mon): This.
11630 (mon): Import from CLDR (genitive case).
11631
11632 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
11633 Jakub Sitnicki <jkbs@redhat.com>
11634
11635 [BZ #21812]
11636 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
11637 on NLM_F_DUMP_INTR.
11638
11639 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
11640
11641 * manual/llio.texi: Remove spurious space.
11642
11643 2018-06-28 Florian Weimer <fweimer@redhat.com>
11644
11645 [BZ #23349]
11646 * time/bits/types/struct_timespec.h: Change header inclusion guard to
11647 _STRUCT_TIMESPEC.
11648
11649 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11650
11651 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
11652 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
11653 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
11654 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
11655 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
11656 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
11657 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
11658
11659 2018-06-27 Maciej W. Rozycki <macro@mips.com>
11660
11661 [BZ #23266]
11662 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
11663 Copy and null-terminate entries that are not terminated, in
11664 addition to empty ones.
11665
11666 2018-06-27 Florian Weimer <fweimer@redhat.com>
11667
11668 [BZ #18023]
11669 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
11670 (extend_alloca_account): Remove.
11671 * manual/stdio.texi (Variable Arguments Output): Update comment.
11672
11673 2018-06-27 Joseph Myers <joseph@codesourcery.com>
11674
11675 * nptl/sockperf.c: Remove file.
11676
11677 2018-06-27 Florian Weimer <fweimer@redhat.com>
11678
11679 [BZ #18023]
11680 * elf/dl-deps.c (_dl_map_object_deps): Use struct
11681 scratch_buffer instead of extend_alloca.
11682
11683 2018-06-27 Florian Weimer <fweimer@redhat.com>
11684
11685 [BZ #18023]
11686 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
11687 scratch_buffer instead of extend_alloca. Update comments.
11688
11689 2018-06-27 Florian Weimer <fweimer@redhat.com>
11690
11691 [BZ #18023]
11692 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
11693 instead of extend_alloca.
11694
11695 2018-06-26 Joseph Myers <joseph@codesourcery.com>
11696
11697 [BZ #13888]
11698 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
11699 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
11700 /tmp.
11701 * scripts/test-installation.pl: Put temporary files in build
11702 directory, not /tmp.
11703 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
11704 (CFLAGS-bug4.c): Likewise.
11705 (CFLAGS-bug5.c): Likewise.
11706 (CFLAGS-test-fseek.c): Likewise.
11707 (CFLAGS-test-popen.c): Likewise.
11708 (CFLAGS-test_rdwr.c): Likewise.
11709 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
11710 /tmp.
11711 * stdio-common/bug4.c (main): Likewise.
11712 * stdio-common/bug5.c (main): Likewise.
11713 * stdio-common/test-fseek.c (TESTFILE): Likewise.
11714 * stdio-common/test-popen.c (do_test): Likewise.
11715 * stdio-common/test_rdwr.c (main): Likewise.
11716
11717 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
11718
11719 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
11720 (sem_open): Set sem.newsem.pad to zero for valgrind.
11721
11722 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11723
11724 [BZ #20251]
11725 * NEWS: Mention fcntl64 addition.
11726 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
11727 * login/utmp_file.c: Likewise.
11728 * sysdeps/posix/fdopendir.c: Likewise.
11729 * sysdeps/posix/opendir.c: Likewise.
11730 * sysdeps/unix/pt-fcntl.c: Likewise.
11731 * include/fcntl.h (__libc_fcntl64, __fcntl64,
11732 __fcntl64_nocancel_adjusted): New prototype.
11733 (__fcntl_nocancel_adjusted): Remove prototype.
11734 * io/Makefile (routines): Add fcntl64.
11735 (CFLAGS-fcntl64.c): New rule.
11736 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
11737 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
11738 * io/fcntl.h (fcntl64): Add prototype and redirect if
11739 __USE_FILE_OFFSET64 is defined.
11740 * io/fcntl64.c: New file.
11741 * manual/llio.text: Add a note for which commands fcntl acts a
11742 cancellation point.
11743 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
11744 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
11745 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
11746 New symbols.
11747 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
11748 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
11749 non-LFS case.
11750 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
11751 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
11752 to __fcntl64_nocancel.
11753 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
11754 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
11755 to __fcntl64_nocancel.
11756 * sysdeps/generic/not-cancel.h: Likewise.
11757 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
11758 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
11759 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11760 (fcntl64): New symbol.
11761 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
11772 fcntl64): Likewise.
11773 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
11775 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11783 Likewise.
11784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11785 Likewise.
11786 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11789
11790 2018-06-26 Florian Weimer <fweimer@redhat.com>
11791
11792 Run thread shutdown functions in an explicit order.
11793 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
11794 definition.
11795 (__libc_thread_freeres): Call thread shutdown functions
11796 explicitly.
11797 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
11798 * include/string.h (__strerror_thread_freeres): Declare.
11799 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
11800 arena_thread_freeres. No longer static. Remove thread shutdown
11801 hook registration.
11802 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
11803 Declare.
11804 * resolv/res-close.c (__res_thread_freeres): Renamed from
11805 res_thread_freeres. No longer static. Remove thread shutdown
11806 hook registration.
11807 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
11808 * resolv/resolv_conf.c (freeres): Remove incorrect section
11809 attribute and use libc_freeres_fn.
11810 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
11811 strerror_thread_freeres. No longer static. Remove thread
11812 shutdown hook registration.
11813 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
11814 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
11815 shutdown hook registration.
11816 * Makerules (shlib.lds): Do not provide section boundary symbols
11817 for __libc_thread_subfreeres.
11818 * manual/memory.texi (Basic Allocation): Update comment.
11819
11820 2018-06-26 Florian Weimer <fweimer@redhat.com>
11821
11822 Remove always-defined _RPC_THREAD_SAFE_ macro.
11823 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
11824 Do not define _RPC_THREAD_SAFE_.
11825 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
11826 conditional.
11827 * sunrpc/clnt_perr.c: Likewise.
11828 * sunrpc/clnt_raw.c: Likewise.
11829 * sunrpc/clnt_simp.c: Likewise.
11830 * sunrpc/key_call.c: Likewise.
11831 * sunrpc/rpc_common.c: Likewise.
11832 * sunrpc/rpc_main.c: Likewise.
11833 * sunrpc/rpc_thread.c: Likewise.
11834 * sunrpc/svc.c: Likewise.
11835 * sunrpc/svc_raw.c: Likewise.
11836 * sunrpc/svc_simple.c: Likewise.
11837 * sumrpc/svcauth_des.c: Likewise.
11838
11839 2018-06-26 Florian Weimer <fweimer@redhat.com>
11840
11841 * libio/Makefile (tests-internal): Add tst-vtables,
11842 tst-vtables-interposed.
11843 * libio/tst-vtables.c: New file.
11844 * libio/tst-vtables-common.c: Likewise.
11845 * libio/tst-vtables-interposed.c: Likewise.
11846
11847 2018-06-26 Florian Weimer <fweimer@redhat.com>
11848
11849 * support/support_test_main.c (support_test_main): Only call
11850 setvbuf if not disables.
11851 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
11852 * support/test-driver.h (struct test_config): Add no_setvbuf member.
11853
11854 2018-06-26 Florian Weimer <fweimer@redhat.com>
11855
11856 [BZ #23313]
11857 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
11858
11859 2018-06-25 Florian Weimer <fweimer@redhat.com>
11860
11861 [BZ #18023]
11862 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11863 Use struct scratch_buffer instead of extend_alloca.
11864
11865 2018-06-25 Florian Weimer <fweimer@redhat.com>
11866
11867 [BZ #18023]
11868 * nss/getent.c (initgroups_keys): Use dynarray instead of
11869 extend_alloca.
11870
11871 2018-06-25 Florian Weimer <fweimer@redhat.com>
11872
11873 [BZ #18023]
11874 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
11875 Use struct scratch_buffer instead of extend_alloca.
11876
11877 2018-06-25 Florian Weimer <fweimer@redhat.com>
11878
11879 [BZ #18023]
11880 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
11881 back to malloc directly, without stack allocations.
11882
11883 2018-06-25 Florian Weimer <fweimer@redhat.com>
11884
11885 [BZ #18023]
11886 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
11887 of extend_alloca.
11888
11889 2018-06-25 Florian Weimer <fweimer@redhat.com>
11890
11891 [BZ #18023]
11892 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
11893 of extend_alloca.
11894 * nscd/hstcache.c (addhstbyX): Likewise.
11895 * nscd/pwdcache.c (addpwbyX): Likewise.
11896 * nscd/servicescache.c (addservbyX): Likewise.
11897
11898 2018-06-25 Florian Weimer <fweimer@redhat.com>
11899
11900 [BZ #18023]
11901 * nscd/connections.c (read_cmdline): New function.
11902 (restart): Use it. Update comment.
11903
11904 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
11905
11906 [BZ #23140]
11907 * localedata/locales/csb_PL (mon): Rename to...
11908 (alt_mon): This.
11909 (abmon): Rename to...
11910 (ab_alt_mon): This.
11911 (mon): Add with proper genitive forms, copy from Wikipedia.
11912 (abmon): Likewise.
11913
11914 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
11915
11916 [BZ #19485]
11917 * localedata/locales/csb_PL (mon): Fix typos:
11918 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
11919 (yesstr): Add, value is "jo".
11920 (nostr): Add, value is "nié".
11921
11922 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11923
11924 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
11925 all log1p and significand functions on m680x0.
11926 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
11927 of s_significand.c..
11928 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
11929 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
11930 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
11931 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
11932 s_log1p.c and include it..
11933
11934 2018-06-21 Vincent Chen <vincentc@andestech.com>
11935
11936 * elf/elf.h (R_NDS32_NONE): New define.
11937 (R_NDS32_32_RELA): Likewise.
11938 (R_NDS32_COPY): Likewise.
11939 (R_NDS32_GLOB_DAT): Likewise.
11940 (R_NDS32_JUMP_SLOT): Likewise.
11941 (R_NDS32_RELATIVE): Likewise.
11942 (R_NDS32_TLS_TPOFF): Likewise.
11943 (R_NDS32_TLS_DESC): Likewise.
11944
11945 2018-06-21 Mark Wielaard <mark@klomp.org>
11946
11947 * elf/elf.h (R_BPF_MAP_FD): Removed.
11948 (R_BPF_64_64, R_BPF_64_32): New.
11949
11950 2018-06-21 Florian Weimer <fweimer@redhat.com>
11951
11952 [BZ #23253]
11953 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
11954 Renamed from libc_feholdsetround_ctx.
11955 (default_libc_feresetround_ctx): Renamed from
11956 libc_feresetround_ctx.
11957 (default_libc_feholdsetround_noex_ctx): Renamed from
11958 libc_feholdsetround_noex_ctx.
11959 (default_libc_feresetround_noex_ctx): Renamed from
11960 libc_feresetround_noex_ctx.
11961 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
11962 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
11963 forwardning to the old implementations under the new names.
11964 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
11965 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
11966 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
11967 (libc_feresetround_ctx): Forward to default implements for i386
11968 and MATH_SET_BOTH_ROUNDING_MODES.
11969 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
11970 Add -DMATH_SET_BOTH_ROUNDING_MODES.
11971
11972 2018-06-20 Joseph Myers <joseph@codesourcery.com>
11973
11974 * string/tst-cmp.c: Include <libc-diag.h>.
11975 (strncmp_max): Disable -Wstringop-overflow= around call to
11976 strncmp.
11977 (strncasecmp_max): Disable -Wstringop-overflow= around call to
11978 strncasecmp.
11979
11980 * string/bug-strpbrk1.c: Include <libc-diag.h>.
11981 (main): Disable -Wunused-value around call to strpbrk.
11982 * string/bug-strspn1.c: Include <libc-diag.h>.
11983 (main): Disable -Wunused-value around call to strspn.
11984
11985 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11986 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11987
11988 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
11989 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
11990
11991 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11992
11993 * math/Makefile (libm-calls): Move s_significandF to...
11994 (gen-libm-calls): ... here.
11995 * math/s_significand_template.c: New file.
11996 * math/s_significand.c: Removed.
11997 * math/s_significandf.c: Removed.
11998 * math/s_significandl.c: Removed.
11999 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12000 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12001
12002 * math/e_exp2_template.c (declare_mgen_finite_alias,
12003 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12004 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12005 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12006
12007 2018-06-20 Florian Weimer <fweimer@redhat.com>
12008
12009 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12010
12011 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12012
12013 [BZ #23280]
12014 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12015 floating-point number to strtod functions rather than possibly
12016 negating result of those functions.
12017 * stdio-common/tst-scanf-round.c: New file.
12018 * stdio-common/Makefile (tests): Add tst-scanf-round.
12019 ($(objpfx)tst-scanf-round): Depend on $(libm).
12020
12021 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12022
12023 * sysdeps/mach/hurd/localplt.data: Move to...
12024 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12025 R_386_GLOB_DAT like on Linux i386.
12026
12027 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12028
12029 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12030 (SHM_STAT_ANY): New macro.
12031 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12032 (SHM_STAT_ANY): Likewise.
12033 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12034 (SHM_STAT_ANY): Likewise.
12035 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12036 (SHM_STAT_ANY): Likewise.
12037 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12038 (SHM_STAT_ANY): Likewise.
12039 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12040 (SHM_STAT_ANY): Likewise.
12041 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12042 (SHM_STAT_ANY): Likewise.
12043 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12044 (SHM_STAT_ANY): Likewise.
12045 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12046 (SHM_STAT_ANY): Likewise.
12047 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12048 (SHM_STAT_ANY): Likewise.
12049 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12050 (SHM_STAT_ANY): Likewise.
12051 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12052 (SHM_STAT_ANY): Likewise.
12053
12054 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12055 (SEM_STAT_ANY): New macro.
12056 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12057 (SEM_STAT_ANY): Likewise.
12058 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12059 (SEM_STAT_ANY): Likewise.
12060 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12061 (SEM_STAT_ANY): Likewise.
12062 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12063 (SEM_STAT_ANY): Likewise.
12064 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12065 (SEM_STAT_ANY): Likewise.
12066 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12067 (SEM_STAT_ANY): Likewise.
12068 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12069 (SEM_STAT_ANY): Likewise.
12070 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12071 (SEM_STAT_ANY): Likewise.
12072 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12073 (SEM_STAT_ANY): Likewise.
12074
12075 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12076 (MSG_STAT_ANY): New macro.
12077 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12078 (MSG_STAT_ANY): Likewise.
12079 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12080 (MSG_STAT_ANY): Likewise.
12081 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12082 (MSG_STAT_ANY): Likewise.
12083 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12084 (MSG_STAT_ANY): Likewise.
12085 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12086 (MSG_STAT_ANY): Likewise.
12087 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12088 (MSG_STAT_ANY): Likewise.
12089 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12090 (MSG_STAT_ANY): Likewise.
12091 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12092 (MSG_STAT_ANY): Likewise.
12093 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12094 (MSG_STAT_ANY): Likewise.
12095
12096 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12097 (MAP_TYPE): Change value to 0x2b.
12098
12099 2018-06-18 Florian Weimer <fweimer@redhat.com>
12100
12101 [BZ #15722]
12102 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12103 socket with SOCK_CLOEXEC.
12104
12105 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12106
12107 [BZ #23303]
12108 * sysdeps/powerpc/powerpc64/le/Makefile
12109 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12110 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12111 (gnulib-tests): Also add $(f128-loader-link) for
12112 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12113
12114 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12115
12116 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12117 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12118 of sendfile.
12119 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12120 (sendfile64): New strong alias.
12121 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12122 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12123 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12124 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12125 attribute.
12126 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12127 ___pthread_get_cleanup_stack.
12128 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12129 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12130 * mach/shortcut.awk: Make syscall stubs include
12131 <mach-shortcuts-hidden.h> and add hidden definition.
12132 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12133 (__mach_msg): Add hidden prototype.
12134 * mach/msg.c: Include <mach.h>.
12135 (__mach_msg): Add hidden definition.
12136 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12137 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12138 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12139 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12140 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12141 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12142 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12143 prototype and definition.
12144 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12145 hidden target for _hurd_self_sigstate.
12146
12147 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12148
12149 [BZ #23007]
12150 * stdlib/tst-strtod-nan-sign-main.c: New file.
12151 * stdlib/tst-strtod-nan-sign.c: Likewise.
12152 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12153 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12154 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12155 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12156 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12157
12158 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12159
12160 [BZ #23007]
12161 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12162 appropriate sign.
12163
12164 2018-06-14 Florian Weimer <fweimer@redhat.com>
12165
12166 [BZ #23290]
12167 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12168 that the result stays within the ISO-8859-1 range.
12169 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12170 characters are defined in IBM273.
12171
12172 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12173
12174 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12175 __mach_task_self): Remove attribute_hidden.
12176
12177 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12178
12179 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12180 ignore -Wrestrict for one test.
12181
12182 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12183 Szabolcs Nagy <szabolcs.nagy@arm.com>
12184
12185 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12186
12187 2018-06-14 Florian Weimer <fweimer@redhat.com>
12188
12189 * scripts/update-abilist.sh: Accept empty list of files to patch.
12190
12191 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12192
12193 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12194 test-xfail-check-abi-libmachuser): Add.
12195 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12196 __libc_read and __libc_write to __read and __write.
12197 * sysdeps/hurd/include/hurd/port.h: New file.
12198 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12199 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12200 __thread_switch, __evc_wait): Move declarations to...
12201 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12202 attribute_hidden.
12203 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12204 use PLT to call _hurd_self_sigstate.
12205
12206 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12207
12208 [BZ #23279]
12209 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12210 MAX_EXP as overflowing.
12211 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12212 overflow flag.
12213 (round_str): Output also whether result overflows in each rounding
12214 mode.
12215 * stdlib/tst-strtod-round-data: Add more tests.
12216 * stdlib/tst-strtod-round-data.h: Regenerated.
12217 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12218 (TEST): Handle extra arguments for overflow flags.
12219 (struct test_overflow): New type.
12220 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12221 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12222 (test_in_one_mode): Take argument with overflow information.
12223 (do_test): Update calls to test_in_one_mode.
12224
12225 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12226
12227 * elf/dl-load (_dl_dst_substitute): Correct comment.
12228 (_dl_dst_count): Likewise.
12229
12230 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12231 lll_futex_timed_wait.
12232
12233 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12234
12235 [BZ #23277]
12236 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12237 attribute.
12238 * math/test-nan-const.c: New file.
12239 * math/Makefile (tests): Add test-nan-const.
12240 (CFLAGS-test-nan-const.c): New variable.
12241
12242 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12243
12244 * benchtests/scripts/compare_strings.py (process_results): Add
12245 funcs argument. Compare only functions which are selected.
12246 (main): Check if base function is among selected functions.
12247 Pass selected functions to process_results.
12248 (__main__): Add -f/--functions argument.
12249
12250 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12251 Hongbo Zhang <hongbo.zhang@linaro.org>
12252
12253 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12254 __memcpy_falkor for phecda core.
12255 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12256 __memmove_falkor for phecda core.
12257 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12258 __memset_falkor for phecda core.
12259 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12260 for phecda core.
12261 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12262 macro to identify phecda core.
12263
12264 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12265 Andreas Schwab <schwab@suse.de>
12266 Dmitry V. Levin <ldv@altlinux.org>
12267 Florian Weimer <fweimer@redhat.com>
12268
12269 [BZ #23102]
12270 [BZ #21942]
12271 [BZ #18018]
12272 [BZ #23259]
12273 CVE-2011-0536
12274 * elf/dl-dst.h: Remove DL_DST_COUNT.
12275 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12276 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12277 (is_dst): Comment. Support ELF gABI.
12278 (_dl_dst_count): Comment. Simplify and count DSTs.
12279 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12280 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12281 locals.
12282
12283 2018-06-12 Zack Weinberg <zackw@panix.com>
12284
12285 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12286 * sysdeps/unix/sysv/linux/dl-sysdep.c
12287 Include not-cancel.h. Use __close_nocancel instead of __close,
12288 __open64_nocancel instead of __open, __read_nocancel instead of
12289 __libc_read, and __write_nocancel instead of __libc_write.
12290
12291 * csu/check_fds.c (check_one_fd)
12292 * sysdeps/posix/fdopendir.c (__fdopendir)
12293 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12294 instead of __fcntl and/or __libc_fcntl.
12295
12296 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12297 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12298 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12299 Use __open64_nocancel instead of __open_nocancel.
12300
12301 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12302 hidden_proto declarations to the end and issue them if either
12303 IS_IN(libc) or IS_IN(rtld).
12304 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12305 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12306 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12307 read_nocancel, waitpid_nocancel, write_nocancel.
12308
12309 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12310 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12311 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12312
12313 * nptl/pt-fcntl.c: New file.
12314 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12315 (libpthread-routines): Add pt-fcntl.
12316 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12317 (__libc_fcntl): Remove attribute_hidden.
12318 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12319 __fcntl_nocancel_adjusted, not fcntl_common.
12320 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12321 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12322 to fcntl_nocancel.c.
12323 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12326 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12327
12328 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12329 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12330 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12331 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12332 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12333 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12334 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12335 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12336 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12337 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12338 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12339 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12340 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12341 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12342 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12343 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12344 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12345 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12346 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12347 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12348
12349 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12350 libpthread-routines.
12351 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12352 defines nothing.
12353
12354 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12355 __libc_read, and __write instead of __libc_write. Define
12356 __open64 in addition to __open.
12357
12358 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12359
12360 [BZ #23250]
12361 [BZ #10686]
12362 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12363 to _private_tm[3] and add __glibc_reserved2.
12364 Add _Static_assert of offset of __private_ss == 0x30.
12365 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12366 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12367
12368 2018-06-12 Florian Weimer <fweimer@redhat.com>
12369
12370 x86: Make strncmp usable from rtld.
12371 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12372 __strncmp_ia32 if in libc (and not in rtld).
12373 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12374 strncmp if not in libc (and not to __strncmp_sse2).
12375
12376 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12377
12378 [BZ #23140]
12379 * localedata/locales/gd_GB (mon): Rename to...
12380 (alt_mon): This.
12381 (mon): Import from CLDR (genitive case).
12382 * localedata/locales/hsb_DE (mon): Rename to...
12383 (alt_mon): This.
12384 (mon): Import from CLDR (genitive case).
12385 * localedata/locales/wa_BE (mon): Rename to...
12386 (alt_mon): This.
12387 (mon): Add, fill with the proper genitive forms, but CLDR data
12388 is incomplete; completed according to the comments in this file.
12389 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12390
12391 * localedata/locales/wa_BE (country_name): Reword
12392 "Beljike" -> "Beldjike".
12393
12394 2018-06-11 Joseph Myers <joseph@codesourcery.com>
12395
12396 [BZ #23272]
12397 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12398 cases of non-finite arguments.
12399 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12400
12401 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
12402
12403 [BZ #23174]
12404 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12405
12406 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12407
12408 [BZ #23264]
12409 * include/unistd.h (__execvpex): New prototype.
12410 * posix/Makefile (tests): Add tst-spawn4.
12411 (tests-internal): Add tst-spawn4-compat.
12412 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
12413 * posix/tst-spawn4-compat.c: New file.
12414 * posix/tst-spawn4.c: Likewise.
12415 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
12416 binaries as shell scripts.
12417 * sysdeps/posix/spawni.c (__spawni): Likewise.
12418
12419 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
12420
12421 [BZ #23145]
12422 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
12423 ($(all-built-dso:=.dynsym): New target.
12424 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
12425 ($(objpfx)check-initfini.out): New target.
12426 (generated): Add check-initfini.out.
12427 * scripts/check-initfini.awk: New file.
12428 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
12429 (_fini): Likewise.
12430 * sysdeps/alpha/crti.S (_init): Mark as hidden.
12431 (_fini): Likewise.
12432 * sysdeps/arm/crti.S (_init): Mark as hidden.
12433 (_fini): Likewise.
12434 * sysdeps/hppa/crti.S (_init): Mark as hidden.
12435 (_fini): Likewise.
12436 * sysdeps/i386/crti.S (_init): Mark as hidden.
12437 (_fini): Likewise.
12438 * sysdeps/ia64/crti.S (_init): Mark as hidden.
12439 (_fini): Likewise.
12440 * sysdeps/m68k/crti.S (_init): Mark as hidden.
12441 (_fini): Likewise.
12442 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
12443 (_fini): Likewise.
12444 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
12445 (_fini): Likewise.
12446 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
12447 (_fini): Likewise.
12448 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
12449 (_fini): Likewise.
12450 * sysdeps/nios2/crti.S (_init): Mark as hidden.
12451 (_fini): Likewise.
12452 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
12453 (_fini): Likewise.
12454 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
12455 (_fini): Likewise.
12456 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
12457 (_fini): Likewise.
12458 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
12459 (_fini): Likewise.
12460 * sysdeps/sh/crti.S (_init): Mark as hidden.
12461 (_fini): Likewise.
12462 * sysdeps/sparc/crti.S (_init): Mark as hidden.
12463 (_fini): Likewise.
12464 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
12465 (_fini): Likewise.
12466
12467 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12468
12469 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
12470 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
12471 and TF redirection to KFtype and KF only when the default
12472 long double type is not the IEEE 128-bit floating point type.
12473
12474 2018-06-05 Joseph Myers <joseph@codesourcery.com>
12475
12476 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
12477 macro.
12478 (HWCAP_USCAT): Likewise.
12479 (HWCAP_ILRCPC): Likewise.
12480 (HWCAP_FLAGM): Likewise.
12481 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12482 Increase to 28.
12483 (_dl_aarch64_cap_flags): Add new flag names.
12484
12485 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12486 (MAP_FIXED_NOREPLACE): New macro.
12487 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
12488 (MAP_FIXED_NOREPLACE): Likewise.
12489 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
12490 (MAP_FIXED_NOREPLACE): Likewise.
12491 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12492 (MAP_FIXED_NOREPLACE): Likewise.
12493 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12494 (MAP_FIXED_NOREPLACE): Likewise.
12495 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12496 (MAP_FIXED_NOREPLACE): Likewise.
12497 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12498 (MAP_FIXED_NOREPLACE): Likewise.
12499 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
12500 (MAP_FIXED_NOREPLACE): Likewise.
12501 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12502 (MAP_FIXED_NOREPLACE): Likewise.
12503 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
12504 (MAP_FIXED_NOREPLACE): Likewise.
12505 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12506 (MAP_FIXED_NOREPLACE): Likewise.
12507 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12508 (MAP_FIXED_NOREPLACE): Likewise.
12509 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
12510 (MAP_FIXED_NOREPLACE): Likewise.
12511 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
12512 (MAP_FIXED_NOREPLACE): Likewise.
12513 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
12514 (MAP_FIXED_NOREPLACE): Likewise.
12515
12516 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12517 version to 4.17.
12518
12519 2018-06-04 Joseph Myers <joseph@codesourcery.com>
12520
12521 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12522 version to 4.17
12523
12524 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12525
12526 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
12527 int.
12528 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
12529
12530 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12531
12532 * benchtests/scripts/compare_string.py: (process_results) Catch
12533 exception in non-existent base_func and catch exception in
12534 non-existent attribute.
12535 (parse_file) Catch exception if input file does not exist.
12536
12537 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12538
12539 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
12540 options to avoid diff calculation and omit header, respectively.
12541 (main): process --no-diff and --no-header
12542
12543 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12544 H.J. Lu <hongjiu.lu@intel.com>
12545
12546 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12547 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
12548 wcsncmp-sse2.
12549 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12550 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
12551 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
12552 and __wcsncmp_sse2.
12553 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
12554 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
12555 AVX unaligned load is fast and vzeroupper is preferred.
12556 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
12557 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
12558 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
12559 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
12560 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
12561 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
12562 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
12563 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
12564 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
12565 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
12566 is undefined.
12567
12568 2018-06-01 Florian Weimer <fweimer@redhat.com>
12569
12570 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
12571 configuring with --disable-multi-arch, building with
12572 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
12573 Haswell-era CPU.
12574
12575 2018-06-01 Florian Weimer <fweimer@redhat.com>
12576
12577 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
12578 results from building with “-march=x86-64 -mtune=generic
12579 -mfpmath=sse” and running on a Haswell-era CPU.
12580
12581 2018-06-01 Joseph Myers <joseph@codesourcery.com>
12582
12583 [BZ #18473]
12584 * soft-fp/sqrttf2.c: Remove file.
12585 * soft-fp/sqrtdf2.c: Move to ....
12586 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
12587 <shlib-compat.h>.
12588 (__sqrtdf2): Make conditional on
12589 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12590 symbol.
12591 * soft-fp/sqrtsf2.c: Move to ....
12592 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
12593 <shlib-compat.h>.
12594 (__sqrtsf2): Make conditional on
12595 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12596 symbol.
12597 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
12598 (gcc-double-routines): Remove sqrtdf2.
12599 (gcc-quad-routines): Remove sqrttf2.
12600 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12601 Do not filter out sqrtsf2 and sqrtdf2.
12602 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
12603 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
12604
12605 2018-06-01 Florian Weimer <fweimer@redhat.com>
12606
12607 * sysdeps/generic/libcidn.abilist: Remove file.
12608
12609 2018-06-01 Florian Weimer <fweimer@redhat.com>
12610
12611 [BZ #23236]
12612 * libio/strfile.h (struct _IO_str_fields): Rename members to
12613 discourage their use and add comment.
12614 (_IO_STR_DYNAMIC): Remove unused macro.
12615 * libio/strops.c (_IO_str_init_static_internal): Do not use
12616 callback pointers. Call malloc and free.
12617 (_IO_str_overflow): Do not use callback pointers. Call malloc
12618 and free.
12619 (enlarge_userbuf): Likewise.
12620 (_IO_str_finish): Call free.
12621 * libio/wstrops.c (_IO_wstr_init_static): Initialize
12622 _allocate_buffer_unused.
12623 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
12624 and free.
12625 (enlarge_userbuf): Likewise.
12626 (_IO_wstr_finish): Call free.
12627 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
12628 _allocate_buffer_unused, _free_buffer_unused.
12629 * libio/memstream.c (__open_memstream): Likewise.
12630 * libio/vasprintf.c (_IO_vasprintf): Likewise.
12631 * libio/wmemstream.c (open_wmemstream): Likewise.
12632
12633 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
12634
12635 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
12636 AMD Ryzen 7 1800X.
12637
12638 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12639
12640 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
12641 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
12642 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
12643 New file.
12644 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
12645 Likewise.
12646 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
12647
12648 2018-05-29 Florian Weimer <fweimer@redhat.com>
12649
12650 * support/Makefile (libsupport-routines): Add
12651 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
12652 xpthread_barrierattr_setpshared.
12653 * support/xpthread_barrierattr_destroy.c: New file.
12654 * support/xpthread_barrierattr_init.c: Likewise.
12655 * support/xpthread_barrierattr_setpshared.c: Likewise.
12656
12657 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
12658
12659 [BZ #23206]
12660 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
12661 _r_debug and update DT_DEBUG for debugger.
12662
12663 2018-05-29 Florian Weimer <fweimer@redhat.com>
12664
12665 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
12666 (tst-strtod5i.out): Likewise.
12667
12668 2018-05-25 Joseph Myers <joseph@codesourcery.com>
12669
12670 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
12671 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
12672 (sparc64-quad-routines): New variable. Moved from ....
12673 [$(subdir) = soft-fp] (sysdep_routines): Add
12674 $(sparc64-quad-routines). Moved from ....
12675 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
12676 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
12677 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
12678 moved from ....
12679 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
12680 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
12681 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
12682 * sysdeps/sparc/sparc64/qp_add.c: ... here.
12683 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
12684 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
12685 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
12686 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
12687 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
12688 * sysdeps/sparc/sparc64/qp_div.c: ... here.
12689 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
12690 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
12691 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
12692 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
12693 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
12694 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
12695 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
12696 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
12697 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
12698 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
12699 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
12700 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
12701 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
12702 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
12703 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
12704 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
12705 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
12706 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
12707 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
12708 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
12709 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
12710 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
12711 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
12712 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
12713 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
12714 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
12715 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
12716 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
12717 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
12718 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
12719 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
12720 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
12721 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
12722 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
12723 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
12724 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
12725 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
12726 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
12727 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
12728 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
12729 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
12730 * sysdeps/sparc/sparc64/qp_util.c: ... here.
12731 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
12732 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
12733 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
12734 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
12735 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
12736 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
12737
12738 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
12739 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
12740 (sparc32-quad-routines): New variable. Moved from ....
12741 [$(subdir) = soft-fp] (sysdep_routines): Add
12742 $(sparc32-quad-routines). Moved from ....
12743 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
12744 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
12745 moved from ....
12746 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
12747 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
12748 * sysdeps/sparc/sparc32/q_add.c: ... here.
12749 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
12750 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
12751 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
12752 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
12753 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
12754 * sysdeps/sparc/sparc32/q_div.c: ... here.
12755 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
12756 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
12757 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
12758 * sysdeps/sparc/sparc32/q_feq.c: ... here.
12759 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
12760 * sysdeps/sparc/sparc32/q_fge.c: ... here.
12761 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
12762 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
12763 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
12764 * sysdeps/sparc/sparc32/q_fle.c: ... here.
12765 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
12766 * sysdeps/sparc/sparc32/q_flt.c: ... here.
12767 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
12768 * sysdeps/sparc/sparc32/q_fne.c: ... here.
12769 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
12770 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
12771 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
12772 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
12773 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
12774 * sysdeps/sparc/sparc32/q_mul.c: ... here.
12775 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
12776 * sysdeps/sparc/sparc32/q_neg.c: ... here.
12777 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
12778 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
12779 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
12780 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
12781 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
12782 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
12783 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
12784 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
12785 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
12786 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
12787 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
12788 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
12789 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
12790 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
12791 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
12792 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
12793 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
12794 * sysdeps/sparc/sparc32/q_sub.c: ... here.
12795 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
12796 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
12797 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
12798 * sysdeps/sparc/sparc32/q_util.c: ... here.
12799 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
12800 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
12801 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
12802 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
12803
12804 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12805 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12806
12807 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
12808 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
12809 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
12810 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
12811
12812 2018-05-24 Joseph Myers <joseph@codesourcery.com>
12813
12814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
12815 powerpc/soft-fp.
12816 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12817 Likewise.
12818 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
12819 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
12820
12821 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12822
12823 [BZ #23171]
12824 * math/math.h [C++] (iseqsig): Fix parameter type for the long
12825 double version.
12826
12827 2018-05-23 Joseph Myers <joseph@codesourcery.com>
12828
12829 * sysdeps/sh/Implies: Remove sh/soft-fp.
12830 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
12831 * sysdeps/sh/sfp-machine.h: ... here.
12832
12833 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
12834
12835 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12836 (__mempcpy_erms): Skip zero length.
12837 (__memmove_erms): Likewise.
12838 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12839 (__memset_erms): Likewise.
12840
12841 2018-05-23 Joseph Myers <joseph@codesourcery.com>
12842
12843 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
12844 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12845 Add functions moved from ....
12846 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
12847 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
12848 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
12849 from ....
12850 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
12851 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
12852 * sysdeps/alpha/e_sqrtl.c: ... here.
12853 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
12854 * sysdeps/alpha/local-soft-fp.h: ... here.
12855 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
12856 * sysdeps/alpha/ots_add.c: ... here.
12857 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
12858 * sysdeps/alpha/ots_cmp.c: ... here.
12859 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
12860 * sysdeps/alpha/ots_cmpe.c: ... here.
12861 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
12862 * sysdeps/alpha/ots_cvtqux.c: ... here.
12863 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
12864 * sysdeps/alpha/ots_cvtqx.c: ... here.
12865 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
12866 * sysdeps/alpha/ots_cvttx.c: ... here.
12867 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
12868 * sysdeps/alpha/ots_cvtxq.c: ... here.
12869 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
12870 * sysdeps/alpha/ots_cvtxt.c: ... here.
12871 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
12872 * sysdeps/alpha/ots_div.c: ... here.
12873 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
12874 * sysdeps/alpha/ots_mul.c: ... here.
12875 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
12876 * sysdeps/alpha/ots_nintxq.c: ... here.
12877 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
12878 * sysdeps/alpha/ots_sub.c: ... here.
12879 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
12880 * sysdeps/alpha/sfp-machine.h: ... here.
12881
12882 2018-05-23 Florian Weimer <fweimer@redhat.com>
12883
12884 [BZ #19728]
12885 [BZ #19729]
12886 [BZ #22247]
12887 CVE-2016-6261
12888 CVE-2016-6263
12889 CVE-2017-14062
12890 Switch to extern IDNA implementation (libidn2).
12891 * libidn: Remove subdirectory.
12892 * LICENSES: Do not mention licensing conditions for the removed
12893 libidn code.
12894 * config.h.in (HAVE_LIBIDN): Remove.
12895 * include/dlfcn.h (__libc_dlopen): Update comment.
12896 * include/idna.h: Remove file.
12897 * inet/Makefile (routines): Add idna.
12898 (tests-static, tests-internal): Add tst-idna_name_classify.
12899 (LOCALES): Generate locales for tests.
12900 (tst-idna_name_classify.out): Depend on generated locales.
12901 * inet/idna_name_classify.c: New file.
12902 * inet/tst-idna_name_classify.c: Likewise.
12903 * inet/net-internal.h (__idna_to_dns_encoding)
12904 (__idna_from_dns_encoding): Declare.
12905 * inet/net-internal.h (enum idna_name_classification): Define.
12906 (__idna_name_classify): Declare.
12907 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
12908 __idna_from_dns_encoding.
12909 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
12910 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
12911 name as a fallback in case of encoding errors.
12912 (getnameinfo): Use DEPRECATED_NI_IDN.
12913 * inet/idna.c: New file.
12914 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
12915 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
12916 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
12917 (modules-names): Add tst-no-libidn2.
12918 (extra-test-objs): Add tst-no-libidn2.os.
12919 (LDFLAGS-tst-no-libidn2.so): Set soname.
12920 (LOCALES): Set, and generate locales.
12921 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
12922 (tst-resolv-ai_idn-latin1): Likewise.
12923 (tst-resolv-ai_idn-nolibidn2): Likewise.
12924 (tst-resolv-ai_idn.out): Depend on locales.
12925 (tst-resolv-ai_idn-latin1.out): Depend on locales.
12926 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
12927 tst-no-libidn2.so.
12928 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
12929 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
12930 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
12931 * resolv/tst-resolv-ai_idn.c: New file.
12932 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
12933 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
12934 * resolv/tst-no-libidn2.c: Likewise.
12935 * support/support_format_addrinfo.c (format_ai_flags): Do not
12936 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
12937 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
12938 (gaih_inet): Call __idna_to_dns_encoding and
12939 __idna_from_dns_encoding, and use the original (punycode) name if
12940 __idna_from_dns_encoding fails due to an encoding error.
12941 (getaddrinfo): Use DEPRECATED_AI_IDN.
12942 * sysdeps/unix/inet/Subdirs (libidn): Remove.
12943 * sysdeps/unix/inet/configure: Remove file.
12944 * sysdeps/unix/inet/configure.ac: Likewise.
12945
12946 2018-05-23 Florian Weimer <fweimer@redhat.com>
12947
12948 Implement allocate_once.
12949 * include/allocate_once.h: New file.
12950 * misc/allocate_once.c: Likewise.
12951 * misc/tst-allocate_once.c: Likewise.
12952 * misc/Makefile (routines): Add allocate_once.
12953 (tests-internal): Add tst-allocate_once.
12954 (generated): Add tst-allocate_once.mtrace,
12955 tst-allocate_once-mem.out.
12956 (tests-special): Add tst-allocate_once-mem.out.
12957 (tst-allocate_once-ENV): Set MALLOC_TRACE.
12958 (tst-allocate_once-mem.out): Call mtrace.
12959 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
12960
12961 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
12962
12963 [BZ #23196]
12964 * string/test-memcpy.c (do_test1): New function.
12965 (test_main): Call it.
12966
12967 2018-05-23 Andreas Schwab <schwab@suse.de>
12968
12969 [BZ #23196]
12970 CVE-2018-11237
12971 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
12972 (L(preloop_large)): Save initial destination pointer in %r11 and
12973 use it instead of %rax after the loop.
12974 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
12975
12976 2018-05-22 Joseph Myers <joseph@codesourcery.com>
12977
12978 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
12979 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
12980 -I../soft-fp. Moved from ....
12981 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
12982 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
12983 * sysdeps/aarch64/e_sqrtl.c: ... here.
12984 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
12985 * sysdeps/aarch64/sfp-machine.h: ... here.
12986
12987 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
12988 -Wmaybe-uninitialized around access to fq[0].
12989 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12990 Likewise.
12991
12992 [BZ #18471]
12993 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
12994 aliases for non-libc case of versioned symbols.
12995 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
12996 (llseek): Define as compat symbol if
12997 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
12998 with link warning.
12999 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13000 Make into a compat symbol, disabled for minimum symbol version
13001 GLIBC_2.28 and later.
13002 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13003
13004 2018-05-22 Florian Weimer <fweimer@redhat.com>
13005
13006 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13007 not add -mpreferred-stack-boundary=4.
13008 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13009 (stack-align-test-flags): Likewise.
13010 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13011 Likewise.
13012 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13013 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13014 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13015 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13016 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13017 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13018 (CFLAGS-tst-align2.c): Likewise.
13019
13020 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13021
13022 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13023 (index_arch_Prefer_FSRM): Likewise.
13024 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13025 Also check Prefer_FSRM.
13026 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13027 Also return OPTIMIZE (erms) for Prefer_FSRM.
13028
13029 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13030
13031 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13032 (index_cpu_FSRM): Likewise.
13033 (reg_FSRM): Likewise.
13034
13035 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13036
13037 * math/gen-tgmath-tests.py: Import sys.
13038 (Tests.__init__): Initialize macros_seen.
13039 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13040 if requested to do so for this macro.
13041 (Tests.add_all_tests): Take argument for macro for which to
13042 generate tests.
13043 (Tests.check_macro_list): New function.
13044 (main): Handle check-list argument and argument specifying macro
13045 for which to generate tests.
13046 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13047 [PYTHON] (tgmath3-macro-tests): Likewise.
13048 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13049 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13050 not test-tgmath3.c.
13051 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13052 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13053 to CFLAGS.
13054 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13055 [PYTHON] ($(foreach
13056 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13057 rule.
13058 [PYTHON] (tests-special): Add
13059 $(objpfx)test-tgmath3-macro-list.out.
13060 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13061
13062 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13063 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13064 later.
13065
13066 [BZ #22639]
13067 * time/tzset.c (SECSPERDAY): Cast to time_t.
13068 * time/tst-y2039.c: New file.
13069 * time/Makefile (tests): Add tst-y2039.
13070
13071 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13072
13073 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13074 (PREFETCH_ONE_SET): Remove duplicate line.
13075
13076 2018-05-17 Florian Weimer <fweimer@redhat.com>
13077
13078 * sysdeps/generic/math-type-macros-double.h: Include
13079 <math-nan-payload-double.h> after <libm-alias-double.h>.
13080 * sysdeps/generic/math-type-macros-float.h: Include
13081 <math-nan-payload-float.h> after <libm-alias-float.h>.
13082 * sysdeps/generic/math-type-macros-float128.h: Include
13083 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13084 * sysdeps/generic/math-type-macros-ldouble.h: Include
13085 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13086
13087 2018-05-17 Andreas Schwab <schwab@suse.de>
13088
13089 * resolv/res_send.c (__res_context_send): Don't set errno when
13090 returing error after malloc failure.
13091
13092 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13093
13094 * nptl/allocatestack.c (allocate_stack): Remove the
13095 !__ASSUME_PRIVATE_FUTEX paths.
13096 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13097 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13098 Likewise.
13099 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13100 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13101 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13102 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13103 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13104 !__ASSUME_PRIVATE_FUTEX path.
13105 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13106 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13107 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13108 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13109 !__ASSUME_PRIVATE_FUTEX macros.
13110 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13111 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13112 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13113 * sysdeps/unix/sysv/linux/kernel-features.h
13114 (__ASSUME_PRIVATE_FUTEX): Removed.
13115
13116 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13117
13118 * math/Makefile (libm-narrow-fns): Add div.
13119 (libm-test-funcs-narrow): Likewise.
13120 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13121 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13122 * math/gen-auto-libm-tests.c (test_functions): Add div.
13123 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13124 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13125 (NARROW_DIV_TRIVIAL): Likewise.
13126 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13127 macro.
13128 (__ddivl): Likewise.
13129 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13130 ddiv.
13131 (CFLAGS-nldbl-ddiv.c): New variable.
13132 (CFLAGS-nldbl-fdiv.c): Likewise.
13133 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13134 __nldbl_ddivl.
13135 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13136 prototype.
13137 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13138 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13139 * math/auto-libm-test-in: Add tests of div.
13140 * math/auto-libm-test-out-narrow-div: New generated file.
13141 * math/libm-test-narrow-div.inc: New file.
13142 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13143 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13144 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13145 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13146 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13147 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13148 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13149 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13150 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13151 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13152 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13153 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13154 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13155 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13156 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13157 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13158 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13159 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13160 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13161 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13162 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13163 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13164 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13165 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13166 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13167 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13168 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13169 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13170 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13171 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13172 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13173 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13174 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13175 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13176 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13178 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13179 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13180 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13181 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13182 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13183 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13184 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13185 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13186
13187 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13188
13189 [BZ #23178]
13190 * nscd/nscd-client.h (sendfileall): Remove prototype.
13191 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13192 (handle_request): Use writeall instead of sendfileall.
13193 * nscd/aicache.c (addhstaiX): Likewise.
13194 * nscd/grpcache.c (cache_addgr): Likewise.
13195 * nscd/hstcache.c (cache_addhst): Likewise.
13196 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13197 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13198 * nscd/pwdcache.c (cache_addpw): Likewise.
13199 * nscd/servicescache.c (cache_addserv): Likewise.
13200 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13201 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13202 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13203 Remove define.
13204
13205 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13206
13207 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13208 Include <string/strncat.c>.
13209 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13210 alias.
13211 (__GI___strncat): New hidden alias.
13212
13213 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13214
13215 * sysdeps/mips/mips32/libm-test-ulps: Update.
13216 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13217
13218 2018-05-16 Florian Weimer <fweimer@redhat.com>
13219
13220 * support/Makefile (libsupport-routines): Add support_quote_blob,
13221 support_test_compare_blob.
13222 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13223 * support/check.h (TEST_COMPARE_BLOB): Define.
13224 (support_test_compare_blob): Declare.
13225 * support/support.h (support_quote_blob): Declare.
13226 * support/support_quote_blob.c: New file.
13227 * support/support_test_compare_blob.c: Likewise.
13228 * support/tst-support_quote_blob.c: Likewise.
13229 * support/tst-test_compare_blob.c: Likewise.
13230
13231 2018-05-16 Florian Weimer <fweimer@redhat.com>
13232
13233 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13234 of <strtod_nan_double.h>.
13235 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13236 instead of SET_MANTISSA.
13237 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13238 of include <strtod_nan_float.h>.
13239 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13240 instead of <strtod_nan_ldouble.h>.
13241 * stdlib/strtod_nan_double.h: Move to ...
13242 * sysdeps/generic/math-nan-payload-double.h: ... here.
13243 (FLOAT): Remove definition.
13244 (SET_MANTISSA): Rename to ...
13245 (SET_NAN_PAYLOAD): ... this.
13246 * stdlib/strtod_nan_float.h: Move to ...
13247 * sysdeps/generic/math-nan-payload-float.h: ... here.
13248 (FLOAT): Remove definition.
13249 (SET_MANTISSA): Rename to ...
13250 (SET_NAN_PAYLOAD): ... this.
13251 * sysdeps/generic/math-type-macros-double.h: Include
13252 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13253 instead of <math-svid-compat.h>.
13254 * sysdeps/generic/math-type-macros-float.h: Include
13255 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13256 instead of <math-svid-compat.h>.
13257 * sysdeps/generic/math-type-macros-float128.h: Include
13258 <math-nan-payload-float128.h>.
13259 * sysdeps/generic/math-type-macros-ldouble.h: Include
13260 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13261 instead of <math-svid-compat.h>.
13262 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13263 check for definition.
13264 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13265 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13266 Include <ieee754_float128.h>.
13267 (FLOAT): Remove definition.
13268 (SET_MANTISSA): Rename to ...
13269 (SET_NAN_PAYLOAD): ... this.
13270 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13271 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13272 Do not include <float128_private.h>.
13273 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13274 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13275 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13276 (FLOAT): Remove definition.
13277 (SET_MANTISSA): Rename to ...
13278 (SET_NAN_PAYLOAD): ... this.
13279 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13280 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13281 (FLOAT): Remove definition.
13282 (SET_MANTISSA): Rename to ...
13283 (SET_NAN_PAYLOAD): ... this.
13284 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13285 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13286 (FLOAT): Remove definition.
13287 (SET_MANTISSA): Rename to ...
13288 (SET_NAN_PAYLOAD): ... this.
13289 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13290 of "../stdlib/strtod_nan_double.h".
13291 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13292 of "../stdlib/strtod_nan_float.h".
13293 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13294 instead of "../stdlib/strtod_nan_ldouble.h".
13295 * manual/arith.texi (Parsing of Floats): Adjust comment.
13296
13297 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13298
13299 * math/Makefile (libm-narrow-fns): Add mul.
13300 (libm-test-funcs-narrow): Likewise.
13301 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13302 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13303 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13304 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13305 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13306 (NARROW_MUL_TRIVIAL): Likewise.
13307 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13308 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13309 macro.
13310 (__dmull): Likewise.
13311 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13312 dmul.
13313 (CFLAGS-nldbl-dmul.c): New variable.
13314 (CFLAGS-nldbl-fmul.c): Likewise.
13315 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13316 __nldbl_dmull.
13317 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13318 prototype.
13319 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13320 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13321 * math/auto-libm-test-in: Add tests of mul.
13322 * math/auto-libm-test-out-narrow-mul: New generated file.
13323 * math/libm-test-narrow-mul.inc: New file.
13324 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13325 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13326 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13327 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13328 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13329 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13330 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13331 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13332 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13333 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13334 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13335 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13336 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13337 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13338 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13339 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13340 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13341 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13342 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13343 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13344 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13345 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13346 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13347 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13348 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13349 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13350 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13351 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13352 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13353 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13354 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13355 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13356 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13357 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13358 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13360 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13361 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13362 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13363 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13364 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13365 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13366 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13367 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13368
13369 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13370
13371 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13372 with *%eax in call.
13373
13374 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13375
13376 * sysdeps/i386/ldsodefs.h: Removed.
13377 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13378 * sysdeps/x86/ldsodefs.h: This.
13379 (La_i86_regs): New.
13380 (La_i86_retval): Likewise.
13381 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13382 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13383
13384 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13385
13386 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13387 unnecessary testl.
13388
13389 2018-05-13 Alan Modra <amodra@gmail.com>
13390
13391 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13392 R_PARISC_TLS_DTPOFF32 reloc addend.
13393
13394 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13395
13396 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13397 * math/math.h: Restrict the prototype definition for the functions
13398 issignaling(_Float128) and iszero(_Float128); and template
13399 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13400 __HAVE_FLOAT128_UNLIKE_LDBL.
13401 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13402 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13403 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13404 __f128() constants; define the type _Float128 as long double;
13405 and reuse long double in __CFLOAT128.
13406
13407 2018-05-11 Joseph Myers <joseph@codesourcery.com>
13408
13409 * sysdeps/generic/math_private.h: Do not include
13410 <math-barriers.h>.
13411 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13412 <math_private.h>.
13413 * math/fromfp.h: Include <math-barriers.h>.
13414 * math/math-narrow.h: Likewise.
13415 * math/s_nextafter.c: Likewise.
13416 * math/s_nexttowardf.c: Likewise.
13417 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
13418 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
13419 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
13420 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
13421 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13422 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13423 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13424 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13425 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13426 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13427 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13428 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13429 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13430 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13431 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13432 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13433 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13434 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13435 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13436 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13437 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13438 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13439 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13440 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13441 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13442 * sysdeps/ieee754/k_standardl.c: Likewise.
13443 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13444 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13445 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13446 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13447 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13448 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13449 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13450 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13451 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13452 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13453 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13454 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13455 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13456 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13457 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13458 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13459 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13460 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13461 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13462 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13463 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
13464 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
13465
13466 2018-05-11 Florian Weimer <fweimer@redhat.com>
13467
13468 Use 64-bit epoch values in the time zone file parser.
13469 * include/time.h (internal_time_t): Define.
13470 (__tzfile_compute): Use it.
13471 * time/tzfile.c (struct leap): Use internal_time_t for epoch
13472 member.
13473 (transitions): Switch to internal_time_t.
13474 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
13475 types.
13476 (__tzfile_compute): Use internal_time_t for timer argument. Check
13477 for truncation before calling __offtime.
13478
13479 2018-05-11 Florian Weimer <fweimer@redhat.com>
13480
13481 [BZ #23166]
13482 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
13483 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
13484 Likewise.
13485 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
13486 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
13487 export without --enable-obsolete-rpc.
13488 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
13489 symbol. This should not have been exported, ever.
13490
13491 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
13492
13493 [BZ #23152]
13494 * localedata/locales/gd_GB (abmon): Fix typo in May:
13495 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
13496
13497 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13498
13499 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13500 Use multiple registers to copy data in loop tail.
13501
13502 * sysdeps/aarch64/multiarch/memmove_falkor.S
13503 (__memmove_falkor): Use multiple registers to move data in
13504 loop tail.
13505
13506 2018-05-10 Joseph Myers <joseph@codesourcery.com>
13507
13508 * math/math-underflow.h: New file.
13509 * sysdeps/generic/math_private.h: Do not include <float.h>.
13510 (fabs_tg): Remove macro. Moved to math-underflow.h.
13511 (min_of_type_f): Likewise.
13512 (min_of_type_): Likewise.
13513 (min_of_type_l): Likewise.
13514 (min_of_type_f128): Likewise.
13515 (min_of_type): Likewise.
13516 (math_check_force_underflow): Likewise.
13517 (math_check_force_underflow_nonneg): Likewise.
13518 (math_check_force_underflow_complex): Likewise.
13519 * math/e_exp2_template.c: Include <math-underflow.h>.
13520 * math/k_casinh_template.c: Likewise.
13521 * math/s_catan_template.c: Likewise.
13522 * math/s_catanh_template.c: Likewise.
13523 * math/s_ccosh_template.c: Likewise.
13524 * math/s_cexp_template.c: Likewise.
13525 * math/s_clog10_template.c: Likewise.
13526 * math/s_clog_template.c: Likewise.
13527 * math/s_csin_template.c: Likewise.
13528 * math/s_csinh_template.c: Likewise.
13529 * math/s_csqrt_template.c: Likewise.
13530 * math/s_ctan_template.c: Likewise.
13531 * math/s_ctanh_template.c: Likewise.
13532 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13533 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13534 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13535 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13536 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13537 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13538 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13539 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13540 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13541 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13542 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13543 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13544 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13545 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13546 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13547 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13548 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13549 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13550 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13551 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13552 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13553 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13554 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13555 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13556 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13557 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13558 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13559 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13560 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13561 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13562 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13563 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13564 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13565 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13566 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13567 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13568 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13569 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13570 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13571 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13572 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13573 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13574 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13575 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13576 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13577 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13578 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13579 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13580 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13581 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13582 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13583 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13584 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13585 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13586 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13587 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13588 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13589 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13590 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13591 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13592 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13593 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13594 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13595 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13596 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13597 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13598 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13599 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13600 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13601 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13602 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13603 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13604 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
13605 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
13606 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13607 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13608 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13609 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13610 * sysdeps/x86/fpu/powl_helper.c: Likewise.
13611 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
13612 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
13613 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
13614 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
13615 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
13616
13617 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13618
13619 * sysdeps/generic/math-barriers.h: New file.
13620 * sysdeps/generic/math_private.h [!math_opt_barrier]
13621 (math_opt_barrier): Move to math-barriers.h.
13622 [!math_opt_barrier] (math_force_eval): Likewise.
13623 * sysdeps/aarch64/fpu/math-barriers.h: New file.
13624 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
13625 math-barriers.h.
13626 (math_force_eval): Likewise.
13627 * sysdeps/alpha/fpu/math-barriers.h: New file.
13628 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
13629 math-barriers.h.
13630 (math_force_eval): Likewise.
13631 * sysdeps/x86/fpu/math-barriers.h: New file.
13632 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
13633 math-barriers.h.
13634 (math_force_eval): Likewise.
13635 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
13636 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
13637 multiple-include guard for rename.
13638 * sysdeps/powerpc/fpu/math-barriers.h: New file.
13639 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
13640 math-barriers.h.
13641 (math_force_eval): Likewise.
13642
13643 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
13644
13645 [BZ #22786]
13646 CVE-2018-11236
13647 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
13648 computation.
13649 * stdlib/Makefile (test-bz22786): New test.
13650 * stdlib/test-bz22786.c: New test.
13651
13652 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13653
13654 * include/math-narrow-eval.h: New file. Contents moved from ....
13655 * sysdeps/generic/math_private.h: ... here.
13656 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
13657 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
13658 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
13659 * stdlib/strtod_l.c: Likewise.
13660 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
13661 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13662 * sysdeps/i386/fpu/s_fdim.c: Likewise.
13663 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13664 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13665 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13666 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13667 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13668 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13669 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
13670 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13671 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13672 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13673 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13674 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13675 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13676 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13677 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13678 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13679 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13680 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13681 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13682 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13683 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13684 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13685 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13686 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13687 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13688 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
13689
13690 2018-05-08 Andreas Schwab <schwab@suse.de>
13691
13692 * sysdeps/nptl/internaltypes.h: Fix comment.
13693
13694 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
13695
13696 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13697 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
13698 hidden.
13699
13700 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13701
13702 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
13703 of I into loop header.
13704 * benchtests/bench-memmove-walk.c
13705 (test_main): Likewise.
13706
13707 2018-05-07 Alexandre Oliva <oliva@gnu.org>
13708
13709 Revert:
13710 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13711 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13712
13713 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
13714
13715 [BZ #20419]
13716 * elf/dl-load.c (open_verify): Fix stack overflow.
13717 * elf/Makefile (tst-big-note): New test.
13718 * elf/tst-big-note-lib.S: New.
13719 * elf/tst-big-note.c: New.
13720
13721 2018-05-04 Joseph Myers <joseph@codesourcery.com>
13722
13723 * scripts/abilist.awk: Ignore absolute symbols.
13724 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
13725 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
13726 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
13727 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
13728 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
13729 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
13730 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13731 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
13732 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
13733 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
13734 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
13735 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
13736 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
13737 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
13738 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
13739 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
13740 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
13741 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
13742 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13743 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
13744 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
13745 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
13746 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
13747 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
13748 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
13749 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
13750 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
13751 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
13752 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13753 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
13754 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
13755 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13756 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
13757 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
13758 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
13759 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
13760 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
13761 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
13762 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
13763 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
13764 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
13765 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13766 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
13767 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
13768 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13769 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
13770 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
13771 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
13772 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
13773 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
13774 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
13775 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
13776 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
13777 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
13778 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13779 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
13780 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
13781 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13782 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
13783 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
13784 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
13785 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
13786 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
13787 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
13788 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
13789 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
13790 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
13791 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13792 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
13793 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
13794 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13795 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
13796 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
13797 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
13798 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
13799 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
13800 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
13801 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
13802 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
13803 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
13804 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13805 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
13806 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
13807 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13808 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
13809 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
13810 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
13811 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
13812 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
13813 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
13814 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
13815 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
13816 Likewise.
13817 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
13818 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13819 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
13820 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
13821 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13822 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
13823 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
13824 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
13825 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
13826 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
13827 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
13828 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
13829 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
13830 Likewise.
13831 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
13832 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13833 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
13834 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
13835 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13836 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
13837 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
13838 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
13839 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
13840 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
13841 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
13842 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
13843 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
13844 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
13845 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13846 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
13847 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
13848 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13849 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
13850 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
13851 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
13852 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
13853 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
13854 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
13855 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13856 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
13857 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
13858 Likewise.
13859 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
13860 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
13861 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
13862 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
13863 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13864 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
13865 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
13866 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
13867 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
13868 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
13869 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
13870 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
13871 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
13872 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
13873 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
13874 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
13875 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
13876 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
13877 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13878 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
13879 Likewise.
13880 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
13881 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
13882 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
13883 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13884 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
13885 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
13886 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
13887 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
13888 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
13889 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
13890 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13891 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
13892 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
13893 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13894 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
13895 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
13896 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
13897 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
13898 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13899 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
13900 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
13901 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13902 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
13903 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
13904 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
13905 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
13906 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
13907 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
13908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
13909 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
13911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
13912 Likewise.
13913 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
13914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
13915 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
13916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
13917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
13918 Likewise.
13919 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
13920 Likewise.
13921 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
13922 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
13923 Likewise.
13924 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
13925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13926 Likewise.
13927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13928 Likewise.
13929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
13930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
13931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
13932 Likewise.
13933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
13934 Likewise.
13935 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
13936 Likewise.
13937 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
13938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
13941 Likewise.
13942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
13943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
13944 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
13945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13946 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13947 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
13948 Likewise.
13949 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
13950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
13951 Likewise.
13952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
13953 Likewise.
13954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
13955 Likewise.
13956 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
13957 Likewise.
13958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
13959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
13960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
13961 Likewise.
13962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
13963 Likewise.
13964 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
13965 Likewise.
13966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
13967 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
13968 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
13969 Likewise.
13970 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
13971 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13972 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
13973 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
13974 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13975 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
13976 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
13977 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
13978 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
13979 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
13980 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
13981 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
13982 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
13983 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
13984 Likewise.
13985 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13986 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
13987 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
13988 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13989 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
13990 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
13991 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
13992 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
13993 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
13994 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
13995 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
13996 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
13997 Likewise.
13998 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13999 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14000 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14001 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14002 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14003 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14004 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14005 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14006 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14007 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14008 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14009 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14010 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14011 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14012 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14013 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14014 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14015 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14016 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14017 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14018 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14019 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14020 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14021 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14022 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14023 Likewise.
14024 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14025 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14026 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14027 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14028 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14029 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14030 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14031 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14032 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14033 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14034 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14035 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14036 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14037 Likewise.
14038 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14039 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14040 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14041 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14042 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14043 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14044 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14045 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14046 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14047 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14048 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14049 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14050 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14051 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14052 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14053 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14054 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14055 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14056 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14057 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14058 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14059 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14060 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14061 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14062 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14063 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14064 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14065 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14066 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14067 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14068 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14069 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14070 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14071 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14072 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14073 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14074 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14075 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14076
14077 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14078
14079 [BZ #23137]
14080 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14081 Use atomic_load_acquire to load __tid.
14082
14083 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14084
14085 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14086 Restore the pointer into %rdx, after syscall and use %rdx,
14087 instead of %rsi, to restore context.
14088
14089 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14090
14091 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14092 Pop the pointer into %rdx after syscall and use %rdx, instead
14093 of %rsi, to restore context.
14094
14095 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14096
14097 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14098 handlers after setjmp.
14099 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14100 defined.
14101 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14102 <libc-pointer-arith.h>.
14103 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14104 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14105 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14106 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14107 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14108 * sysdeps/x86/__longjmp_cancel.S: New file.
14109 * sysdeps/x86/longjmp.c: Likewise.
14110 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14111
14112 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14113
14114 * NEWS: Add ustat.h deprecation entry.
14115 * bits/ustat.h: Remove file.
14116 * misc/sys/ustat.h: Likewise.
14117 * misc/ustat.h: Likewise.
14118 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14119 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14120 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14121 compatibility mode.
14122 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14123 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14124 generic Linux implementation.
14125
14126 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14127
14128 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14129 * math/w_expl_compat.c: Likewise.
14130 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14131
14132 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14133
14134 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14135
14136 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14137
14138 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14139 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14140 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14141 Remove.
14142 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14144 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14145 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14146 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14147 and SYSCALL_LL64.
14148
14149 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14150
14151 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14152
14153 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14154 * math/w_asin_template.c: Likewise.
14155 * math/w_atanh_template.c: Likewise.
14156
14157 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14158
14159 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14160 to powerpc/powerpc64/be for big-endian.
14161 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14162 little-endian.
14163
14164 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14165 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14166 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14167 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14168 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14169 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14170 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14171 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14172 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14173 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14174 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14175 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14176 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14177 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14178 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14179 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14180 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14181 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14182 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14183 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14184 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14185 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14186 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14187 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14188 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14189 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14190 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14191 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14192 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14193 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14194 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14195 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14196
14197 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14198 adjusted to imply powerpc64 and older processors on powerpc64/be.
14199 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14200 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14201 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14202 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14203 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14204 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14205 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14206 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14207 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14208 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14209 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14210 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14211 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14212 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14213 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14214 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14215 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14216 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14217 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14218 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14219 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14220 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14221 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14222 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14223 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14224 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14225 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14226 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14227 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14228 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14229 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14230
14231 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14232 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14233 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14234 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14235
14236 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14237 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14238 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14239 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14240
14241 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14242 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14243 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14244 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14245 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14246 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14247 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14248 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14249 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14250 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14251 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14252
14253 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14254 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14255 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14256 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14257 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14258 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14259 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14260 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14261 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14262 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14263 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14264
14265 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14266 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14267 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14268 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14269 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14270 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14271 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14272 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14273 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14274 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14275 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14276 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14277
14278 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14279 and adjusted to imply olders processors.
14280 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14281 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14282 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14283 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14284 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14285 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14286 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14287 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14288 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14289 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14290 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14291
14292 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14293 powerpc64/le.
14294 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14295 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14296
14297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14298 powerpc64le.
14299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14301
14302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14303 powerpc64/be.
14304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14307
14308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14309 powerpc64 and adjusted.
14310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14313 Likewise.
14314
14315 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14316
14317 * sysdeps/tile: Remove.
14318 * sysdeps/unix/sysv/linux/tile: Likewise.
14319 * README (tilegx-*-linux-gnu): Remove from list of supported
14320 configurations.
14321 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14322 contribution of support for generic Linux kernel syscall
14323 interface.
14324 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14325 tilegx configurations.
14326 (Config.install_linux_headers): Do not handle tile.
14327 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14328 in comment.
14329 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14330 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14331 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14332 conditional undefine and redefine.
14333 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14334 in comment.
14335 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14336 conditional undefine and redefine.
14337
14338 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14339
14340 * signal/tst-sigaction.c: New file to test BZ #23069.
14341 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14342
14343 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14344
14345 [BZ #22766]
14346 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14347 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14348 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14349 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14350
14351 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14352
14353 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14354 _DIRENT_MATCHES_DIRENT64 is not defined.
14355 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14356 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14357 is defined.
14358 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14359 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14360
14361 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14362
14363 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14364 version to GCC 8 branch.
14365
14366 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14367
14368 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14369 (check_no_hidden): Use type of original function when declaring
14370 alias.
14371
14372 * sysdeps/unix/sysv/linux/sys/ptrace.h
14373 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14374 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14375 (struct __ptrace_seccomp_metadata): New type.
14376 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14377 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14378 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14379 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14380 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14381 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14382 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14383 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14384 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14385 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14386 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14387 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14388 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14389 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14390 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14391 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14392
14393 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14394
14395 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14396 defined.
14397 * dirent/versionsort.c (versionsort): Likewise.
14398 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14399 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14400 * dirent/versionsort64.c (versionsort64): Likewise.
14401 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14402 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14403 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14404 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14405 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14406 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14407 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14408 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14409 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14410 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
14413 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
14414 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
14415
14416 2018-04-23 Joseph Myers <joseph@codesourcery.com>
14417
14418 * elf/elf.h (NT_PPC_PKEY): New macro.
14419
14420 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
14421
14422 [BZ #23094]
14423 * localedata/locales/hr_HR: fix thousands_sep and
14424 mon_thousands_sep
14425
14426 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14427
14428 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
14429 (XTABS): Define to TAB3.
14430
14431 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14432
14433 * sysdeps/hppa/fpu/libm-test-ulps: Update.
14434
14435 * dirent/scandir-tail-common.c: New file.
14436 * dirent/scandir-tail.c: Use scandir-tail-common.c.
14437 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
14438 * dirent/scandir.c: Use scandir-tail-common.c.
14439 * dirent/scandirat.c: Likewise.
14440 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
14441 * dirent/scandir64.c (scandir64): Always build and alias to scandir
14442 if _DIRENT_MATCHES_DIRENT64 is defined.
14443 * dirent/scandirat64.c (scandirat64): Likewise.
14444 * include/dirent.h (__scandir_tail): Only define iff
14445 _DIRENT_MATCHES_DIRENT64 is not defined.
14446 (__scandir64_tail): Define regardless.
14447 (__scandirat, scandirat64): Remove libc_hidden_proto.
14448 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
14449 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
14450 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
14451 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
14452 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14453 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
14454 * sysdeps/unix/sysv/linux/scandir64.c: New file.
14455
14456 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14457
14458 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
14459 New macro.
14460 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14461 Increase to 24.
14462 (_dl_aarch64_cap_flags): Add asimdfhm.
14463
14464 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
14465
14466 * sysdeps/nios2/libm-test-ulps: Update.
14467
14468 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14469
14470 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
14471 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
14472
14473 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
14474 requirements.
14475 (_DIRENT_MATCHES_DIRENT64): Undef
14476 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
14477 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
14478 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
14479 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
14480 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
14481 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
14482 use getdents64 syscalls as base.
14483 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
14484 symbol if required.
14485 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
14486 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14487 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
14488 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
14489 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
14490 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
14491 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
14492 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
14493 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14494 (__get_clockfreq_via_proc_openprom): Use __getdents64.
14495 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
14496
14497 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14498
14499 * scripts/test_printers_common.py (init_test): Disable lock elision.
14500
14501 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14502
14503 * math/test-tgmath.c (count_double, count_float,
14504 count_ldouble, count_cdouble, count_cfloat,
14505 count_cldouble): Use volatile int.
14506
14507 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
14508
14509 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
14510 (conformtest-xfail-conds): Add i386-gnu.
14511 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
14512 i386-gnu.
14513 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
14514 ipc_perm.cuid, ipc_perm.cgid): Likewise.
14515 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
14516 msqid_ds.msg_lrpid): Likewise.
14517 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
14518 Likewise.
14519 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
14520 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
14521 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
14522 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
14523 unsigned int.
14524 (struct statvfs64): Likewise.
14525 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
14526 Likewise.
14527 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
14528 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
14529 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
14530 instead of wait_queue.
14531 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
14532 instead of vm_area_struct.
14533 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
14534 struct sched_param definition to it.
14535 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14536 * bits/types/struct_sched_param.h: New file.
14537 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
14538 <bits/types/struct_sched_param.h> instead of <sched.h>.
14539 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
14540 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
14541 generic version but include <bits/pthreadtypes.h> to make struct
14542 sigevent's sigev_notify_attributes field a pthread_attr_t*.
14543 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
14544 non-compliant.
14545 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
14546 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
14547 [__USE_XOPEN] (OFDEL): New macro.
14548 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
14549 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
14550 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
14551 prototypes.
14552 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
14553 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
14554 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
14555 non-compliant.
14556 * sysdeps/i386/sys/ucontext.h: Likewise.
14557 * sysdeps/m68k/sys/ucontext.h: Likewise.
14558 * sysdeps/mips/sys/ucontext.h: Likewise.
14559 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
14560 * sysdeps/mach/hurd/i386/Makefile
14561 (test-xfail-POSIX/fcntl.h/conform): Add.
14562 (test-xfail-POSIX/signal.h/conform): Add.
14563 (test-xfail-POSIX/semaphore.h/conform): Add.
14564 (test-xfail-POSIX/regex.h/conform): Add.
14565 (test-xfail-POSIX/aio.h/conform): Add.
14566 (test-xfail-POSIX/mqueue.h/conform): Add.
14567 (test-xfail-POSIX/sys/types.h/conform): Add.
14568 (test-xfail-UNIX98/fcntl.h/conform): Add.
14569 (test-xfail-UNIX98/netdb.h/conform): Add.
14570 (test-xfail-UNIX98/signal.h/conform): Add.
14571 (test-xfail-UNIX98/semaphore.h/conform): Add.
14572 (test-xfail-UNIX98/regex.h/conform): Add.
14573 (test-xfail-UNIX98/aio.h/conform): Add.
14574 (test-xfail-UNIX98/ftw.h/conform): Add.
14575 (test-xfail-UNIX98/mqueue.h/conform): Add.
14576 (test-xfail-UNIX98/netinet/in.h/conform): Add.
14577 (test-xfail-UNIX98/sys/wait.h/conform): Add.
14578 (test-xfail-UNIX98/sys/sem.h/conform): Add.
14579 (test-xfail-UNIX98/sys/uio.h/conform): Add.
14580 (test-xfail-UNIX98/sys/socket.h/conform): Add.
14581 (test-xfail-UNIX98/sys/types.h/conform): Add.
14582 (test-xfail-UNIX98/stdlib.h/conform): Add.
14583 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
14584 (test-xfail-POSIX2008/fcntl.h/conform): Add.
14585 (test-xfail-POSIX2008/netdb.h/conform): Add.
14586 (test-xfail-POSIX2008/signal.h/conform): Add.
14587 (test-xfail-POSIX2008/semaphore.h/conform): Add.
14588 (test-xfail-POSIX2008/regex.h/conform): Add.
14589 (test-xfail-POSIX2008/aio.h/conform): Add.
14590 (test-xfail-POSIX2008/mqueue.h/conform): Add.
14591 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
14592 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
14593 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
14594 (test-xfail-POSIX2008/sys/types.h/conform): Add.
14595 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
14596 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
14597 (test-xfail-XOPEN2K/netdb.h/conform): Add.
14598 (test-xfail-XOPEN2K/signal.h/conform): Add.
14599 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
14600 (test-xfail-XOPEN2K/regex.h/conform): Add.
14601 (test-xfail-XOPEN2K/aio.h/conform): Add.
14602 (test-xfail-XOPEN2K/ftw.h/conform): Add.
14603 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
14604 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
14605 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
14606 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
14607 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
14608 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
14609 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
14610 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
14611 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
14612 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
14613 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
14614 (test-xfail-XOPEN2K8/signal.h/conform): Add.
14615 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
14616 (test-xfail-XOPEN2K8/regex.h/conform): Add.
14617 (test-xfail-XOPEN2K8/aio.h/conform): Add.
14618 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
14619 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
14620 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
14621 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
14622 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
14623 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
14624 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
14625 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
14626 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
14627 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
14628 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
14629 i386-gnu.
14630 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
14631 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
14632
14633 2018-04-18 Joseph Myers <joseph@codesourcery.com>
14634
14635 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14636 --enable-obsolete for powerpc-linux-gnuspe.
14637
14638 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14639
14640 * conform/data/sys/un.h-data: Allow sun_ prefix.
14641 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
14642 prototypes.
14643 * sysdeps/mach/include/mach.h: Likewise.
14644 * sysdeps/mach/include/mach/mig_support.h: Likewise.
14645 * sysdeps/mach/include/mach_error.h: Likewise.
14646
14647 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14648
14649 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
14650 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
14651 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
14652 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
14653
14654 2018-04-16 Andreas Schwab <schwab@suse.de>
14655
14656 [BZ #19527]
14657 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
14658
14659 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14660
14661 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
14662 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
14663
14664 2018-04-12 DJ Delorie <dj@redhat.com>
14665
14666 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14667 version to 4.16.
14668
14669 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
14670
14671 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
14672 (struct kernel_sigaction): Use the same definition on 31bit as is used
14673 on 64bit.
14674
14675 2018-04-09 Florian Weimer <fweimer@redhat.com>
14676
14677 [BZ #23037]
14678 * resolv/res_send.c (send_dg): Use designated initializers instead
14679 of assignment to zero-initialize other fields of struct mmsghdr.
14680
14681 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14682
14683 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
14684 __READDIR_ALIAS): Undefine after usage.
14685 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
14686 __READDIR_R_ALIAS): Likewise.
14687 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
14688 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
14689 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
14690 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
14691 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
14692 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
14693 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14694 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14695 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
14696 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
14697 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
14698 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
14699 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
14700 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
14701 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
14702 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
14703 * sysdeps/unix/sysv/linux/readdir.c: New file.
14704 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
14705 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
14706 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
14707
14708 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
14709
14710 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
14711
14712 * manual/charset.texi (Converting a Character): Fix typo.
14713
14714 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14715
14716 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14717
14718 * sysdeps/arm/libm-test-ulps: Update.
14719
14720 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
14721 as base implementation.
14722 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
14723 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
14724 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14725 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14726 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
14727 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
14728 remove unrequired definitions and update comments.
14729 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
14730 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
14731 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
14732 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
14733 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
14734 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
14735 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
14736 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
14737 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
14738 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
14739 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
14740 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
14741 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
14742 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
14743 and RESET_SA_RESTORER hooks.
14744
14745 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
14746
14747 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14748
14749 2018-04-05 Florian Weimer <fweimer@redhat.com>
14750
14751 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
14752 integer overflow, memory leak on error, and indeterminate errno
14753 value. Add a null wide character to terminate the result string.
14754 * manual/charset.texi (Converting a Character): Mention embedded
14755 null bytes in the mbrtowc input string. Explain what happens in
14756 the -2 result case. Do not claim that mbrtowc is simple or
14757 obvious to use. Adjust the description of the code example. Use
14758 @code, not @var, for concrete variables.
14759
14760 2018-04-05 Florian Weimer <fweimer@redhat.com>
14761
14762 * manual/examples/mbstouwcs.c: New file.
14763 * manual/charset.texi (Converting a Character): Include it.
14764
14765 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14766
14767 * include/dirent.h (dirfd): Add hidden proto.
14768 * dirent/dirfd.c (dirfd): Add hidden def.
14769 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
14770 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
14771
14772 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14773
14774 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
14775 sin, cos and sincos to 1 ULP.
14776
14777 2018-04-04 Maciej W. Rozycki <macro@mips.com>
14778
14779 [BZ #19818]
14780 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
14781 symbols.
14782 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
14783 * elf/tst-absolute-sym.c: New file.
14784 * elf/tst-absolute-sym-lib.c: New file.
14785 * elf/tst-absolute-sym-lib.lds: New file.
14786 * elf/Makefile (tests): Add `tst-absolute-sym'.
14787 (modules-names): Add `tst-absolute-sym-lib'.
14788 (LDLIBS-tst-absolute-sym-lib.so): New variable.
14789 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
14790 ($(objpfx)tst-absolute-sym): New dependency.
14791
14792 [BZ #19818]
14793 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
14794 parameter.
14795 (SYMBOL_ADDRESS): New macro.
14796 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
14797 SYMBOL_ADDRESS for symbol address calculation.
14798 * elf/dl-runtime.c (_dl_fixup): Likewise.
14799 (_dl_profile_fixup): Likewise.
14800 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
14801 * elf/rtld.c (dl_main): Likewise.
14802 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
14803 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
14804 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
14805 (elf_machine_rela): Likewise.
14806 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
14807 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
14808 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
14809 (elf_machine_rela): Likewise.
14810 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14811 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
14812 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
14813 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
14814 Likewise.
14815 (elf_machine_reloc): Likewise.
14816 (elf_machine_got_rel): Likewise.
14817 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
14818 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
14819 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14820 Likewise.
14821 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14822 Likewise.
14823 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
14824 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
14825 Likewise.
14826 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
14827 Likewise.
14828 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14829 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
14830 Likewise.
14831 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
14832 Likewise.
14833 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
14834 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14835
14836 2018-04-04 Zack Weinberg <zackw@panix.com>
14837
14838 * sysdeps/generic/internal-signals.h: Include signal.h,
14839 sigsetops.h, and stdbool.h.
14840 (__libc_signal_block_all): Actually block all signals.
14841 (__libc_signal_block_app): Likewise.
14842 (__libc_signal_restore_set): Actually restore the signal mask.
14843
14844 2018-04-04 Florian Weimer <fweimer@redhat.com>
14845
14846 inet: Actually build and run tst-deadline.
14847 * inet/Makefile (tests-internal): Add tst-deadline and do not
14848 overwrite the variable.
14849 (tests-static-internal): Remove variable.
14850
14851 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
14852
14853 [BZ #22947]
14854 * bits/uio-ext.h (RWF_APPEND): New.
14855 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
14856 * manual/llio.texi: Document RWF_APPEND.
14857 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
14858 (RWF_SUPPORTED): Add RWF_APPEND.
14859
14860 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14861
14862 [BZ #22391]
14863 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
14864 check for internal nptl signals.
14865 * nptl/sigaction.c (__sigaction): Likewise.
14866 * signal/sigaddset.c (sigaddset): Likewise.
14867 * signal/sigdelset.c (sigdelset): Likewise.
14868 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
14869 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
14870 value.
14871 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
14872 to filter out internal nptl signals.
14873 * signal/tst-sigset.c (do_test): Check ech signal indidually and
14874 also check realtime signals using standard macros.
14875 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
14876 __is_internal_signal, __libc_signal_block_all,
14877 __libc_signal_block_app, __libc_signal_restore_set): New functions.
14878 * sysdeps/nptl/sigfillset.c: Remove file.
14879 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
14880 Change return to bool.
14881 (__clear_internal_signals): Remove SIGTIMER clean since it is
14882 equal to SIGCANEL on Linux.
14883 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
14884 signal set was constructed using standard functions.
14885
14886 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14887
14888 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
14889 ifname is too long.
14890 * hurd/hurdsig.c (interrupted_reply_port_location): Use
14891 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
14892 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
14893 hidden def.
14894 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
14895 * signal/sigaddset.c: Include <sigsetopts.h>.
14896 * signal/sigdelset.c: Likewise.
14897
14898 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14899
14900 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
14901 (__cos): Likewise.
14902 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
14903 logic as sin and cos.
14904
14905 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14906
14907 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
14908 inputs. Return correct sign.
14909 (do_sincos): Remove small input check before do_sin, let do_sin set
14910 the sign.
14911 (__sin): Likewise.
14912 (__cos): Likewise.
14913
14914 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14915
14916 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
14917 (do_cos_slow): Likewise.
14918 (do_sin_slow): Likewise.
14919 (reduce_and_compute): Likewise.
14920 (slow): Likewise.
14921 (slow1): Likewise.
14922 (slow2): Likewise.
14923 (sloww): Likewise.
14924 (sloww1): Likewise.
14925 (sloww2): Likewise.
14926 (bslow): Likewise.
14927 (bslow1): Likewise.
14928 (bslow2): Likewise.
14929 (cslow2): Likewise.
14930
14931 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14932
14933 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
14934 (do_cos): Remove corp parameter and calculations.
14935 (do_sin): Likewise.
14936 (do_sincos): Remove cor variable.
14937 (__sin): Use do_sincos for huge inputs.
14938 (__cos): Likewise.
14939 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
14940 (reduce_and_compute_sincos): Remove unused function.
14941
14942 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14943
14944 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
14945 reduce_sincos, improve accuracy to 136 bits.
14946 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
14947 (__sin): Use improved reduction and simplified do_sincos calculation.
14948 (__cos): Likewise.
14949 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
14950
14951 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14952
14953 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
14954 (do_sincos_2): Likewise.
14955 (__sin): Remove middle range reduction case.
14956 (__cos): Likewise.
14957 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
14958 reduction case.
14959
14960 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
14961
14962 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
14963 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
14964 inputs.
14965 (__cos): Likewise.
14966 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
14967
14968 2018-04-03 Joseph Myers <joseph@codesourcery.com>
14969
14970 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
14971 version to 4.16
14972
14973 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14974
14975 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
14976 Remove definitions.
14977 (opendir_oflags): Use O_DIRECTORY regardless.
14978 (__opendir, __opendirat): Remove need_isdir_precheck usage.
14979 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
14980
14981 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14982
14983 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
14984 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
14985 macros.
14986 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
14987 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
14988 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
14989 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
14990 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
14991 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
14992
14993 * htl/Makefile: Bump licence to LGPL 2.1+.
14994 * htl/alloca_cutoff.c: Likewise.
14995 * htl/cthreads-compat.c: Likewise.
14996 * htl/lockfile.c: Likewise.
14997 * htl/pt-alloc.c: Likewise.
14998 * htl/pt-cancel.c: Likewise.
14999 * htl/pt-cleanup.c: Likewise.
15000 * htl/pt-create.c: Likewise.
15001 * htl/pt-dealloc.c: Likewise.
15002 * htl/pt-detach.c: Likewise.
15003 * htl/pt-exit.c: Likewise.
15004 * htl/pt-getattr.c: Likewise.
15005 * htl/pt-initialize.c: Likewise.
15006 * htl/pt-internal.h: Likewise.
15007 * htl/pt-join.c: Likewise.
15008 * htl/pt-self.c: Likewise.
15009 * htl/pt-setcancelstate.c: Likewise.
15010 * htl/pt-setcanceltype.c: Likewise.
15011 * htl/pt-sigmask.c: Likewise.
15012 * htl/pt-spin-inlines.c: Likewise.
15013 * htl/pt-testcancel.c: Likewise.
15014 * htl/pt-yield.c: Likewise.
15015 * htl/tests/test-1.c: Likewise.
15016 * htl/tests/test-10.c: Likewise.
15017 * htl/tests/test-11.c: Likewise.
15018 * htl/tests/test-12.c: Likewise.
15019 * htl/tests/test-13.c: Likewise.
15020 * htl/tests/test-14.c: Likewise.
15021 * htl/tests/test-15.c: Likewise.
15022 * htl/tests/test-16.c: Likewise.
15023 * htl/tests/test-17.c: Likewise.
15024 * htl/tests/test-2.c: Likewise.
15025 * htl/tests/test-3.c: Likewise.
15026 * htl/tests/test-4.c: Likewise.
15027 * htl/tests/test-5.c: Likewise.
15028 * htl/tests/test-6.c: Likewise.
15029 * htl/tests/test-7.c: Likewise.
15030 * htl/tests/test-8.c: Likewise.
15031 * htl/tests/test-9.c: Likewise.
15032 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15033 * sysdeps/htl/bits/cancelation.h: Likewise.
15034 * sysdeps/htl/bits/pthread-np.h: Likewise.
15035 * sysdeps/htl/bits/pthread.h: Likewise.
15036 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15037 * sysdeps/htl/bits/semaphore.h: Likewise.
15038 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15039 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15040 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15041 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15042 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15043 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15044 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15045 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15046 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15047 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15048 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15049 * sysdeps/htl/old_pt-atfork.c: Likewise.
15050 * sysdeps/htl/pt-atfork.c: Likewise.
15051 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15052 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15053 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15054 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15055 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15056 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15057 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15058 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15059 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15060 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15061 * sysdeps/htl/pt-attr-init.c: Likewise.
15062 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15063 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15064 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15065 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15066 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15067 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15068 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15069 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15070 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15071 * sysdeps/htl/pt-attr.c: Likewise.
15072 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15073 * sysdeps/htl/pt-barrier-init.c: Likewise.
15074 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15075 * sysdeps/htl/pt-barrier.c: Likewise.
15076 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15077 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15078 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15079 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15080 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15081 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15082 * sysdeps/htl/pt-cond-init.c: Likewise.
15083 * sysdeps/htl/pt-cond-signal.c: Likewise.
15084 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15085 * sysdeps/htl/pt-cond-wait.c: Likewise.
15086 * sysdeps/htl/pt-cond.c: Likewise.
15087 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15088 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15089 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15090 * sysdeps/htl/pt-condattr-init.c: Likewise.
15091 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15092 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15093 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15094 * sysdeps/htl/pt-equal.c: Likewise.
15095 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15096 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15097 * sysdeps/htl/pt-getschedparam.c: Likewise.
15098 * sysdeps/htl/pt-getspecific.c: Likewise.
15099 * sysdeps/htl/pt-init-specific.c: Likewise.
15100 * sysdeps/htl/pt-key-create.c: Likewise.
15101 * sysdeps/htl/pt-key-delete.c: Likewise.
15102 * sysdeps/htl/pt-key.h: Likewise.
15103 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15104 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15105 * sysdeps/htl/pt-mutex-init.c: Likewise.
15106 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15107 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15108 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15109 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15110 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15111 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15112 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15113 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15114 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15115 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15116 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15117 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15118 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15119 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15120 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15121 * sysdeps/htl/pt-mutexattr.c: Likewise.
15122 * sysdeps/htl/pt-once.c: Likewise.
15123 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15124 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15125 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15126 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15127 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15128 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15129 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15130 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15131 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15132 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15133 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15134 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15135 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15136 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15137 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15138 * sysdeps/htl/pt-setschedparam.c: Likewise.
15139 * sysdeps/htl/pt-setschedprio.c: Likewise.
15140 * sysdeps/htl/pt-setspecific.c: Likewise.
15141 * sysdeps/htl/pt-spin.c: Likewise.
15142 * sysdeps/htl/pt-startup.c: Likewise.
15143 * sysdeps/htl/pthread.h: Likewise.
15144 * sysdeps/htl/sem-close.c: Likewise.
15145 * sysdeps/htl/sem-destroy.c: Likewise.
15146 * sysdeps/htl/sem-getvalue.c: Likewise.
15147 * sysdeps/htl/sem-init.c: Likewise.
15148 * sysdeps/htl/sem-open.c: Likewise.
15149 * sysdeps/htl/sem-post.c: Likewise.
15150 * sysdeps/htl/sem-timedwait.c: Likewise.
15151 * sysdeps/htl/sem-trywait.c: Likewise.
15152 * sysdeps/htl/sem-unlink.c: Likewise.
15153 * sysdeps/htl/sem-wait.c: Likewise.
15154 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15155 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15156 * sysdeps/mach/htl/pt-block.c: Likewise.
15157 * sysdeps/mach/htl/pt-spin.c: Likewise.
15158 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15159 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15160 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15161 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15162 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15163 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15164 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15165 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15166 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15167 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15168 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15169 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15170 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15171 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15172 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15173 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15174 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15175 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15176 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15177 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15178 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15179 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15180 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15181 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15182 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15183 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15184 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15185 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15186 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15187 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15188 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15189 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15190 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15191 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15192 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15193 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15194 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15195 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15196 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15197 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15198 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15199 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15200 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15201
15202 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15203 * README: Remove the mention of out-of-tree patches needed for
15204 GNU/Hurd.
15205
15206 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15207 (UTIME_NOW, UTIME_OMIT): Define macros.
15208
15209 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15210 instead of pthread_detach.
15211 (__cthread_fork): Call __pthread_create instead of pthread_create.
15212 (__cthread_keycreate): Call __pthread_key_create instead of
15213 pthread_key_create.
15214 (__cthread_getspecific): Call __pthread_getspecific instead of
15215 pthread_getspecific.
15216 (__cthread_setspecific): Call __pthread_setspecific instead of
15217 pthread_setspecific.
15218 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15219 __pthread_mutex_unlock instead of pthread_mutex_lock and
15220 pthread_mutex_unlock.
15221 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15222 ___pthread_get_cleanup_stack.
15223 (__pthread_get_cleanup_stack): New strong alias.
15224 * htl/pt-create.c: Include <pthreadP.h>.
15225 (entry_point): Call __pthread_exit instead of pthread_exit.
15226 (pthread_create): Rename to __pthread_create.
15227 (pthread_create): New strong alias.
15228 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15229 (pthread_detach): New strong alias.
15230 (__pthread_detach): Call __pthread_cond_broadcast instead of
15231 pthread_cond_broadcast.
15232 * htl/pt-exit.c: Include <pthreadP.h>.
15233 (__pthread_exit): Call __pthread_setcancelstate and
15234 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15235 __pthread_get_cleanup_stack.
15236 * htl/pt-testcancel.c: Include <pthreadP.h>.
15237 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15238 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15239 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15240 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15241 pthread_attr_getstacksize.
15242 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15243 Rename to __pthread_attr_getstackaddr.
15244 (pthread_attr_getstackaddr): New strong alias.
15245 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15246 Rename to __pthread_attr_getstacksize.
15247 (pthread_attr_getstacksize): New strong alias.
15248 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15249 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15250 (pthread_attr_setstack): New strong alias.
15251 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15252 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15253 pthread_attr_getstacksize, pthread_attr_setstacksize and
15254 pthread_attr_setstackaddr.
15255 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15256 Rename to __pthread_attr_setstackaddr.
15257 (pthread_attr_setstackaddr): New strong alias.
15258 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15259 Rename to __pthread_attr_setstacksize.
15260 (pthread_attr_setstacksize): New strong alias.
15261 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15262 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15263 pthread_exit.
15264 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15265 (__pthread_key_create): New hidden def.
15266 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15267 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15268 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15269 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15270 __pthread_setspecific, __pthread_setcancelstate,
15271 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15272 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15273 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15274 declarations.
15275 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15276 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15277 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15278 (pthread_attr_setstackaddr): New strong alias.
15279 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15280 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15281 (pthread_attr_setstacksize): New strong alias.
15282 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15283 (call_exit): Call __pthread_exit instead of pthread_exit.
15284 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15285 (_pthread_mutex_init): New hidden definition.
15286 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15287 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15288 instead of pthread_attr_init and pthread_attr_setstack.
15289
15290 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15291 __vm_deallocate instead of vm_allocate and vm_deallocate.
15292 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15293 setenv.
15294 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15295 of geteuid.
15296 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15297 strdup.
15298 * hurd/siginfo.c: Include <libioP.h>.
15299 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15300 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15301 munmap.
15302 * mach/devstream.c: Include <libioP.h>.
15303 (dealloc_ref): Call __mach_port_deallocate instead of
15304 mach_port_deallocate.
15305 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15306 Call __mach_port_deallocate instead of mach_port_deallocate.
15307 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15308 pathconf.
15309 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15310 munmap.
15311 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15312 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15313 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15314 of munmap.
15315 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15316 of close.
15317 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15318 instead of sysconf.
15319 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15320 __clock_gettime instead of clock_gettime.
15321 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15322 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15323 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15324 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15325 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15326 tcgetattr.
15327 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15328 __clock_gettime and __nanosleep instead of clock_gettime and
15329 nanosleep.
15330 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15331 __hurd_catch_signal.
15332 (hurd_catch_signal): New strong alias.
15333 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15334 __hurd_catch_signal instead of hurd_catch_signal.
15335 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15336 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15337 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15338 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15339 (_hurd_thread_sigstate): Add hidden def.
15340 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15341 mutex_unlock.
15342 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15343 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15344 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15345 __hurd_file_name_path_lookup.
15346 (hurd_file_name_path_lookup): New strong alias.
15347 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15348 hurd_file_name_path_lookup.
15349 * mach/errstring.c (mach_error_type): Add hidden def.
15350 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15351 * mach/mutex-init.c (__mutex_init): Add hidden def.
15352 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15353 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15354 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15355 * sysdeps/mach/hurd/getcwd.c
15356 (_hurd_canonicalize_directory_name_internal): Rename to
15357 __hurd_canonicalize_directory_name_internal.
15358 (_hurd_canonicalize_directory_name_internal): New strong alias.
15359 (__canonicalize_directory_name_internal, __getcwd): Call
15360 __hurd_canonicalize_directory_name_internal instead of
15361 _hurd_canonicalize_directory_name_internal.
15362 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15363 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15364 hidden defs.
15365 * sysdeps/hurd/include/hurd.h: New file.
15366 * sysdeps/hurd/include/hurd/fd.h: New file.
15367 * sysdeps/hurd/include/hurd/signal.h: New file.
15368 * sysdeps/mach/include/lock-intern.h: New file.
15369 * sysdeps/mach/include/mach.h: New file.
15370 * sysdeps/mach/include/mach/mig_support.h: New file.
15371 * sysdeps/mach/include/mach_error.h: New file.
15372 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15373 prototype.
15374 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15375 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15376 _HEADER_H_HIDDEN_DEF macro.
15377 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15378 _hurd_fd_error_signal): Add hidden prototype.
15379 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15380 hidden def.
15381 * libio/iolibio.h (_IO_puts): New hidden prototype.
15382 * libio/ioputs.c (_IO_puts): New hidden def.
15383 * sysdeps/mach/hurd/localplt.data: New file.
15384
15385 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15386 Amos Jeffries <squid3@treenet.co.nz>
15387 David Michael <fedora.dm0@gmail.com>
15388 Marco Gerards <marco@gnu.org>
15389 Marcus Brinkmann <marcus@gnu.org>
15390 Neal H. Walfield <neal@gnu.org>
15391 Pino Toscano <toscano.pino@tiscali.it>
15392 Richard Braun <rbraun@sceen.net>
15393 Roland McGrath <roland@gnu.org>
15394 Samuel Thibault <samuel.thibault@ens-lyon.org>
15395 Thomas DiModica <ricinwich@yahoo.com>
15396 Thomas Schwinge <tschwinge@gnu.org>
15397
15398 * htl: New directory.
15399 * sysdeps/htl: New directory.
15400 * sysdeps/hurd/htl: New directory.
15401 * sysdeps/i386/htl: New directory.
15402 * sysdeps/mach/htl: New directory.
15403 * sysdeps/mach/hurd/htl: New directory.
15404 * sysdeps/mach/hurd/i386/htl: New directory.
15405 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15406 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15407 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15408
15409 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15410
15411 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15412 signals in thread created for runing timers.
15413
15414 2018-04-01 Florian Weimer <fweimer@redhat.com>
15415
15416 * support/support_format_addrinfo.c (support_format_addrinfo):
15417 Include unknown error number in formatted result.
15418
15419 2018-03-29 Florian Weimer <fweimer@redhat.com>
15420
15421 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
15422 capture SIGBUS.
15423
15424 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15425
15426 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
15427 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
15428 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15429 (__ASSUME_CLONE_BACKWARDS): Define.
15430
15431 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
15432
15433 [BZ #23024]
15434 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
15435 early when linux sentinel value is set.
15436
15437 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15438
15439 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
15440
15441 2018-03-27 Andreas Schwab <schwab@suse.de>
15442
15443 [BZ #23005]
15444 * resolv/res_send.c (__res_context_send): Return ENOMEM if
15445 allocation of private copy of nsaddr_list fails.
15446
15447 2018-03-26 Joseph Myers <joseph@codesourcery.com>
15448
15449 [BZ #16552]
15450 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
15451 * sysdeps/unix/sysv/linux/umount.c: ... here.
15452 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
15453 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
15454 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
15455 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
15456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
15457 * sysdeps/unix/sysv/linux/umount.S: Likewise.
15458 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
15459
15460 2018-03-26 Andreas Schwab <schwab@suse.de>
15461
15462 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
15463 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
15464 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
15465 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
15466 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
15467 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
15468 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
15469 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
15470 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
15471 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
15472 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
15473 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
15474 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
15475 (R_RISCV_NUM): Define.
15476
15477 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
15478
15479 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
15480 TLS declaration of errno.
15481 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
15482 __libc_setup_tls.
15483 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
15484 (ARCH_SETUP_TLS): Likewise.
15485 * sysdeps/mach/hurd/libc-start.h: New file copied from
15486 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
15487 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
15488 instead of __libc_setup_tls.
15489 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
15490 __libc_setup_tls before initializing libpthread and running _hurd_init
15491 which starts the signal thread.
15492 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
15493 Declare function.
15494 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15495
15496 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
15497
15498 [BZ #22998]
15499 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
15500 after it is defined.
15501
15502 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
15503 Max Horn <max@quendi.de>
15504
15505 [BZ #22644]
15506 CVE-2017-18269
15507 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
15508 branch conditions.
15509 * string/test-memmove.c (do_test2): New testcase.
15510
15511 2018-03-22 Joseph Myers <joseph@codesourcery.com>
15512
15513 * sysdeps/generic/frame.h: Remove file.
15514 * sysdeps/arm/frame.h: Likewise.
15515 * sysdeps/hppa/frame.h: Likewise.
15516 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
15517 macro.
15518 (GET_FRAME): Likewise.
15519 (GET_STACK): Likewise.
15520 (CALL_SIGHANDLER): Likewise.
15521 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
15522 Likewise.
15523 (GET_FRAME): Likewise.
15524 (GET_STACK): Likewise.
15525 (CALL_SIGHANDLER): Likewise.
15526 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
15527 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15528 (GET_FRAME): Likewise.
15529 (GET_STACK): Likewise.
15530 (CALL_SIGHANDLER): Likewise.
15531 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
15532 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15533 (GET_FRAME): Likewise.
15534 (GET_STACK): Likewise.
15535 (ADVANCE_STACK_FRAME): Likewise.
15536 (CALL_SIGHANDLER): Likewise.
15537 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
15538 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15539 (GET_FRAME): Likewise.
15540 (GET_STACK): Likewise.
15541 (CALL_SIGHANDLER): Likewise.
15542 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
15543 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15544 (GET_FRAME): Likewise.
15545 (GET_STACK): Likewise.
15546 (CALL_SIGHANDLER): Likewise.
15547 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
15548 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15549 (GET_FRAME): Likewise.
15550 (GET_STACK): Likewise.
15551 (CALL_SIGHANDLER): Likewise.
15552 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
15553 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15554 (GET_FRAME): Likewise.
15555 (GET_STACK): Likewise.
15556 (CALL_SIGHANDLER): Likewise.
15557 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
15558 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15559 (GET_FRAME): Likewise.
15560 (GET_STACK): Likewise.
15561 (CALL_SIGHANDLER): Likewise.
15562 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
15563 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15564 (GET_FRAME): Likewise.
15565 (GET_STACK): Likewise.
15566 (CALL_SIGHANDLER): Likewise.
15567 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
15568 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15569 (GET_FRAME): Likewise.
15570 (GET_STACK): Likewise.
15571 (CALL_SIGHANDLER): Likewise.
15572 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
15573 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15574 (GET_FRAME): Likewise.
15575 (GET_STACK): Likewise.
15576 (CALL_SIGHANDLER): Likewise.
15577 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
15578 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15579 (GET_FRAME): Likewise.
15580 (GET_STACK): Likewise.
15581 (CALL_SIGHANDLER): Likewise.
15582 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
15583 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15584 (FIRST_FRAME_POINTER): Likewise.
15585 (ADVANCE_STACK_FRAME): Likewise.
15586 (GET_STACK): Likewise.
15587 (GET_FRAME): Likewise.
15588 (CALL_SIGHANDLER): Likewise.
15589 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
15590 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15591 (ADVANCE_STACK_FRAME): Likewise.
15592 (GET_STACK): Likewise.
15593 (GET_FRAME): Likewise.
15594 (CALL_SIGHANDLER): Likewise.
15595 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
15596 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15597 (GET_FRAME): Likewise.
15598 (GET_STACK): Likewise.
15599 (CALL_SIGHANDLER): Likewise.
15600 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
15601 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15602 (GET_FRAME): Likewise.
15603 (GET_STACK): Likewise.
15604 (CALL_SIGHANDLER): Likewise.
15605
15606 2018-03-21 Joseph Myers <joseph@codesourcery.com>
15607
15608 * sysdeps/x86_64/backtrace.c: Move to ....
15609 * debug/backtrace.c: ... here.
15610 * sysdeps/aarch64/backtrace.c: Remove file.
15611 * sysdeps/alpha/backtrace.c: Likewise.
15612 * sysdeps/hppa/backtrace.c: Likewise.
15613 * sysdeps/ia64/backtrace.c: Likewise.
15614 * sysdeps/mips/backtrace.c: Likewise.
15615 * sysdeps/nios2/backtrace.c: Likewise.
15616 * sysdeps/riscv/backtrace.c: Likewise.
15617 * sysdeps/sh/backtrace.c: Likewise.
15618 * sysdeps/tile/backtrace.c: Likewise.
15619
15620 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15621
15622 [BZ #22987]
15623 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
15624 function.
15625 (fdimf): Likewise.
15626 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
15627
15628 [BZ #17343]
15629 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
15630 possibly overflowing computations.
15631
15632 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15633
15634 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
15635 values from Linux-specific section now that it is in the GNU section.
15636 * sysdeps/gnu/errlist.c: Regenerate.
15637
15638 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15639
15640 * math/Makefile (libm-narrow-fns): Add sub.
15641 (libm-test-funcs-narrow): Likewise.
15642 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
15643 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
15644 * math/gen-auto-libm-tests.c (test_functions): Add sub.
15645 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
15646 (NARROW_SUB_ROUND_TO_ODD): Likewise.
15647 (NARROW_SUB_TRIVIAL): Likewise.
15648 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
15649 macro.
15650 (__dsubl): Likewise.
15651 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
15652 dsub.
15653 (CFLAGS-nldbl-dsub.c): New variable.
15654 (CFLAGS-nldbl-fsub.c): Likewise.
15655 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15656 __nldbl_dsubl.
15657 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
15658 prototype.
15659 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
15660 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
15661 * math/auto-libm-test-in: Add tests of sub.
15662 * math/auto-libm-test-out-narrow-sub: New generated file.
15663 * math/libm-test-narrow-sub.inc: New file.
15664 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15665 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
15666 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
15667 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
15668 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
15669 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
15670 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
15671 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
15672 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
15673 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
15674 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
15675 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
15676 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
15677 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
15678 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
15679 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
15680 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
15681 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
15682 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15683 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15684 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15685 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15686 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15687 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15688 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15689 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15690 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15691 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15692 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15693 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15694 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15695 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15700 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15701 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15702 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15703 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15704 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15705 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15706 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15707 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15708 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15709 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15710
15711 2018-03-19 Joseph Myers <joseph@codesourcery.com>
15712
15713 [BZ #20079]
15714 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
15715
15716 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
15717
15718 * benchtests/bench-timing.h (attribute_hidden): Undefine.
15719
15720 2018-03-18 Richard Braun <rbraun@sceen.net>
15721
15722 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
15723 thread reference.
15724
15725 2018-03-18 Agustina Arzille <avarzille@riseup.net>
15726
15727 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
15728 (__libc_cleanup_fct): Define function.
15729 (__libc_cleanup_region_start, __libc_cleanup_region_end,
15730 __libc_cleanup_end): Rewrite implementation using
15731 __attribute__ ((__cleanup__)).
15732 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
15733 * hurd/Makefile (routines): Add hurdlock.
15734 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
15735 interface.
15736 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
15737 * hurd/hurdpid.c: Include <lowlevellock.h>
15738 (_S_msg_proc_newids): Use lll_wait to synchronize.
15739 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
15740 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
15741 * mach/Makefile (lock-headers): Remove machine-lock.h.
15742 * mach/lock-intern.h: Include <lowlevellock.h> instead of
15743 <machine-lock.h>.
15744 (__spin_lock_t): New type.
15745 (__SPIN_LOCK_INITIALIZER): New macro.
15746 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
15747 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
15748 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
15749 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
15750 (__mutex_init): Initialize with lll.
15751 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
15752 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
15753 needing lll.
15754 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15755 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
15756 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
15757 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
15758 (__setpgid): Use lll for synchronization.
15759 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
15760 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
15761 instead of <cthreads.h>.
15762 (_IO_lock_inexpensive): New macro
15763 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
15764 (__libc_lock_self0): New declaration.
15765 (__libc_lock_owner_self): New macro.
15766 (__libc_key_t): Remove type.
15767 (_LIBC_LOCK_INITIALIZER): New macro.
15768 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
15769 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
15770 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
15771 __libc_lock_define_initialized_recursive,
15772 __rtld_lock_define_initialized_recursive,
15773 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
15774 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
15775 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
15776 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
15777 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
15778 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
15779 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
15780 New macros.
15781 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
15782 * hurd/hurdlock.c: New file.
15783 * hurd/hurdlock.h: New file.
15784 * mach/lowlevellock.h: New file
15785
15786 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15787
15788 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
15789 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
15790 when opening a symlink with O_NOFOLLOW.
15791 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
15792 path when flags contains O_NOFOLLOW.
15793 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
15794 if flags contains O_DIRECTORY and the result is a directory.
15795 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
15796 oneself when the pointer given in D is nul (as set by ext2fs).
15797 * sysdeps/mach/hurd/mlockall.c: New file.
15798 * sysdeps/mach/hurd/munlockall.c: New file.
15799
15800 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15801
15802 * hurd/hurdsig.c: Include <pthread.h>.
15803 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
15804 get the signal thread stack layout.
15805 * hurd/Makefile (headers): Remove threadvar.h.
15806 (inline-headers): Remove threadvar.h.
15807 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
15808 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
15809 __hurd_threadvar_max, __hurd_errno_location.
15810 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
15811 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
15812 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
15813 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
15814 unless TLS is not initialized yet, in which case we do not need a
15815 critical section yet anyway.
15816 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
15817 <machine-sp.h>.
15818 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
15819 declarations.
15820 (__hurd_threadvar_index): Remove enum.
15821 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
15822 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
15823 inlines.
15824 (__hurd_reply_port0): New variable declaration.
15825 (__hurd_local_reply_port): New macro.
15826 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
15827 (interrupted_reply_port_location): Add thread_t parameter. Use it
15828 with THREAD_TCB to access thread-local variables.
15829 (_hurdsig_abort_rpcs): Pass ss->thread to
15830 interrupted_reply_port_location.
15831 (_hurd_internal_post_signal): Likewise.
15832 (_hurdsig_init): Use presence of cthread_fork instead of
15833 __hurd_threadvar_stack_mask to start signal thread by hand.
15834 Remove signal thread threadvar initialization.
15835 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
15836 * hurd/sigunwind.c: Include <hurd/threadvar.h>
15837 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
15838 of threadvar.
15839 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
15840 __libc_lock_self0.
15841 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
15842 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
15843 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
15844 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
15845 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
15846 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
15847 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
15848 define variables.
15849 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
15850 <hurd/threadvar.h>.
15851 [IS_IN(rtld)] (rtld_errno): New variable.
15852 [IS_IN(rtld)] (__errno_location): New weak function.
15853 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
15854 * sysdeps/mach/hurd/errno.c: Remove file.
15855 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
15856 (__fork): Remove THREADVAR_SPACE macro and its use.
15857 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
15858 variable.
15859 (init): Do not initialize threadvar.
15860 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
15861 symbol.
15862 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
15863 __hurd_local_reply_port instead of threadvar.
15864 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
15865 _hurd_sigstate fields.
15866 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
15867 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
15868 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
15869 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
15870 instead of threadvar.
15871 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
15872 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
15873 (use_threadvar, global_reply_port): Remove variables.
15874 (__hurd_reply_port0): New variable.
15875 (__mig_get_reply_port): Use __hurd_local_reply_port and
15876 __hurd_reply_port0 instead of threadvar.
15877 (__mig_dealloc_reply_port): Likewise.
15878 (__mig_init): Do not initialize threadvar.
15879 * sysdeps/mach/hurd/profil.c: Fix comment.
15880 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
15881 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
15882 cthread_keycreate, cthread_getspecific, cthread_setspecific to
15883 __cthread_fork, __cthread_detach, __pthread_getattr_np,
15884 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
15885 __cthread_setspecific.
15886 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
15887 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
15888 __cthread_t instead of cthread_fork, cthread_detach,
15889 pthread_getattr_np, pthread_attr_getstack.
15890 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
15891 __cthread_keycreate.
15892 (cthread_getspecific): Rename to __cthread_getspecific.
15893 (cthread_setspecific): Rename to __cthread_setspecific.
15894 (__libc_getspecific): Use __cthread_getspecific instead of
15895 cthread_getspecific.
15896 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
15897 __cthread_keycreate instead of cthread_keycreate.
15898 (__libc_setspecific): Use __cthread_setspecific instead of
15899 cthread_setspecific.
15900 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
15901 Likewise.
15902 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
15903 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
15904 testing whether it is defined.
15905
15906 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
15907
15908 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
15909 Define macro.
15910 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
15911 * sysdeps/mach/i386/thread_state.h
15912 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
15913 i386_THREAD_STATE.
15914 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
15915 i386_THREAD_STATE.
15916 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
15917
15918 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
15919 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
15920
15921 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
15922 macros.
15923 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
15924 descriptor instead of creating a new one.
15925 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
15926
15927 * mach/setup-thread.c: Include <ldsodefs.h>.
15928 (__mach_setup_thread): Call _dl_allocate_tls, pass
15929 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
15930 MACHINE_THREAD_STATE_FLAVOR, before getting
15931 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
15932 MACHINE_THREAD_STATE_FLAVOR with the result.
15933 * hurd/hurdfault.c (_hurdsig_fault_init): Call
15934 MACHINE_THREAD_STATE_FIX_NEW.
15935 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
15936 too. Add original thread parameter.
15937
15938 2018-03-16 Joseph Myers <joseph@codesourcery.com>
15939
15940 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
15941 Remove inline function.
15942
15943 * sysdeps/i386/fpu/libm-test-ulps: Update.
15944 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15945
15946 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
15947
15948 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
15949 commit.
15950
15951 2018-03-15 Joseph Myers <joseph@codesourcery.com>
15952
15953 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
15954 (__sincos_code): Remove define and undefine.
15955 [__FAST_MATH__] (__sincos): Remove inline function.
15956 [__FAST_MATH__] (__sincosf): Remove inline function.
15957 [__FAST_MATH__] (__sincosl): Remove inline function.
15958 (__atan2l): Remove inline functions.
15959 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
15960 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
15961 function.
15962 (floor): Remove inline function.
15963 (ceil): Likewise.
15964 [__FAST_MATH__] (__ldexp_code): Remove macro.
15965 [__FAST_MATH__] (ldexp): Remove inline function.
15966 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
15967 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
15968 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
15969 [__USE_ISOC99] (__lrint_code): Remove macro.
15970 [__USE_ISOC99] (__llrint_code): Likewise.
15971 [__USE_ISOC99] (lrintf): Remove inline function.
15972 [__USE_ISOC99] (lrint): Likewise.
15973 [__USE_ISOC99] (lrintl): Likewise.
15974 [__USE_ISOC99] (llrint): Likewise.
15975 [__USE_ISOC99] (llrintf): Likewise.
15976 [__USE_ISOC99] (llrintl): Likewise.
15977
15978 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
15979
15980 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
15981 (__ieee754_sqrtf): Remove.
15982 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
15983 (__ieee754_sqrtf): Remove.
15984 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
15985 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
15986 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
15987 (__ieee754_sqrtf): Remove.
15988 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
15989 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
15990 (sqrtf): Remove.
15991 (sqrtl): Remove.
15992 (__ieee754_sqrt): Remove.
15993 (__ieee754_sqrtf): Remove.
15994 (__ieee754_sqrtl): Remove.
15995 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
15996 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
15997 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
15998 (__ieee754_sqrtf): Remove.
15999 (__ieee754_sqrtl): Remove.
16000
16001 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16002
16003 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16004 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16005 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16006 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16007 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16008 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16009 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16010 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16011 Likewise.
16012 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16013 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16014 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16015 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16016 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16017 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16018 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16019 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16020 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16021 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16022 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16023 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16024 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16025 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16026 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16027 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16028 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16029 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16030 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16031 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16032 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16033 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16034 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16035 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16036 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16037 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16038 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16039 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16040 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16041 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16042 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16043 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16044 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16045 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16046 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16047 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16048 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16049 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16050 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16051 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16052
16053 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16054
16055 * include/math.h (sqrt): Declare with asm redirect.
16056 (sqrtf): Likewise.
16057 (sqrtl): Likewise.
16058 (sqrtf128): Likewise.
16059 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16060 nonlib and libnldbl with -fmath-errno.
16061 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16062 * math/w_sqrt_template.c: Likewise.
16063 * math/w_sqrtf_compat.c: Likewise.
16064 * math/w_sqrtl_compat.c: Likewise.
16065 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16066 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16067 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16068 complex.h.
16069
16070 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16071
16072 * benchtests/Makefile: Define _ISOMAC.
16073 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16074 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16075 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16076 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16077 * benchtests/bench-timing.h: Define attribute_hidden.
16078
16079 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16080
16081 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16082 mov + lsr.
16083
16084 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16085
16086 [BZ #22963]
16087 * localedata/locales/cs_CZ (mon): Rename to...
16088 (alt_mon): This.
16089 (mon): Import from CLDR (genitive case).
16090
16091 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16092
16093 [BZ #22937]
16094 * localedata/locales/el_CY (abmon): Rename to...
16095 (ab_alt_mon): This.
16096 (abmon): Import from CLDR (abbreviated genitive case).
16097 * localedata/locales/el_GR (abmon): Rename to...
16098 (ab_alt_mon): This.
16099 (abmon): Import from CLDR (abbreviated genitive case).
16100
16101 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16102
16103 [BZ #22932]
16104 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16105
16106 2018-03-15 Robert Buj <robert.buj@gmail.com>
16107
16108 [BZ #22848]
16109 * localedata/locales/ca_ES (abmon): Rename to...
16110 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16111 (mon): Rename to...
16112 (alt_mon): This.
16113 (abmon): Import from CLDR (genitive case, month names preceded by
16114 "de" or "d’").
16115 (mon): Likewise.
16116 (abday): Synchronize with CLDR.
16117 (d_t_fmt): Likewise.
16118 (d_fmt): Likewise.
16119 (am_pm): Likewise.
16120
16121 (LC_TIME): Improve indentation.
16122 (LC_TELEPHONE): Likewise.
16123 (LC_NAME): Likewise.
16124 (LC_ADDRESS): Likewise.
16125
16126 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16127
16128 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16129 (lrintf): Remove definitions used only with old GCC.
16130 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16131 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16132 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16133 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16134 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16135 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16136 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16137 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16138 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16139 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16140 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16141 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16142 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16143 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16144 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16145 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16146 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16147 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16148 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16149 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16150 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16151 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16152 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16153 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16154 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16155 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16156 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16157 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16158
16159 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16160
16161 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16162 instruction to unbreak builds with binutils 2.26 and older.
16163
16164 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16165
16166 * sysdeps/aarch64/strncmp.S (count): New macro.
16167 (strncmp): Store misaligned length in SRC1 in COUNT.
16168 (mutual_align): Adjust.
16169 (misaligned8): Load dword at a time when it is safe.
16170
16171 2018-03-12 Zack Weinberg <zackw@panix.com>
16172
16173 [BZ #1190]
16174 [BZ #19476]
16175 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16176 if the _IO_EOF_SEEN bit is already set; update commentary.
16177 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16178 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16179
16180 * support/support_openpty.c, support/tty.h: New files.
16181 * support/Makefile (libsupport-routines): Add support_openpty.
16182
16183 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16184 New test cases.
16185 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16186 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16187
16188 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16189
16190 * po/pt_BR.po: Update translations.
16191
16192 2018-03-12 David Michael <fedora.dm0@gmail.com>
16193
16194 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16195 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16196 get a port to the startup server.
16197
16198 2018-03-11 Zack Weinberg <zackw@panix.com>
16199
16200 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16201 before nldbl-compat.h.
16202
16203 2018-03-10 Zack Weinberg <zackw@panix.com>
16204
16205 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16206 math.h or math_private.h.
16207
16208 * sysdeps/alpha/fpu/s_isnan.c
16209 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16210 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16211 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16212 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16213 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16214 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16215 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16216 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16217 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16218 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16219 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16220 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16221 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16222 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16223 Include math_private.h.
16224
16225 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16226 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16227 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16228 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16229 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16230 * sysdeps/powerpc/power7/fpu/s_logb.c:
16231 Include math.h and math_private.h.
16232
16233 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16234 uses of $at in .set noat / .set at.
16235
16236 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16237
16238 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16239 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16240 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16241 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16242 Likewise.
16243
16244 2018-03-09 Florian Weimer <fweimer@redhat.com>
16245
16246 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16247 in comment.
16248
16249 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16250
16251 [BZ #22919]
16252 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16253 Add nop before __startcontext, add explaining comments.
16254
16255 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16256
16257 [BZ #22926]
16258 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16259 empty for __SPE__.
16260 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16261 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16262 Do not build hardware transactional code for __SPE__.
16263 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16264 (__lll_trylock_elision): Likewise.
16265 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16266 (__lll_unlock_elision): Likewise.
16267
16268 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16269 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16270 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16271 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16272 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16273 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16274 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16275 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16276 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16277 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16278 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16279 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16280 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16281 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16282 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16283 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16284 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16285 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16286 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16287 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16288 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16289 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16290 (__ASSUME_CLONE_BACKWARDS): Define.
16291 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16292 __clone2 if __NR_clone2 is defined.
16293 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16294 (__ASSUME_CLONE_BACKWARDS): Likewise.
16295 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16296 (__ASSUME_CLONE_BACKWARDS): Likewise.
16297 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16298 (__ASSUME_CLONE2): Likewise.
16299 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16300 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16301 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16302 variants and the define architecture can use.
16303 (__ASSUME_CLONE_DEFAULT): Define as default.
16304 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16305 (__ASSUME_CLONE_BACKWARDS): Likewise.
16306 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16307 (__ASSUME_CLONE_BACKWARDS): Likewise.
16308 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16309 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16310
16311 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16312
16313 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16314
16315 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16316 time.
16317
16318 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16319 (do_test_limit): Likewise.
16320
16321 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16322 for every implementation.
16323 (do_test): Likewise.
16324
16325 * benchtests/bench-strncmp.c: Convert output to json.
16326
16327 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16328
16329 * io/futimens.c: Add missing start-of-file descriptive comment.
16330 * io/utime.c: Likewise.
16331 * misc/futimesat.c: Likewise.
16332 * misc/utimes.c: Likewise.
16333 * sysdeps/mach/hurd/futimesat.c: Likewise.
16334 * sysdeps/mach/hurd/utimes.c: Likewise.
16335 * sysdeps/posix/utime.c: Likewise.
16336 * sysdeps/posix/utimes.c: Likewise.
16337 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16338 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16339 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16340 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16341
16342 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16343
16344 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16345 hurd_futimes.
16346 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16347 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16348 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16349 (__futimens): Move implementation to...
16350 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16351 utime_tvalue_from_tspec): ... new helper functions.
16352 (hurd_futimens): New function.
16353 * sysdeps/mach/hurd/futimesat.c: New file.
16354 * sysdeps/mach/hurd/utimensat.c: New file.
16355
16356 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16357
16358 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16359 UTIME_OMIT): New macros.
16360 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16361 before reverting to converting time spec to time value and calling
16362 __file_utimes.
16363 * sysdeps/mach/hurd/utime-helper.c: New file.
16364 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16365 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16366 reverting to utime_tvalue_from_tval and __file_utimes.
16367 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16368 (__lutimes): Just call hurd_futimens after lookup.
16369 * sysdeps/mach/hurd/utimes.c: Likewise.
16370
16371 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16372
16373 * bits/sigaction.h: Add include guard.
16374 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16375 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16376 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16377 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16378 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16379 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16380 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16381 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16382 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16383
16384 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16385
16386 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16387 -Wmaybe-uninitialized for -Os.
16388 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16389 this disabling.
16390
16391 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16392
16393 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16394 __INO_T_MATCHES_INO64_T is defined.
16395 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16396 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16397 of definition.
16398 * dirent/alphasort64.c: Likewise.
16399 * dirent/scandir.c: Likewise.
16400 * dirent/scandir64-tail.c: Likewise.
16401 * dirent/scandir64.c: Likewise.
16402 * dirent/scandirat.c: Likewise.
16403 * dirent/scandirat64.c: Likewise.
16404 * dirent/versionsort.c: Likewise.
16405 * dirent/versionsort64.c: Likewise.
16406 * include/dirent.h: Likewise.
16407
16408 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16409 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16410 for socketpair endpoint.
16411 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16412 WRITE_BUFFER_SIZE as buffer size for sending socket.
16413 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
16414 issue on system where send is implemented with sendto syscall.
16415 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
16416 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
16417 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
16418 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
16419
16420 [BZ #21269]
16421 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
16422 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
16423 sa_restorer for vDSO case.
16424 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
16425
16426 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16427
16428 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
16429 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
16430 * hurd/hurd/ioctl.h: Include <mach/port.h>
16431 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
16432 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
16433 <mach/mach_types.h> and <mach/message.h>.
16434 (headers): Move mach/param.h to bits/mach/param.h.
16435 * sysdeps/mach/i386/mach/param.h: Move file to ...
16436 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
16437 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
16438 of <mach/param.h>.
16439 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
16440 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
16441 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
16442 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
16443 trivial, for C++ conformity.
16444 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
16445 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
16446 Process mig output through $(migheadersed).
16447 * hurd/Makefile (migheadersed): Define variable.
16448 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
16449 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
16450 headers.
16451 * hurd/hurd.h: Include <bits/types/sigset_t.h>
16452 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
16453 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
16454 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
16455 <bits/types/sigset_t.h>.
16456 [!defined __USE_GNU]: Do not #error out.
16457 (struct hurd_sigstate): Use _NSIG instead of NSIG.
16458 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
16459 Include <stddef.h> and <bits/types/sigset_t.h>
16460 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
16461 instead of sighandler_t.
16462 * stdlib/errno.h (error_t): Move definition to...
16463 * bits/types/error_t.h: ... new header.
16464 * stdlib/Makefile (headers): Add bits/types/error_t.h.
16465 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
16466 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
16467 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
16468 * hurd/hurd.h: Include <bits/types/error_t.h>
16469 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
16470 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
16471 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
16472 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
16473 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
16474 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
16475 * sysdeps/mach/hurd/futimens.c: New file.
16476
16477 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
16478
16479 [BZ #22918]
16480 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
16481 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
16482 * nscd/gai.c (__nss_hosts_database): Readd definition.
16483 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16484 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16485 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16486
16487 2018-03-02 Joseph Myers <joseph@codesourcery.com>
16488
16489 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
16490 (ifunc_one): Likewise.
16491
16492 2018-03-01 DJ Delorie <dj@delorie.com>
16493
16494 [BZ #22342]
16495 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
16496 key value.
16497
16498 2018-03-01 Maciej W. Rozycki <macro@mips.com>
16499
16500 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
16501 `match_pid' parameter.
16502 (td_ta_thr_iter): Update accordingly.
16503
16504 2018-03-01 Florian Weimer <fweimer@redhat.com>
16505
16506 * nptl/Makefile (install-lib-ldscripts): Remove.
16507 (install): Remove rule.
16508 ($(inst_libdir)/libpthread.so): Likewise.
16509
16510 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16511
16512 [BZ #22896]
16513 * localedata/locales/an_ES: update month and day names,
16514 improve d_fmt, improve postal_fmt, add country_post,
16515 add country_isbn
16516
16517 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16518
16519 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
16520 Ukrainian instead of Bulgarian.
16521
16522 2018-03-01 Florian Weimer <fweimer@redhat.com>
16523
16524 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
16525 reference.
16526
16527 2018-03-01 Florian Weimer <fweimer@redhat.com>
16528
16529 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
16530 * nptl/Makefile (routines): Add pthread_atfork.
16531 (static-only-routines): Set to pthread_atfork.
16532 (libpthread-routines): Remove pthread_atfork.
16533 (libpthread-static-only-routines): Remove.
16534 (install): Update comment.
16535 (libpthread.so): Do not install libpthread_nonshared.a.
16536 (tests): Do not link with libpthread_nonshared.a.
16537 (generated): Remove libpthread_nonshared.a.
16538 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
16539 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
16540 with libpthread_nonshared.a.
16541
16542 2018-02-28 Joseph Myers <joseph@codesourcery.com>
16543
16544 [BZ #22902]
16545 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
16546 (libc_feholdexcept_setroundf128): New macro.
16547 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
16548
16549 [BZ #15105]
16550 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
16551 libc_hidden_def.
16552 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
16553 * include/inttypes.h: New file.
16554
16555 2018-02-27 Joseph Myers <joseph@codesourcery.com>
16556
16557 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
16558 -Os in two more places.
16559
16560 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16561
16562 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
16563 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
16564 be sorted correctly at the moment because of a bug.
16565
16566 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16567
16568 [BZ #22550] - es_ES locale (and other es_* locales): collation should
16569 treat ñ as a primary different character, sync the collation
16570 for Spanish with CLDR.
16571 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
16572 * localedata/Makefile: Add new test files.
16573 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
16574 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
16575 collation order.
16576 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
16577 * localedata/am_ET.UTF-8.in: New test file.
16578 * localedata/az_AZ.UTF-8.in: Likewise.
16579 * localedata/be_BY.UTF-8.in: Likewise.
16580 * localedata/ber_DZ.UTF-8.in: Likewise.
16581 * localedata/ber_MA.UTF-8.in: Likewise.
16582 * localedata/bg_BG.UTF-8.in: Likewise.
16583 * localedata/br_FR.UTF-8.in: Likewise.
16584 * localedata/cmn_TW.UTF-8.in: Likewise.
16585 * localedata/crh_UA.UTF-8.in: Likewise.
16586 * localedata/csb_PL.UTF-8.in: Likewise.
16587 * localedata/cv_RU.UTF-8.in: Likewise.
16588 * localedata/cy_GB.UTF-8.in: Likewise.
16589 * localedata/dz_BT.UTF-8.in: Likewise.
16590 * localedata/eo.UTF-8.in: Likewise.
16591 * localedata/es_ES.UTF-8.in: Likewise.
16592 * localedata/fa_IR.UTF-8.in: Likewise.
16593 * localedata/fi_FI.UTF-8.in: Likewise.
16594 * localedata/fil_PH.UTF-8.in: Likewise.
16595 * localedata/fur_IT.UTF-8.in: Likewise.
16596 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
16597 * localedata/ha_NG.UTF-8.in: Likewise.
16598 * localedata/ig_NG.UTF-8.in: Likewise.
16599 * localedata/ik_CA.UTF-8.in: Likewise.
16600 * localedata/kk_KZ.UTF-8.in: Likewise.
16601 * localedata/ku_TR.UTF-8.in: Likewise.
16602 * localedata/ky_KG.UTF-8.in: Likewise.
16603 * localedata/ln_CD.UTF-8.in: Likewise.
16604 * localedata/mi_NZ.UTF-8.in: Likewise.
16605 * localedata/ml_IN.UTF-8.in: Likewise.
16606 * localedata/mn_MN.UTF-8.in: Likewise.
16607 * localedata/mr_IN.UTF-8.in: Likewise.
16608 * localedata/mt_MT.UTF-8.in: Likewise.
16609 * localedata/nb_NO.UTF-8.in: Likewise.
16610 * localedata/om_KE.UTF-8.in: Likewise.
16611 * localedata/os_RU.UTF-8.in: Likewise.
16612 * localedata/ps_AF.UTF-8.in: Likewise.
16613 * localedata/ro_RO.UTF-8.in: Likewise.
16614 * localedata/ru_RU.UTF-8.in: Likewise.
16615 * localedata/sc_IT.UTF-8.in: Likewise.
16616 * localedata/se_NO.UTF-8.in: Likewise.
16617 * localedata/sq_AL.UTF-8.in: Likewise.
16618 * localedata/sv_SE.UTF-8.in: Likewise.
16619 * localedata/szl_PL.UTF-8.in: Likewise.
16620 * localedata/tg_TJ.UTF-8.in: Likewise.
16621 * localedata/tk_TM.UTF-8.in: Likewise.
16622 * localedata/tt_RU.UTF-8.in: Likewise.
16623 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
16624 * localedata/ug_CN.UTF-8.in: Likewise.
16625 * localedata/uz_UZ.UTF-8.in: Likewise.
16626 * localedata/vi_VN.UTF-8.in: Likewise.
16627 * localedata/yi_US.UTF-8.in: Likewise.
16628 * localedata/yo_NG.UTF-8.in: Likewise.
16629 * localedata/zh_CN.UTF-8.in: Likewise.
16630 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
16631 file and fix bugs in the collation.
16632 * localedata/locales/az_AZ: Likewise.
16633 * localedata/locales/be_BY: Likewise.
16634 * localedata/locales/ber_DZ: Likewise.
16635 * localedata/locales/ber_MA: Likewise.
16636 * localedata/locales/bg_BG: Likewise.
16637 * localedata/locales/br_FR: Likewise.
16638 * localedata/locales/br_FR@euro: Likewise.
16639 * localedata/locales/ca_ES: Likewise.
16640 * localedata/locales/cns11643_stroke: Likewise.
16641 * localedata/locales/crh_UA: Likewise.
16642 * localedata/locales/cs_CZ: Likewise.
16643 * localedata/locales/csb_PL: Likewise.
16644 * localedata/locales/cv_RU: Likewise.
16645 * localedata/locales/cy_GB: Likewise.
16646 * localedata/locales/da_DK: Likewise.
16647 * localedata/locales/dz_BT: Likewise.
16648 * localedata/locales/en_CA: Likewise.
16649 * localedata/locales/eo: Likewise.
16650 * localedata/locales/es_CU: Likewise.
16651 * localedata/locales/es_EC: Likewise.
16652 * localedata/locales/es_ES: Likewise.
16653 * localedata/locales/es_US: Likewise.
16654 * localedata/locales/et_EE: Likewise.
16655 * localedata/locales/fa_IR: Likewise.
16656 * localedata/locales/fi_FI: Likewise.
16657 * localedata/locales/fil_PH: Likewise.
16658 * localedata/locales/fur_IT: Likewise.
16659 * localedata/locales/gez_ER@abegede: Likewise.
16660 * localedata/locales/ha_NG: Likewise.
16661 * localedata/locales/hr_HR: Likewise.
16662 * localedata/locales/hsb_DE: Likewise.
16663 * localedata/locales/hu_HU: Likewise.
16664 * localedata/locales/ig_NG: Likewise.
16665 * localedata/locales/ik_CA: Likewise.
16666 * localedata/locales/is_IS: Likewise.
16667 * localedata/locales/iso14651_t1_pinyin: Likewise.
16668 * localedata/locales/kk_KZ: Likewise.
16669 * localedata/locales/ku_TR: Likewise.
16670 * localedata/locales/ky_KG: Likewise.
16671 * localedata/locales/ln_CD: Likewise.
16672 * localedata/locales/lt_LT: Likewise.
16673 * localedata/locales/lv_LV: Likewise.
16674 * localedata/locales/mi_NZ: Likewise.
16675 * localedata/locales/ml_IN: Likewise.
16676 * localedata/locales/mn_MN: Likewise.
16677 * localedata/locales/mr_IN: Likewise.
16678 * localedata/locales/mt_MT: Likewise.
16679 * localedata/locales/nb_NO: Likewise.
16680 * localedata/locales/om_KE: Likewise.
16681 * localedata/locales/os_RU: Likewise.
16682 * localedata/locales/pl_PL: Likewise.
16683 * localedata/locales/ps_AF: Likewise.
16684 * localedata/locales/ro_RO: Likewise.
16685 * localedata/locales/ru_RU: Likewise.
16686 * localedata/locales/ru_UA: Likewise.
16687 * localedata/locales/sc_IT: Likewise.
16688 * localedata/locales/se_NO: Likewise.
16689 * localedata/locales/si_LK: Likewise.
16690 * localedata/locales/sq_AL: Likewise.
16691 * localedata/locales/sv_FI: Likewise.
16692 * localedata/locales/sv_FI@euro: Likewise.
16693 * localedata/locales/sv_SE: Likewise.
16694 * localedata/locales/szl_PL: Likewise.
16695 * localedata/locales/tg_TJ: Likewise.
16696 * localedata/locales/ti_ER: Likewise.
16697 * localedata/locales/tk_TM: Likewise.
16698 * localedata/locales/tl_PH: Likewise.
16699 * localedata/locales/tr_TR: Likewise.
16700 * localedata/locales/tt_RU: Likewise.
16701 * localedata/locales/tt_RU@iqtelif: Likewise.
16702 * localedata/locales/ug_CN: Likewise.
16703 * localedata/locales/uk_UA: Likewise.
16704 * localedata/locales/uz_UZ: Likewise.
16705 * localedata/locales/uz_UZ@cyrillic: Likewise.
16706 * localedata/locales/vi_VN: Likewise.
16707 * localedata/locales/yi_US: Likewise.
16708 * localedata/locales/yo_NG: Likewise.
16709
16710 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16711
16712 * gen-locales.mk: Make test files which contain @ modifiers in their
16713 name work.
16714 * localedata/gen-locale.sh: Likewise.
16715
16716 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16717
16718 * posix/tst-fnmatch.input: Fix results for range expressions
16719 for non C locales.
16720 * posix/tst-regexloc.c: Do not use a range expression for
16721 de_DE.ISO-8859-1 locale.
16722
16723 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16724
16725 * posix/bug-regex5.c: Fix test case because with the new
16726 iso14651_t1_common file, the da_DK locale now has 6 collating elements
16727 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
16728 file.
16729
16730 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16731
16732 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
16733 downloaded from ISO, the collation order of @-. and space has changed.
16734 Therefore, this test file needed to be adapted.
16735 * localedata/fr_CA.UTF-8.in: Likewise.
16736 * localedata/fr_FR.UTF-8.in: Likewise.
16737 * localedata/uk_UA.UTF-8.in: Likewise.
16738
16739 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16740
16741 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
16742 order of ȥ in the new iso14651_t1_common file.
16743 * localedata/pl_PL.UTF-8.in: Likewise.
16744
16745 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16746
16747 * localedata/locales/iso14651_t1_common: Add sections for various
16748 scripts to the iso14651_t1_common file.
16749
16750 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16751
16752 * localedata/locales/iso14651_t1_common: Use the code point of a
16753 character in the fourth collation level instead of IGNORE for all
16754 entries which have IGNORE on all 4 levels.
16755
16756 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16757
16758 * localedata/locales/iso14651_t1_common: Add some convenient collation
16759 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
16760 rules similar to those in CLDR.
16761
16762 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16763
16764 * localedata/locales/iso14651_t1_common: The new version of this
16765 file downloaded from ISO contained several syntax errors which
16766 are fixed by this patch.
16767
16768 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16769
16770 * localedata/locales/iso14651_t1_common: replace all <U.....>
16771 with <U000.....> because glibc understands only 4 digit or 8 digit
16772
16773 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16774
16775 * localedata/locales/iso14651_t1_common: Necessary changes
16776 to make the file downloaded from ISO usable by glibc.
16777
16778 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16779
16780 [BZ #14095]
16781 * localedata/locales/iso14651_t1_common: Update file to
16782 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
16783
16784 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16785
16786 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
16787 of <nptl/pthreadP.h>
16788 (thread_attr_compare): Move function to...
16789 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
16790 * sysdeps/nptl/timer_routines.h: ... new header.
16791 * sysdeps/mach/hurd/gai_misc.h: New file.
16792
16793 2018-02-26 Joseph Myers <joseph@codesourcery.com>
16794
16795 * string/strcoll_l.c: Include <libc-diag.h>.
16796 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
16797 declarations of seq1 and seq2.
16798
16799 [BZ #15105]
16800 * stdlib/atoi.c (atoi): Use libc_hidden_def.
16801 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
16802
16803 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
16804
16805 [BZ #22433]
16806 [BZ #22807]
16807 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
16808 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
16809 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
16810 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
16811 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
16812 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
16813
16814 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16815
16816 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
16817 macros used in __ptrace_request.
16818
16819 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
16820
16821 [BZ #22792]
16822 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
16823 to $(CC).
16824 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
16825 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
16826 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
16827 <tcb-offsets.h>.
16828
16829 2018-02-23 Joseph Myers <joseph@codesourcery.com>
16830
16831 [BZ #15105]
16832 * ctype/ctype.c (tolower): Use libc_hidden_def.
16833 (toupper): Likewise.
16834 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
16835 [!_ISOMAC] (toupper): Likewise.
16836
16837 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16838
16839 * localedata/Makefile: Remove --quiet argument when
16840 installing locales
16841
16842 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16843
16844 [BZ #17438]
16845 * localedata/locales/pt_BR (LC_TIME): use / instead of -
16846 in d_fmt.
16847 * localedata/locales/pt_PT (LC_TIME): likewise
16848
16849 2018-02-23 Mike FABIAN <mfabian@redhat.com>
16850
16851 [BZ #22646]
16852 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
16853 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
16854 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
16855
16856 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16857
16858 * sysdeps/sparc/fpu/libm-test-ulps: Update.
16859
16860 * nptl/Makefile (routines): Remove unregister-atfork.
16861 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
16862 (fork_handler_alloc): Remove function.
16863 (fork_handlers, fork_handler_init): New variables.
16864 (__fork_lock): Rename to atfork_lock.
16865 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
16866 to use a dynamic array to add/remove atfork handlers.
16867 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
16868 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
16869 Remove declaration.
16870 (fork_handler): Remove next, refcntr, and need_signal member.
16871 (__run_fork_handler_type): New enum.
16872 (__run_fork_handlers): New prototype.
16873 * nptl/register-atfork.c: Remove file.
16874 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
16875
16876 * sysdeps/nptl/nptl-signals.h: Move to ...
16877 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
16878 comments.
16879 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
16880 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
16881 unnecessary check for SIGTIMER.
16882 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
16883 remove unnecessary removal of SIGTIMER.
16884 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
16885 include-signals.h rename.
16886 * nptl/pthreadP.h: Likewise.
16887 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
16888 __is_internal_signal instead of __nptl_is_internal_signal.
16889
16890 2018-02-22 Andrew Waterman <andrew@sifive.com>
16891
16892 [BZ # 22884]
16893 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
16894 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
16895 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
16896 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
16897
16898 2018-02-22 DJ Delorie <dj@delorie.com>
16899
16900 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
16901
16902 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
16903
16904 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
16905 do_misaligned, not misaligned8.
16906
16907 2018-02-22 Steve Ellcey <sellcey@cavium.com>
16908
16909 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
16910 Add memcpy_thunderx2.
16911 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
16912 Increment to 4.
16913 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
16914 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
16915 and IS_THUNDERX2PA checks.
16916 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
16917 Use macro to set name appropriately.
16918 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
16919 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
16920 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
16921 New macro.
16922 (IS_THUNDERX2): New macro.
16923
16924 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
16925
16926 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16927
16928 2018-02-21 Zack Weinberg <zackw@panix.com>
16929
16930 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
16931 Define here, unconditionally.
16932 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
16933 * libio/libioP.h: Remove #if 0 blocks.
16934 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
16935 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
16936 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
16937
16938 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
16939 Assume weak_alias is always defined.
16940
16941 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
16942 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
16943 Remove #if 0 and #ifdef TODO blocks.
16944 Assume text_set_element is always defined.
16945
16946 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
16947 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
16948 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
16949
16950 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
16951 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
16952 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
16953 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
16954 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
16955 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
16956 Reformat bit flags for _flags field to make occupancy clearer.
16957 Update commentary.
16958 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
16959 Keep definitions consistent with those in libio/libio.h.
16960
16961 * libio/libio.h (_IO_file_flags): Remove macro.
16962 All uses changed to _flags.
16963
16964 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
16965 (__HAVE_COLUMN, _IO_BE): Don't define.
16966 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
16967 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
16968 * libio/libioP.h (EOF): Don't define.
16969 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
16970 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
16971 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
16972 testing _IO_UNIFIED_JUMPTABLES.
16973
16974 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
16975 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
16976 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
16977 (_IO_size_t): Delete; all uses changed to size_t.
16978 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
16979 (_IO_off_t): Delete; all uses changed to off_t.
16980 (_IO_off64_t): Delete; all uses changed to off64_t.
16981 (_IO_pid_t): Delete; all uses changed to pid_t.
16982 (_IO_uid_t): Delete; all uses changed to uid_t.
16983 (_IO_wint_t): Delete; all uses changed to wint_t.
16984 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
16985 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
16986 (_IO_cookie_io_functions_t): Delete; all uses changed to
16987 cookie_io_functions_t.
16988 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
16989 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
16990 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
16991 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
16992
16993 * libio/iofopncook.c: Remove unnecessary forward declarations.
16994 * libio/iolibio.h: Correct outdated commentary.
16995 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
16996 * stdio-common/fxprintf.c (__fxprintf_nocancel):
16997 Remove unnecessary casts.
16998 * stdio-common/getline.c: Use _IO_getdelim directly.
16999 Don't redefine ssize_t.
17000 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17001 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17002 Remove outdated comments.
17003 * stdio-common/vfscanf.c: Don't redefine va_list.
17004
17005 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17006 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17007 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17008 which are always true, and __cplusplus, which is always false.
17009
17010 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17011
17012 [BZ #15105]
17013 [BZ #19463]
17014 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17015 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17016 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17017 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17018 libc_hidden_proto.
17019 [!_ISOMAC] (putc_unlocked): Likewise.
17020 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17021 define inline if [__USE_EXTERN_INLINES].
17022 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17023 putc_unlocked.
17024
17025 [BZ #15105]
17026 [BZ #19463]
17027 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17028 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17029 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17030 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17031 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17032 getc_unlocked.
17033 * time/tzfile.c (__tzfile_read): Likewise.
17034
17035 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17036
17037 [BZ #22517]
17038 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17039
17040 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17041
17042 * io/fcntl.h: Fix a typo in a comment.
17043
17044 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17045
17046 [BZ #22862]
17047 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17048 define _DEFAULT_SOURCE.
17049 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17050
17051 2018-02-21 Florian Weimer <fweimer@redhat.com>
17052
17053 [BZ #20890]
17054 * elf/cache.c (save_cache): Call fsync on temporary file before
17055 renaming it.
17056 (save_aux_cache): Call fdatasync on temporary file before renaming
17057 it.
17058
17059 2018-02-21 Florian Weimer <fweimer@redhat.com>
17060
17061 [BZ #22787]
17062 * include/caller.h: Remove file.
17063 * elf/dl-caller.c: Likewise.
17064 * elf/Makefile (dl-routines): Remove dl-caller.
17065 (shared-only-routines): Do not add dl-caller.
17066 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17067 __check_caller.
17068 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17069 member.
17070 (dl_open_worker): Do not call __check_caller.
17071 (_dl_open): Do not set caller_dl_open member.
17072 * elf/rtld.c (_rtld_global_ro): Do not initialize
17073 _dl_check_caller member.
17074 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17075 _dl_check_caller member.
17076 (_dl_check_caller): Remove declaration.
17077 * sysdeps/unix/sysv/linux/dl-execstack.c
17078 (_dl_make_stack_executable): Do not call __check_caller.
17079
17080 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17081
17082 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17083 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17084
17085 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17086
17087 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17088 description.
17089
17090 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17091
17092 [BZ #16335]
17093 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17094 of 199606L, 200112L, and 200809L.
17095 (_XOPEN_SOURCE): Document special values of 600 and 700.
17096 (_ISOC11_SOURCE): Document macro.
17097 (_ATFILE_SOURCE): Likewise.
17098 (_FORTIFY_SOURCE): Likewise.
17099
17100 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17101
17102 [BZ #15105]
17103 [BZ #19463]
17104 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17105 and define as weak alias of __ferror_unlocked. Use
17106 libc_hidden_weak.
17107 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17108 libc_hidden_proto.
17109 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17110 function if [__USE_EXTERN_INLINES].
17111 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17112 ferror_unlocked.
17113
17114 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17115
17116 [BZ #6889]
17117 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17118
17119 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17120
17121 [BZ #22818]
17122 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17123 the GLIBC_2.1 version.
17124
17125 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17126
17127 [BZ #21508]
17128 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17129 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17130 intl/tst-gettext-de.po from po/de.po by removing the
17131 POT-Creation-Date line.
17132 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17133 ../po/de.po.
17134 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17135 ../po/de.po.
17136
17137 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17138
17139 * mach/Makefile (headers): Add mach/param.h.
17140 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17141 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17142 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17143 (__ptsname_r): Move implementation to...
17144 (__ptsname_internal): ... new function. Add filling the STP
17145 structure.
17146
17147 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17148
17149 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17150 idouble to 1 ULP.
17151
17152 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17153
17154 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17155 syntax.
17156
17157 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17158
17159 * nptl/Makefile (tst-mutex8-ENV): Delete.
17160 * nptl/tst-mutex8.c (check_type):
17161 Add runtime check if mutex will be elided.
17162
17163 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17164
17165 [BZ #20980]
17166 [BZ #21234]
17167 * manual/install.texi (Configuring and compiling): Describe
17168 passing CC and CFLAGS on configure command line, not as
17169 environment variables. Use @code markup on those variables.
17170 Specify what options go in CC and what go in CFLAGS. Note the
17171 requirement to compile with optimization.
17172 * INSTALL: Regenerated.
17173
17174 [BZ #18124]
17175 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17176 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17177 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17178 __sigprocmask instead of sigprocmask.
17179 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17180 Likewise.
17181 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17182 __sigsetjmp and sigprocmask.
17183
17184 [BZ #15105]
17185 * include/argz.h (argz_next): Use libc_hidden_proto.
17186 (__argz_next): Likewise.
17187 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17188 (argz_next): Use libc_hidden_weak.
17189
17190 [BZ #15105]
17191 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17192 libc_hidden_proto.
17193 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17194 libc_hidden_def.
17195
17196 [BZ #15105]
17197 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17198 libc_hidden_proto.
17199 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17200
17201 [BZ #15105]
17202 [BZ #19463]
17203 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17204 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17205 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17206 (__feof_unlocked): New declaration, and inline function if
17207 [__USE_EXTERN_INLINES].
17208 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17209 instead of feof_unlocked.
17210 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17211 * nss/nsswitch.c (nss_parse_file): Likewise.
17212 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17213 Likewise.
17214 * time/getdate.c (__getdate_r): Likewise.
17215 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17216 Define as macro to call __feof_unlocked.
17217
17218 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17219
17220 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17221
17222 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17223
17224 * math/Makefile: Remove mpexp.c and mplog.c
17225 * sysdeps/i386/fpu/mpexp.c: Delete file.
17226 * sysdeps/i386/fpu/mplog.c: Likewise.
17227 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17228 * sysdeps/ia64/fpu/mplog.c: Likewise.
17229 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17230 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17231 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17232 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17233 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17234 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17235 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17236 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17237 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17238 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17239 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17240 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17241 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17242 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17243 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17244 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17245
17246 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17247
17248 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17249
17250 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17251
17252 * sysdeps/sh/libm-test-ulps: Update.
17253
17254 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17255
17256 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17257 idouble to 1 ULP.
17258
17259 2018-02-12 Zack Weinberg <zackw@panix.com>
17260
17261 [BZ #19239]
17262 * posix/sys/types.h: Don't include sys/sysmacros.h.
17263 * misc/sys/sysmacros.h: Remove the conditional deprecation
17264 warnings for the macros defined by this header.
17265
17266 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17267
17268 * manual/probes.texi: Remove slowexp probes.
17269 * math/Makefile: Remove slowexp.
17270 * sysdeps/generic/math_private.h (__slowexp): Remove.
17271 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17272 document error bounds.
17273 * sysdeps/i386/fpu/slowexp.c: Remove.
17274 * sysdeps/ia64/fpu/slowexp.c: Remove.
17275 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17276 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17277 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17278 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17279 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17280 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17281 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17282 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17283 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17284 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17285 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17286
17287 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17288
17289 [BZ #13932]
17290 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17291 * benchtests/pow-inputs: Update comment for slow path cases.
17292 * manual/probes.texi (slowpow_p10): Delete removed probe.
17293 (slowpow_p10): Likewise.
17294 * math/Makefile: Remove halfulp.c and slowpow.c.
17295 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17296 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17297 (__halfulp): Remove.
17298 (__slowpow): Remove.
17299 * sysdeps/i386/fpu/halfulp.c: Delete file.
17300 * sysdeps/i386/fpu/slowpow.c: Likewise.
17301 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17302 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17303 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17304 improve comments and add error analysis.
17305 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17306 (power1): Remove function:
17307 (log1): Remove error argument, add error analysis.
17308 (my_log2): Remove function.
17309 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17310 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17311 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17312 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17313 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17314 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17315 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17316 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17317 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17318 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17319 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17320 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17321 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17322 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17323
17324 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17325
17326 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17327 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17328
17329 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17330
17331 [BZ #22433]
17332 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17333 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17334 and PTRACE_SETHBPREGS.
17335
17336 2018-02-10 Zack Weinberg <zackw@panix.com>
17337
17338 [BZ #22830]
17339 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17340 correctly.
17341 * malloc/tst-malloc-stats-cancellation.c: New test case.
17342 * malloc/Makefile: Add new test case.
17343
17344 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17345
17346 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17347
17348 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17349
17350 * math/Makefile (libm-narrow-fns): Add add.
17351 (libm-test-funcs-narrow): Likewise.
17352 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17353 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17354 * math/gen-auto-libm-tests.c (test_functions): Add add.
17355 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17356 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17357 (NARROW_ADD_TRIVIAL): Likewise.
17358 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17359 macro.
17360 (__daddl): Likewise.
17361 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17362 dadd.
17363 (CFLAGS-nldbl-dadd.c): New variable.
17364 (CFLAGS-nldbl-fadd.c): Likewise.
17365 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17366 __nldbl_daddl.
17367 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17368 prototype.
17369 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17370 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17371 * math/auto-libm-test-in: Add tests of add.
17372 * math/auto-libm-test-out-narrow-add: New generated file.
17373 * math/libm-test-narrow-add.inc: New file.
17374 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17375 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17376 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17377 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17378 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17379 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17380 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17381 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17382 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17383 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17384 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17385 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17386 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17387 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17388 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17389 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17390 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17391 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17392 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17393 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17394 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17395 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17396 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17397 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17398 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17399 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17400 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17401 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17402 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17403 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17404 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17405 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17406 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17410 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17411 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17412 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17413 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17414 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17415 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17416 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17417 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17418 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17419 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17420
17421 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
17422 (f128-pairs): New variable.
17423 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
17424 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
17425 to CFLAGS.
17426 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
17427 Also make tests add $(f128-loader-link) to gnulib-tests.
17428
17429 2018-02-09 DJ Delorie <dj@redhat.com>
17430
17431 [BZ #22827]
17432 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
17433 64-bit ELF type for 64-bit ELF objects.
17434
17435 2018-02-09 Joseph Myers <joseph@codesourcery.com>
17436
17437 * math/libm-test-driver.c (snan_tests_arg): New variable.
17438 * math/libm-test-support.h (snan_tests_arg): New declaration.
17439 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
17440
17441 * math/Makefile (test-type-pairs): New variable.
17442 (test-type-pairs-f64xf128-yes): Likewise.
17443 (tests): Add test-narrow-macros.
17444 (libm-test-funcs-narrow): New variable.
17445 (libm-test-c-narrow): Likewise.
17446 (generated): Add $(libm-test-c-narrow).
17447 (libm-tests-base-narrow): New variable.
17448 (libm-tests-narrow): Likewise.
17449 (libm-tests): Add $(libm-tests-narrow).
17450 (libm-tests-for-type): Handle $(libm-tests-narrow).
17451 (libm-test-c-narrow-obj): New variable.
17452 ($(libm-test-c-narrow-obj)): New rule.
17453 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
17454 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
17455 $(o-iterator) to set dependencies and CFLAGS.
17456 * math/gen-auto-libm-tests.c: Document use for narrowing
17457 functions.
17458 (output_for_one_input_case): Take argument NARROW.
17459 (generate_output): Likewise. Update call to
17460 output_for_one_input_case.
17461 (main): Take --narrow option. Update call to generate_output.
17462 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
17463 (apply_lit): Update call to _apply_lit.
17464 (apply_arglit): New function.
17465 (parse_args): Handle "a" arguments.
17466 (parse_auto_input): Handle format names using ":".
17467 * math/README.libm-test: Document "a" parameter type.
17468 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
17469 (ARG_TYPE_TRUE_MIN): Likewise.
17470 (ARG_TYPE_MAX): Likwise.
17471 (ARG_MIN_EXP): Likewise.
17472 (ARG_MAX_EXP): Likewise.
17473 (ARG_MANT_DIG): Likewise.
17474 (TEST_COND_arg_ibm128): Likewise.
17475 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
17476 (TEST_COND_arg_fmt): New macro.
17477 (init_max_error): Update prototype.
17478 * math/libm-test-support.c (test_ibm128): New variable.
17479 (init_max_error): Take argument testing_ibm128 and set test_ibm128
17480 instead of using [TEST_COND_ibm128] conditional.
17481 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
17482 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
17483 [TEST_NARROW] (TEST_MSG): New definition.
17484 (arg_plus_zero): New macro.
17485 (arg_minus_zero): Likewise.
17486 (arg_plus_infty): Likewise.
17487 (arg_minus_infty): Likewise.
17488 (arg_qnan_value_pl): Likewise.
17489 (arg_qnan_value): Likewise.
17490 (arg_snan_value_pl): Likewise.
17491 (arg_snan_value): Likewise.
17492 (arg_max_value): Likewise.
17493 (arg_min_value): Likewise.
17494 (arg_min_subnorm_value): Likewise.
17495 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
17496 (RUN_TEST_LOOP_aa_f): New macro.
17497 (TEST_SUFF): New macro.
17498 (TEST_SUFF_STR): Likewise.
17499 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
17500 (TEST_COND_any_ibm128): New macro.
17501 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
17502 this_func. Update call to init_max_error.
17503 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
17504 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
17505 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
17506 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
17507 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
17508 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
17509 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
17510 * math/test-math-scalar.h (TEST_NARROW): Likewise.
17511 * math/test-math-vector.h (TEST_NARROW): Likewise.
17512 * math/test-arg-double.h: New file.
17513 * math/test-arg-float128.h: Likewise.
17514 * math/test-arg-float32x.h: Likewise.
17515 * math/test-arg-float64.h: Likewise.
17516 * math/test-arg-float64x.h: Likewise.
17517 * math/test-arg-ldouble.h: Likewise.
17518 * math/test-math-narrow.h: Likewise.
17519 * math/test-narrow-macros.c: Likewise.
17520 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
17521 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
17522 test-narrow-macros-ldbl-64.
17523 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
17524
17525 * math/bits/mathcalls-narrow.h: New file.
17526 * include/bits/mathcalls-narrow.h: Likewise.
17527 * math/math-narrow.h: Likewise.
17528 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
17529 (__MATHCALL_NARROW_ARGS_2): Likewise.
17530 (__MATHCALL_NARROW_ARGS_3): Likewise.
17531 (__MATHCALL_NARROW_NORMAL): Likewise.
17532 (__MATHCALL_NARROW_REDIR): Likewise.
17533 (__MATHCALL_NARROW): Likewise.
17534 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
17535 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
17536 defined.
17537 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
17538 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
17539 (libm-narrow-fns): New variable.
17540 (libm-narrow-types-basic): Likewise.
17541 (libm-narrow-types-ldouble-yes): Likewise.
17542 (libm-narrow-types-float128-yes): Likewise.
17543 (libm-narrow-types-float128-alias-yes): Likewise.
17544 (libm-narrow-types): Likewise.
17545 (libm-routines): Add narrowing functions.
17546 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
17547 (libc_feholdexcept_setroundf128): New macro.
17548 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
17549 * sysdeps/ieee754/float128/float128_private.h: Include
17550 <math/math-narrow.h>.
17551 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
17552 Undefine and redefine.
17553 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
17554 (libm_alias_float_ldouble): Undefine and redefine.
17555 (libm_alias_double_ldouble): Likewise.
17556
17557 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
17558
17559 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
17560
17561 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
17562 FPCR/FPSR.
17563
17564 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
17565
17566 * manual/creature.texi: Convert references to gcc.info to gcc.
17567 * manual/stdio.texi: Likewise.
17568 * manual/string.texi: Likewise.
17569
17570 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17571
17572 [BZ #17979]
17573 * posix/bits/types.h (__int_least8_t): New typedef.
17574 (__uint_least8_t): Likewise.
17575 (__int_least16_t): Likewise.
17576 (__uint_least16_t): Likewise.
17577 (__int_least32_t): Likewise.
17578 (__uint_least32_t): Likewise.
17579 (__int_least64_t): Likewise.
17580 (__uint_least64_t): Likewise.
17581 * sysdeps/generic/stdint.h (int_least8_t): Define using
17582 __int_least8_t.
17583 (int_least16_t): Define using __int_least16_t.
17584 (int_least32_t): Define using __int_least32_t.
17585 (int_least64_t): Define using __int_least64_t.
17586 (uint_least8_t): Define using __uint_least8_t.
17587 (uint_least16_t): Define using __uint_least16_t.
17588 (uint_least32_t): Define using __uint_least32_t.
17589 (uint_least64_t): Define using __uint_least64_t.
17590 * wcsmbs/uchar.h: Include <bits/types.h>.
17591 (char16_t): Define using __uint_least16_t conditional only on
17592 [!__USE_ISOCXX11].
17593 (char32_t): Define using __uint_least32_t conditional only on
17594 [!__USE_ISOCXX11].
17595 * wcsmbs/test-char-types.c: New file.
17596 * wcsmbs/Makefile (tests): Add test-char-types.
17597
17598 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
17599 version to 4.0.1.
17600
17601 2018-02-07 Zack Weinberg <zackw@panix.com>
17602
17603 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
17604 Delete all contents except for definitions of _G_HAVE_MMAP and
17605 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
17606 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
17607 sysdeps/unix/sysv/linux/_G_config.h. Make same content
17608 change as above.
17609
17610 * libio/libio.h: Don't include bits/_G_config.h here.
17611 Include stddef.h with __need_wchar_t defined. Include
17612 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
17613 Define _IO_iconv_t here, directly.
17614 Don't define _IO_HAVE_ST_BLKSIZE.
17615 * libio/libioP.h: Include _G_config.h here. Move include of
17616 shlib-compat.h up with rest of includes. Simplify conditionals
17617 controlling definition of _IO_JUMPS_OFFSET.
17618
17619 * csu/init.c: Remove always-true #if around entire file.
17620 Don't include stdio.h. Set _IO_stdin_used to hardwired
17621 constant 0x20001, and update commentary.
17622 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
17623 Replace all uses of _G_va_list with __gnuc_va_list.
17624 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
17625 instead of #if _IO_HAVE_ST_BLKSIZE.
17626 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
17627 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
17628 not #ifdef.
17629
17630 * libio/bits/libio.h: Move back to libio/libio.h and adjust
17631 multiple-include guard to match.
17632 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
17633 into this file.
17634 Remove preprocessor conditionals that are always true and/or
17635 redundant to other preprocessor conditionals in the same nest.
17636 Include shlib-compat.h unconditionally.
17637 Error out if _LIBC is not defined, or if _ISOMAC is defined,
17638 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
17639 defined after including stdio.h.
17640 Use __BEGIN_DECLS/__END_DECLS.
17641
17642 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
17643 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
17644 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
17645
17646 2018-02-07 Zack Weinberg <zackw@panix.com>
17647
17648 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
17649 New single-type headers split from _G_config.h.
17650 * libio/bits/types/cookie_io_functions_t.h
17651 * libio/bits/types/struct_FILE.h
17652 New single-type headers split from libio.h.
17653
17654 * libio/Makefile: Install the above new headers. Don't install
17655 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
17656 bits/libio-ldbl.h.
17657 * libio/_G_config.h, libio/libio.h: Delete file.
17658
17659 * libio/bits/libio.h: Remove improper-inclusion guard.
17660 Include stdio.h and don't repeat anything that it does.
17661 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
17662 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
17663 __io_read_fn as cookie_read_function_t,
17664 __io_write_fn as cookie_write_function_t,
17665 __io_seek_fn as cookie_seek_function_t,
17666 __io_close_fn as cookie_close_function_t,
17667 and _IO_cookie_io_functions_t as cookie_io_functions_t.
17668 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
17669 here, in the "compatibility defines" section. Remove an #if 0
17670 block. Use the "body" macros from bits/types/struct_FILE.h to
17671 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
17672 and _IO_ferror_unlocked.
17673 Move prototypes of __uflow and __overflow...
17674
17675 * libio/stdio.h: ...here. Don't include bits/libio.h.
17676 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
17677 directly from stdarg.h. Include bits/types/__fpos_t.h,
17678 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
17679 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
17680 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
17681 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
17682 cookie_io_functions_t, not _IO_cookie_io_functions_t;
17683 __ssize_t, not _IO_ssize_t. Unconditionally define
17684 BUFSIZ as 8192 and EOF as (-1).
17685
17686 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
17687 macros from bits/types/struct_FILE.h instead of _IO_* macros
17688 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
17689 instead of _IO_ssize_t.
17690 * libio/bits/stdio2.h: Similarly.
17691
17692 * libio/iolibio.h: Add multiple-include guard.
17693 Include bits/libio.h after stdio.h.
17694 * libio/libioP.h: Add multiple-include guard.
17695 Include stdio.h and bits/libio.h before iolibio.h.
17696
17697 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
17698 * include/bits/types/cookie_io_functions_t.h
17699 * include/bits/types/struct_FILE.h: New wrappers.
17700
17701 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
17702 Get definitions of _G_fpos_t and _G_fpos64_t from
17703 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
17704 respectively. Remove improper-inclusion guards.
17705
17706 * conform/data/stdio.h-data: Update expectations of va_list.
17707 * scripts/check-installed-headers.sh: Remove special case for
17708 libio.h and _G_config.h.
17709
17710 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17711
17712 [BZ #15105]
17713 [BZ #19463]
17714 * include/sys/sysmacros.h [!_ISOMAC]
17715 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
17716 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
17717 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
17718 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
17719 libc_hidden_proto.
17720 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
17721 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
17722 Likewise.
17723 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
17724 Undefine and redefine to add use __gnu_dev_ prefix.
17725 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
17726 Likewise.
17727 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
17728 and define as hidden inline function.
17729 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
17730 Likewise.
17731 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
17732 Likewise.
17733 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
17734 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
17735 (gnu_dev_minor): Likewise.
17736 (gnu_dev_makedev): Likewise.
17737 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
17738 makedev.
17739 * posix/wordexp.c (exec_comm_child): Likewise.
17740 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
17741 instead of minor and __gnu_dev_major instead of major.
17742 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
17743 __gnu_dev_major instead of major.
17744 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
17745 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
17746 instead of gnu_dev_minor.
17747 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
17748 (SLAVE_P): Likewise.
17749 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
17750 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
17751 instead of major.
17752
17753 [BZ #21313]
17754 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
17755 in another place.
17756 * locale/weightwc.h (findidx): Likewise.
17757
17758 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
17759
17760 * manual/probes.texi (slowlog): Delete documentation of removed probe.
17761 (slowlog_inexact): Likewise
17762 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
17763 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
17764
17765 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
17766
17767 [BZ #22797]
17768 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
17769 missing second underscore to parameter name.
17770
17771 2018-02-06 Joseph Myers <joseph@codesourcery.com>
17772
17773 [BZ #14508]
17774 [BZ #15512]
17775 [BZ #17082]
17776 [BZ #20530]
17777 * bits/byteswap.h: Update file comment. Do not include
17778 <bits/byteswap-16.h>.
17779 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
17780 constant.
17781 (__bswap_16): Define as inline function.
17782 (__bswap_constant_32): Reformat definition.
17783 (__bswap_32): Always define as inline function, not macro, using
17784 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
17785 otherwise __bswap_constant_32.
17786 (__bswap_constant_64): Reformat definition. Do not use
17787 __extension__ here.
17788 (__bswap_64): Always define as inline function, not macro. Use
17789 __extension__ on function definition. Use __builtin_bswap64 if
17790 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
17791 * string/test-endian-file-scope.c: New file.
17792 * string/test-endian-sign-conversion.c: Likewise.
17793 * string/Makefile (headers): Remove bits/byteswap-16.h.
17794 (tests): Add test-endian-file-scope and
17795 test-endian-sign-conversion.
17796 (CFLAGS-test-endian-sign-conversion.c): New variable.
17797 * bits/byteswap-16.h: Remove file.
17798 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
17799 * sysdeps/ia64/bits/byteswap.h: Likewise.
17800 * sysdeps/m68k/bits/byteswap.h: Likewise.
17801 * sysdeps/s390/bits/byteswap-16.h: Likewise.
17802 * sysdeps/s390/bits/byteswap.h: Likewise.
17803 * sysdeps/tile/bits/byteswap.h: Likewise.
17804 * sysdeps/x86/bits/byteswap-16.h: Likewise.
17805 * sysdeps/x86/bits/byteswap.h: Likewise.
17806
17807 [BZ #17721]
17808 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
17809 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
17810 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
17811 199901L] (__restrict): Define to restrict.
17812
17813 [BZ #19667]
17814 * string/testcopy.c: Include <support/support.h>. Do not include
17815 <malloc.h>. Use <support/test-driver.c>.
17816 (main): Rename to do_test. Make static. Use xmalloc instead of
17817 malloc.
17818
17819 [BZ #13575]
17820 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
17821 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
17822 (SSIZE_MAX): Define to INT_MAX.
17823 * posix/test-ssize-max.c: New file.
17824 * posix/Makefile (tests): Add test-ssize-max.
17825
17826 [BZ #19668]
17827 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
17828 <support/support.h>. Do not include <malloc.h>.
17829 (query_auxv): Use xmalloc instead of malloc.
17830
17831 [BZ #14553]
17832 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
17833 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
17834 instead of loff_t.
17835
17836 2018-02-06 Florian Weimer <fweimer@redhat.com>
17837
17838 [BZ #18023]
17839 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17840 Use scratch_buffer instead of extend_alloca.
17841
17842 2018-02-06 Zack Weinberg <zackw@panix.com>
17843
17844 * libio/stdio.h: Don't define getc or putc as macros.
17845 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
17846 not _IO_getc and _IO_putc.
17847
17848 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
17849 * stdio-common/tstgetln.c: Don't redefine ssize_t.
17850
17851 2018-02-06 Joseph Myers <joseph@codesourcery.com>
17852
17853 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
17854 (TCP_FASTOPEN_NO_COOKIE): Likewise.
17855
17856 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
17857
17858 [BZ #14890]
17859 * elf/elf.h (NT_PRFPREG): New macro.
17860 (NT_S390_VXRS_LOW): Likewise.
17861 (NT_S390_VXRS_HIGH): Likewise.
17862 (NT_S390_GS_CB): Likewise.
17863 (NT_S390_GS_BC): Likewise.
17864 (NT_S390_RI_CB): Likewise.
17865
17866 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
17867 (MAP_SYNC): New macro.
17868 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
17869 Likewise.
17870 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
17871 (MAP_SYNC): Likewise.
17872 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
17873 (MAP_SYNC): Likewise.
17874 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
17875 (MAP_SYNC): Likewise.
17876 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
17877 (MAP_SYNC): Likewise.
17878 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
17879 (MAP_SYNC): Likewise.
17880 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
17881 (MAP_SYNC): Likewise.
17882 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
17883 Likewise.
17884 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
17885 Likewise.
17886
17887 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
17888 (MAP_SHARED_VALIDATE): New macro.
17889 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
17890 (MAP_SHARED_VALIDATE): Likewise.
17891
17892 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17893
17894 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
17895 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
17896 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17897
17898 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17899
17900 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
17901 (DT_NUM): Updated to 35.
17902
17903 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17904
17905 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
17906 __builtin_expect with __glibc_likely and __glibc_unlikely.
17907 (elf_machine_rela): Likewise.
17908 (elf_machine_lazy_rel): Likewise.
17909
17910 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17911
17912 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
17913 __builtin_expect with __glibc_likely and __glibc_unlikely.
17914 (elf_machine_lazy_rel): Likewise.
17915
17916 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
17917
17918 [BZ #22638]
17919 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
17920 SHARED.
17921 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
17922
17923 2018-02-05 Andreas Schwab <schwab@suse.de>
17924
17925 [BZ #22761]
17926 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
17927 string.
17928
17929 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
17930
17931 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
17932 not check against PTHREAD_STACK_MIN.
17933
17934 2018-02-02 Sean McKean <smckean83@gmail.com>
17935
17936 [BZ #22735]
17937 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
17938
17939 2018-02-02 Florian Weimer <fweimer@redhat.com>
17940
17941 [BZ #22753]
17942 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
17943 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
17944 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
17945 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
17946 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
17947 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
17948 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
17949 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
17950 * manual/llio.texi (Scatter-Gather): Mention offset -1.
17951 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
17952 * misc/tst-preadvwritev2.c (do_test): Call it.
17953 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
17954
17955 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
17956
17957 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
17958
17959 * benchtests/bench-memcmp.c: Print json instead of plain text.
17960
17961 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
17962 every test run.
17963
17964 2018-02-01 Joseph Myers <joseph@codesourcery.com>
17965
17966 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
17967 version to 4.15.
17968 (s390_sthyi): New syscall.
17969
17970 * sysdeps/generic/ldbl-classify-compat.h: New file.
17971 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
17972 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
17973 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
17974 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
17975 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
17976 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
17977 * sysdeps/ieee754/dbl-64/s_finite.c: Include
17978 <ldbl-classify-compat.h>.
17979 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17980 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
17981 <ldbl-classify-compat.h>.
17982 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17983 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
17984 <ldbl-classify-compat.h>.
17985 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17986 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
17987 <ldbl-classify-compat.h>.
17988 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17989 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
17990 <ldbl-classify-compat.h>.
17991 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17992 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
17993 <ldbl-classify-compat.h>.
17994 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
17995 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
17996 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
17997 * sysdeps/m68k/coldfire/math_private.h: Remove file.
17998 * sysdeps/microblaze/math_private.h: Likewise.
17999 * sysdeps/nios2/math_private.h: Likewise.
18000 * sysdeps/sh/math_private.h: Likewise.
18001
18002 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18003 * sysdeps/m68k/coldfire/math_private.h: ... here.
18004 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18005 * sysdeps/tile/math_private.h: Likewise.
18006 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18007 Remove macro.
18008 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18009 Likewise.
18010
18011 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18012 Remove macro.
18013 (libc_fetestexcept): Likewise.
18014 (libc_feupdateenv_test): Likewise.
18015 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18016 (libc_fetestexcept): Likewise.
18017 (libc_feupdateenv_test): Likewise.
18018 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18019 (libc_fetestexcept): Likewise.
18020 (libc_feupdateenv_test): Likewise.
18021 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18022 (libc_fetestexcept): Likewise.
18023 (libc_feupdateenv_test): Likewise.
18024
18025 * sysdeps/generic/math_private.h
18026 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18027 New inline function.
18028 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18029 Likewise.
18030
18031 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18032 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18033 * sysdeps/generic/math_private.h
18034 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18035 inline function.
18036 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18037 Likewise.
18038 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18039 Likewise.
18040 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18041 Likewise.
18042 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18043 Likewise.
18044 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18045 Likewise.
18046 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18047 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18048 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18049 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18050 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18051 (__fegetenv): Likewise.
18052 (fesetenv): Likewise.
18053 (__fesetenv): Likewise.
18054 (feupdateenv): Likewise.
18055 (__feupdateenv): Likewise.
18056 (fegetround): Likewise.
18057 (__fegetround): Likewise.
18058 (fesetround): Likewise.
18059 (__fesetround): Likewise.
18060
18061 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18062 (feraiseexcept): New macro.
18063 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18064 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18065 Remove macro.
18066 (__feraiseexcept): Likewise.
18067 (feclearexcept): Likewise.
18068 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18069 (__feraiseexcept): Likewise.
18070 (feclearexcept): Likewise.
18071 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18072 (__feraiseexcept): Likewise.
18073 (feclearexcept): Likewise.
18074 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18075 (__feraiseexcept): Likewise.
18076 (feclearexcept): Likewise.
18077 (fetestexcept): Likewise.
18078
18079 * sysdeps/m68k/coldfire/math-tests.h: New file.
18080
18081 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18082 * sysdeps/m68k/bits/fenv.h: ... here.
18083 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18084 not define.
18085 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18086 Likewise.
18087 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18088 Likewise.
18089 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18090 Likewise.
18091 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18092 Likewise.
18093 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18094 Define to 0.
18095 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18096 (__FE_UNDEFINED): New enum constant.
18097 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18098 Do not define.
18099 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18100 Likewise.
18101 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18102 Likewise.
18103 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18104 to match generic bits/fenv.h.
18105 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18106 Do not define.
18107
18108 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18109 packed on bits.
18110 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18111 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18112 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18113 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18114
18115 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18116 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18117 Joseph Myers <joseph@codesourcery.com>
18118
18119 [BZ #21314]
18120 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18121 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18122 computation using c.
18123 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18124 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18125 computation using c.
18126
18127 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18128
18129 * version.h (RELEASE): Set to "development".
18130 (VERSION): Set to "2.27.9000".
18131 * NEWS (2.28): New section.
18132
18133 * version.h (RELEASE): Set to "stable".
18134 (VERSION): Set to "2.27".
18135 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18136
18137 * NEWS: Add the list of bugs fixed in 2.27.
18138
18139 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18140
18141 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18142 against PTHREAD_STACK_MIN.
18143
18144 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18145
18146 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18147 New entries.
18148 (Rafal Luzynski, Andreas Schwab): Update.
18149
18150 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18151
18152 [BZ #10871]
18153 * NEWS: List the languages which actually use the alternative
18154 months feature in this release. Also explain that "alt_mon" and
18155 "ab_alt_mon" are optional.
18156
18157 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18158
18159 [BZ #22765]
18160 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18161
18162 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18163
18164 * manual/install.texi (Tools for Compilation): Update the newest
18165 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18166 * INSTALL: Regenerated.
18167
18168 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18169
18170 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18171 instead of __builtin_expect.
18172
18173 2018-01-30 Florian Weimer <fweimer@redhat.com>
18174
18175 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18176 data.
18177 * nss/tst-nss-getpwent.c (do_test): Likewise.
18178
18179 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18180
18181 [BZ #10871]
18182 * localedata/locales/hr_HR (mon): Rename to...
18183 (alt_mon): This.
18184 (mon): Import from CLDR (genitive case).
18185 (d_t_fmt): Update the comment.
18186
18187 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18188
18189 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18190 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18191 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18192
18193 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18194
18195 * mach/Versions: Fix version when __mach_host_self_ was added.
18196 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18197 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18198 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18199 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18200 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18201 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18202 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18203 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18204 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18205 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18206 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18207 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18208 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18209 || to respect codestyle.
18210 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18211 (do_test_bz20181): Rename accordingly.
18212 * malloc/malloc.c: Include <assert.h>.
18213 (assert): Do not define.
18214 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18215 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18216 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18217 * sysdeps/mach/hurd/hp-timing.h: New file.
18218 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18219
18220 2018-01-29 Darius Rad <darius@bluespec.com>
18221
18222 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18223
18224 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18225
18226 * sysdeps/init_array/crti.S (.section .init_array): Add
18227 PREINIT_FUNCTION when defined.
18228 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18229 * config.h.in: Regenerate.
18230 * manual/platform.texi: Add RISC-V documenation for
18231 __riscv_flush_icache.
18232 * sysdeps/riscv/__longjmp.S: New file.
18233 * sysdeps/riscv/backtrace.c: Likewise.
18234 * sysdeps/riscv/bits/endian.h: Likewise.
18235 * sysdeps/riscv/bits/setjmp.h: Likewise.
18236 * sysdeps/riscv/bits/wordsize.h: Likewise.
18237 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18238 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18239 * sysdeps/riscv/dl-trampoline.S: Likewise.
18240 * sysdeps/riscv/gccframe.h: Likewise.
18241 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18242 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18243 * sysdeps/riscv/machine-gmon.h: Likewise.
18244 * sysdeps/riscv/memusage.h: Likewise.
18245 * sysdeps/riscv/setjmp.S: Likewise.
18246 * sysdeps/riscv/sys/asm.h: Likewise.
18247 * sysdeps/riscv/tls-macros.h: Likewise.
18248 * sysdeps/riscv/dl-tls.h: New file.
18249 * sysdeps/riscv/libc-tls.c: Likewise.
18250 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18251 * sysdeps/riscv/nptl/tls.h: Likewise.
18252 * sysdeps/riscv/stackinfo.h: Likewise.
18253 * sysdeps/riscv/bits/fenv.h: New file.
18254 * sysdeps/riscv/e_sqrtl.c: Likewise.
18255 * sysdeps/riscv/fpu_control.h: Likewise.
18256 * sysdeps/riscv/math-tests.h: Likewise.
18257 * sysdeps/riscv/nofpu/Implies: Likewise.
18258 * sysdeps/riscv/sfp-machine.h: Likewise.
18259 * sysdeps/riscv/tininess.h: Likewise.
18260 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18261 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18262 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18263 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18264 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18265 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18266 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18267 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18268 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18269 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18270 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18271 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18272 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18273 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18274 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18275 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18276 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18277 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18278 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18279 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18280 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18281 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18282 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18283 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18284 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18285 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18286 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18287 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18288 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18289 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18290 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18291 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18292 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18293 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18294 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18295 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18296 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18297 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18298 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18299 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18300 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18301 * sysdeps/riscv/rvf/math_private.h: Likewise.
18302 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18303 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18304 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18305 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18306 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18307 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18308 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18309 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18310 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18311 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18312 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18313 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18314 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18315 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18316 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18317 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18318 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18319 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18320 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18321 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18322 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18323 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18324 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18325 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18326 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18327 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18328 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18329 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18330 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18331 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18332 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18333 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18334 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18335 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18336 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18337 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18338 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18339 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18340 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18341 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18342 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18343 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18344 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18345 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18346 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18347 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18348 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18349 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18350 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18351 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18352 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18353 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18354 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18355 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18356 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18357 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18358 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18359 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18360 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18361 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18362 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18363 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18364 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18365 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18366 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18367 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18368 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18369 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18370 * sysdeps/riscv/Implies: New file.
18371 * sysdeps/riscv/Makefile: Likewise.
18372 * sysdeps/riscv/configure: Likewise.
18373 * sysdeps/riscv/configure.ac: Likewise.
18374 * sysdeps/riscv/nptl/Makefile: Likewise.
18375 * sysdeps/riscv/preconfigure: Likewise.
18376 * sysdeps/riscv/rv64/Implies-after: Likewise.
18377 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18378 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18379 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18380 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18381 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18382 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18383 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18384 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18385 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18386 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18387 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18388 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18389 (Config): Likewise.
18390
18391 2018-01-29 Florian Weimer <fweimer@redhat.com>
18392
18393 [BZ #22701]
18394 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18395 libnsl_hidden_proto.
18396 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18397 libnsl_hidden_proto.
18398 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18399 * nis/Makefile (libnsl-routines): Add nss-default only for
18400 build-obsolete-nsl.
18401 * nis/nis_defaults.c (__nis_default_ttl): Add
18402 libnsl_hidden_nolink_def.
18403 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18404 declaration.
18405 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18406 * nis/ypclnt.c (yp_maplist): Likewise.
18407
18408 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
18409
18410 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18411 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18412
18413 2018-01-29 Joseph Myers <joseph@codesourcery.com>
18414
18415 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
18416 clean -dxfq for git updates when replacing sources.
18417
18418 * scripts/build-many-glibcs.py (Config.build_gcc): Use
18419 --disable-libcilkrts unconditionally, not just for the final GCC
18420 build for Hurd.
18421
18422 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18423 version to 4.15.
18424
18425 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18426
18427 [BZ #10871]
18428 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
18429 case).
18430
18431 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18432
18433 [BZ #10871]
18434 * localedata/locales/be_BY (mon): Rename to...
18435 (alt_mon): This, then synchronize with CLDR (nominative case).
18436 (abmon): Rename to...
18437 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18438 (mon): Import from CLDR (genitive case).
18439 (abmon): Likewise.
18440 * localedata/locales/be_BY@latin (mon): Rename to...
18441 (alt_mon): This.
18442 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
18443
18444 * localedata/locales/be_BY@latin (lang_name): Reworded to
18445 "biełaruskaja mova".
18446
18447 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18448
18449 [BZ #10871]
18450 * localedata/locales/el_CY (mon): Renamed to...
18451 (alt_mon): This.
18452 (mon): Import from CLDR (genitive case).
18453 * localedata/locales/el_GR: Likewise.
18454
18455 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18456
18457 [BZ #10871]
18458 * localedata/locales/ru_RU (mon): Rename to...
18459 (alt_mon): This.
18460 (abmon): Rename to...
18461 (ab_alt_mon): This.
18462 (mon): Import from CLDR (genitive case).
18463 (abmon): Copy from the old content except the 5th month which is
18464 now in the genitive case, even when abbreviated.
18465 * localedata/locales/ru_UA: Likewise.
18466 * time/tst-strptime.c (day_tests): Add an actual example of
18467 a difference between %b and %Ob in Russian.
18468
18469 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18470
18471 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
18472 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
18473 a `c' variable.
18474 * resolv/res-close.c: Include <stdlib.h>.
18475 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
18476 <sys/wait.h>, <time.h>, <sys/uio.h>.
18477 (NOT_CANCEL_H): Add inclusion guard.
18478 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
18479 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
18480 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
18481 return 0.
18482 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
18483 vm_address_t * to ElfW(Addr) * for dl_main parameter.
18484 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
18485 instead of void *.
18486 * sysdeps/pthread/timer_create.c (timer_create): Do not use
18487 timer_ptr2id to cast struct timer_node * to void *.
18488 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
18489 --disable-libcilkrts to gcc configure.
18490 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
18491 and make them the default for now.
18492 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
18493 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
18494 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
18495 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
18496 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
18497 MACH_IPC_COMPAT.
18498 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
18499 __task_terminate would ever return successfully.
18500 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
18501 to global scope.
18502 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
18503 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
18504 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
18505 critical section to make code simpler and avoid warning.
18506 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
18507 critical section to make code simpler and avoid warning.
18508 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
18509 const char * instead of char *.
18510 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
18511 __hurd_file_name_split, hurd_file_name_split,
18512 __hurd_directory_name_split, hurd_directory_name_split,
18513 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
18514 hurd_file_name_path_lookup): Make lookup function parameter take a
18515 const char *name instead of char *name.
18516 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
18517 __hurd_directory_name_split): Likewise.
18518 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
18519 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
18520 * sysdeps/mach/hurd/check_native.c: New file.
18521 * sysdeps/mach/hurd/check_pf.c: New file.
18522 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
18523 (__freeifaddrs): Define macro to freeifaddrs.
18524 * sysdeps/mach/hurd/libhurduser.abilist: New file.
18525 * sysdeps/mach/libmachuser.abilist: New file.
18526 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
18527 (do_test_bz20181): Rename accordingly.
18528 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
18529 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
18530 <sys/mount.h>.
18531 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
18532 version only if __USE_EXTERN_INLINES is defined.
18533 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
18534 __hurd_sockfail): Likewise.
18535 (_hurd_fd_get): Always declare functions, and provide inline versions
18536 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
18537 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
18538 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
18539 _hurd_port_set): Always declare functions, and provide inline versions
18540 only if __USE_EXTERN_INLINES and _LIBC are defined and
18541 IS_IN(libc).
18542 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
18543 _hurd_critical_section_unlock): Likewise.
18544 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
18545 * __hurd_threadvar_location): Likewise.
18546 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
18547 _hurd_userlink_clear): Likewise.
18548 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
18549 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
18550 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
18551 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
18552 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
18553 __spin_lock_locked): Likewise.
18554 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
18555 __spin_lock_locked): Likewise.
18556 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
18557 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
18558 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
18559 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
18560 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
18561 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
18562 _POSIX_NO_TRUNC): Define to 0.
18563 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
18564 check size against PTHREAD_STACK_MIN.
18565 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
18566 IS_IN(libpthread)]: Include <sigsetops.h>.
18567 * mach/Makefile (user-interfaces): Add mach/gnumach.
18568 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
18569 * sysdeps/mach/configure (mach_interface_list): Regenerate.
18570 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
18571 instead of invalid -1.
18572 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
18573 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
18574 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
18575 <net/ppp_defs.h>.
18576
18577 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
18578
18579 * hurd/fcntl-internal.h: New file.
18580
18581 2018-01-27 James Clarke <jrtc27@jrtc27.com>
18582
18583 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18584
18585 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18586
18587 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
18588
18589 [BZ #22701]
18590 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
18591 Build only shared objects.
18592
18593 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18594
18595 * README: Update for hppa.
18596
18597 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18598
18599 * sysdeps/sparc/fpu/libm-test-ulps: Update
18600 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
18601
18602 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18603
18604 Revert:
18605
18606 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18607
18608 [BZ #22563]
18609 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18610 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18611 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18612 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18613 to feature_1.
18614
18615 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18616
18617 [BZ #22563]
18618 * bits/types/__cancel_jmp_buf_tag.h: New file.
18619 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18620 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18621 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18622 * nptl/Makefile (headers): Add
18623 bits/types/__cancel_jmp_buf_tag.h.
18624 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18625 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18626 * sysdeps/nptl/pthread.h: Include
18627 <bits/types/__cancel_jmp_buf_tag.h>.
18628 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18629 __cancel_jmp_buf.
18630 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18631
18632 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
18633
18634 [BZ #10871]
18635 * localedata/locales/uk_UA (mon): Renamed to...
18636 (alt_mon): This.
18637 (alt_digits): "0" removed and then renamed to...
18638 (mon): This.
18639 (date_fmt): Definition changed not to use the alternative
18640 digits hack.
18641
18642 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
18643
18644 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
18645 FLAG_RISCV_FLOAT_ABI_DOUBLE.
18646 * elf/elf.h (EF_RISCV_RVC): New define.
18647 (EF_RISCV_FLOAT_ABI): Likewise.
18648 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
18649 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
18650 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18651 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
18652 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
18653 define.
18654 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18655
18656 2018-01-25 Andreas Schwab <schwab@suse.de>
18657
18658 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
18659 single quotes.
18660 * sysdeps/gnu/configure: Regenerate.
18661 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
18662 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18663 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
18664 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
18665 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
18666 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
18667 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
18668 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
18669
18670 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
18671
18672 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
18673 URL, and run autoconf, make it the default for now.
18674
18675 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18676
18677 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18678 soft-float ColdFire configuration.
18679
18680 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
18681 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
18682 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
18683
18684 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
18685 MicroBlaze file.
18686
18687 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
18688 ....
18689 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
18690 ... here.
18691 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
18692 New file.
18693
18694 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
18695 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
18696 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
18697 file.
18698
18699 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18700
18701 [BZ #22742]
18702 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
18703 Rename to __reserved and add comment.
18704 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
18705 Rename to __reserved.
18706
18707 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18708
18709 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18710 i686-gnu configurations.
18711 (Context.run_builds): Include mig, gnumach and hurd in components
18712 considered.
18713 (Context.checkout): Add mig, gnumach and hurd to components.
18714 (Context.checkout_tar): Add URL mappings for mig, gnumach and
18715 hurd.
18716 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
18717 (Config.build): Install gnumach headers, build mig and install
18718 hurd headers for 'gnu' OS.
18719 (Config.install_gnumach_headers): New function.
18720 (Config.install_hurd_headers): Likewise.
18721 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
18722 when building for 'gnu' OS.
18723
18724 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
18725
18726 * manual/tunables.texi (Hardware Capability Tunables): Fix
18727 spelling.
18728
18729 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
18730
18731 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
18732 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
18733 (ALTMON_11, ALTMON_12): Improve documentation.
18734 * manual/time.texi (strftime): Likewise.
18735
18736 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18737
18738 [BZ #10871]
18739 * localedata/locales/pl_PL: Alternative month names added,
18740 primary month names are genitive now.
18741 * time/tst-strptime.c (day_tests): Actually use a genitive case
18742 of a month name in Polish language.
18743
18744 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18745
18746 [BZ #10871]
18747 * manual/locale.texi: Document ALTMON_1..12 constants for
18748 nl_langinfo. Specify when to use ALTMON instead of MON.
18749 * manual/time.texi (strftime, strptime): Document GNU extension
18750 permitting O modifier with %B and %b. Specify when to use
18751 %OB instead of %B.
18752
18753 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18754
18755 [BZ #10871]
18756 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
18757 names, define them as the same as abbreviated month names explicitly.
18758 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
18759 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
18760 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
18761 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
18762 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
18763 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
18764 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
18765 _NL_WABALTMON_12): New enum constants.
18766 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
18767 wab_alt_mon, and ab_alt_mon_defined members.
18768 (time_output): Output ab_alt_mon and wab_alt_mon members.
18769 (time_read): Read them, initialize them as copies of abmon and wabmon
18770 respectively if they are missing, initialize ab_alt_mon_defined.
18771 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
18772 * locale/programs/locfile-kw.h: Regenerate.
18773 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
18774 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
18775 and ru_RU.UTF-8.
18776 * time/strftime_l.c (a_altmonth, aam_len): New macros.
18777 [!COMPILE_WIDE] (ABALTMON_1): New macro.
18778 (__strftime_internal): Handle %Ob and %Oh formats.
18779 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
18780 (__strptime_internal): Handle %Ob and %Oh formats.
18781 * time/tst-strptime.c (day_tests): Add more tests to parse different
18782 forms of month names including the new %Ob format specifier.
18783
18784 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18785
18786 [BZ #10871]
18787 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
18788 define them as the same as primary full month names explicitly.
18789 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
18790 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
18791 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
18792 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
18793 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
18794 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
18795 _NL_WALTMON_12): New enum constants.
18796 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
18797 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
18798 macros.
18799 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
18800 walt_mon, and alt_mon_defined members.
18801 (time_output): Output alt_mon and walt_mon members.
18802 (time_read): Read them, initialize them as copies of mon and wmon
18803 respectively if they are missing, initialize alt_mon_defined.
18804 * locale/programs/locfile-kw.gperf (alt_mon): Define.
18805 * locale/programs/locfile-kw.h: Regenerate.
18806 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
18807 * localedata/tst-langinfo.c (map): Add tests for the new constants
18808 ALTMON_1 .. ALTMON_12.
18809 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
18810 and pl_PL.UTF-8.
18811 * time/strftime_l.c (f_altmonth): New macro.
18812 (__strftime_internal): Handle %OB format.
18813 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
18814 (__strptime_internal): Handle %OB format.
18815 * time/tst-strptime.c (day_tests): Add tests to parse different forms
18816 of month names including the new %OB format specifier.
18817
18818 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18819
18820 [BZ #22685]
18821 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
18822 from ABORT_TRANSACTION.
18823 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
18824 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
18825 ABORT_TRANSACTION_IMPL): Likewise.
18826 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
18827 Linux code, but remove the code that aborts transactions.
18828
18829 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18830
18831 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
18832
18833 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
18834
18835 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
18836 in date: "2004-14-09" should be "2004-09-14".
18837 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
18838 "2003-15-09" should be "2003-09-15".
18839
18840 2018-01-18 Arjun Shankar <arjun@redhat.com>
18841
18842 [BZ #22343]
18843 [BZ #22774]
18844 CVE-2018-6485
18845 CVE-2018-6551
18846 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
18847 after padding.
18848 (_int_memalign): check for integer overflow before calling
18849 _int_malloc.
18850 * malloc/tst-malloc-too-large.c: New test.
18851 * malloc/Makefile: Add tst-malloc-too-large.
18852
18853 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
18854
18855 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
18856 in date: "2017-24-07" should be "2017-07-24".
18857 * localedata/locales/mai_IN: Likewise.
18858 * localedata/locales/mai_NP: Likewise.
18859
18860 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
18861
18862 * po/ru.po: Update translations.
18863
18864 2018-01-17 Joseph Myers <joseph@codesourcery.com>
18865
18866 [BZ #22719]
18867 * sysdeps/hppa/backtrace.c: New file.
18868
18869 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
18870
18871 [BZ #22715]
18872 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
18873 align La_x86_64_retval to VEC_SIZE.
18874
18875 2018-01-16 Joseph Myers <joseph@codesourcery.com>
18876
18877 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
18878 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
18879
18880 2018-01-16 Florian Weimer <fweimer@redhat.com>
18881
18882 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
18883 Move tst-thread-exit-clobber ...
18884 [$(CXX)] (tests-unsupported): ... to here.
18885
18886 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
18887
18888 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
18889 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
18890 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
18891 (_dl_aarch64_cap_flags): Update.
18892 (_DL_HWCAP_COUNT): Update.
18893
18894 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
18895
18896 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
18897 (_DL_HWCAP_LAST): Remove.
18898 (_DL_HWCAP_COUNT): Move to ...
18899 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
18900 (_DL_HWCAP_COUNT): ... here.
18901
18902 2018-01-16 Florian Weimer <fweimer@redhat.com>
18903
18904 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
18905 mode with GNU extensions.
18906
18907 2018-01-15 Alan Hayward <alan.hayward@arm.com>
18908
18909 * elf/elf.h (NT_ARM_SVE): Define.
18910
18911 2018-01-15 Florian Weimer <fweimer@redhat.com>
18912
18913 [BZ #22636]
18914 * nptl/tst-minstack-throw.cc: New file.
18915 * nptl/Makefile (tests): Add tst-minstack-throw.
18916 (LDLIBS-tst-minstack-throw): Link with libstdc++.
18917 [!CXX] (tests-unsupported): Add tst-minstack-throw.
18918
18919 2018-01-15 Joseph Myers <joseph@codesourcery.com>
18920
18921 * scripts/build-many-glibcs.py (Context.checkout): Default
18922 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
18923 version to 1.1.0.
18924
18925 2018-01-13 Carlos O'Donell <carlos@redhat.com>
18926
18927 [BZ #22707]
18928 * elf/elf.h (DF_1_STUB): Define.
18929 (DF_1_PIE): Define.
18930
18931 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18932
18933 [BZ #22697]
18934 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
18935 Do not add 0.5 to integer or out-of-range arguments.
18936
18937 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
18938
18939 * po/bg.po: Update translations.
18940 * po/cs.po: Likewise.
18941 * po/de.po: Likewise.
18942 * po/ko.po: Likewise.
18943 * po/pl.po: Likewise.
18944 * po/sv.po: Likewise.
18945 * po/uk.po: Likewise.
18946 * po/vi.po: Likewise.
18947
18948 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18949
18950 * aarch64/start.S (_start): Use __wrap_main.
18951 (__wrap_main): New local symbol.
18952
18953 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
18954
18955 [BZ #22679]
18956 CVE-2018-1000001
18957 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
18958 generic_getcwd if the path returned by getcwd syscall is not absolute.
18959 * io/tst-getcwd-abspath.c: New test.
18960 * io/Makefile (tests): Add tst-getcwd-abspath.
18961
18962 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
18963
18964 * malloc/malloc.c (malloc_consolidate): Add size check.
18965
18966 2018-01-12 Florian Weimer <fweimer@redhat.com>
18967
18968 * support/write_message.c (write_message): Preserve errno.
18969 * support/check.c (print_failure): Likewise.
18970 * support/support_test_verify_impl.c (support_test_verify_impl):
18971 Likewise.
18972 * support/support_test_compare_failure.c
18973 (support_test_compare_failure): Likewise.
18974
18975 2018-01-12 Florian Weimer <fweimer@redhat.com>
18976
18977 [BZ #22701]
18978 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
18979 Prevent installation of libnsl.so.
18980 (libnsl-inhibit-o): Do not build (or install) static libraries.
18981
18982 2018-01-12 Egmont Koblinger <egmont@gmail.com>
18983
18984 [BZ #22657]
18985 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
18986 before the day number which may produce a double space.
18987 (date_fmt): Likewise.
18988
18989 2018-01-12 Joseph Myers <joseph@codesourcery.com>
18990
18991 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
18992 instead of fegetenv.
18993
18994 2018-01-11 Joseph Myers <joseph@codesourcery.com>
18995
18996 [BZ #22702]
18997 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
18998 comment to say exceptions are discarded.
18999 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19000 __fegetenv.
19001 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19002 be enabled.
19003
19004 2018-01-11 Florian Weimer <fweimer@redhat.com>
19005
19006 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19007 and error message.
19008
19009 2018-01-11 Florian Weimer <fweimer@redhat.com>
19010
19011 [BZ #22636]
19012 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19013 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19014
19015 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19016
19017 [BZ #22693]
19018 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19019 negative arguments in test for NaN or infinity argument.
19020
19021 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19022
19023 * po/libc.pot: Regenerate.
19024
19025 2018-01-10 Florian Weimer <fweimer@redhat.com>
19026
19027 [BZ #22636]
19028 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19029 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19030
19031 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19032
19033 * hurd/hurd/fd.h: Include <fcntl.h>
19034 (__hurd_at_flags): New function.
19035 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19036 with call to __hurd_at_flags.
19037 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19038 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19039 __faccessat
19040 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19041 (__access_noerrno): Use __faccessat_common instead of access_common.
19042 (__access): Likewise.
19043 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19044 with a call to __faccessat.
19045 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19046 (__faccessat_common): ... this. Move implementation of __access into it when
19047 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19048 reauthenticate_cwdir_at helper to implement AT mechanism.
19049 (__faccessat_noerrno): New function, just calls __faccessat_common.
19050 (__faccessat): New function, just calls __faccessat_common.
19051 (faccessat): Define weak alias.
19052
19053 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19054
19055 [BZ #22691]
19056 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19057 (CFLAGS-s_fmaxmagl.c): New variable.
19058 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19059
19060 [BZ #22690]
19061 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19062 long int for arguments of possibly overflowing addition or
19063 subtraction.
19064 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19065
19066 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19067
19068 [BZ #22688]
19069 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19070 (CFLAGS-e_remainderl.c): New variable.
19071
19072 [BZ #22687]
19073 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19074 variable.
19075 (CFLAGS-s_cacoshl.c): Likewise.
19076 (CFLAGS-s_casinhl.c): Likewise.
19077 (CFLAGS-s_catanl.c): Likewise.
19078 (CFLAGS-s_catanhl.c): Likewise.
19079 (CFLAGS-s_cexpl.c): Likewise.
19080 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19081 (CFLAGS-s_csinhl.c): Likewise.
19082 (CFLAGS-s_clogl.c): Likewise.
19083 (CFLAGS-s_clog10l.c): Likewise.
19084 (CFLAGS-s_csinl.c): Likewise.
19085 (CFLAGS-s_csqrtl.c): Likewise.
19086
19087 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19088 2017-01-09 Svante Signell <svante.signell@gmail.com>
19089
19090 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19091 (_hurd_exec_paths): New function.
19092 * hurd/hurd.h (_hurd_exec): Deprecate function.
19093 (_hurd_exec_paths): Declare function.
19094 * hurd/Versions: Export _hurd_exec_paths.
19095 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19096 (__execve): Use __getcwd to build absolute path, and use
19097 _hurd_exec_paths instead of _hurd_exec.
19098 * sysdeps/mach/hurd/spawni.c: Likewise.
19099 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19100 _hurd_exec.
19101
19102 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19103
19104 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19105 test instead of failing in case of ENOENT returned by posix_openpt.
19106
19107 2018-01-08 Florian Weimer <fweimer@redhat.com>
19108
19109 resolv: Support binary labels in test framework.
19110 * support/resolv_test.c (struct to_be_freed): Remove.
19111 (struct compressed_name): New.
19112 (allocate_compressed_name, ascii_tolower)
19113 (compare_compressed_name): New functions.
19114 (struct resolv_response_builder): Update type of
19115 compression_offsets for use with tsearch. Rempve to_be_freed.
19116 (response_push_pointer_to_free): Remove function.
19117 (resolv_response_add_name): Rewrite using struct compressed_name
19118 and tsearch instead of hsearch_r.
19119 (response_builder_allocate): Remove initialization of
19120 compression_offsets.
19121 (response_builder_free): Update for removal of to_be_freed. Use
19122 tdestroy instead of hdestroy_r.
19123 * resolv/Makefile (tests): Add tst-resolv-binary.
19124 (tst-resolv-binary): Link with -lresolv -lpthread.
19125
19126 2018-01-08 Florian Weimer <fweimer@redhat.com>
19127
19128 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19129 time. Pass positive flag instead of negative flag to
19130 support_test_compare_failure.
19131 (support_test_compare_failure): Change negative parameter to
19132 positive.
19133 * support/support_test_compare_failure.c (report)
19134 (support_test_compare_failure): Likewise.
19135 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19136 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19137
19138 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19139
19140 [BZ #22637]
19141 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19142 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19143 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19144 stacksize.
19145 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19146
19147 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19148
19149 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19150 Add s_sincosf-sse2 and s_sincosf-fma.
19151 (CFLAGS-s_sincosf-fma.c): New.
19152 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19153 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19154 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19155 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19156 __sincosf is defined.
19157
19158 2018-01-08 Florian Weimer <fweimer@redhat.com>
19159
19160 * nptl/tst-thread-exit-clobber.cc: New file.
19161 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19162 C++11 mode.
19163 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19164 (tests): Add tst-thread-exit-clobber.
19165 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19166
19167 2018-01-08 Florian Weimer <fweimer@redhat.com>
19168
19169 * support/check.h (support_static_assert): Define.
19170 (TEST_COMPARE): Use it.
19171
19172 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19173
19174 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19175 [!__RLIM_T_MATCHES_RLIM64_T]
19176 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19177 __getrlimit64. Add libc_hidden_weak.
19178
19179 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19180
19181 * elf/elf.h (R_RISCV_NONE): New define.
19182 (R_RISCV_32): Likewise.
19183 (R_RISCV_64): Likewise.
19184 (R_RISCV_RELATIVE): Likewise.
19185 (R_RISCV_COPY): Likewise.
19186 (R_RISCV_JUMP_SLOT): Likewise.
19187 (R_RISCV_TLS_DTPMOD32): Likewise.
19188 (R_RISCV_TLS_DTPMOD64): Likewise.
19189 (R_RISCV_TLS_DTPREL32): Likewise.
19190 (R_RISCV_TLS_DTPREL64): Likewise.
19191 (R_RISCV_TLS_TPREL32): Likewise.
19192 (R_RISCV_TLS_TPREL64): Likewise.
19193 * Makerules (make-link-multidir): Make directories before linking into
19194 them.
19195 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19196 define.
19197 (VDSO_HASH_LINUX_4_15): Likewise.
19198 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19199 in subdirectories of lib.
19200 * nptl/Makefile (/librt.so): Always depend on
19201 "$(shared-thread-library)".
19202
19203 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19204
19205 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19206 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19207 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19208 (___tls_get_addr).
19209 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19210 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19211 "-O2 -march=i686".
19212 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19213 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19214 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19215 * sysdeps/gnu/glob-lstat-compat.c: New file.
19216 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19217 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19218
19219 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19220
19221 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19222 Reserve 16 chars to reloc_addr before calling _itoa_word.
19223
19224 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19225
19226 [BZ #22678]
19227 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19228 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19229
19230 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19231 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19232
19233 * resource/tst-getrlimit.c: Add copyright header.
19234
19235 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19236 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19237
19238 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19239 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19240 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19241 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19242 instead.
19243 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19244 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19245 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19246 RLIM64_INFINITY): Fix values to match the kernel ones.
19247 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19248 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19249 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19250 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19251 getrlimit64@@GLIBC_2_27.
19252 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19253 and setrlimit64.
19254 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19255 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19256 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19257 setrlimit, getrlimit64 and setrlimit64.
19258
19259 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19260
19261 [BZ #22648]
19262 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19263 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19264
19265 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19266
19267 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19268 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19269 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19270
19271 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19272
19273 [BZ #15479]
19274 [BZ #22666]
19275 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19276 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19277
19278 [BZ #15479]
19279 [BZ #22665]
19280 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19281 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19282 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19283 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19284
19285 2018-01-04 Florian Weimer <fweimer@redhat.com>
19286
19287 [BZ #22667]
19288 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19289 Align the stack before calling exit.
19290 * stdlib/tst-makecontext-align.c: New file.
19291 * stdlib/Makefile (tests): Add tst-makecontext-align.
19292
19293 2018-01-04 Florian Weimer <fweimer@redhat.com>
19294
19295 Add support for calling dlvsym from libc.so.
19296 * include/dlfcn.h (__libc_dlvsym): Declare.
19297 * elf/Makefile (tests-static-internal): Add
19298 tst-libc_dlvsym-static.
19299 (tests-internal): Add tst-libc_dlvsym.
19300 (modules-names): Add tst-libc_dlvsym-dso.
19301 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19302 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19303 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19304 object tst-libc_dlvsym-dso.so needs to be built before running
19305 these tests.
19306 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19307 * elf/Versions: Export __libc_dlvsym.
19308 * elf/dl-libc.c (struct do_dlvsym_args): New.
19309 (do_dlvsym, __libc_dlvsym): New functions.
19310 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19311 (_dl_open_hook2): New variable.
19312 (__libc_register_dl_open_hook): Set it.
19313 * elf/tst-libc_dlvsym-dso.c: New file.
19314 * elf/tst-libc_dlvsym-static.c: Likewise.
19315 * elf/tst-libc_dlvsym.c: Likewise.
19316 * elf/tst-libc_dlvsym.h: Likewise.
19317
19318 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19319
19320 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19321 include <sys/mount.h>.
19322
19323 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19324
19325 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19326 Add __NO_MATH_ERRNO__ check.
19327
19328 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19329
19330 * sysdeps/mips/mips32/libm-test-ulps: Update.
19331 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19332
19333 2018-01-02 Florian Weimer <fweimer@redhat.com>
19334
19335 * misc/tst-pselect.c: Add copyright header.
19336
19337 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19338
19339 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19340 comment.
19341 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19342 comment.
19343 (settrlimit): Rename into setrlimit.
19344 (__sttrlimit): Rename into __setrlimit.
19345
19346 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19347 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19348 never defined in that case.
19349
19350 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19351
19352 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19353
19354 * sysdeps/arm/libm-test-ulps: Update.
19355
19356 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19357 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19358
19359 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19360
19361 * NEWS: Add cosf and sincosf to list of optimized functions.
19362
19363 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19364
19365 [BZ #22660]
19366 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19367 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19368 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19369 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19370
19371 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19372
19373 [BZ #22433]
19374 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19375
19376 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19377 making a copy of it.
19378
19379 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19380
19381 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19382 trailing whitespace removed.
19383 * scripts/config.guess: Update to version 2018-01-01.
19384 * scripts/config.sub: Update to version 2018-01-01.
19385 * scripts/move-if-change: Update from gnulib.
19386
19387 * NEWS: Update copyright dates.
19388 * catgets/gencat.c (print_version): Likewise.
19389 * csu/version.c (banner): Likewise.
19390 * debug/catchsegv.sh: Likewise.
19391 * debug/pcprofiledump.c (print_version): Likewise.
19392 * debug/xtrace.sh (do_version): Likewise.
19393 * elf/ldconfig.c (print_version): Likewise.
19394 * elf/ldd.bash.in: Likewise.
19395 * elf/pldd.c (print_version): Likewise.
19396 * elf/sotruss.sh: Likewise.
19397 * elf/sprof.c (print_version): Likewise.
19398 * iconv/iconv_prog.c (print_version): Likewise.
19399 * iconv/iconvconfig.c (print_version): Likewise.
19400 * locale/programs/locale.c (print_version): Likewise.
19401 * locale/programs/localedef.c (print_version): Likewise.
19402 * login/programs/pt_chown.c (print_version): Likewise.
19403 * malloc/memusage.sh (do_version): Likewise.
19404 * malloc/memusagestat.c (print_version): Likewise.
19405 * malloc/mtrace.pl: Likewise.
19406 * manual/libc.texinfo: Likewise.
19407 * nptl/version.c (banner): Likewise.
19408 * nscd/nscd.c (print_version): Likewise.
19409 * nss/getent.c (print_version): Likewise.
19410 * nss/makedb.c (print_version): Likewise.
19411 * posix/getconf.c (main): Likewise.
19412 * scripts/test-installation.pl: Likewise.
19413 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19414
19415 * All files with FSF copyright notices: Update copyright dates
19416 using scripts/update-copyrights.
19417 * locale/programs/charmap-kw.h: Regenerated.
19418 * locale/programs/locfile-kw.h: Likewise.
19419
19420 2017-12-31 Zack Weinberg <zackw@panix.com>
19421
19422 * libio/bits/libio-ldbl.h: Correct check for improper
19423 inclusion. Add own multiple include guard.
19424
19425 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
19426 Dmitry V. Levin <ldv@altlinux.org>
19427
19428 [BZ #22625]
19429 CVE-2017-16997
19430 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
19431 string token expansion. Check for NULL pointer or empty string possibly
19432 returned by expand_dynamic_string_token.
19433 (decompose_rpath): Check for empty path after dynamic string
19434 token expansion.
19435
19436 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
19437
19438 [BZ #22433]
19439 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
19440
19441 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
19442 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
19443 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
19444 and PTRACE_SYSCALL.
19445 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
19446 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19447 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19448 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19449 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19450 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19451
19452 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
19453 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19454 __ptrace_peeksiginfo_flags, ptrace): Move to ...
19455 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
19456 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19457 bits/ptrace-shared.h.
19458 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
19459 <bits/ptrace-shared.h>.
19460 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19461 __ptrace_peeksiginfo_flags, ptrace): Remove.
19462 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19463 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19464 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19465 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19466 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19467
19468 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19469
19470 [BZ #17804]
19471 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
19472 end of the loop. Improve comments.
19473
19474 2017-12-29 Zack Weinberg <zackw@panix.com>
19475
19476 [BZ #22615]
19477 * manual/errno.texi (Checking for Errors): Explicitly say that errno
19478 might be set on success.
19479
19480 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19481
19482 [BZ #22611]
19483 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
19484 is unchanged on success.
19485
19486 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
19487
19488 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
19489 updated.
19490 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
19491 expand_dynamic_string_token): Likewise.
19492 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
19493 is_path argument.
19494
19495 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
19496 contains ':'.
19497
19498 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
19499 is set and name contains ':', and all code depending on these checks.
19500
19501 2017-12-24 Zack Weinberg <zackw@panix.com>
19502
19503 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
19504 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
19505 respectively.
19506 * libio/libio.h: Rename the original version of this file to
19507 libio/bits/libio.h. Error out if not included by stdio.h or the
19508 stub libio.h.
19509 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
19510 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
19511 if not included by bits/libio.h or the stub _G_config.h.
19512 * sysdeps/unix/sysv/linux/_G_config.h: Move to
19513 sysdeps/unix/sysv/linux/bits. Error out if not included by
19514 bits/libio.h or the stub _G_config.h.
19515 * libio/stdio.h: Include bits/libio.h, not libio.h.
19516 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
19517 well as libio.h and _G_config.h.
19518
19519 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
19520 * libio/strfile.h, stdio-common/vfscanf.c
19521 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
19522 Include stdio.h, not _G_config.h nor libio.h.
19523 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
19524 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
19525
19526 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
19527
19528 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
19529
19530 [BZ #22347]
19531 * stdlib/getrandom.c (getrandom): Fix comment.
19532 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
19533
19534 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
19535
19536 [BZ #21161]
19537 * manual/arith.texi (strtoul): Fix a typo.
19538
19539 [BZ #22596]
19540 * manual/arith.texi (finite): Fix the description of the return
19541 value.
19542
19543 2017-12-22 Eric Blake <ebb9@byu.net>
19544
19545 Avoid gcc warnings on cygwin
19546 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19547 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19548 Avoid unused variable.
19549
19550 2017-12-22 Florian Weimer <fweimer@redhat.com>
19551
19552 * io/Makefile (routines): Add copy_file_range.
19553 (tests): Add tst-copy_file_range.
19554 (tests-static, tests-internal): Add tst-copy_file_range-compat.
19555 * io/Versions (GLIBC_2.27): Export copy_file_range.
19556 * io/copy_file_range-compat.c: New file.
19557 * io/copy_file_range.c: Likewise.
19558 * io/tst-copy_file_range-compat.c: Likewise.
19559 * io/tst-copy_file_range.c: Likewise.
19560 * manual/llio.texi (Copying File Data): New section.
19561 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
19562 * support/Makefile (libsupport-routines): Add support-xfstat,
19563 xftruncate, xlseek.
19564 * support/support-xfstat.c: New file.
19565 * support/xftruncate.c: Likewise.
19566 * support/xlseek.c: Likewise.
19567 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
19568 * sysdeps/unix/sysv/linux/**.abilist: Update.
19569 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
19570
19571 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
19572
19573 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19574 disable-multi-arch variant to aarch64-linux-gnu.
19575
19576 2017-12-20 Joseph Myers <joseph@codesourcery.com>
19577
19578 * manual/texinfo.tex: Update to version 2017-12-18.20 with
19579 trailing whitespace removed.
19580 * scripts/config.guess: Update to version 2017-12-17.
19581 * scripts/config.sub: Update to version 2017-11-23.
19582 * scripts/install-sh: Update to version 2017-09-23.17.
19583 * scripts/move-if-change: Update to version 2017-09-13 06:45.
19584
19585 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19586
19587 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
19588 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19589 * sysdeps/tile/_mcount.S (__mcount): Likewise.
19590 * sysdeps/tile/crti.S (_init, _fini): Likewise.
19591 * sysdeps/tile/crtn.S: Likewise.
19592 * sysdeps/tile/dl-start.S (_start): Likewise.
19593 * sysdeps/tile/dl-trampoline.S: Likewise.
19594 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
19595 * sysdeps/tile/start.S (_start): Likewise.
19596 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
19597 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
19598 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
19599 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
19600 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
19601 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
19602 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
19603
19604 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
19605 comment.
19606 * sysdeps/tile/preconfigure: Remove tilegx folder.
19607 * sysdeps/tile/tilegx/Implies: Move definitions to ...
19608 * sysdeps/tile/Implies: ... here.
19609 * sysdeps/tile/tilegx/Makefile: Move rules to ...
19610 * sysdeps/tile/Makefile: ... here.
19611 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
19612 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
19613 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
19614 * sysdeps/tile/bits/wordsize.h: ... here.
19615 * sysdeps/tile/tilegx/*: Move to ...
19616 * sysdeps/tile/*: ... here.
19617 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
19618 * sysdeps/tile/tilegx32/Implies: ... here.
19619 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
19620 * sysdeps/tile/tilegx64/Implies: ... here.
19621 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
19622 to ...
19623 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
19624 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
19625 * sysdeps/unix/sysv/linux/tile/*: ... here.
19626 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
19627 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
19628 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
19629 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
19630
19631 * README: Remove tilepro-*-linux-gnu from supported architecture.
19632 * scripts/build-many-glibcs.py: Likewise.
19633 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19634 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
19635 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
19636 elf_machine_matches_host, elf_machine_dynamic,
19637 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
19638 howto, elf_machine_rela): Likewise.
19639 * sysdeps/tile/dl-start.S (_start): Likewise.
19640 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
19641 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
19642 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
19643 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
19644 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
19645 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19646 Likewise.
19647 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
19648 * sysdeps/tile/preconfigure: Likewise.
19649 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
19650 POINTER_CHK_GUARD): Likewise.
19651 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
19652 * sysdeps/tile/start.S (_start): Likewise.
19653 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
19654 Likewise.
19655 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
19656 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
19657 CMOVNEZ): Remove.
19658 * sysdeps/unix/sysv/linux/tile/bits/environments.h
19659 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
19660 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
19661 Likewise.
19662 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
19663 * sysdeps/tile/tilepro/Implies: Remove file.
19664 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
19665 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
19666 * sysdeps/tile/tilepro/memchr.c: Likewise.
19667 * sysdeps/tile/tilepro/memcpy.S: Likewise.
19668 * sysdeps/tile/tilepro/memset.c: Likewise.
19669 * sysdeps/tile/tilepro/memusage.h: Likewise.
19670 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
19671 * sysdeps/tile/tilepro/strchr.c: Likewise.
19672 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
19673 * sysdeps/tile/tilepro/strlen.c: Likewise.
19674 * sysdeps/tile/tilepro/strrchr.c: Likewise.
19675 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
19676 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
19677 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19678 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
19679 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
19680 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
19681 Likewise.
19682 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
19683 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19684 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
19685 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
19686 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19687 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
19688 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
19689 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
19690 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
19691 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
19692 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
19693 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
19694 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
19695 tilepro mention in comment.
19696
19697 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
19698 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
19699 * nptl/pthread_join_common.c: New file: common function used on
19700 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
19701 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
19702 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
19703 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
19704 (cleanup): Move definition to pthread_join_common.c.
19705 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
19706 Remove superflous checks.
19707 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
19708 Likewise.
19709
19710 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
19711
19712 * sysdeps/aarch64/libm-test-ulps: Update.
19713
19714 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19715
19716 * sysdeps/aarch64/memset.S (MEMSET): Define.
19717
19718 2017-12-20 Florian Weimer <fweimer@redhat.com>
19719
19720 [BZ #22635]
19721 nptl: Provide full implementation of pthread_self in libc.so.
19722 * nptl/Makefile (routines): Add pthread_self.
19723 (libpthread-routines): Replace pthread_self with
19724 compat-pthread_self.
19725 * nptl/forward.c (pthread_self): Remove.
19726 * nptl/nptl-init.c (pthread_functions): Do not initialize
19727 ptr_pthread_self.
19728 * nptl/pthread_self.c (pthread_self): Remove weak alias.
19729 * nptl/compat-pthread_self.c: New file.
19730 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
19731 Remove ptr_pthread_self.
19732
19733 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
19734
19735 * posix/regcomp.c: Fix spelling in comments.
19736 * posix/regex.h: Likewise.
19737 * posix/regex_internal.c: Likewise.
19738 * posix/regexec.c: Likewise.
19739
19740 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
19741
19742 [BZ #22377]
19743 * math/Makefile [C++] (tests): Add test for iseqsig.
19744 * math/math.h [C++] (iseqsig): New implementation, which does
19745 not rely on __MATH_TG/__builtin_types_compatible_p.
19746 * math/test-math-iseqsig.cc: New file.
19747 * sysdeps/powerpc/powerpc64le/Makefile
19748 (CFLAGS-test-math-iseqsig.cc): New variable.
19749
19750 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
19751
19752 * elf/dl-load.c (is_trusted_path): Remove.
19753 (fillin_rpath): Remove check_trusted argument and its use,
19754 all callers changed.
19755
19756 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19757
19758 [BZ #22630]
19759 * Makeconfig (link-pie-before-libc): Replace -pie with
19760 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
19761 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
19762 (tst-dlopen-aout-no-pie): New.
19763 (LDFLAGS-tst-prelink): Removed.
19764 (tst-prelink-no-pie): New.
19765 (LDFLAGS-tst-main1): Removed.
19766 (tst-main1-no-pie): New.
19767 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
19768 (tst-gmon-no-pie): New.
19769
19770 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19771
19772 * manual/install.texi: Document that --enable-static-pie
19773 implies PIE.
19774 * INSTALL: Regenerated.
19775
19776 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
19777
19778 [BZ #21309]
19779 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
19780 unsigned.
19781
19782 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19783
19784 Revert:
19785
19786 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19787
19788 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19789
19790 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19791
19792 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
19793 <errno.h>. Include "eexp.tbl".
19794 (half): New constant.
19795 (one): Likewise.
19796 (__ieee754_exp): Rewrite.
19797 (__slowexp): Remove prototype.
19798 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
19799 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
19800 * sysdeps/i386/fpu/slowexp.c: Likewise.
19801 * sysdeps/ia64/fpu/slowexp.c: Likewise.
19802 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
19803 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
19804 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
19805 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
19806 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
19807 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
19808 comment.
19809 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
19810 (CPPFLAGS-slowexp.c): Remove variable.
19811 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19812 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
19813 (CFLAGS-slowexp-fma.c): Remove variable.
19814 (CFLAGS-slowexp-fma4.c): Likewise.
19815 (CFLAGS-slowexp-avx.c): Likewise.
19816 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
19817 define as macro.
19818 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
19819 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
19820 * math/Makefile (type-double-routines): Remove slowexp.
19821 * manual/probes.texi (slowexp_p6): Remove.
19822 (slowexp_p32): Likewise.
19823
19824 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19825
19826 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19827 arithmetic.
19828
19829 * lib/glob.c (glob): Do not pass NULL to mempcpy.
19830
19831 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19832
19833 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19834
19835 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19836
19837 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
19838 <errno.h>. Include "eexp.tbl".
19839 (half): New constant.
19840 (one): Likewise.
19841 (__ieee754_exp): Rewrite.
19842 (__slowexp): Remove prototype.
19843 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
19844 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
19845 * sysdeps/i386/fpu/slowexp.c: Likewise.
19846 * sysdeps/ia64/fpu/slowexp.c: Likewise.
19847 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
19848 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
19849 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
19850 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
19851 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
19852 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
19853 comment.
19854 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
19855 (CPPFLAGS-slowexp.c): Remove variable.
19856 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19857 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
19858 (CFLAGS-slowexp-fma.c): Remove variable.
19859 (CFLAGS-slowexp-fma4.c): Likewise.
19860 (CFLAGS-slowexp-avx.c): Likewise.
19861 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
19862 define as macro.
19863 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
19864 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
19865 * math/Makefile (type-double-routines): Remove slowexp.
19866 * manual/probes.texi (slowexp_p6): Remove.
19867 (slowexp_p32): Likewise.
19868
19869 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19870 James Clarke <jrtc27@jrtc27.com>
19871
19872 [BZ #22603]
19873 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
19874 addition.
19875
19876 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19877
19878 [BZ #22605]
19879 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
19880 code.
19881
19882 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19883
19884 [BZ #22563]
19885 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19886 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19887 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19888 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19889 to feature_1.
19890
19891 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19892
19893 [BZ #22563]
19894 * bits/types/__cancel_jmp_buf_tag.h: New file.
19895 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19896 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19897 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19898 * nptl/Makefile (headers): Add
19899 bits/types/__cancel_jmp_buf_tag.h.
19900 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19901 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19902 * sysdeps/nptl/pthread.h: Include
19903 <bits/types/__cancel_jmp_buf_tag.h>.
19904 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19905 __cancel_jmp_buf.
19906 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19907
19908 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
19909
19910 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19911 --enable-static-pie variants to x86_64, x32 and i686.
19912
19913 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19914
19915 [BZ #22631]
19916 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
19917 argument for attrubutes. All callers changed.
19918 (__inline_mathop1): Likewise. All callers changed.
19919 (__inline_mathop): Likewise. All callers changed.
19920 [__USE_MISC] (scalbn): Use __inline_forward instead of
19921 __inline_forward_c.
19922 [__USE_ISOC99] (scalbln): Likewise.
19923 [__USE_ISOC99] (nearbyint): Likewise.
19924 [__USE_ISOC99] (lrint): Likewise.
19925 [__USE_MISC] (scalbnf): Likewise.
19926 [__USE_ISOC99] (scalblnf): Likewise.
19927 [__USE_ISOC99] (nearbyintf): Likewise.
19928 [__USE_ISOC99] (lrintf): Likewise.
19929 [__USE_MISC] (scalbnl): Likewise.
19930 [__USE_ISOC99] (scalblnl): Likewise.
19931 [__USE_ISOC99] (nearbyintl): Likewise.
19932 [__USE_ISOC99] (lrintl): Likewise.
19933 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
19934 __inline_mathop and __m81_defun changed.
19935
19936 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
19937 CPU or FPU for ARM hard-float configurations.
19938
19939 2017-12-18 Joseph Myers <joseph@codesourcery.com>
19940
19941 * nptl/tst-attr3.c: Include <libc-diag.h>.
19942 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
19943
19944 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
19945
19946 * string/tester.c (test_strncat): Also disable -Warray-bounds
19947 warnings for two tests.
19948
19949 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
19950
19951 [BZ #22614]
19952 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
19953 $(cc-pie-default) == yes.
19954 * config.make.in (cc-pie-default): New.
19955 * configure.ac (libc_cv_pie_default): Renamed to ...
19956 (libc_cv_cc_pie_default): This.
19957 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
19958 * configure: Regenerated.
19959
19960 2017-12-18 Florian Weimer <fweimer@redhat.com>
19961
19962 [BZ #20204]
19963 ld.so: Harden dl-libc/libdl hooks.
19964 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
19965 (rtld_active): New function.
19966 * dlfcn/dladdr.c (__dladdr): Call it.
19967 * dlfcn/dladdr1.c (__dladdr1): Likewise.
19968 * dlfcn/dlclose.c (__dlcose): Likewise.
19969 * dlfcn/dlerror.c (__dlerror): Likewise.
19970 * dlfcn/dlinfo.c (__dlinfo): Likewise.
19971 * dlfcn/dlmopen.c (__dlmopen): Likewise.
19972 * dlfcn/dlopen.c (__dlopen): Likewise.
19973 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
19974 * dlfcn/dlsym.c (__dlsym): Likewise.
19975 * dlfcn/dlvsym.c (__dlvsym): Likewise.
19976 * libio/vtables.c (_IO_vtable_check): Likewise.
19977 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
19978 (__libc_dlclose): Likewise.
19979 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
19980 assignment.
19981
19982 2017-12-18 Joseph Myers <joseph@codesourcery.com>
19983
19984 [BZ #22446]
19985 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
19986 buffers for readlink input and output.
19987
19988 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
19989
19990 [BZ #22624]
19991 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
19992 inhibit_stack_protector.
19993
19994 [BZ #22624]
19995 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
19996 inhibit_stack_protector.
19997
19998 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
19999
20000 [BZ #22627]
20001 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20002 code and invocation.
20003
20004 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20005
20006 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20007
20008 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20009
20010 [BZ #22505]
20011 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20012
20013 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20014
20015 * sysdeps/s390/fpu/libm-test-ulps: Update.
20016
20017 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20018
20019 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20020
20021 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20022
20023 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20024 constants to s_sincosf.h file.
20025 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20026 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20027 implementation.
20028 * sysdeps/ieee754/flt-32/s_sincosf.h:
20029 New file.
20030
20031 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20032
20033 [BZ #14681]
20034 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20035 before mtrace.
20036
20037 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20038
20039 [BZ #19574]
20040 * INSTALL: Regenerated.
20041 * Makeconfig (real-static-start-installed-name): New.
20042 (pic-default): Updated for --enable-static-pie.
20043 (pie-default): New for --enable-static-pie.
20044 (default-pie-ldflag): Likewise.
20045 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20046 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20047 Replace $(static-start-installed-name) with
20048 $(real-static-start-installed-name).
20049 (+prectorT): Updated for --enable-static-pie.
20050 (+postctorT): Likewise.
20051 (CFLAGS-.o): Add $(pie-default).
20052 (CFLAGS-.op): Likewise.
20053 * NEWS: Mention --enable-static-pie.
20054 * config.h.in (ENABLE_STATIC_PIE): New.
20055 * configure.ac (--enable-static-pie): New configure option.
20056 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20057 (have-static-pie): Likewise.
20058 Enable static PIE if linker supports --no-dynamic-linker.
20059 (ENABLE_STATIC_PIE): New AC_DEFINE.
20060 (enable-static-pie): New LIBC_CONFIG_VAR.
20061 * configure: Regenerated.
20062 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20063 gr$(start-installed-name) for --enable-static-pie.
20064 (extra-objs): Likewise.
20065 (install-lib): Likewise.
20066 (extra-objs): Add static-reloc.o and static-reloc.os
20067 ($(objpfx)$(start-installed-name)): Also depend on
20068 $(objpfx)static-reloc.o.
20069 ($(objpfx)r$(start-installed-name)): New.
20070 ($(objpfx)g$(start-installed-name)): Also depend on
20071 $(objpfx)static-reloc.os.
20072 ($(objpfx)gr$(start-installed-name)): New.
20073 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20074 in libc.a.
20075 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20076 initimage.
20077 * csu/static-reloc.c: New file.
20078 * elf/Makefile (routines): Add dl-reloc-static-pie.
20079 (elide-routines.os): Likewise.
20080 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20081 (tst-tls1-static-non-pie-no-pie): New.
20082 * elf/dl-reloc-static-pie.c: New file.
20083 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20084 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20085 STATIC_PIE_BOOTSTRAP.
20086 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20087 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20088 (tests-static): Likewise.
20089 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20090 (tst-gmon-static-no-pie): New.
20091 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20092 (CRT-tst-gmon-static-pie): Likewise.
20093 (tst-gmon-static-pie-ENV): Likewise.
20094 (tests-special): Likewise.
20095 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20096 (clean-tst-gmon-static-pie-data): Likewise.
20097 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20098 * gmon/tst-gmon-static-pie.c: New file.
20099 * manual/install.texi: Document --enable-static-pie.
20100 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20101 (_dl_get_dl_main_map): Likewise.
20102 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20103 * sysdeps/x86_64/configure.ac: Likewise.
20104 * sysdeps/i386/configure: Regenerated.
20105 * sysdeps/x86_64/configure: Likewise.
20106 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20107 (ASFLAGS-.op): Likewise.
20108
20109 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20110
20111 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20112 * posix/tst-mmap-offset.c (fname): Use /tmp.
20113 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20114
20115 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20116
20117 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20118
20119 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20120
20121 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20122 errno.
20123
20124 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20125
20126 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20127 --with-float=hard for arm-linux-gnueabihf configurations.
20128
20129 [BZ #14121]
20130 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20131 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20132 ($(mo-installed)): Use $(objpfx)%.mo.
20133 (realclean): Remove rule.
20134
20135 * po/Makefile (linguas): Remove rule and dependencies.
20136 (linguas.mo): Likewise.
20137 (.PHONY): Do not depend on linguas and linguas.mo.
20138 (podir): Remove variable.
20139 (pofiles): Likewise.
20140 [$(pofiles)] (%.po): Remove rule.
20141
20142 * sysdeps/sparc/sparc32/Makefile
20143 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20144 start-of-line whitespace in argument of echo.
20145 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20146 with whitespace. Generate __wrap_.udiv alias.
20147 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20148 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20149 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20150 * sysdeps/sparc/sparc32/urem.S: Likewise.
20151
20152 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20153
20154 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20155 for aligned inputs.
20156
20157 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20158
20159 * benchtests/bench-strcmp.c: Print output in JSON format.
20160
20161 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20162
20163 2017-12-14 Florian Weimer <fweimer@redhat.com>
20164
20165 [BZ #22607]
20166 CVE-2017-1000409
20167 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20168 the expanded path string.
20169
20170 2017-12-14 Florian Weimer <fweimer@redhat.com>
20171
20172 [BZ #22606]
20173 CVE-2017-1000408
20174 * elf/dl-load.c (system_dirs): Update comment.
20175 (nsystem_dirs_len): Use array_length.
20176 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20177
20178 2017-12-14 Florian Weimer <fweimer@redhat.com>
20179
20180 Simplify compiling most of support/ outside of glibc.
20181 * support/check_addrinfo.c: Include <string.h>.
20182 * support/check_dns_packet.c: Likewise.
20183 * support/check_hostent.c: Likewise.
20184 * support/support_can_chroot.c: Include <support/xunistd.h>.
20185 * support/support_format_addrinfo.c: Include <stdlib.h>
20186 * support/support_format_dns_packet.c: Include <stdbool.h>.
20187 * support/support_format_hostent.c: Include <stdlib.h>.
20188 * support/support_format_netent.c: Likewise.
20189 * support/support_write_string.c: Include <support/xunistd.h>.
20190 * support/xdlfcn.c: Include <stddef.h>.
20191
20192 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20193
20194 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20195
20196 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20197 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20198
20199 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20200 (sysdeps_routines): Add memset-niagara7.
20201 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20202 Likewise.
20203 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20204 file.
20205 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20206 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20207 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20208 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20209 Add niagara7 option.
20210 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20211 memset.
20212
20213 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20214 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20215 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20216 Likewise.
20217 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20218 New file.
20219 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20220 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20221 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20222 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20223 and __memmove_niagara7.
20224 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20225 Add niagara7 option.
20226 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20227 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20228 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20229 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20230 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20231
20232 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20233
20234 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20235 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20236 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20237 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20238
20239 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20240 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20241 _dl_sparc_cap_flags array.
20242 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20243
20244 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20245
20246 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20247 time whenever possible.
20248
20249 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20250
20251 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20252 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20253
20254 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20255
20256 * soft-fp/fmadf4.c: Move to ....
20257 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20258 * soft-fp/fmasf4.c: Move to ....
20259 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20260 * soft-fp/fmatf4.c: Move to ....
20261 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20262 * sysdeps/ieee754/soft-fp/Makefile: New file.
20263 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20264 * sysdeps/arm/preconfigure: Regenerated.
20265 * sysdeps/arm/nofpu/Implies: New file.
20266 * sysdeps/arm/s_fma.c: Remove file.
20267 * sysdeps/arm/s_fmaf.c: Likewise.
20268 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20269 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20270 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20271 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20272 * sysdeps/microblaze/s_fma.c: Remove file.
20273 * sysdeps/microblaze/s_fmaf.c: Likewise.
20274 * sysdeps/mips/mips32/nofpu/Implies: New file.
20275 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20276 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20277 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20278 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20279 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20280 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20281 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20282 implementation.
20283 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20284 * sysdeps/nios2/s_fma.c: Remove file.
20285 * sysdeps/nios2/s_fmaf.c: Likewise.
20286 * sysdeps/sh/nofpu/Implies: New file.
20287 * sysdeps/sh/s_fma.c: Remove file.
20288 * sysdeps/sh/s_fmaf.c: Likewise.
20289 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20290 * sysdeps/tile/s_fma.c: Remove file.
20291 * sysdeps/tile/s_fmaf.c: Likewise.
20292
20293 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20294
20295 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20296 Add s_cosf-sse2 and s_cosf-fma.
20297 (CFLAGS-s_cosf-fma.c): New.
20298 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20299 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20300 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20301
20302 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20303
20304 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20305
20306 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20307
20308 * libio/Makefile (tests): Add tst-bz22415.
20309 (tst-bz22415-ENV): New rule.
20310 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20311 (tests-special): Add tst-bz22415-mem.out.
20312 ($(objpfx)tst-bz22415-mem.out): New rule.
20313 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20314 in case of a successful seek operation.
20315 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20316 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20317 buffer is required.
20318 * libio/tst-bz22415.c: New test.
20319
20320 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20321
20322 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20323
20324 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20325 __IPC_64 to 0 to avoid IPC_64 being set.
20326
20327 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20328
20329 [BZ #22593]
20330 * math/bits/mathcalls.h (nextafter): Remove const.
20331 (nexttoward): Likewise.
20332
20333 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20334
20335 * configure.ac (--with-fp): Remove configure option.
20336 (with_fp_cond): New variable.
20337 (libc_cv_with_fp): New configure test. Use this variable instead
20338 of with_fp.
20339 * configure: Regenerated.
20340 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20341 * manual/install.texi (Configuring and compiling): Remove
20342 --without-fp.
20343 * INSTALL: Regenerated.
20344 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20345 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20346 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20347 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20348 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20349 use --without-fp to configure glibc.
20350
20351 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20352
20353 * manual/locale.texi (nl_langinfo): Fix a typo.
20354
20355 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20356
20357 [BZ #22588]
20358 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20359
20360 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20361
20362 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20363 (CFLAGS-argp-parse.c): Likewise.
20364 (CFLAGS-argp-fmtstream.c): Likewise.
20365 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20366 (CPPFLAGS-sha512-crypt.c): Likewise.
20367 (CPPFLAGS-md5-crypt.c): Likewise.
20368 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20369 (CFLAGS-stack_chk_fail_local.c): Likewise.
20370 (CFLAGS-backtrace.c): Likewise.
20371 (CFLAGS-sprintf_chk.c): Likewise.
20372 (CFLAGS-snprintf_chk.c): Likewise.
20373 (CFLAGS-vsprintf_chk.c): Likewise.
20374 (CFLAGS-vsnprintf_chk.c): Likewise.
20375 (CFLAGS-asprintf_chk.c): Likewise.
20376 (CFLAGS-vasprintf_chk.c): Likewise.
20377 (CFLAGS-obprintf_chk.c): Likewise.
20378 (CFLAGS-dprintf_chk.c): Likewise.
20379 (CFLAGS-vdprintf_chk.c): Likewise.
20380 (CFLAGS-printf_chk.c): Likewise.
20381 (CFLAGS-fprintf_chk.c): Likewise.
20382 (CFLAGS-vprintf_chk.c): Likewise.
20383 (CFLAGS-vfprintf_chk.c): Likewise.
20384 (CFLAGS-gets_chk.c): Likewise.
20385 (CFLAGS-fgets_chk.c): Likewise.
20386 (CFLAGS-fgets_u_chk.c): Likewise.
20387 (CFLAGS-fread_chk.c): Likewise.
20388 (CFLAGS-fread_u_chk.c): Likewise.
20389 (CFLAGS-swprintf_chk.c): Likewise.
20390 (CFLAGS-vswprintf_chk.c): Likewise.
20391 (CFLAGS-wprintf_chk.c): Likewise.
20392 (CFLAGS-fwprintf_chk.c): Likewise.
20393 (CFLAGS-vwprintf_chk.c): Likewise.
20394 (CFLAGS-vfwprintf_chk.c): Likewise.
20395 (CFLAGS-fgetws_chk.c): Likewise.
20396 (CFLAGS-fgetws_u_chk.c): Likewise.
20397 (CFLAGS-read_chk.c): Likewise.
20398 (CFLAGS-pread_chk.c): Likewise.
20399 (CFLAGS-pread64_chk.c): Likewise.
20400 (CFLAGS-recv_chk.c): Likewise.
20401 (CFLAGS-recvfrom_chk.c): Likewise.
20402 (CFLAGS-tst-longjmp_chk.c): Likewise.
20403 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20404 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20405 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20406 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20407 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20408 (CFLAGS-tst-chk1.c): Likewise.
20409 (CFLAGS-tst-chk2.c): Likewise.
20410 (CFLAGS-tst-chk3.c): Likewise.
20411 (CFLAGS-tst-chk4.cc): Likewise.
20412 (CFLAGS-tst-chk5.cc): Likewise.
20413 (CFLAGS-tst-chk6.cc): Likewise.
20414 (CFLAGS-tst-lfschk1.c): Likewise.
20415 (CFLAGS-tst-lfschk2.c): Likewise.
20416 (CFLAGS-tst-lfschk3.c): Likewise.
20417 (CFLAGS-tst-lfschk4.cc): Likewise.
20418 (CFLAGS-tst-lfschk5.cc): Likewise.
20419 (CFLAGS-tst-lfschk6.cc): Likewise.
20420 (CFLAGS-tst-ssp-1.c): Likewise.
20421 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
20422 (CFLAGS-scandir64.c): Likewise.
20423 (CFLAGS-scandir-tail.c): Likewise.
20424 (CFLAGS-scandir64-tail.c): Likewise.
20425 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
20426 (CFLAGS-dl-tunables.c): Likewise.
20427 (CFLAGS-dl-runtime.c): Likewise.
20428 (CFLAGS-dl-lookup.c): Likewise.
20429 (CFLAGS-dl-iterate-phdr.c): Likewise.
20430 (CFLAGS-vismain.c): Likewise.
20431 (CFLAGS-tst-linkall-static.c): Likewise.
20432 (CFLAGS-tst-linkall-static.c): Likewise.
20433 (CPPFLAGS-dl-load.c): Likewise.
20434 (CFLAGS-ldconfig.c): Likewise.
20435 (CFLAGS-dl-cache.c): Likewise.
20436 (CFLAGS-cache.c): Likewise.
20437 (CFLAGS-rtld.c): Likewise.
20438 (CFLAGS-multiload.c): Likewise.
20439 (CFLAGS-filtmod1.c): Likewise.
20440 (CFLAGS-tst-align.c): Likewise.
20441 (CFLAGS-tst-align2.c): Likewise.
20442 (CFLAGS-tst-alignmod.c): Likewise.
20443 (CFLAGS-tst-alignmod2.c): Likewise.
20444 (CPPFLAGS-tst-execstack.c): Likewise.
20445 (CFLAGS-tst-ptrguard1-static.c): Likewise.
20446 (CFLAGS-tst-latepthreadmod.c): Likewise.
20447 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
20448 (CFLAGS-getgrnam_r.c): Likewise.
20449 (CFLAGS-getgrent_r.c): Likewise.
20450 (CFLAGS-getgrent.c): Likewise.
20451 (CFLAGS-fgetgrent.c): Likewise.
20452 (CFLAGS-fgetgrent_r.c): Likewise.
20453 (CFLAGS-putgrent.c): Likewise.
20454 (CFLAGS-initgroups.c): Likewise.
20455 (CFLAGS-getgrgid.c): Likewise.
20456 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
20457 (CFLAGS-getsgent.c): Likewise.
20458 (CFLAGS-fgetsgent.c): Likewise.
20459 (CFLAGS-fgetsgent_r.c): Likewise.
20460 (CFLAGS-putsgent.c): Likewise.
20461 (CFLAGS-getsgnam.c): Likewise.
20462 (CFLAGS-getsgnam_r.c): Likewise.
20463 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
20464 (CFLAGS-iconv_charmap.c): Likewise.
20465 (CFLAGS-dummy-repertoire.c): Likewise.
20466 (CFLAGS-charmap.c): Likewise.
20467 (CFLAGS-linereader.c): Likewise.
20468 (CFLAGS-simple-hash.c): Likewise.
20469 (CFLAGS-gconv_conf.c): Likewise.
20470 (CFLAGS-iconvconfig.c): Likewise.
20471 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20472 (CFLAGS-gethstbyad.c): Likewise.
20473 (CFLAGS-gethstbynm_r.c): Likewise.
20474 (CFLAGS-gethstbynm.c): Likewise.
20475 (CFLAGS-gethstbynm2_r.c): Likewise.
20476 (CFLAGS-gethstbynm2.c): Likewise.
20477 (CFLAGS-gethstent_r.c): Likewise.
20478 (CFLAGS-gethstent.c): Likewise.
20479 (CFLAGS-rcmd.c): Likewise.
20480 (CFLAGS-getnetbynm_r.c): Likewise.
20481 (CFLAGS-getnetbynm.c): Likewise.
20482 (CFLAGS-getnetbyad_r.c): Likewise.
20483 (CFLAGS-getnetbyad.c): Likewise.
20484 (CFLAGS-getnetent_r.c): Likewise.
20485 (CFLAGS-getnetent.c): Likewise.
20486 (CFLAGS-getaliasent_r.c): Likewise.
20487 (CFLAGS-getaliasent.c): Likewise.
20488 (CFLAGS-getrpcent_r.c): Likewise.
20489 (CFLAGS-getrpcent.c): Likewise.
20490 (CFLAGS-getservent_r.c): Likewise.
20491 (CFLAGS-getservent.c): Likewise.
20492 (CFLAGS-getprtent_r.c): Likewise.
20493 (CFLAGS-getprtent.c): Likewise.
20494 (CFLAGS-either_ntoh.c): Likewise.
20495 (CFLAGS-either_hton.c): Likewise.
20496 (CFLAGS-getnetgrent.c): Likewise.
20497 (CFLAGS-getnetgrent_r.c): Likewise.
20498 (CFLAGS-tst-checks-posix.c): Likewise.
20499 (CFLAGS-tst-sockaddr.c): Likewise.
20500 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
20501 (CFLAGS-tst-translit.c): Likewise.
20502 (CFLAGS-tst-gettext2.c): Likewise.
20503 (CFLAGS-tst-codeset.c): Likewise.
20504 (CFLAGS-tst-gettext3.c): Likewise.
20505 (CFLAGS-tst-gettext4.c): Likewise.
20506 (CFLAGS-tst-gettext5.c): Likewise.
20507 (CFLAGS-tst-gettext6.c): Likewise.
20508 * io/Makefile (CFLAGS-open.c): Likewise.
20509 (CFLAGS-open64.c): Likewise.
20510 (CFLAGS-creat.c): Likewise.
20511 (CFLAGS-creat64.c): Likewise.
20512 (CFLAGS-fcntl.c): Likewise.
20513 (CFLAGS-poll.c): Likewise.
20514 (CFLAGS-ppoll.c): Likewise.
20515 (CFLAGS-lockf.c): Likewise.
20516 (CFLAGS-statfs.c): Likewise.
20517 (CFLAGS-fstatfs.c): Likewise.
20518 (CFLAGS-statvfs.c): Likewise.
20519 (CFLAGS-fstatvfs.c): Likewise.
20520 (CFLAGS-fts.c): Likewise.
20521 (CFLAGS-fts64.c): Likewise.
20522 (CFLAGS-ftw.c): Likewise.
20523 (CFLAGS-ftw64.c): Likewise.
20524 (CFLAGS-lockf.c): Likewise.
20525 (CFLAGS-posix_fallocate.c): Likewise.
20526 (CFLAGS-posix_fallocate64.c): Likewise.
20527 (CFLAGS-fallocate.c): Likewise.
20528 (CFLAGS-fallocate64.c): Likewise.
20529 (CFLAGS-read.c): Likewise.
20530 (CFLAGS-write.c): Likewise.
20531 (CFLAGS-test-stat.c): Likewise.
20532 (CFLAGS-test-lfs.c): Likewise.
20533 * libio/Makefile (CFLAGS-fileops.c): Likewise.
20534 (CFLAGS-fputc.c): Likewise.
20535 (CFLAGS-fputwc.c): Likewise.
20536 (CFLAGS-freopen64.c): Likewise.
20537 (CFLAGS-freopen.c): Likewise.
20538 (CFLAGS-fseek.c): Likewise.
20539 (CFLAGS-fseeko64.c): Likewise.
20540 (CFLAGS-fseeko.c): Likewise.
20541 (CFLAGS-ftello64.c): Likewise.
20542 (CFLAGS-ftello.c): Likewise.
20543 (CFLAGS-fwide.c): Likewise.
20544 (CFLAGS-genops.c): Likewise.
20545 (CFLAGS-getc.c): Likewise.
20546 (CFLAGS-getchar.c): Likewise.
20547 (CFLAGS-getwc.c): Likewise.
20548 (CFLAGS-getwchar.c): Likewise.
20549 (CFLAGS-iofclose.c): Likewise.
20550 (CFLAGS-iofflush.c): Likewise.
20551 (CFLAGS-iofgetpos64.c): Likewise.
20552 (CFLAGS-iofgetpos.c): Likewise.
20553 (CFLAGS-iofgets.c): Likewise.
20554 (CFLAGS-iofgetws.c): Likewise.
20555 (CFLAGS-iofputs.c): Likewise.
20556 (CFLAGS-iofputws.c): Likewise.
20557 (CFLAGS-iofread.c): Likewise.
20558 (CFLAGS-iofsetpos64.c): Likewise.
20559 (CFLAGS-iofsetpos.c): Likewise.
20560 (CFLAGS-ioftell.c): Likewise.
20561 (CFLAGS-iofwrite.c): Likewise.
20562 (CFLAGS-iogetdelim.c): Likewise.
20563 (CFLAGS-iogetline.c): Likewise.
20564 (CFLAGS-iogets.c): Likewise.
20565 (CFLAGS-iogetwline.c): Likewise.
20566 (CFLAGS-ioputs.c): Likewise.
20567 (CFLAGS-ioseekoff.c): Likewise.
20568 (CFLAGS-ioseekpos.c): Likewise.
20569 (CFLAGS-iosetbuffer.c): Likewise.
20570 (CFLAGS-iosetvbuf.c): Likewise.
20571 (CFLAGS-ioungetc.c): Likewise.
20572 (CFLAGS-ioungetwc.c): Likewise.
20573 (CFLAGS-oldfileops.c): Likewise.
20574 (CFLAGS-oldiofclose.c): Likewise.
20575 (CFLAGS-oldiofgetpos64.c): Likewise.
20576 (CFLAGS-oldiofgetpos.c): Likewise.
20577 (CFLAGS-oldiofsetpos64.c): Likewise.
20578 (CFLAGS-oldiofsetpos.c): Likewise.
20579 (CFLAGS-peekc.c): Likewise.
20580 (CFLAGS-putc.c): Likewise.
20581 (CFLAGS-putchar.c): Likewise.
20582 (CFLAGS-putwc.c): Likewise.
20583 (CFLAGS-putwchar.c): Likewise.
20584 (CFLAGS-rewind.c): Likewise.
20585 (CFLAGS-wfileops.c): Likewise.
20586 (CFLAGS-wgenops.c): Likewise.
20587 (CFLAGS-oldiofopen.c): Likewise.
20588 (CFLAGS-iofopen.c): Likewise.
20589 (CFLAGS-iofopen64.c): Likewise.
20590 (CFLAGS-oldtmpfile.c): Likewise.
20591 (CFLAGS-tst_putwc.c): Likewise.
20592 * locale/Makefile (CFLAGS-md5.c): Likewise.
20593 (CFLAGS-charmap.c): Likewise.
20594 (CFLAGS-locfile.c): Likewise.
20595 (CFLAGS-charmap-dir.c): Likewise.
20596 * login/Makefile (CFLAGS-grantpt.c): Likewise.
20597 (CFLAGS-getpt.c): Likewise.
20598 (CFLAGS-pt_chown.c): Likewise.
20599 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
20600 (CFLAGS-obstack.c): Likewise.
20601 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
20602 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
20603 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
20604 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
20605 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
20606 (CFLAGS-test-tgmath.c): Likewise.
20607 (CFLAGS-test-tgmath2.c): Likewise.
20608 (CFLAGS-test-tgmath-ret.c): Likewise.
20609 (CFLAGS-test-powl.c): Likewise.
20610 (CFLAGS-test-snan.c): Likewise.
20611 (CFLAGS-test-signgam-finite.c): Likewise.
20612 (CFLAGS-test-signgam-finite-c99.c): Likewise.
20613 (CFLAGS-test-signgam-finite-c11.c): Likewise.
20614 (CFLAGS-test-signgam-uchar.c): Likewise.
20615 (CFLAGS-test-signgam-uchar-init.c): Likewise.
20616 (CFLAGS-test-signgam-uchar-static.c): Likewise.
20617 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20618 (CFLAGS-test-signgam-uint.c): Likewise.
20619 (CFLAGS-test-signgam-uint-init.c): Likewise.
20620 (CFLAGS-test-signgam-uint-static.c): Likewise.
20621 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20622 (CFLAGS-test-signgam-ullong.c): Likewise.
20623 (CFLAGS-test-signgam-ullong-init.c): Likewise.
20624 (CFLAGS-test-signgam-ullong-static.c): Likewise.
20625 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20626 (CFLAGS-test-math-cxx11.cc): Likewise.
20627 (CFLAGS-test-math-isinff.cc): Likewise.
20628 (CFLAGS-test-math-iszero.cc): Likewise.
20629 (CFLAGS-test-math-issignaling.cc): Likewise.
20630 (CFLAGS-test-math-iscanonical.cc): Likewise.
20631 (CFLAGS-test-iszero-excess-precision.c): Likewise.
20632 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
20633 (CFLAGS-test-flt-eval-method.c): Likewise.
20634 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
20635 (CFLAGS-test-finite-macros.c): Likewise.
20636 * misc/Makefile (CFLAGS-select.c): Likewise.
20637 (CFLAGS-tsearch.c): Likewise.
20638 (CFLAGS-lsearch.c): Likewise.
20639 (CFLAGS-pselect.c): Likewise.
20640 (CFLAGS-readv.c): Likewise.
20641 (CFLAGS-writev.c): Likewise.
20642 (CFLAGS-preadv.c): Likewise.
20643 (CFLAGS-preadv64.c): Likewise.
20644 (CFLAGS-pwritev.c): Likewise.
20645 (CFLAGS-pwritev64.c): Likewise.
20646 (CFLAGS-preadv2.c): Likewise.
20647 (CFLAGS-preadv64v2.c): Likewise.
20648 (CFLAGS-pwritev2.c): Likewise.
20649 (CFLAGS-pwritev64v2.c): Likewise.
20650 (CFLAGS-usleep.c): Likewise.
20651 (CFLAGS-syslog.c): Likewise.
20652 (CFLAGS-error.c): Likewise.
20653 (CFLAGS-getpass.c): Likewise.
20654 (CFLAGS-mkstemp.c): Likewise.
20655 (CFLAGS-mkstemp64.c): Likewise.
20656 (CFLAGS-getsysstats.c): Likewise.
20657 (CFLAGS-getusershell.c): Likewise.
20658 (CFLAGS-err.c): Likewise.
20659 (CFLAGS-tst-tsearch.c): Likewise.
20660 (CFLAGS-msync.c): Likewise.
20661 (CFLAGS-fdatasync.c): Likewise.
20662 (CFLAGS-fsync.c): Likewise.
20663 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
20664 (CFLAGS-unwind.c): Likewise.
20665 (CFLAGS-unwind-forcedunwind.c): Likewise.
20666 (CFLAGS-pthread_cancel.c): Likewise.
20667 (CFLAGS-pthread_setcancelstate.c): Likewise.
20668 (CFLAGS-pthread_setcanceltype.c): Likewise.
20669 (CFLAGS-cancellation.c): Likewise.
20670 (CFLAGS-libc-cancellation.c): Likewise.
20671 (CFLAGS-pthread_exit.c): Likewise.
20672 (CFLAGS-forward.c): Likewise.
20673 (CFLAGS-pthread_testcancel.c): Likewise.
20674 (CFLAGS-pthread_join.c): Likewise.
20675 (CFLAGS-pthread_timedjoin.c): Likewise.
20676 (CFLAGS-pthread_once.c): Likewise.
20677 (CFLAGS-pthread_cond_wait.c): Likewise.
20678 (CFLAGS-sem_wait.c): Likewise.
20679 (CFLAGS-sem_timedwait.c): Likewise.
20680 (CFLAGS-fcntl.c): Likewise.
20681 (CFLAGS-lockf.c): Likewise.
20682 (CFLAGS-pread.c): Likewise.
20683 (CFLAGS-pread64.c): Likewise.
20684 (CFLAGS-pwrite.c): Likewise.
20685 (CFLAGS-pwrite64.c): Likewise.
20686 (CFLAGS-wait.c): Likewise.
20687 (CFLAGS-waitpid.c): Likewise.
20688 (CFLAGS-sigwait.c): Likewise.
20689 (CFLAGS-msgrcv.c): Likewise.
20690 (CFLAGS-msgsnd.c): Likewise.
20691 (CFLAGS-tcdrain.c): Likewise.
20692 (CFLAGS-open.c): Likewise.
20693 (CFLAGS-open64.c): Likewise.
20694 (CFLAGS-pause.c): Likewise.
20695 (CFLAGS-recv.c): Likewise.
20696 (CFLAGS-send.c): Likewise.
20697 (CFLAGS-accept.c): Likewise.
20698 (CFLAGS-sendto.c): Likewise.
20699 (CFLAGS-connect.c): Likewise.
20700 (CFLAGS-recvfrom.c): Likewise.
20701 (CFLAGS-recvmsg.c): Likewise.
20702 (CFLAGS-sendmsg.c): Likewise.
20703 (CFLAGS-close.c): Likewise.
20704 (CFLAGS-read.c): Likewise.
20705 (CFLAGS-write.c): Likewise.
20706 (CFLAGS-nanosleep.c): Likewise.
20707 (CFLAGS-sigsuspend.c): Likewise.
20708 (CFLAGS-msync.c): Likewise.
20709 (CFLAGS-fdatasync.c): Likewise.
20710 (CFLAGS-fsync.c): Likewise.
20711 (CFLAGS-pt-system.c): Likewise.
20712 (CFLAGS-tst-cleanup2.c): Likewise.
20713 (CFLAGS-tst-cleanupx2.c): Likewise.
20714 (CFLAGS-flockfile.c): Likewise.
20715 (CFLAGS-ftrylockfile.c): Likewise.
20716 (CFLAGS-funlockfile.c): Likewise.
20717 (CFLAGS-tst-initializers1.c): Likewise.
20718 (CFLAGS-tst-initializers1-c89.c): Likewise.
20719 (CFLAGS-tst-initializers1-c99.c): Likewise.
20720 (CFLAGS-tst-initializers1-c11.c): Likewise.
20721 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
20722 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
20723 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
20724 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
20725 (CFLAGS-nscd_getgr_r.c): Likewise.
20726 (CFLAGS-nscd_gethst_r.c): Likewise.
20727 (CFLAGS-nscd_getai.c): Likewise.
20728 (CFLAGS-nscd_initgroups.c): Likewise.
20729 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
20730 (CFLAGS-pause.c): Likewise.
20731 (CFLAGS-pread.c): Likewise.
20732 (CFLAGS-pread64.c): Likewise.
20733 (CFLAGS-pwrite.c): Likewise.
20734 (CFLAGS-pwrite64.c): Likewise.
20735 (CFLAGS-sleep.c): Likewise.
20736 (CFLAGS-wait.c): Likewise.
20737 (CFLAGS-waitid.c): Likewise.
20738 (CFLAGS-waitpid.c): Likewise.
20739 (CFLAGS-getopt.c): Likewise.
20740 (CFLAGS-wordexp.c): Likewise.
20741 (CFLAGS-sysconf.c): Likewise.
20742 (CFLAGS-pathconf.c): Likewise.
20743 (CFLAGS-fpathconf.c): Likewise.
20744 (CFLAGS-spawn.c): Likewise.
20745 (CFLAGS-spawnp.c): Likewise.
20746 (CFLAGS-spawni.c): Likewise.
20747 (CFLAGS-glob.c): Likewise.
20748 (CFLAGS-glob64.c): Likewise.
20749 (CFLAGS-getconf.c): Likewise.
20750 (CFLAGS-nanosleep.c): Likewise.
20751 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
20752 (CFLAGS-getpwent.c): Likewise.
20753 (CFLAGS-getpw.c): Likewise.
20754 (CFLAGS-fgetpwent_r.c): Likewise.
20755 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
20756 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
20757 (CFLAGS-mq_timedreceive.c): Likewise.
20758 (CFLAGS-mq_timedsend.c): Likewise.
20759 (CFLAGS-clock_nanosleep.c): Likewise.
20760 (CFLAGS-librt-cancellation.c): Likewise.
20761 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
20762 (CFLAGS-getspent.c): Likewise.
20763 (CFLAGS-fgetspent.c): Likewise.
20764 (CFLAGS-fgetspent_r.c): Likewise.
20765 (CFLAGS-putspent.c): Likewise.
20766 (CFLAGS-getspnam.c): Likewise.
20767 (CFLAGS-getspnam_r.c): Likewise.
20768 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
20769 (CFLAGS-sigsuspend.c): Likewise.
20770 (CFLAGS-sigtimedwait.c): Likewise.
20771 (CFLAGS-sigwait.c): Likewise.
20772 (CFLAGS-sigwaitinfo.c): Likewise.
20773 (CFLAGS-sigreturn.c): Likewise.
20774 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
20775 (CFLAGS-vfwprintf.c): Likewise.
20776 (CFLAGS-tmpfile.c): Likewise.
20777 (CFLAGS-tmpfile64.c): Likewise.
20778 (CFLAGS-tempname.c): Likewise.
20779 (CFLAGS-psignal.c): Likewise.
20780 (CFLAGS-vprintf.c): Likewise.
20781 (CFLAGS-cuserid.c): Likewise.
20782 (CFLAGS-errlist.c): Likewise.
20783 (CFLAGS-siglist.c): Likewise.
20784 (CFLAGS-scanf15.c): Likewise.
20785 (CFLAGS-scanf17.c): Likewise.
20786 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
20787 (CFLAGS-msort.c): Likewise.
20788 (CFLAGS-qsort.c): Likewise.
20789 (CFLAGS-system.c): Likewise.
20790 (CFLAGS-fmtmsg.c): Likewise.
20791 (CFLAGS-strfmon.c): Likewise.
20792 (CFLAGS-strfmon_l.c): Likewise.
20793 (CFLAGS-strfromd.c): Likewise.
20794 (CFLAGS-strfromf.c): Likewise.
20795 (CFLAGS-strfroml.c): Likewise.
20796 (CFLAGS-tst-bsearch.c): Likewise.
20797 (CFLAGS-tst-qsort.c): Likewise.
20798 (CFLAGS-tst-makecontext2.c): Likewise.
20799 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
20800 (CFLAGS-xnlm_prot.c): Likewise.
20801 (CFLAGS-xrstat.c): Likewise.
20802 (CFLAGS-xyppasswd.c): Likewise.
20803 (CFLAGS-xklm_prot.c): Likewise.
20804 (CFLAGS-xrex.c): Likewise.
20805 (CFLAGS-xsm_inter.c): Likewise.
20806 (CFLAGS-xmount.c): Likewise.
20807 (CFLAGS-xrusers.c): Likewise.
20808 (CFLAGS-xspray.c): Likewise.
20809 (CFLAGS-xnfs_prot.c): Likewise.
20810 (CFLAGS-xrquota.c): Likewise.
20811 (CFLAGS-xkey_prot.c): Likewise.
20812 (CFLAGS-auth_unix.c): Likewise.
20813 (CFLAGS-key_call.c): Likewise.
20814 (CFLAGS-pmap_rmt.c): Likewise.
20815 (CFLAGS-clnt_perr.c): Likewise.
20816 (CFLAGS-openchild.c): Likewise.
20817 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
20818 (CFLAGS-msgsnd.c): Likewise.
20819 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
20820 * time/Makefile (CFLAGS-tzfile.c): Likewise.
20821 (CFLAGS-tzset.c): Likewise.
20822 (CFLAGS-getdate.c): Likewise.
20823 (CFLAGS-test_time.c): Likewise.
20824 (CPPFLAGS-tst-tzname.c): Likewise.
20825 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
20826 (CFLAGS-zic.c): Likewise.
20827 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
20828 (CFLAGS-wcswidth.c): Likewise.
20829 (CFLAGS-wcstol.c): Likewise.
20830 (CFLAGS-wcstoul.c): Likewise.
20831 (CFLAGS-wcstoll.c): Likewise.
20832 (CFLAGS-wcstoull.c): Likewise.
20833 (CFLAGS-wcstod.c): Likewise.
20834 (CFLAGS-wcstold.c): Likewise.
20835 (CFLAGS-wcstof128.c): Likewise.
20836 (CFLAGS-wcstof.c): Likewise.
20837 (CFLAGS-wcstol_l.c): Likewise.
20838 (CFLAGS-wcstoul_l.c): Likewise.
20839 (CFLAGS-wcstoll_l.c): Likewise.
20840 (CFLAGS-wcstoull_l.c): Likewise.
20841 (CFLAGS-wcstod_l.c): Likewise.
20842 (CFLAGS-wcstold_l.c): Likewise.
20843 (CFLAGS-wcstof128_l.c): Likewise.
20844 (CFLAGS-wcstof_l.c): Likewise.
20845 (CPPFLAGS-tst-wchar-h.c): Likewise.
20846 (CPPFLAGS-wcstold_l.c): Likewise.
20847
20848 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
20849
20850 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
20851
20852 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
20853 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20854
20855 * manual/tunables.texi (Hardware Capability Tunables): Document
20856 glibc.tune.cached_memopt.
20857 * sysdeps/powerpc/cpu-features.c: New file.
20858 * sysdeps/powerpc/cpu-features.h: New file.
20859 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
20860 _dl_powerpc_cpu_features.
20861 * sysdeps/powerpc/dl-tunables.list: New file.
20862 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
20863 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
20864 (INIT_ARCH): Initialize use_aligned_memopt.
20865 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
20866 IS_IN(rtld))]: Restrict dl_platform_init availability and
20867 initialize CPU features used by tunables.
20868 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
20869 Add memcpy-power8-cached.
20870 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
20871 __memcpy_power8_cached.
20872 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
20873 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
20874 New file.
20875
20876 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20877
20878 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
20879 (CFLAGS-noinl-tester.c): Likewise.
20880 (CFLAGS-tst-strlen.c): Likewise.
20881 (CFLAGS-stratcliff.c): Likewise.
20882 (CFLAGS-test-ffs.c): Likewise.
20883 (CFLAGS-tst-inlcall.c): Likewise.
20884 (CFLAGS-tst-xbzero-opt.c): Likewise.
20885 (CFLAGS-memcpy.c): Likewise.
20886 (CFLAGS-wordcopy.c): Likewise.
20887
20888 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
20889
20890 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
20891 Store r15 on stack and add cfi rule.
20892 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
20893 Likewise.
20894
20895 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
20896
20897 [BZ #22577]
20898 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
20899 call.
20900
20901 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
20902
20903 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20904 Add s_sinf-sse2 and s_sinf-fma.
20905 (CFLAGS-s_sinf-fma.c): New.
20906 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
20907 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
20908 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
20909
20910 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
20911
20912 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
20913
20914 2017-12-07 Joseph Myers <joseph@codesourcery.com>
20915
20916 [BZ #22568]
20917 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
20918 part of result to imaginary part of argument if it is zero and the
20919 real part of the argument is not finite.
20920 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
20921 of result to real part of argument if it is zero and the imaginary
20922 part of the argument is not finite.
20923
20924 2017-12-07 Mike FABIAN <mfabian@redhat.com>
20925
20926 [BZ #22524]
20927 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
20928 and to the list of locales to be built for testing.
20929 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
20930 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
20931 and build the collation rules upon that.
20932
20933 2017-12-07 Joseph Myers <joseph@codesourcery.com>
20934
20935 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
20936 * manual/math.texi (Mathematics): Document support for _Float32.
20937 * math/Makefile (test-types): Add float32.
20938 * math/Versions (GLIBC_2.27): Add _Float32 functions.
20939 * stdlib/Versions (GLIBC_2.27): Likewise.
20940 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20941 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20942 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20943 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20944 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20945 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20946 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20947 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20948 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20949 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20950 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20951 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20952 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20953 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20954 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20955 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20956 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20957 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20958 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20959 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20960 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20961 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20962 Likewise.
20963 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20964 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20965 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20966 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20967 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20969 Likewise.
20970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20971 Likewise.
20972 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20973 Likewise.
20974 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20975 Likewise.
20976
20977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20978 Likewise.
20979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20980 Likewise.
20981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20982 Likewise.
20983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20984 Likewise.
20985 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20986 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20987 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20988 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20989 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20990 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20991 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20992 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20993 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20994 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20995 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20996 Likewise.
20997 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20998 Likewise.
20999 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21000 Likewise.
21001 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21002 Likewise.
21003 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21004 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21005 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21006 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21007 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21008 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21009 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21010 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21011
21012 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21013
21014 * stdlib/strtof.c: Include <bits/floatn.h>
21015 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21016 and later undefine as macro. Define as weak alias if
21017 [!USE_WIDE_CHAR].
21018 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21019 and later undefine as macro. Define as weak alias if
21020 [USE_WIDE_CHAR].
21021 * stdlib/strtof_l.c: Include <bits/floatn.h>
21022 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21023 and later undefine as macro. Define as weak alias if
21024 [!USE_WIDE_CHAR].
21025 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21026 and later undefine as macro. Define as weak alias if
21027 [USE_WIDE_CHAR].
21028
21029 * stdlib/strfromf.c: Include <bits/floatn.h>.
21030 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21031 and later undefine as macro and define as weak alias.
21032
21033 * math/test-float32.h: New file.
21034
21035 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21036 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21037 (libm_alias_float_other_r): Create f32 alias.
21038 (libm_alias_float_r): Use semicolon before call to
21039 libm_alias_float_other_r.
21040
21041 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21042 second argument to libm_alias_float_other.
21043 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21044 second argument to libm_alias_float_other.
21045 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21046 argument to libm_alias_float_other.
21047
21048 [BZ #22561]
21049 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21050 real part of result for argument 0 + i * NaN.
21051 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21052 results for tests of 0 + i * NaN.
21053
21054 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21055
21056 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21057
21058 2017-12-06 David S. Miller <davem@davemloft.net>
21059
21060 * sysdeps/sparc/fpu/libm-test-ulps: Update
21061 exp_{downward,towardzero,upward} ulps.
21062
21063 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21064
21065 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21066 variables static.
21067
21068 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21069 (Y0_2D): Likewise.
21070 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21071 (Y0_2D): Likewise.
21072 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21073 (Y0_2D): Likewise.
21074 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21075 (Y0_2D): Likewise.
21076
21077 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21078
21079 [BZ #22515]
21080 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21081 and to the list of locales to be built for testing.
21082 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21083 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21084 and build the collation rules upon that.
21085
21086 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21087
21088 * NEWS: Add sinf to list of optimized functions.
21089
21090 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21091
21092 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21093 (__HAVE_FLOAT32X): Likewise.
21094 * manual/math.texi (Mathematics): Document support for _Float64
21095 and _Float32x.
21096 * math/Makefile (test-types): Add float64 and float32x.
21097 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21098 functions.
21099 * stdlib/Versions (GLIBC_2.27): Likewise.
21100 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21101 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21102 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21103 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21104 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21105 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21106 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21107 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21108 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21109 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21110 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21111 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21112 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21113 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21114 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21115 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21116 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21117 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21118 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21119 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21120 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21121 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21122 Likewise.
21123 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21124 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21125 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21126 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21127 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21129 Likewise.
21130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21131 Likewise.
21132 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21133 Likewise.
21134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21135 Likewise.
21136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21137 Likewise.
21138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21139 Likewise.
21140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21141 Likewise.
21142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21143 Likewise.
21144 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21145 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21146 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21147 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21148 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21149 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21150 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21151 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21152 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21153 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21154 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21155 Likewise.
21156 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21157 Likewise.
21158 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21159 Likewise.
21160 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21161 Likewise.
21162 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21163 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21164 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21165 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21166 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21167 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21168 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21169 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21170
21171 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21172
21173 * bits/floatn-common.h: Include <bits/long-double.h>.
21174 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21175 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21176 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21177 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21178 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21179 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21180 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21181 (__builtin_huge_valf64): Use __builtin_huge_vall.
21182 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21183 (__builtin_inff64): Use __builtin_infl.
21184 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21185 (__builtin_nanf64): Use __builtin_nanl.
21186 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21187 (__builtin_nansf64): Use __builtin_nansl.
21188
21189 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21190 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21191 Carlos O'Donnell <carlos@redhat.com>
21192
21193 * elf/dl-tunables.list: Add elision parameters.
21194 * manual/tunables.texi: Add entries about elision tunable.
21195 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21196 Add callback functions to dynamically enable/disable elision.
21197 Add multiple callbacks functions to set elision parameters.
21198 Deleted __libc_enable_secure check.
21199 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21200 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21201 * configure: Regenerated.
21202 * configure.ac: Option enable_lock_elision was deleted.
21203 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21204 * config.make.in: Remove references to enable_lock_elision.
21205 * manual/install.texi: Elision configure option was removed.
21206 * INSTALL: Regenerated to remove enable_lock_elision.
21207 * nptl/Makefile:
21208 Disable elision so it can verify error case for destroying a mutex.
21209 * sysdeps/powerpc/nptl/elide.h:
21210 Cleanup ENABLE_LOCK_ELISION check.
21211 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21212 * sysdeps/s390/configure: Regenerated.
21213 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21214 * nptl/tst-mutex8.c:
21215 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21216 * sysdeps/powerpc/powerpc32/sysdep.h:
21217 Deleted all ENABLE_LOCK_ELISION checks.
21218 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21219 * sysdeps/powerpc/sysdep.h: Likewise.
21220 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21221 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21222 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21223 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21224 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21225 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21226 enable-lock-elision.
21227
21228 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21229
21230 * stdlib/strtod.c: Include <bits/floatn.h>.
21231 (BUILD_DOUBLE): New macro.
21232 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21233 (strtof64): 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): 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): 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): Define and later undefine as macro. Define as weak
21243 alias if [USE_WIDE_CHAR].
21244 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21245 (BUILD_DOUBLE): New macro.
21246 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21247 (strtof64_l): Define and later undefine as macro. Define as weak
21248 alias if [!USE_WIDE_CHAR].
21249 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21250 (wcstof64_l): Define and later undefine as macro. Define as weak
21251 alias if [USE_WIDE_CHAR].
21252 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21253 (strtof32x_l): Define and later undefine as macro. Define as weak
21254 alias if [!USE_WIDE_CHAR].
21255 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21256 (wcstof32x_l): Define and later undefine as macro. Define as weak
21257 alias if [USE_WIDE_CHAR].
21258
21259 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21260
21261 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21262 (reduced): Use ones as double instead of integer.
21263
21264 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21265
21266 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21267
21268 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21269
21270 * stdlib/strfromd.c: Include <bits/floatn.h>.
21271 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21272 and later undefine as macro and define as weak alias.
21273 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21274 Likewise.
21275
21276 * math/test-float32x.h: New file.
21277 * math/test-float64.h: Likewise.
21278
21279 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21280 (libm_alias_double_other_r_f64): New macro.
21281 (libm_alias_double_other_r_f32x): Likewise.
21282 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21283 libm_alias_double_other_r_f32x.
21284 (libm_alias_double_r): Use semicolon before call to
21285 libm_alias_double_other_r.
21286 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21287 <bits/floatn.h>.
21288 (libm_alias_double_other_r_f64): New macro.
21289 (libm_alias_double_other_r_f32x): Likewise.
21290 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21291 libm_alias_double_other_r_f32x.
21292
21293 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21294
21295 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21296 int.
21297 (SINF_FUNC): Likewise. Replace floor with simple casts.
21298
21299 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21300
21301 [BZ #22517]
21302 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21303 and to the list of locales to be built for testing.
21304 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21305 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21306 and build the collation rules upon that.
21307
21308 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21309
21310 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21311 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21312 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21313 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21314 instead of __insn__xxx.
21315 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21316 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21317 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21318 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21319 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21320 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21321
21322 2017-12-05 Florian Weimer <fweimer@redhat.com>
21323
21324 Linux: Implement interfaces for memory protection keys
21325 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21326 xsignal, xsysconf.
21327 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21328 * support/xunistd.h (xsysconf): Declare.
21329 * support/xraise.c: New file.
21330 * support/xsigaction.c: Likewise.
21331 * support/xsignal.c: Likewise.
21332 * support/xsysconf.c: Likewise.
21333 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21334 pkey_set, pkey_get, pkey_mprotect.
21335 [misc] (tests): Add tst-pkey.
21336 (tst-pkey): Link with -lpthread.
21337 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21338 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21339 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21340 (PKEY_DISABLE_WRITE): Define.
21341 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21342 Declare.
21343 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21344 (SEGV_PKUERR): Add.
21345 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21346 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21347 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21348 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21349 Add.
21350 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21351 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21352 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21353 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21354 * sysdeps/unix/sysv/linux/**.abilist: Update.
21355
21356 2017-12-05 Florian Weimer <fweimer@redhat.com>
21357
21358 * support/tst-test_compare.c (subprocess): Use long long instead
21359 of long argument for consistent type width across 32-bit and
21360 64-bit architectures.
21361 (do_test): Adjust expected output.
21362
21363 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21364
21365 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21366 (cosf): Define using libm_alias_float.
21367 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21368 (fabsf): Define using libm_alias_float.
21369 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21370 (fmaf): Define using libm_alias_float.
21371 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21372 (rintf): Define using libm_alias_float.
21373 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21374 (sinf): Define using libm_alias_float.
21375 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21376 <libm-alias-float.h>.
21377 (modff): Define using libm_alias_float.
21378 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21379 <libm-alias-float.h>.
21380 (logbf): Define using libm_alias_float.
21381 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21382 <libm-alias-float.h>.
21383 (ceilf): Define using libm_alias_float.
21384 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21385 <libm-alias-float.h>.
21386 (copysignf): Define using libm_alias_float.
21387 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21388 <libm-alias-float.h>.
21389 (floorf): Define using libm_alias_float.
21390 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21391 <libm-alias-float.h>.
21392 (llrintf): Define using libm_alias_float.
21393 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21394 <libm-alias-float.h>.
21395 (llroundf): Define using libm_alias_float.
21396 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21397 <libm-alias-float.h>.
21398 (lrintf): Define using libm_alias_float.
21399 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21400 <libm-alias-float.h>.
21401 (lroundf): Define using libm_alias_float.
21402 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21403 <libm-alias-float.h>.
21404 (nearbyintf): Define using libm_alias_float.
21405 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21406 <libm-alias-float.h>.
21407 (rintf): Define using libm_alias_float.
21408 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21409 <libm-alias-float.h>.
21410 (roundf): Define using libm_alias_float.
21411 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21412 <libm-alias-float.h>.
21413 (truncf): Define using libm_alias_float.
21414 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
21415 Include <libm-alias-float.h>.
21416 (ceilf): Define using libm_alias_float.
21417 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
21418 Include <libm-alias-float.h>.
21419 (copysignf): Define using libm_alias_float.
21420 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
21421 Include <libm-alias-float.h>.
21422 (floorf): Define using libm_alias_float.
21423 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
21424 Include <libm-alias-float.h>.
21425 (llrintf): Define using libm_alias_float.
21426 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
21427 Include <libm-alias-float.h>.
21428 (llroundf): Define using libm_alias_float.
21429 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
21430 Include <libm-alias-float.h>.
21431 (logbf): Define using libm_alias_float.
21432 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
21433 Include <libm-alias-float.h>.
21434 (lrintf): Define using libm_alias_float.
21435 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
21436 Include <libm-alias-float.h>.
21437 (lroundf): Define using libm_alias_float.
21438 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
21439 Include <libm-alias-float.h>.
21440 (modff): Define using libm_alias_float.
21441 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
21442 Include <libm-alias-float.h>.
21443 (roundf): Define using libm_alias_float.
21444 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
21445 Include <libm-alias-float.h>.
21446 (truncf): Define using libm_alias_float.
21447 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
21448 <libm-alias-float.h>.
21449 (llrintf): Define using libm_alias_float.
21450 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21451 <libm-alias-float.h>.
21452 (llroundf): Define using libm_alias_float.
21453 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
21454 <libm-alias-float.h>.
21455 (ceilf): Define using libm_alias_float.
21456 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
21457 <libm-alias-float.h>.
21458 (floorf): Define using libm_alias_float.
21459 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21460 <libm-alias-float.h>.
21461 (llroundf): Define using libm_alias_float.
21462 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21463 <libm-alias-float.h>.
21464 (lroundf): Define using libm_alias_float.
21465 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
21466 <libm-alias-float.h>.
21467 (roundf): Define using libm_alias_float.
21468 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
21469 <libm-alias-float.h>.
21470 (truncf): Define using libm_alias_float.
21471 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21472 <libm-alias-float.h>.
21473 (copysignf): Define using libm_alias_float.
21474 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
21475 <libm-alias-float.h>.
21476 (llrintf): Define using libm_alias_float.
21477 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21478 <libm-alias-float.h>.
21479 (llroundf): Define using libm_alias_float.
21480 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21481 <libm-alias-float.h>.
21482 (lrintf): Define using libm_alias_float.
21483 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21484 <libm-alias-float.h>.
21485 (lroundf): Define using libm_alias_float.
21486 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
21487 <libm-alias-float.h>.
21488 (ceilf): Define using libm_alias_float.
21489 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
21490 <libm-alias-float.h>.
21491 (copysignf): Define using libm_alias_float.
21492 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
21493 <libm-alias-float.h>.
21494 (cosf): Define using libm_alias_float.
21495 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
21496 <libm-alias-float.h>.
21497 (floorf): Define using libm_alias_float.
21498 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
21499 <libm-alias-float.h>.
21500 (llrintf): Define using libm_alias_float.
21501 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
21502 <libm-alias-float.h>.
21503 (llroundf): Define using libm_alias_float.
21504 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
21505 <libm-alias-float.h>.
21506 (logbf): Define using libm_alias_float.
21507 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
21508 <libm-alias-float.h>.
21509 (modff): Define using libm_alias_float.
21510 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
21511 <libm-alias-float.h>.
21512 (roundf): Define using libm_alias_float.
21513 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
21514 <libm-alias-float.h>.
21515 (sinf): Define using libm_alias_float.
21516 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
21517 <libm-alias-float.h>.
21518 (truncf): Define using libm_alias_float.
21519 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
21520 <libm-alias-float.h>.
21521 (ceilf): Define using libm_alias_float.
21522 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21523 <libm-alias-float.h>.
21524 (copysignf): Define using libm_alias_float.
21525 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
21526 <libm-alias-float.h>.
21527 (floorf): Define using libm_alias_float.
21528 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21529 <libm-alias-float.h>.
21530 (llrintf): Define using libm_alias_float.
21531 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
21532 <libm-alias-float.h>.
21533 (llroundf): Define using libm_alias_float.
21534 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
21535 <libm-alias-float.h>.
21536 (nearbyintf): Define using libm_alias_float.
21537 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
21538 <libm-alias-float.h>.
21539 (rintf): Define using libm_alias_float.
21540 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
21541 <libm-alias-float.h>.
21542 (roundf): Define using libm_alias_float.
21543 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
21544 <libm-alias-float.h>.
21545 (truncf): Define using libm_alias_float.
21546 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
21547 <libm-alias-float.h>.
21548 (ceilf): Define using libm_alias_float.
21549 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
21550 <libm-alias-float.h>.
21551 (floorf): Define using libm_alias_float.
21552 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21553 <libm-alias-float.h>.
21554 (llroundf): Define using libm_alias_float.
21555 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
21556 <libm-alias-float.h>.
21557 (roundf): Define using libm_alias_float.
21558 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
21559 <libm-alias-float.h>.
21560 (truncf): Define using libm_alias_float.
21561 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21562 <libm-alias-float.h>.
21563 (copysignf): Define using libm_alias_float.
21564 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21565 <libm-alias-float.h>.
21566 (llrintf): Define using libm_alias_float.
21567 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21568 <libm-alias-float.h>.
21569 (llroundf): Define using libm_alias_float.
21570 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
21571 <libm-alias-float.h>.
21572 (cosf): Define using libm_alias_float.
21573 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21574 <libm-alias-float.h>.
21575 (llrintf): Define using libm_alias_float.
21576 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21577 <libm-alias-float.h>.
21578 (llroundf): Define using libm_alias_float.
21579 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
21580 <libm-alias-float.h>.
21581 (sinf): Define using libm_alias_float.
21582
21583 2017-12-04 Florian Weimer <fweimer@redhat.com>
21584
21585 * support/check.h (TEST_COMPARE): Define.
21586 (support_test_compare_failure): Declare.
21587 * support/Makefile (libsupport-routines): Add
21588 support_test_compare_failure.
21589 (tests): Add tst-test_compare.
21590 * support /support_test_compare_failure.c: New file.
21591 * support/tst-test_compare.c: Likewise.
21592
21593 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21594
21595 [BZ #22527]
21596 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
21597 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
21598 available, this rewrite of the collation rules does reproduce
21599 the test file in the same order.
21600
21601 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21602
21603 [BZ #10580]
21604 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
21605 digraphs in the month and day names. Using single code points for
21606 digraphs is deprecated. While there are dedicated Unicode
21607 codepoints, for the digraphs, these are included for backwards
21608 compatibility and modern texts use a sequence of Basic Latin
21609 characters. See: https://www.unicode.org/faq/ligature_digraph.html
21610 This makes the month and day names agree exactly with CLDR now,
21611 CLDR does not use the single code points for the digraphs either.
21612
21613 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
21614
21615 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
21616
21617 2017-12-04 Joseph Myers <joseph@codesourcery.com>
21618
21619 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
21620 of floor.
21621
21622 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
21623
21624 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
21625 Define only for libc.so.
21626
21627 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
21628
21629 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21630 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
21631 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
21632 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
21633 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21634
21635 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21636
21637 [BZ #5997]
21638 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
21639
21640 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
21641
21642 [BZ libc/19170]
21643 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
21644 PREINIT_FUNCTION_WEAK is nonzero.
21645 (gmon_initializer): New function. Put procedure label for it in
21646 .init_array section.
21647 (_init): Don't call PREINIT_FUNCTION.
21648 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
21649 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
21650 value when map argument is null.
21651
21652 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
21653 depi instruction from PIC pc-relative sequence.
21654 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
21655 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
21656 (elf_machine_load_address): Likewise.
21657 (elf_machine_runtime_setup): Likewise.
21658
21659 2017-12-02 Joseph Myers <joseph@codesourcery.com>
21660
21661 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
21662 <libm-alias-double.h>.
21663 (logb): Define using libm_alias_double.
21664 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21665 <libm-alias-double.h>.
21666 (copysign): Define using libm_alias_double.
21667 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
21668 <libm-alias-double.h>.
21669 (llrint): Define using libm_alias_double.
21670 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
21671 <libm-alias-double.h>.
21672 (llround): Define using libm_alias_double.
21673 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21674 <libm-alias-double.h>.
21675 (lrint): Define using libm_alias_double.
21676 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21677 <libm-alias-double.h>.
21678 (lround): Define using libm_alias_double.
21679 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
21680 Include <libm-alias-double.h>.
21681 (copysign): Define using libm_alias_double.
21682 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
21683 Include <libm-alias-double.h>.
21684 (llrint): Define using libm_alias_double.
21685 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
21686 Include <libm-alias-double.h>.
21687 (llround): Define using libm_alias_double.
21688 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
21689 <libm-alias-double.h>.
21690 (logb): Define using libm_alias_double.
21691 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
21692 Include <libm-alias-double.h>.
21693 (lrint): Define using libm_alias_double.
21694 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
21695 Include <libm-alias-double.h>.
21696 (lround): Define using libm_alias_double.
21697 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
21698 <libm-alias-double.h>.
21699 (llrint): Define using libm_alias_double.
21700 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21701 <libm-alias-double.h>.
21702 (llround): Define using libm_alias_double.
21703 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21704 <libm-alias-double.h>.
21705 (llround): Define using libm_alias_double.
21706 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21707 <libm-alias-double.h>.
21708 (lround): Define using libm_alias_double.
21709 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21710 <libm-alias-double.h>.
21711 (copysign): Define using libm_alias_double.
21712 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
21713 <libm-alias-double.h>.
21714 (llrint): Define using libm_alias_double.
21715 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21716 <libm-alias-double.h>.
21717 (llround): Define using libm_alias_double.
21718 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21719 <libm-alias-double.h>.
21720 (lrint): Define using libm_alias_double.
21721 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21722 <libm-alias-double.h>.
21723 (lround): Define using libm_alias_double.
21724 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
21725 <libm-alias-double.h>.
21726 (copysign): Define using libm_alias_double.
21727 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
21728 <libm-alias-double.h>.
21729 (llrint): Define using libm_alias_double.
21730 (lrint): Likewise.
21731 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
21732 <libm-alias-double.h>.
21733 (llround): Define using libm_alias_double.
21734 (lround): Likewise.
21735 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
21736 <libm-alias-double.h>.
21737 (logb): Define using libm_alias_double.
21738 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21739 <libm-alias-double.h>.
21740 (copysign): Define using libm_alias_double.
21741 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21742 <libm-alias-double.h>.
21743 (llrint): Define using libm_alias_double.
21744 (lrint): Likewise.
21745 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
21746 <libm-alias-double.h>.
21747 (llround): Define using libm_alias_double.
21748 (lround): Likewise.
21749 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21750 <libm-alias-double.h>.
21751 (llround): Define using libm_alias_double.
21752 (lround): Likewise.
21753 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21754 <libm-alias-double.h>.
21755 (copysign): Define using libm_alias_double.
21756 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21757 <libm-alias-double.h>.
21758 (llrint): Define using libm_alias_double.
21759 (lrint): Likewise.
21760 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21761 <libm-alias-double.h>.
21762 (llround): Define using libm_alias_double.
21763 (lround): Likewise.
21764 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21765 <libm-alias-double.h>.
21766 (llrint): Define using libm_alias_double.
21767 (lrint): Likewise.
21768 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21769 <libm-alias-double.h>.
21770 (llround): Define using libm_alias_double.
21771 (lround): Likewise.
21772
21773 2017-12-01 Joseph Myers <joseph@codesourcery.com>
21774
21775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
21776 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
21777 compat symbol based on llround.
21778
21779 * sysdeps/powerpc/power7/fpu/s_logb.c
21780 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
21781 symbol based on __logb, not on logb.
21782 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
21783 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
21784 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
21785 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
21786
21787 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
21788 (rint): Define using libm_alias_double.
21789 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
21790 <libm-alias-double.h>.
21791 (modf): Define using libm_alias_double.
21792 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
21793 <libm-alias-double.h>.
21794 (ceil): Define using libm_alias_double.
21795 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
21796 <libm-alias-double.h>.
21797 (floor): Define using libm_alias_double.
21798 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
21799 <libm-alias-double.h>.
21800 (nearbyint): Define using libm_alias_double.
21801 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
21802 <libm-alias-double.h>.
21803 (rint): Define using libm_alias_double.
21804 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
21805 <libm-alias-double.h>.
21806 (round): Define using libm_alias_double.
21807 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
21808 <libm-alias-double.h>.
21809 (trunc): Define using libm_alias_double.
21810 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
21811 <libm-alias-double.h>.
21812 (ceil): Define using libm_alias_double.
21813 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
21814 Include <libm-alias-double.h>.
21815 (floor): Define using libm_alias_double.
21816 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
21817 <libm-alias-double.h>.
21818 (modf): Define using libm_alias_double.
21819 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
21820 Include <libm-alias-double.h>.
21821 (round): Define using libm_alias_double.
21822 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
21823 Include <libm-alias-double.h>.
21824 (trunc): Define using libm_alias_double.
21825 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
21826 <libm-alias-double.h>.
21827 (ceil): Define using libm_alias_double.
21828 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
21829 <libm-alias-double.h>.
21830 (floor): Define using libm_alias_double.
21831 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
21832 <libm-alias-double.h>.
21833 (round): Define using libm_alias_double.
21834 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
21835 <libm-alias-double.h>.
21836 (trunc): Define using libm_alias_double.
21837 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
21838 <libm-alias-double.h>.
21839 (ceil): Define using libm_alias_double.
21840 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
21841 <libm-alias-double.h>.
21842 (floor): Define using libm_alias_double.
21843 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
21844 <libm-alias-double.h>.
21845 (modf): Define using libm_alias_double.
21846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
21847 <libm-alias-double.h>.
21848 (round): Define using libm_alias_double.
21849 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
21850 <libm-alias-double.h>.
21851 (trunc): Define using libm_alias_double.
21852 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
21853 <libm-alias-double.h>.
21854 (ceil): Define using libm_alias_double.
21855 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
21856 <libm-alias-double.h>.
21857 (floor): Define using libm_alias_double.
21858 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
21859 <libm-alias-double.h>.
21860 (nearbyint): Define using libm_alias_double.
21861 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
21862 <libm-alias-double.h>.
21863 (rint): Define using libm_alias_double.
21864 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
21865 <libm-alias-double.h>.
21866 (round): Define using libm_alias_double.
21867 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
21868 <libm-alias-double.h>.
21869 (trunc): Define using libm_alias_double.
21870 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
21871 <libm-alias-double.h>.
21872 (ceil): Define using libm_alias_double.
21873 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
21874 <libm-alias-double.h>.
21875 (floor): Define using libm_alias_double.
21876 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
21877 <libm-alias-double.h>.
21878 (round): Define using libm_alias_double.
21879 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
21880 <libm-alias-double.h>.
21881 (trunc): Define using libm_alias_double.
21882
21883 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
21884 (fabs): Define using libm_alias_double.
21885 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
21886 (fma): Define using libm_alias_double.
21887 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
21888 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
21889 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
21890 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
21891
21892 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21893
21894 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
21895
21896 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
21897 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
21898 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21899
21900 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
21901 due redirect macro.
21902
21903 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
21904
21905 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
21906
21907 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21908
21909 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
21910 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
21911 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
21912 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
21913
21914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21915 (libm-sysdep_routines): Add s_nearbyintf-generic and
21916 s_nearbyint-generic.
21917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
21918 New file.
21919 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
21920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
21921 Likewise.
21922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
21923 Likewise.
21924 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
21925 file.
21926 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21927 Likewise.
21928
21929 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21930 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
21931 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
21932 file.
21933 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
21934 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
21935 Likewise.
21936 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
21937 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
21938 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
21939
21940 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21941 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
21942 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
21943 file.
21944 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
21945 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
21946 Likewise.
21947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
21948 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
21949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
21950
21951 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21952 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
21953 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
21954 file.
21955 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
21956 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
21957 Likewise.
21958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
21959 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
21960 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
21961
21962 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21963 (sysdep_calls): New rule.
21964 (sysdep_routines): Use sysdep_calls as base.
21965 (libm-sysdep_routines): Add generic rule for symbols shared with
21966 libc. Add s_copysign-generic and s_copysign-generic objects.
21967 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
21968 New file.
21969 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
21970 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
21971 Likewise.
21972 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
21973 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
21974 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
21975
21976 2017-12-01 Mike FABIAN <mfabian@redhat.com>
21977
21978 [BZ #22519]
21979 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
21980 the list of locales to be built for testing.
21981 * localedata/is_IS.UTF-8.in: New file.
21982 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
21983 on iso14651_t1.
21984
21985 2017-12-01 Joseph Myers <joseph@codesourcery.com>
21986
21987 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
21988 <libm-alias-float.h>.
21989 (fabsf): Define using libm_alias_float.
21990
21991 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21992
21993 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
21994
21995 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21996
21997 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
21998 <libm-alias-float.h>.
21999 (fabsf): Define using libm_alias_float.
22000 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22001 <libm-alias-float.h>.
22002 (lrintf): Define using libm_alias_float.
22003 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22004 <libm-alias-float.h>.
22005 (rintf): Define using libm_alias_float.
22006
22007 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22008 <libm-alias-double.h>.
22009 (fabs): Define using libm_alias_double.
22010 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22011 <libm-alias-double.h>.
22012 (lrint): Define using libm_alias_double.
22013 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22014 <libm-alias-double.h>.
22015 (rint): Define using libm_alias_double.
22016
22017 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22018 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22019 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22020 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22021 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22022 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22023 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22024 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22025 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22026 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22027 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22028 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22029 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22030 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22031 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22032 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22033 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22034 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22035 s_atan_template.c.
22036 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22037 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22038 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22039 s_ceil_template.c.
22040 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22041 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22042 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22043 s_cos_template.c.
22044 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22045 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22046 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22047 s_expm1_template.c.
22048 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22049 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22050 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22051 s_fabs_template.c.
22052 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22053 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22054 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22055 s_floor_template.c.
22056 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22057 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22058 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22059 s_frexp_template.c.
22060 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22061 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22062 s_lrint_template.c.
22063 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22064 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22065 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22066 s_modf_template.c.
22067 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22068 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22069 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22070 s_nearbyint_template.c.
22071 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22072 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22073 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22074 s_remquo_template.c.
22075 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22076 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22077 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22078 s_rint_template.c.
22079 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22080 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22081 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22082 s_sin_template.c.
22083 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22084 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22085 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22086 s_sincos_template.c.
22087 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22088 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22089 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22090 s_tan_template.c.
22091 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22092 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22093 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22094 s_tanh_template.c.
22095 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22096 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22097 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22098 s_trunc_template.c.
22099 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22100 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22101 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22102 s_atan.c instead of including s_atan.c.
22103 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22104 s_atanf.c instead of including s_atanf.c.
22105 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22106 s_atanl.c instead of including s_atanl.c.
22107 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22108 instead of s_atan.c.
22109 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22110 instead of s_atanf.c.
22111 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22112 instead of s_atanl.c.
22113
22114 * scripts/update-copyrights: Do not handle intl/plural.c
22115 specially.
22116
22117 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22118
22119 [BZ #22432]
22120 * configure.ac (BISON): Require to be present.
22121 * configure: Regenerated.
22122 * intl/Makefile (generated): Add plural.c.
22123 [$(BISON) != no]: Make code unconditional.
22124 (plural.c): Change rule to $(objpfx)plural.c.
22125 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22126 * intl/plural.c: Remove.
22127 * manual/install.texi (Tools for Compilation): Document bison as
22128 required.
22129 * INSTALL: Regenerated.
22130
22131 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22132
22133 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22134 <libm-alias-double.h>.
22135 (llrint): Define using libm_alias_double.
22136 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22137 <libm-alias-float.h>.
22138 (llrintf): Define using libm_alias_float.
22139 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22140 <libm-alias-ldouble.h>.
22141 (llrintl): Define using libm_alias_ldouble.
22142
22143 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22144 declare_mgen_alias instead of weak_alias.
22145 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22146 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22147 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22148
22149 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22150
22151 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22152 Add add_n-generic.
22153 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22154 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22155 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22156
22157 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22158 Add submul_1-generic.
22159 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22160 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22161 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22162
22163 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22164 Add addmul_1-generic.
22165 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22166 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22167 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22168
22169 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22170 Add sub_n-generic.
22171 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22172 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22173 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22174
22175 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22176 Add mul_1-generic.
22177 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22178 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22179 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22180
22181 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22182
22183 According to CLDR, collation rules for Serbian and Bosnian
22184 should be the same as for Croatian.
22185
22186 [BZ #22534]
22187 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22188 and to the list of locales to be built for testing.
22189 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22190 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22191 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22192 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22193
22194 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22195
22196 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22197 to make test case pass.
22198 * localedata/hr_HR.UTF-8.in: Add more test strings.
22199
22200 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22201
22202 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22203
22204 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22205
22206 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22207 the list of locales to built for testing.
22208 * localedata/hr_HR.UTF-8.in: New file.
22209
22210 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22211
22212 [BZ #10580]
22213 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22214 iso14651_t1.
22215 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22216 CLDR (except use ligatures for the digraphs, CLDR does not use
22217 the ligatures), add first_workday, some fixes in the date and time
22218 formats.
22219 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22220 for Đ and đ.
22221 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22222 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22223 Add int_p_cs_precedes and int_n_cs_precedes.
22224 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22225 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22226 LC_MONETARY now).
22227 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22228 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22229 name_miss.
22230 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22231 and lang_lib. Change postal_fmt.
22232
22233 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22234
22235 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22236 <setjmp.h>.
22237 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22238 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22239 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22240 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22241 * sysdeps/generic/setjmpP.h: New file.
22242 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22243 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22244 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22245 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22246 Add jmp_buf-ssp.sym.
22247 (tests): Add tst-saved_mask-1.
22248
22249 2017-11-30 Arjun Shankar <arjun@redhat.com>
22250
22251 [BZ #22375]
22252 CVE-2017-17426
22253 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22254 instead of request2size.
22255
22256 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22257
22258 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22259 (__lllrint): Remove alias.
22260 (lllrint): Likewise.
22261 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22262 (__lllrintf): Likewise.
22263 (lllrintf): Likewise.
22264
22265 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22266 <libm-alias-float.h>.
22267 (copysignf): Define using libm_alias_float.
22268 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22269 <libm-alias-float.h>.
22270 (fabsf): Define using libm_alias_float.
22271 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22272 Include <libm-alias-float.h>.
22273 (copysignf): Define using libm_alias_float.
22274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22275 <libm-alias-float.h>.
22276 (fabsf): Define using libm_alias_float.
22277 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22278 <libm-alias-float.h>.
22279 (fdimf): Define using libm_alias_float.
22280 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22281 <libm-alias-float.h>.
22282 (fmaf): Define using libm_alias_float.
22283 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22284 <libm-alias-float.h>.
22285 (llrintf): Define using libm_alias_float.
22286 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22287 Include <libm-alias-float.h>.
22288 (nearbyintf): Define using libm_alias_float.
22289 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22290 <libm-alias-float.h>.
22291 (rintf): Define using libm_alias_float.
22292 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22293 <libm-alias-float.h>.
22294 (llrintf): Define using libm_alias_float.
22295 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22296 <libm-alias-float.h>.
22297 (lrintf): Define using libm_alias_float.
22298 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22299 <libm-alias-float.h>.
22300 (nearbyintf): Define using libm_alias_float.
22301 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22302 <libm-alias-float.h>.
22303 (rintf): Define using libm_alias_float.
22304 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22305 <libm-alias-float.h>.
22306 (ceilf): Define using libm_alias_float.
22307 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22308 <libm-alias-float.h>.
22309 (floorf): Define using libm_alias_float.
22310 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22311 <libm-alias-float.h>.
22312 (fmaf): Define using libm_alias_float.
22313 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22314 <libm-alias-float.h>.
22315 (lrintf): Define using libm_alias_float.
22316 (llrintf): Likewise.
22317 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22318 <libm-alias-float.h>.
22319 (nearbyintf): Define using libm_alias_float.
22320 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22321 <libm-alias-float.h>.
22322 (rintf): Define using libm_alias_float.
22323 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22324 <libm-alias-float.h>.
22325 (truncf): Define using libm_alias_float.
22326 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22327 <libm-alias-float.h>.
22328 (copysignf): Define using libm_alias_float.
22329 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22330 <libm-alias-float.h>.
22331 (fabsf): Define using libm_alias_float.
22332 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22333 <libm-alias-float.h>.
22334 (lrintf): Define using libm_alias_float.
22335 (llrintf): Likewise.
22336 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22337 <libm-alias-float.h>.
22338 (nearbyintf): Define using libm_alias_float.
22339 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22340 <libm-alias-float.h>.
22341 (rintf): Define using libm_alias_float.
22342
22343 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22344
22345 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22346 <libm-alias-double.h>.
22347 (copysign): Define using libm_alias_double.
22348 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22349 <libm-alias-double.h>.
22350 (fabs): Define using libm_alias_double.
22351 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22352 Include <libm-alias-double.h>.
22353 (copysign): Define using libm_alias_double.
22354 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22355 <libm-alias-double.h>.
22356 (fabs): Define using libm_alias_double.
22357 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22358 <libm-alias-double.h>.
22359 (fdim): Define using libm_alias_double.
22360 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22361 <libm-alias-double.h>.
22362 (fma): Define using libm_alias_double.
22363 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22364 <libm-alias-double.h>.
22365 (llrint): Define using libm_alias_double.
22366 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22367 Include <libm-alias-double.h>.
22368 (nearbyint): Define using libm_alias_double.
22369 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22370 <libm-alias-double.h>.
22371 (rint): Define using libm_alias_double.
22372 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22373 <libm-alias-double.h>.
22374 (fabs): Define using libm_alias_double.
22375 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22376 <libm-alias-double.h>.
22377 (llrint): Define using libm_alias_double.
22378 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22379 <libm-alias-double.h>.
22380 (nearbyint): Define using libm_alias_double.
22381 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22382 <libm-alias-double.h>.
22383 (rint): Define using libm_alias_double.
22384 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22385 <libm-alias-double.h>.
22386 (ceil): Define using libm_alias_double.
22387 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22388 <libm-alias-double.h>.
22389 (floor): Define using libm_alias_double.
22390 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22391 <libm-alias-double.h>.
22392 (fma): Define using libm_alias_double.
22393 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22394 <libm-alias-double.h>.
22395 (lrint): Define using libm_alias_double.
22396 (llrint): Likewise.
22397 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22398 <libm-alias-double.h>.
22399 (nearbyint): Define using libm_alias_double.
22400 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22401 <libm-alias-double.h>.
22402 (rint): Define using libm_alias_double.
22403 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22404 <libm-alias-double.h>.
22405 (trunc): Define using libm_alias_double.
22406 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22407 <libm-alias-double.h>.
22408 (copysign): Define using libm_alias_double.
22409 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22410 <libm-alias-double.h>.
22411 (fabs): Define using libm_alias_double.
22412 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
22413 <libm-alias-double.h>.
22414 (lrint): Define using libm_alias_double.
22415 (llrint): Likewise.
22416 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
22417 <libm-alias-double.h>.
22418 (nearbyint): Define using libm_alias_double.
22419 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
22420 <libm-alias-double.h>.
22421 (rint): Define using libm_alias_double.
22422
22423 [BZ #22229]
22424 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22425 <math_ldbl_opt.h>.
22426 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22427
22428 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22429 SPARC --disable-multi-arch glibc variants.
22430
22431 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
22432 <libm-alias-float.h>.
22433 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22434 if [SHARED].
22435 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
22436 <libm-alias-float.h>.
22437 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22438 if [SHARED].
22439 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
22440 <libm-alias-float.h>.
22441 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22442 if [SHARED].
22443 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
22444 <libm-alias-float.h>.
22445 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22446 if [SHARED].
22447 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
22448 <libm-alias-float.h>.
22449 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22450 if [SHARED].
22451 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
22452 <libm-alias-float.h>.
22453 (ceilf): Define using libm_alias_float.
22454 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
22455 <libm-alias-float.h>.
22456 (floorf): Define using libm_alias_float.
22457 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
22458 <libm-alias-float.h>.
22459 (fmaf): Define using libm_alias_float.
22460 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
22461 <libm-alias-float.h>.
22462 (nearbyintf): Define using libm_alias_float.
22463 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
22464 <libm-alias-float.h>.
22465 (rintf): Define using libm_alias_float.
22466 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
22467 <libm-alias-float.h>.
22468 (truncf): Define using libm_alias_float.
22469 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22470 (copysignf): Define using libm_alias_float.
22471 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
22472 (cosf): Define using libm_alias_float.
22473 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22474 (fabsf): Define using libm_alias_float.
22475 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22476 (fmaxf): Define using libm_alias_float.
22477 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
22478 (fminf): Define using libm_alias_float.
22479 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22480 (llrintf): Define using libm_alias_float.
22481 [!__ILP32__] (lrintf): Likewise.
22482 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
22483 (sincosf): Define using libm_alias_float.
22484 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
22485 (sinf): Define using libm_alias_float.
22486 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22487 (lrintf): Define using libm_alias_float.
22488
22489 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
22490 <libm-alias-double.h>.
22491 (atan): Define using libm_alias_double.
22492 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
22493 <libm-alias-double.h>.
22494 (ceil): Define using libm_alias_double.
22495 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
22496 <libm-alias-double.h>.
22497 (floor): Define using libm_alias_double.
22498 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
22499 <libm-alias-double.h>.
22500 (fma): Define using libm_alias_double.
22501 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
22502 <libm-alias-double.h>.
22503 (nearbyint): Define using libm_alias_double.
22504 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
22505 <libm-alias-double.h>.
22506 (rint): Define using libm_alias_double.
22507 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
22508 <libm-alias-double.h>.
22509 (sin): Define using libm_alias_double.
22510 (cos): Likewise.
22511 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
22512 <libm-alias-double.h>.
22513 (tan): Define using libm_alias_double.
22514 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
22515 <libm-alias-double.h>.
22516 (trunc): Define using libm_alias_double.
22517 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
22518 (copysign): Define using libm_alias_double.
22519 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
22520 (fabs): Define using libm_alias_double.
22521 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
22522 (fmax): Define using libm_alias_double.
22523 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
22524 (fmin): Define using libm_alias_double.
22525 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
22526 (llrint): Define using libm_alias_double.
22527 [!__ILP32__] (lrint): Likewise.
22528 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
22529 (lrint): Define using libm_alias_double.
22530
22531 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22532
22533 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22534 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
22535 objects.
22536 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
22537 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
22538 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
22539 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
22540 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
22541 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22542
22543 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22544 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
22545 objects.
22546 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
22547 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
22548 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
22549 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
22550 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
22551 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22552
22553 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22554 (libm-sysdep_routines): Add s_nearbyint-generic and
22555 s_nearbyintf-generic objects.
22556 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
22557 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
22558 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
22559 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
22560 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
22561 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
22562
22563 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22564 Add s_finitef-generic and s_finite-generic objects.
22565 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
22566 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
22567 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
22568 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
22569 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
22570 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
22571
22572 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22573 Add s_isinff-generic and s_isinf-generic objects.
22574 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
22575 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
22576 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
22577 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
22578 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
22579 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22580
22581 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22582 Add s_isnanf-generic and s_isnan-generic objects.
22583 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
22584 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
22585 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
22586 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
22587 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
22588 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22589
22590 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
22591 macro.
22592 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
22593 rule.
22594 (sysdep_routines): Use sysdep_calls as base.
22595 (libm-sysdep_routines): Add generic rule for symbols shared with
22596 libc. Add s_signbit-generic and s_signbitf-generic objects.
22597 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
22598 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
22599 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
22600 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
22601 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
22602 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
22603
22604 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22605
22606 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
22607 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
22608 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
22609 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
22610 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
22611 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
22612 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
22613 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
22614 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
22615 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
22616 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
22617 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
22618 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
22619 libm_alias_float_r.
22620 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
22621 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
22622 (logf): Likewise.
22623 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
22624 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
22625 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
22626 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
22627 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
22628 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
22629 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
22630 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
22631 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
22632 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
22633 libm_alias_float.
22634 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
22635 (cosf): Likewise.
22636 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
22637 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
22638 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
22639 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
22640 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
22641 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
22642 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
22643 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
22644 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
22645 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
22646 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
22647 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
22648 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
22649 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
22650 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
22651 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
22652 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
22653 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
22654 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
22655 libm_alias_float.
22656 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
22657 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
22658 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
22659 * sysdeps/ia64/fpu/w_lgammaf_main.c
22660 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
22661 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
22662
22663 2017-11-28 Mike FABIAN <mfabian@redhat.com>
22664 Alexandre Oliva <aoliva@redhat.com>
22665
22666 [BZ #17750]
22667 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
22668 * localedata/fr_CA.UTF-8.in: New file with test data for backward
22669 accents sorting.
22670 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
22671 sorting.
22672 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
22673 * localedata/locales/de_DE (LC_COLLATE): Likewise.
22674 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
22675 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
22676 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
22677 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
22678 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
22679 instead of “ifdef DIACRIT_BACKWARD”.
22680
22681 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22682
22683 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
22684 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
22685 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
22686 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
22687 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
22688 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
22689 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
22690 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
22691 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
22692 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
22693 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
22694 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
22695 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
22696 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
22697 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
22698 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22699 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
22700 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
22701 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22702 ($(have-as-vis3) == yes): Remove conditional.
22703 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
22704 Likewise.
22705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
22706 file.
22707 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
22708 file.
22709 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
22710 file.
22711 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
22712 file.
22713 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
22714 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
22715 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
22716 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
22717 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
22718 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
22719 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
22720 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
22721
22722 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22723
22724 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
22725 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
22726 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
22727 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
22728 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
22729 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
22730 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
22731 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
22732 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
22733 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
22734 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
22735 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
22736 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
22737 libm_alias_double_r.
22738 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
22739 (log): Likewise.
22740 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
22741 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
22742 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
22743 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
22744 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
22745 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
22746 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
22747 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
22748 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
22749 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
22750 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
22751 libm_alias_double.
22752 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
22753 (cos): Likewise.
22754 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
22755 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
22756 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
22757 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
22758 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
22759 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
22760 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
22761 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
22762 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
22763 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
22764 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
22765 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
22766 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
22767 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
22768 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
22769 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
22770 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
22771 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
22772 libm_alias_double.
22773 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
22774 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
22775 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
22776 * sysdeps/ia64/fpu/w_lgamma_main.c
22777 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
22778 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
22779
22780 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
22781
22782 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
22783 address of $global$ into %dp register earlier. Use pc-relative
22784 instruction sequence for PIC case.
22785
22786 2017-11-28 Joseph Myers <joseph@codesourcery.com>
22787
22788 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
22789 (asinhf): Define using libm_alias_float.
22790 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
22791 (atanf): Define using libm_alias_float.
22792 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
22793 (cbrtf): Define using libm_alias_float.
22794 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
22795 (ceilf): Define using libm_alias_float.
22796 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22797 (copysignf): Define using libm_alias_float.
22798 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
22799 (expm1f): Define using libm_alias_float.
22800 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
22801 (fabsf): Define using libm_alias_float.
22802 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
22803 (floorf): Define using libm_alias_float.
22804 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22805 (fmaxf): Define using libm_alias_float.
22806 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
22807 (fminf): Define using libm_alias_float.
22808 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
22809 (frexpf): Define using libm_alias_float.
22810 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22811 (llrintf): Define using libm_alias_float.
22812 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
22813 (logbf): Define using libm_alias_float.
22814 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22815 (lrintf): Define using libm_alias_float.
22816 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
22817 (nearbyintf): Define using libm_alias_float.
22818 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
22819 (remquof): Define using libm_alias_float.
22820 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
22821 (rintf): Define using libm_alias_float.
22822 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
22823 (truncf): Define using libm_alias_float.
22824 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
22825 <libm-alias-float.h>.
22826 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22827 if [SHARED].
22828 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
22829 <libm-alias-float.h>.
22830 (expf): Define using libm_alias_float, or libm_alias_float_other
22831 if [SHARED].
22832 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
22833 <libm-alias-float.h>.
22834 (log2f): Define using libm_alias_float, or libm_alias_float_other
22835 if [SHARED].
22836 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
22837 <libm-alias-float.h>.
22838 (logf): Define using libm_alias_float, or libm_alias_float_other
22839 if [SHARED].
22840 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
22841 <libm-alias-float.h>.
22842 (powf): Define using libm_alias_float, or libm_alias_float_other
22843 if [SHARED].
22844 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
22845 <libm-alias-float.h>.
22846 (cosf): Define using libm_alias_float.
22847 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
22848 <libm-alias-float.h>.
22849 (sincosf): Define using libm_alias_float.
22850 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
22851 <libm-alias-float.h>.
22852 (sinf): Define using libm_alias_float.
22853 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22854 (fmaxf): Define using libm_alias_float.
22855 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
22856 (fminf): Define using libm_alias_float.
22857 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
22858 <libm-alias-float.h>.
22859 (fmaf): Define using libm_alias_float.
22860
22861 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
22862 (asinh): Define using libm_alias_double.
22863 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
22864 (atan): Define using libm_alias_double.
22865 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
22866 (cbrt): Define using libm_alias_double.
22867 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
22868 (ceil): Define using libm_alias_double.
22869 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
22870 (copysign): Define using libm_alias_double.
22871 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
22872 (expm1): Define using libm_alias_double.
22873 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
22874 (fabs): Define using libm_alias_double.
22875 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
22876 (fdim): Define using libm_alias_double.
22877 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
22878 (floor): Define using libm_alias_double.
22879 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
22880 (fmax): Define using libm_alias_double.
22881 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
22882 (fmin): Define using libm_alias_double.
22883 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
22884 (frexp): Define using libm_alias_double.
22885 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
22886 (llrint): Define using libm_alias_double.
22887 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
22888 (logb): Define using libm_alias_double.
22889 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
22890 (lrint): Define using libm_alias_double.
22891 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
22892 (nearbyint): Define using libm_alias_double.
22893 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
22894 (remquo): Define using libm_alias_double.
22895 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
22896 (rint): Define using libm_alias_double.
22897 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
22898 (trunc): Define using libm_alias_double.
22899 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
22900 (fmax): Define using libm_alias_double.
22901 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
22902 (fmin): Define using libm_alias_double.
22903 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
22904 (fma): Define using libm_alias_double.
22905
22906 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
22907
22908 [BZ #22370]
22909 * elf/dl-hwcaps.c (ROUND): Removed.
22910 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
22911 and ELF_NOTE_NEXT_OFFSET.
22912 * elf/dl-load.c (ROUND): Removed.
22913 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
22914 * elf/readelflib.c (ROUND): Removed.
22915 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
22916 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
22917 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
22918 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
22919
22920 2017-11-28 Joseph Myers <joseph@codesourcery.com>
22921
22922 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
22923 [!__fmaf] (fmaf): Define using libm_alias_float.
22924
22925 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
22926 [!__fma] (fma): Define using libm_alias_double.
22927 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
22928
22929 2017-11-28 Mike FABIAN <mfabian@redhat.com>
22930
22931 [BZ #22336]
22932 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
22933 and implement the collation rules for cs from CLDR on top of that.
22934 * Makefile: Add cs_CZ.UTF-8 to test-input.
22935 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
22936
22937 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
22938
22939 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
22940
22941 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
22942 Icarus Sparry <icarus.w.sparry@intel.com>
22943
22944 * benchtests/Makefile:Add BENCHSET to allow subsets of
22945 benchmarks to be run.
22946 * benchtests/README: Add documentation for: Running subsets of
22947 benchmarks.
22948
22949 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
22950
22951 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
22952 range of tests names.
22953
22954 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
22955 result from property and remove "max", min" and "mean" from
22956 required properties based on benchtests/bench-skeleton.c.
22957
22958 2017-11-28 Florian Weimer <fweimer@redhat.com>
22959
22960 [BZ #20826]
22961 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
22962 due to Internet requirement.
22963 * posix/Makefile (tests): Remove tst-getaddrinfo4,
22964 tst-getaddrinfo5.
22965 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
22966
22967 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22968
22969 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
22970 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
22971 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
22972 (sysdep_routines): Add memset-ultra1.
22973 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
22974 file.
22975 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
22976 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
22977 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
22978 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
22979 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
22980 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
22981 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
22982 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
22983
22984 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
22985 file.
22986 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
22987 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
22988 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
22989 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
22990 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
22991 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
22992 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
22993 macro.
22994 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
22995 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
22996 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
22997 (sysdep_routines): Add memcpy-ultra1.
22998 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
22999 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23000
23001 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23002
23003 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23004 (cfloat_versions): Take function argument without trailing 'f'.
23005 Call libm_alias_float_other.
23006 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23007 * sysdeps/alpha/fpu/cargf.c: Likewise.
23008 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23009 * sysdeps/alpha/fpu/conjf.c: Likewise.
23010 * sysdeps/alpha/fpu/crealf.c: Likewise.
23011 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23012 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23013 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23014 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23015 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23016 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23017 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23018 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23019 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23020 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23021 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23022 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23023 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23024 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23025 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23026 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23027 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23028 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23029 (clog10f): Use libm_alias_float_other.
23030 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23031 (ceilf): Define using libm_alias_float.
23032 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23033 (copysignf): Define using libm_alias_float.
23034 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23035 (fabsf): Define using libm_alias_float.
23036 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23037 (floorf): Define using libm_alias_float.
23038 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23039 (fmaxf): Define using libm_alias_float.
23040 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23041 (fminf): Define using libm_alias_float.
23042 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23043 (lrintf): Define using libm_alias_float.
23044 (llrintf): Likewise.
23045 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23046 (lroundf): Define using libm_alias_float.
23047 (llroundf): Likewise.
23048 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23049 (rintf): Define using libm_alias_float.
23050 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23051 (truncf): Define using libm_alias_float.
23052
23053 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23054 (ceilf): Define using libm_alias_float.
23055 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23056 (floorf): Define using libm_alias_float.
23057 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23058 (fmaf): Define using libm_alias_float.
23059 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23060 (fmaxf): Define using libm_alias_float.
23061 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23062 (fminf): Define using libm_alias_float.
23063 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23064 (llrintf): Define using libm_alias_float.
23065 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23066 (llroundf): Define using libm_alias_float.
23067 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23068 (lrintf): Define using libm_alias_float.
23069 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23070 (lroundf): Define using libm_alias_float.
23071 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23072 <libm-alias-float.h>.
23073 (nearbyintf): Define using libm_alias_float.
23074 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23075 (rintf): Define using libm_alias_float.
23076 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23077 (roundf): Define using libm_alias_float.
23078 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23079 (truncf): Define using libm_alias_float.
23080
23081 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23082 (ceil): Define using libm_alias_double.
23083 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23084 (copysign): Define using libm_alias_double.
23085 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23086 (fabs): Define using libm_alias_double.
23087 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23088 (floor): Define using libm_alias_double.
23089 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23090 (fmax): Define using libm_alias_double.
23091 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23092 (fmin): Define using libm_alias_double.
23093 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23094 (lrint): Define using libm_alias_double.
23095 (llrint): Likewise.
23096 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23097 (lround): Define using libm_alias_double.
23098 (llround): Likewise.
23099 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23100 (rint): Define using libm_alias_double.
23101 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23102 (trunc): Define using libm_alias_double.
23103
23104 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23105 (libm_alias_double_r): Add semicolon after weak_alias call.
23106
23107 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23108
23109 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23110 (ceil): Define using libm_alias_double.
23111 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23112 (floor): Define using libm_alias_double.
23113 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23114 (fma): Define using libm_alias_double.
23115 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23116 (fmax): Define using libm_alias_double.
23117 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23118 (fmin): Define using libm_alias_double.
23119 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23120 (llrint): Define using libm_alias_double.
23121 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23122 (llround): Define using libm_alias_double.
23123 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23124 (lrint): Define using libm_alias_double.
23125 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23126 (lround): Define using libm_alias_double.
23127 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23128 (nearbyint): Define using libm_alias_double.
23129 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23130 (rint): Define using libm_alias_double.
23131 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23132 (round): Define using libm_alias_double.
23133 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23134 (trunc): Define using libm_alias_double.
23135
23136 2017-11-27 Florian Weimer <fweimer@redhat.com>
23137
23138 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23139 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23140 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23141 (tests): Add tst-mlock2.
23142 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23143 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23144 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23145 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23146 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23147 for mlock. Document mlock2.
23148
23149 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23150
23151 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23152 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23153 Likewise.
23154 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23155 Likewise.
23156 * sysdeps/x86/Makeconfig: New file.
23157 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23158 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23159 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23160 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23161 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23162 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23163 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23164 Likewise.
23165 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23166 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23167 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23168 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23169 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23170 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23171 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23172 * manual/math.texi (Mathematics): Document support for _Float64x.
23173 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23174 * stdlib/Versions (GLIBC_2.27): Likewise.
23175 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23176 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23177 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23178 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23179 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23180 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23181 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23182 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23183 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23184 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23185 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23186 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23188 Likewise.
23189 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23190 Likewise.
23191 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23192 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23193 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23194 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23195 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23196 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23197 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23198 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23199 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23200 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23201 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23202 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23203 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23204 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23205
23206 2017-11-27 Andreas Schwab <schwab@suse.de>
23207
23208 * elf/Makefile (dl-routines): Add dl-sort-maps.
23209 * elf/dl-sort-maps.c: New file.
23210 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23211 (_dl_sort_maps): Declare.
23212 * elf/dl-fini.c (_dl_sort_fini): Remove.
23213 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23214 * elf/dl-close.c (_dl_close_worker): Likewise.
23215 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23216 open-coding it.
23217 * elf/dl-open.c (dl_open_worker): Likewise.
23218
23219 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23220
23221 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23222 using libm_alias_float128.
23223 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23224 Likewise.
23225 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23226 Likewise.
23227 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23228 (setpayloadsigf128): Likewise.
23229 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23230 Likewise.
23231 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23232 Likewise.
23233
23234 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23235 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23236 -mfloat128 to CFLAGS.
23237 ($(foreach
23238 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23239 Likewise.
23240 (CFLAGS-libm-test-support-float64x.c): New variable.
23241 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23242 $(f128-loader-link) to gnulib-tests.
23243
23244 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23245 (libm_alias_float128_other_r): If
23246 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23247 alias.
23248 (libm_alias_float128_r): Add semicolon after weak_alias call.
23249 * sysdeps/generic/libm-alias-ldouble.h
23250 (libm_alias_ldouble_other_r_f128): New macro.
23251 (libm_alias_ldouble_other_r_f64x): Likewise.
23252 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23253 and libm_alias_ldouble_other_r_f64x.
23254 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23255 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23256 (libm_alias_ldouble_other_r_f128): New macro.
23257 (libm_alias_ldouble_other_r_f64x): Likewise.
23258 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23259 and libm_alias_ldouble_other_r_f64x.
23260
23261 * stdlib/strfroml.c: Always include <stdlib.h>.
23262 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23263 undefine as macro and define as weak alias.
23264 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23265 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23266 <stdlib.h>.
23267 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23268 Define and later undefine as macro and define as weak alias.
23269
23270 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23271 Define and later undefine as macro. Define as weak alias if
23272 [!USE_WIDE_CHAR].
23273 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23274 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23275 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23276 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23277 Define and later undefine as macro. Define as weak alias if
23278 [!USE_WIDE_CHAR].
23279 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23280 Define and later undefine as macro. Define as weak alias if
23281 [USE_WIDE_CHAR].
23282 * sysdeps/ieee754/float128/strtof128_l.c
23283 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23284 Define and later undefine as macro. Define as weak alias if
23285 [!USE_WIDE_CHAR].
23286 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23287 Define and later undefine as macro. Define as weak alias if
23288 [USE_WIDE_CHAR].
23289 * sysdeps/ieee754/ldbl-128/strtold_l.c
23290 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23291 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23292 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23293 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23294 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23295 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23296 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23297 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23298 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23299 * sysdeps/ieee754/ldbl-96/strtold_l.c
23300 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23301 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23302 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23303 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23304
23305 * math/test-float64x.h: New file.
23306 * math/Makefile (type-float64x-yes): New variable.
23307 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23308
23309 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23310 function-like macro.
23311 (min_of_type_): Likewise.
23312 (min_of_type_l): Likewise.
23313 (min_of_type_f128): Likewise.
23314 (min_of_type): Pass () as last argument of __MATH_TG.
23315
23316 * stdlib/tst-strtod-round-skeleton.c
23317 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23318 headers.
23319
23320 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23321 for combinations of long double with _Float64 and _Float64x.
23322
23323 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23324 (__DECL_SIMD_cosf32): Likewise.
23325 (__DECL_SIMD_cosf64): Likewise.
23326 (__DECL_SIMD_cosf32x): Likewise.
23327 (__DECL_SIMD_cosf64x): Likewise.
23328 (__DECL_SIMD_cosf128x): Likewise.
23329 (__DECL_SIMD_sinf16): Likewise.
23330 (__DECL_SIMD_sinf32): Likewise.
23331 (__DECL_SIMD_sinf64): Likewise.
23332 (__DECL_SIMD_sinf32x): Likewise.
23333 (__DECL_SIMD_sinf64x): Likewise.
23334 (__DECL_SIMD_sinf128x): Likewise.
23335 (__DECL_SIMD_sincosf16): Likewise.
23336 (__DECL_SIMD_sincosf32): Likewise.
23337 (__DECL_SIMD_sincosf64): Likewise.
23338 (__DECL_SIMD_sincosf32x): Likewise.
23339 (__DECL_SIMD_sincosf64x): Likewise.
23340 (__DECL_SIMD_sincosf128x): Likewise.
23341 (__DECL_SIMD_logf16): Likewise.
23342 (__DECL_SIMD_logf32): Likewise.
23343 (__DECL_SIMD_logf64): Likewise.
23344 (__DECL_SIMD_logf32x): Likewise.
23345 (__DECL_SIMD_logf64x): Likewise.
23346 (__DECL_SIMD_logf128x): Likewise.
23347 (__DECL_SIMD_expf16): Likewise.
23348 (__DECL_SIMD_expf32): Likewise.
23349 (__DECL_SIMD_expf64): Likewise.
23350 (__DECL_SIMD_expf32x): Likewise.
23351 (__DECL_SIMD_expf64x): Likewise.
23352 (__DECL_SIMD_expf128x): Likewise.
23353 (__DECL_SIMD_powf16): Likewise.
23354 (__DECL_SIMD_powf32): Likewise.
23355 (__DECL_SIMD_powf64): Likewise.
23356 (__DECL_SIMD_powf32x): Likewise.
23357 (__DECL_SIMD_powf64x): Likewise.
23358 (__DECL_SIMD_powf128x): Likewise.
23359
23360 * stdlib/Versions (libc): Move entries for wcstof128 and
23361 wcstof128_l to ....
23362 * wcsmbs/Versions (libc): ... here.
23363 Include <float128-abi.h>.
23364
23365 2017-11-24 Florian Weimer <fweimer@redhat.com>
23366
23367 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23368 bits/mman-shared.h.
23369 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23370 <bits/mman-shared.h>.
23371 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23372 to ...
23373 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23374 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23375 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23376 <bits/mman-shared.h>.
23377
23378 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23379
23380 [BZ #22457]
23381 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23382 posix_memalign/free.
23383 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23384
23385 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23386
23387 [BZ #22469]
23388 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23389 and implement the collation rules for pl from CLDR on top of that.
23390 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23391 of locales to be built for testing.
23392 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23393
23394 2017-11-23 Joseph Myers <joseph@codesourcery.com>
23395
23396 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23397 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23398 libm_alias_ldouble_other.
23399 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23400 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23401 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23402 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23403 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23404 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23405 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23406 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23407 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23408 libm_alias_ldouble_r.
23409 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23410 libm_alias_ldouble_other.
23411 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23412 (log10l): Likewise.
23413 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
23414 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
23415 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
23416 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
23417 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
23418 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
23419 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
23420 (atan2l): Likewise.
23421 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
23422 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
23423 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
23424 libm_alias_ldouble.
23425 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
23426 (cosl): Likewise.
23427 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
23428 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
23429 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
23430 (expl): Likewise.
23431 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
23432 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
23433 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
23434 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
23435 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
23436 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
23437 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
23438 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
23439 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
23440 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
23441 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
23442 libm_alias_ldouble.
23443 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
23444 libm_alias_ldouble_other.
23445 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
23446 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
23447 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
23448 libm_alias_ldouble.
23449 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
23450 libm_alias_ldouble_other.
23451 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
23452 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
23453 * sysdeps/ia64/fpu/w_lgammal_main.c
23454 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
23455 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
23456
23457 2017-11-23 Florian Weimer <fweimer@redhat.com>
23458
23459 * malloc/malloc.c (tcache_thread_shutdown): Rename from
23460 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
23461 alike. Remove freeres marker.
23462 * malloc/arena.c (arena_thread_freeres): Call
23463 tcache_thread_shutdown.
23464
23465 2017-11-23 Florian Weimer <fweimer@redhat.com>
23466
23467 [BZ #22459]
23468 Export nscd hash function as __nss_hash.
23469 * include/nss.h (__nss_hash): Declare.
23470 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
23471 symbol.
23472 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
23473 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
23474 of __nscd_hash.
23475 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
23476 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
23477 * nss/Makefiles (routines): Add nss_hash.
23478 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
23479 * nss/nss_hash.c: Rename from nis/nis_hash.c.
23480 (__nss_hash): Rename from __nis_hash. Define hidden alias.
23481 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
23482
23483 2017-11-23 Florian Weimer <fweimer@redhat.com>
23484
23485 [BZ #22478]
23486 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
23487 Return error code, not -1.
23488 * signal/tst-sigwait-eintr.c: New file.
23489 * signal/Makefile (tests): Add tst-sigwait-eintr.
23490
23491 2017-11-23 Florian Weimer <fweimer@redhat.com>
23492
23493 Linux: Add memfd_create system call wrapper
23494 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
23495 tst-memfd_create.
23496 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
23497 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
23498 [__USE_GNU] (memfd_create): Declare.
23499 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
23500 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
23501 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
23502 * sysdeps/unix/sysv/linux/**.abilist: Update.
23503 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
23504
23505 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23506
23507 * localedata/gen-locale.sh: Fix typo in variable name.
23508
23509 * resolv/res_debug.c (p_secstodate): Condition definition on
23510 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
23511 directly as __p_secstodate, and as a compat symbol. Do not use
23512 libresolv_hidden_def.
23513 * resolv/resolv.h (p_secstodate): Remove macro and function
23514 declaration.
23515 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
23516 using p_secstodate.
23517 * include/resolv.h (__p_secstodate): Do not use
23518 libresolv_hidden_proto.
23519 * resolv/Makefile (tests): Move tst-p_secstodate to ....
23520 (tests-internal): ... here.
23521 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
23522 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
23523 and declare and use __p_secstodate and use compat_symbol_reference
23524 in that case.
23525 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
23526 implementation returning 77.
23527
23528 [BZ #22463]
23529 * resolv/res_debug.c: Include <libc-diag.h>.
23530 (p_secstodate): Assert time_t at least as wide as u_long. On
23531 overflow, use integer seconds since the epoch as output, or use
23532 "<overflow>" as output and set errno to EOVERFLOW if integer
23533 seconds since the epoch would be 14 or more characters.
23534 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
23535 for sprintf call.
23536 * resolv/tst-p_secstodate.c: New file.
23537 * resolv/Makefile (tests): Add tst-p_secstodate.
23538 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
23539
23540 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
23541 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
23542 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
23543
23544 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
23545
23546 * posix/regcomp.c (init_word_char): Add comments.
23547
23548 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23549
23550 [BZ #22447]
23551 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
23552 strlen to compute length of ut_user and set trailing NUL byte of
23553 result explicitly.
23554
23555 2017-11-21 Mike FABIAN <mfabian@redhat.com>
23556
23557 [BZ #15537]
23558 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
23559 using “copy "iso14651_t1"” and then implementing the
23560 collation rules for lv from CLDR on top of that.
23561 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
23562 of locales to be built for testing.
23563 * lv_LV.UTF-8.in: New file with test data to test the Latvian
23564 sorting.
23565
23566 2017-11-21 Joseph Myers <joseph@codesourcery.com>
23567
23568 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23569 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
23570 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
23571 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
23572 [__USE_MISC] (MADV_HWPOISON): New macro.
23573 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
23574
23575 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23576
23577 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
23578 -Wmissing-braces on GCC 4.9.
23579
23580 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23581
23582 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
23583 * sysdeps/s390/s390-32/start.S (_start): Likewise
23584 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
23585 (thread_start): Likewise.
23586 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
23587 (thread_start): Likewise.
23588 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
23589 (__makecontext_ret): Likewise.
23590 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
23591 (__makecontext_ret): Likewise.
23592
23593 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23594
23595 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
23596 __wcschrnul): Remove attribute_hidden.
23597
23598 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
23599
23600 regex: don't assume uint64_t or uint32_t
23601 This avoids -Werror=overflow errors for 32-bit systems in
23602 the 64-bit case. Problem reported by Joseph Myers in:
23603 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
23604 Also, when this code is used in Gnulib it ports to platforms
23605 that lack uint64_t and uint32_t. The C standard doesn't guarantee
23606 them, and on some 32-bit compilers there is no uint64_t.
23607 Problem reported by Gianluigi Tiesi in:
23608 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
23609 * posix/regcomp.c (init_word_char): Don't assume that the types
23610 uint64_t and uint32_t exist. Adapted from Gnulib patch
23611 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
23612 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
23613
23614 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
23615
23616 * sysdeps/aarch64/memset-reg.h: New file.
23617 * sysdeps/aarch64/memset.S: Use it.
23618 (__memset): Rename to MEMSET macro.
23619 [ZVA_MACRO]: Use zva_macro.
23620 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
23621 Add memset_generic and memset_falkor.
23622 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
23623 (__libc_ifunc_impl_list): Add memset ifuncs.
23624 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
23625 local variable zva_size.
23626 * sysdeps/aarch64/multiarch/memset.c: New file.
23627 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
23628 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
23629 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
23630 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
23631 (DCZID_DZP_MASK): New macro.
23632 (DCZID_BS_MASK): Likewise.
23633 (init_cpu_features): Read and set zva_size.
23634 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
23635 (struct cpu_features): New member zva_size.
23636
23637 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
23638 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
23639 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
23640
23641 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
23642 backwards. Fix timing computation.
23643 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
23644 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
23645 on memset by N at a time. Fix timing computation.
23646
23647 2017-11-20 Florian Weimer <fweimer@redhat.com>
23648
23649 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
23650 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
23651
23652 2017-11-19 Florian Weimer <fweimer@redhat.com>
23653
23654 manual: Document mprotect
23655 * manual/memory.texi (Memory Protection): New section.
23656 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
23657 documentation of PROT_* flags and reference the Memory Protection
23658 section instead.
23659
23660 2017-11-19 Florian Weimer <fweimer@redhat.com>
23661
23662 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
23663 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
23664 (Scatter-Gather): ... to here. Remove misleading comment.
23665
23666 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
23667
23668 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
23669 style.
23670
23671 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
23672 when /proc/<pid>/setgroups does not exist.
23673
23674 2017-11-18 Florian Weimer <fweimer@redhat.com>
23675
23676 * sysdeps/unix/sysv/linux/tst-ttyname.c
23677 (become_root_in_mount_ns): Remove.
23678 (do_in_chroot_1): Call support_enter_mount_namespace.
23679 (do_in_chroot_2): Likewise.
23680 (do_test): Call support_become_root early.
23681
23682 2017-11-18 Florian Weimer <fweimer@redhat.com>
23683
23684 * support/namespace.h (support_enter_mount_namespace): Declare.
23685 * support/support_enter_mount_namespace.c: New file.
23686 * support/Makefile (libsupport-routines): Add
23687 support_enter_mount_namespace.
23688
23689 2017-11-18 Florian Weimer <fweimer@redhat.com>
23690
23691 * support/temp_file.c (support_create_temp_directory): Use
23692 test_dir and do not rely on the presence of the XXXXXX suffix.
23693 * support/temp_file.h (support_create_temp_directory): Update
23694 comment.
23695 * support/tst-xreadlink.c (do_test): Adjust.
23696 * support/support_chroot.c (support_chroot_create): Likewise.
23697
23698 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23699
23700 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
23701 macro.
23702 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
23703 htm-no-suspend.
23704
23705 2017-11-17 Joseph Myers <joseph@codesourcery.com>
23706
23707 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23708 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23709 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23710 (ceill): Define using libm_alias_ldouble.
23711 * sysdeps/x86_64/fpu/s_copysignl.S: Include
23712 <libm-alias-ldouble.h>.
23713 (copysignl): Define using libm_alias_ldouble.
23714 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
23715 (fabsl): Define using libm_alias_ldouble.
23716 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
23717 (floorl): Define using libm_alias_ldouble.
23718 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23719 (fmaxl): Define using libm_alias_ldouble.
23720 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23721 (fminl): Define using libm_alias_ldouble.
23722 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
23723 (llrintl): Define using libm_alias_ldouble.
23724 (lrintl): Likewise.
23725 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
23726 <libm-alias-ldouble.h>.
23727 (nearbyintl): Define using libm_alias_ldouble.
23728 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
23729 (truncl): Define using libm_alias_ldouble.
23730 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
23731 <libm-alias-ldouble.h>.
23732 (lrintl): Define using libm_alias_ldouble.
23733
23734 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23735 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23736 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
23737 (asinhl): Define using libm_alias_ldouble.
23738 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
23739 (atanl): Define using libm_alias_ldouble.
23740 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
23741 (cbrtl): Define using libm_alias_ldouble.
23742 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23743 (ceill): Define using libm_alias_ldouble.
23744 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
23745 (copysignl): Define using libm_alias_ldouble.
23746 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
23747 (fabsl): Define using libm_alias_ldouble.
23748 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
23749 (floorl): Define using libm_alias_ldouble.
23750 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23751 (fmaxl): Define using libm_alias_ldouble.
23752 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23753 (fminl): Define using libm_alias_ldouble.
23754 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
23755 (frexpl): Define using libm_alias_ldouble.
23756 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
23757 (llrintl): Define using libm_alias_ldouble.
23758 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
23759 (logbl): Define using libm_alias_ldouble.
23760 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
23761 (lrintl): Define using libm_alias_ldouble.
23762 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
23763 (nearbyintl): Define using libm_alias_ldouble.
23764 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
23765 (nextafterl): Define using libm_alias_ldouble.
23766 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
23767 (remquol): Define using libm_alias_ldouble.
23768 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
23769 (rintl): Define using libm_alias_ldouble.
23770 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
23771 (truncl): Define using libm_alias_ldouble.
23772 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23773 (fmaxl): Define using libm_alias_ldouble.
23774 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23775 (fminl): Define using libm_alias_ldouble.
23776
23777 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
23778 to C syntax instead of availability and properties of types.
23779 * bits/floatn.h [!__ASSEMBLER]: Likewise.
23780 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
23781 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
23782 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
23783 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
23784 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
23785
23786 2017-11-17 Florian Weimer <fweimer@redhat.com>
23787
23788 support_become_root: Enable file creation in namespaces.
23789 * support/support_become_root.c (setup_mapping): New function.
23790 (support_become_root): Call it.
23791
23792 2017-11-17 Joseph Myers <joseph@codesourcery.com>
23793
23794 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
23795 macro.
23796
23797 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23798
23799 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
23800 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
23801
23802 2017-11-16 Joseph Myers <joseph@codesourcery.com>
23803
23804 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
23805
23806 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
23807 version to 4.14.
23808
23809 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
23810
23811 * INSTALL: Fix botched up regeneration.
23812
23813 * NEWS: Update sourceare link to https.
23814 * configure.ac: Likewise.
23815 * crypt/md5test-giant.c: Likewise.
23816 * dlfcn/bug-atexit1.c: Likewise.
23817 * dlfcn/bug-atexit2.c: Likewise.
23818 * localedata/README: Likewise.
23819 * malloc/tst-mallocfork.c: Likewise.
23820 * manual/install.texi: Likewise.
23821 * nptl/tst-pthread-getattr.c: Likewise.
23822 * stdio-common/tst-fgets.c: Likewise.
23823 * stdio-common/tst-fwrite.c: Likewise.
23824 * sunrpc/Makefile: Likewise.
23825 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
23826 * wcsmbs/tst-mbrtowc2.c: Likewise.
23827 * configure: Regenerate.
23828 * INSTALL: Regenerate.
23829
23830 2017-11-15 Martin Sebor <msebor@redhat.com>
23831
23832 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
23833 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
23834 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
23835
23836 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
23837
23838 [BZ #22145]
23839 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
23840 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
23841
23842 [BZ #22145]
23843 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
23844 Defer is_pty check until end of the function.
23845 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
23846
23847 [BZ #22145]
23848 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
23849 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
23850 (ttyname): Likewise.
23851 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
23852 (__ttyname_r): Likewise.
23853
23854 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
23855 int to bool.
23856
23857 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
23858
23859 * manual/terminal.texi (Is It a Terminal):
23860 Mention ENODEV for ttyname and ttyname_r.
23861
23862 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23863
23864 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
23865 constant and macro.
23866
23867 * sysdeps/unix/sysv/linux/bits/mman-linux.h
23868 [__USE_MISC] (MADV_WIPEONFORK): New macro.
23869 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
23870 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23871 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
23872 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
23873
23874 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23875
23876 * signal/sigrelse.c (sigrelse): Optimize implementation.
23877
23878 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
23879 (__sigpause): Rely on __sigsuspend to implement single thread
23880 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
23881
23882 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23883
23884 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
23885 kernel version to 4.14.
23886
23887 2017-11-15 Steve Ellcey <sellcey@cavium.com>
23888
23889 [BZ #22442]
23890 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
23891 Check if ifname is too long.
23892
23893 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
23894
23895 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
23896
23897 2017-11-15 Mike FABIAN <mfabian@redhat.com>
23898
23899 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
23900 was accidentally lost.
23901
23902 2017-11-15 Mike FABIAN <mfabian@redhat.com>
23903
23904 * localedata/locales/az_IR: Add standard copyright header.
23905
23906 2017-11-15 Florian Weimer <fweimer@redhat.com>
23907
23908 [BZ #22439]
23909 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
23910 not just the top one. Output a new "subheaps" statistic.
23911
23912 2017-11-15 Florian Weimer <fweimer@redhat.com>
23913
23914 [BZ #22408]
23915 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
23916 under the per-arena lock.
23917 * malloc/Makefile (tests): Add tst-malloc_info.
23918 (tst-malloc_info): Link with libpthread.
23919 * malloc/tst-malloc_info.c: New file.
23920
23921 2017-11-15 Joseph Myers <joseph@codesourcery.com>
23922
23923 [BZ #21660]
23924 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
23925 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
23926 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
23927 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
23928 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
23929 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
23930 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
23931 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
23932 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
23933 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
23934 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
23935 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
23936 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
23937 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
23938 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
23939 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
23940 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
23941 (__floating_type): Likewise.
23942 (__real_integer_type): Likewise.
23943 (__complex_integer_type): Likewise.
23944 (__expr_is_real): Likewise.
23945 (__tgmath_real_type_sub): Likewise.
23946 (__tgmath_real_type): Likewise.
23947 (__tgmath_complex_type_sub): Likewise.
23948 (__tgmath_complex_type): Likewise.
23949 (__TGMATH_F128): Likewise.
23950 (__TGMATH_CF128): Likewise.
23951 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
23952 new macros.
23953 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
23954 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
23955 Likewise.
23956 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
23957 Likewise.
23958 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
23959 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
23960 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
23961 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
23962 Likewise.
23963 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
23964 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
23965 Likewise.
23966 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
23967 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
23968 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
23969 Likewise.
23970 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
23971 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
23972 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
23973 (cimag): Likewise.
23974 (creal): Likewise.
23975
23976 2017-11-14 Joseph Myers <joseph@codesourcery.com>
23977
23978 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
23979 for stpncpy calls for GCC 8.
23980 (test_strncat): Disable -Wstringop-truncation warning for strncat
23981 calls for GCC 8. Disable -Wstringop-overflow= warning for one
23982 strncat call for GCC 7.
23983 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
23984 calls for GCC 8.
23985 (test_memcmp): Use memcpy instead of strncpy for calls not copying
23986 trailing NUL.
23987
23988 * string/bug-strncat1.c: Include <libc-diag.h>.
23989 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
23990
23991 2017-11-13 Claude Paroz <claude@2xlibre.net>
23992
23993 [BZ #22387]
23994 * localedata/locales/aa_DJ: Improved readibility by replacing
23995 <Uxxxx> sequences in the ASCII printable range by their ASCII
23996 character equivalents.
23997 * localedata/locales/aa_ER: Likewise.
23998 * localedata/locales/aa_ER@saaho: Likewise.
23999 * localedata/locales/aa_ET: Likewise.
24000 * localedata/locales/af_ZA: Likewise.
24001 * localedata/locales/agr_PE: Likewise.
24002 * localedata/locales/ak_GH: Likewise.
24003 * localedata/locales/am_ET: Likewise.
24004 * localedata/locales/anp_IN: Likewise.
24005 * localedata/locales/ar_AE: Likewise.
24006 * localedata/locales/ar_BH: Likewise.
24007 * localedata/locales/ar_DZ: Likewise.
24008 * localedata/locales/ar_EG: Likewise.
24009 * localedata/locales/ar_IN: Likewise.
24010 * localedata/locales/ar_IQ: Likewise.
24011 * localedata/locales/ar_JO: Likewise.
24012 * localedata/locales/ar_KW: Likewise.
24013 * localedata/locales/ar_LB: Likewise.
24014 * localedata/locales/ar_LY: Likewise.
24015 * localedata/locales/ar_MA: Likewise.
24016 * localedata/locales/ar_OM: Likewise.
24017 * localedata/locales/ar_QA: Likewise.
24018 * localedata/locales/ar_SA: Likewise.
24019 * localedata/locales/ar_SD: Likewise.
24020 * localedata/locales/ar_SS: Likewise.
24021 * localedata/locales/ar_SY: Likewise.
24022 * localedata/locales/ar_TN: Likewise.
24023 * localedata/locales/ar_YE: Likewise.
24024 * localedata/locales/as_IN: Likewise.
24025 * localedata/locales/ast_ES: Likewise.
24026 * localedata/locales/ayc_PE: Likewise.
24027 * localedata/locales/az_AZ: Likewise.
24028 * localedata/locales/az_IR: Likewise.
24029 * localedata/locales/be_BY: Likewise.
24030 * localedata/locales/be_BY@latin: Likewise.
24031 * localedata/locales/bem_ZM: Likewise.
24032 * localedata/locales/ber_DZ: Likewise.
24033 * localedata/locales/ber_MA: Likewise.
24034 * localedata/locales/bg_BG: Likewise.
24035 * localedata/locales/bhb_IN: Likewise.
24036 * localedata/locales/bho_IN: Likewise.
24037 * localedata/locales/bi_VU: Likewise.
24038 * localedata/locales/bn_BD: Likewise.
24039 * localedata/locales/bn_IN: Likewise.
24040 * localedata/locales/bo_CN: Likewise.
24041 * localedata/locales/bo_IN: Likewise.
24042 * localedata/locales/br_FR: Likewise.
24043 * localedata/locales/brx_IN: Likewise.
24044 * localedata/locales/bs_BA: Likewise.
24045 * localedata/locales/byn_ER: Likewise.
24046 * localedata/locales/ca_AD: Likewise.
24047 * localedata/locales/ca_ES: Likewise.
24048 * localedata/locales/ca_FR: Likewise.
24049 * localedata/locales/ca_IT: Likewise.
24050 * localedata/locales/ce_RU: Likewise.
24051 * localedata/locales/chr_US: Likewise.
24052 * localedata/locales/cmn_TW: Likewise.
24053 * localedata/locales/crh_UA: Likewise.
24054 * localedata/locales/cs_CZ: Likewise.
24055 * localedata/locales/csb_PL: Likewise.
24056 * localedata/locales/cv_RU: Likewise.
24057 * localedata/locales/cy_GB: Likewise.
24058 * localedata/locales/da_DK: Likewise.
24059 * localedata/locales/de_AT: Likewise.
24060 * localedata/locales/de_BE: Likewise.
24061 * localedata/locales/de_CH: Likewise.
24062 * localedata/locales/de_DE: Likewise.
24063 * localedata/locales/de_IT: Likewise.
24064 * localedata/locales/de_LI: Likewise.
24065 * localedata/locales/de_LU: Likewise.
24066 * localedata/locales/doi_IN: Likewise.
24067 * localedata/locales/dv_MV: Likewise.
24068 * localedata/locales/dz_BT: Likewise.
24069 * localedata/locales/el_CY: Likewise.
24070 * localedata/locales/el_GR: Likewise.
24071 * localedata/locales/en_AG: Likewise.
24072 * localedata/locales/en_AU: Likewise.
24073 * localedata/locales/en_BW: Likewise.
24074 * localedata/locales/en_CA: Likewise.
24075 * localedata/locales/en_DK: Likewise.
24076 * localedata/locales/en_GB: Likewise.
24077 * localedata/locales/en_HK: Likewise.
24078 * localedata/locales/en_IE: Likewise.
24079 * localedata/locales/en_IL: Likewise.
24080 * localedata/locales/en_IN: Likewise.
24081 * localedata/locales/en_NG: Likewise.
24082 * localedata/locales/en_NZ: Likewise.
24083 * localedata/locales/en_PH: Likewise.
24084 * localedata/locales/en_SG: Likewise.
24085 * localedata/locales/en_US: Likewise.
24086 * localedata/locales/en_ZA: Likewise.
24087 * localedata/locales/en_ZM: Likewise.
24088 * localedata/locales/en_ZW: Likewise.
24089 * localedata/locales/eo: Likewise.
24090 * localedata/locales/es_AR: Likewise.
24091 * localedata/locales/es_BO: Likewise.
24092 * localedata/locales/es_CL: Likewise.
24093 * localedata/locales/es_CO: Likewise.
24094 * localedata/locales/es_CR: Likewise.
24095 * localedata/locales/es_CU: Likewise.
24096 * localedata/locales/es_DO: Likewise.
24097 * localedata/locales/es_EC: Likewise.
24098 * localedata/locales/es_ES: Likewise.
24099 * localedata/locales/es_GT: Likewise.
24100 * localedata/locales/es_HN: Likewise.
24101 * localedata/locales/es_MX: Likewise.
24102 * localedata/locales/es_NI: Likewise.
24103 * localedata/locales/es_PA: Likewise.
24104 * localedata/locales/es_PE: Likewise.
24105 * localedata/locales/es_PR: Likewise.
24106 * localedata/locales/es_PY: Likewise.
24107 * localedata/locales/es_SV: Likewise.
24108 * localedata/locales/es_US: Likewise.
24109 * localedata/locales/es_UY: Likewise.
24110 * localedata/locales/es_VE: Likewise.
24111 * localedata/locales/et_EE: Likewise.
24112 * localedata/locales/eu_ES: Likewise.
24113 * localedata/locales/eu_ES@euro: Likewise.
24114 * localedata/locales/fa_IR: Likewise.
24115 * localedata/locales/ff_SN: Likewise.
24116 * localedata/locales/fi_FI: Likewise.
24117 * localedata/locales/fil_PH: Likewise.
24118 * localedata/locales/fo_FO: Likewise.
24119 * localedata/locales/fr_BE: Likewise.
24120 * localedata/locales/fr_CA: Likewise.
24121 * localedata/locales/fr_CH: Likewise.
24122 * localedata/locales/fr_FR: Likewise.
24123 * localedata/locales/fr_LU: Likewise.
24124 * localedata/locales/fur_IT: Likewise.
24125 * localedata/locales/fy_DE: Likewise.
24126 * localedata/locales/fy_NL: Likewise.
24127 * localedata/locales/ga_IE: Likewise.
24128 * localedata/locales/gd_GB: Likewise.
24129 * localedata/locales/gez_ER: Likewise.
24130 * localedata/locales/gez_ET: Likewise.
24131 * localedata/locales/gl_ES: Likewise.
24132 * localedata/locales/gu_IN: Likewise.
24133 * localedata/locales/gv_GB: Likewise.
24134 * localedata/locales/ha_NG: Likewise.
24135 * localedata/locales/hak_TW: Likewise.
24136 * localedata/locales/he_IL: Likewise.
24137 * localedata/locales/hi_IN: Likewise.
24138 * localedata/locales/hif_FJ: Likewise.
24139 * localedata/locales/hne_IN: Likewise.
24140 * localedata/locales/hr_HR: Likewise.
24141 * localedata/locales/hsb_DE: Likewise.
24142 * localedata/locales/ht_HT: Likewise.
24143 * localedata/locales/hu_HU: Likewise.
24144 * localedata/locales/hy_AM: Likewise.
24145 * localedata/locales/i18n: Likewise.
24146 * localedata/locales/ia_FR: Likewise.
24147 * localedata/locales/id_ID: Likewise.
24148 * localedata/locales/ig_NG: Likewise.
24149 * localedata/locales/ik_CA: Likewise.
24150 * localedata/locales/is_IS: Likewise.
24151 * localedata/locales/it_CH: Likewise.
24152 * localedata/locales/it_IT: Likewise.
24153 * localedata/locales/iu_CA: Likewise.
24154 * localedata/locales/ja_JP: Likewise.
24155 * localedata/locales/ka_GE: Likewise.
24156 * localedata/locales/kk_KZ: Likewise.
24157 * localedata/locales/kl_GL: Likewise.
24158 * localedata/locales/kn_IN: Likewise.
24159 * localedata/locales/ko_KR: Likewise.
24160 * localedata/locales/kok_IN: Likewise.
24161 * localedata/locales/ks_IN: Likewise.
24162 * localedata/locales/ks_IN@devanagari: Likewise.
24163 * localedata/locales/ku_TR: Likewise.
24164 * localedata/locales/kw_GB: Likewise.
24165 * localedata/locales/ky_KG: Likewise.
24166 * localedata/locales/lb_LU: Likewise.
24167 * localedata/locales/lg_UG: Likewise.
24168 * localedata/locales/li_BE: Likewise.
24169 * localedata/locales/li_NL: Likewise.
24170 * localedata/locales/lij_IT: Likewise.
24171 * localedata/locales/ln_CD: Likewise.
24172 * localedata/locales/lo_LA: Likewise.
24173 * localedata/locales/lt_LT: Likewise.
24174 * localedata/locales/lv_LV: Likewise.
24175 * localedata/locales/lzh_TW: Likewise.
24176 * localedata/locales/mag_IN: Likewise.
24177 * localedata/locales/mai_IN: Likewise.
24178 * localedata/locales/mg_MG: Likewise.
24179 * localedata/locales/mhr_RU: Likewise.
24180 * localedata/locales/mi_NZ: Likewise.
24181 * localedata/locales/mk_MK: Likewise.
24182 * localedata/locales/ml_IN: Likewise.
24183 * localedata/locales/mn_MN: Likewise.
24184 * localedata/locales/mni_IN: Likewise.
24185 * localedata/locales/mr_IN: Likewise.
24186 * localedata/locales/ms_MY: Likewise.
24187 * localedata/locales/mt_MT: Likewise.
24188 * localedata/locales/my_MM: Likewise.
24189 * localedata/locales/nan_TW: Likewise.
24190 * localedata/locales/nan_TW@latin: Likewise.
24191 * localedata/locales/nb_NO: Likewise.
24192 * localedata/locales/nds_DE: Likewise.
24193 * localedata/locales/nds_NL: Likewise.
24194 * localedata/locales/ne_NP: Likewise.
24195 * localedata/locales/nhn_MX: Likewise.
24196 * localedata/locales/niu_NU: Likewise.
24197 * localedata/locales/niu_NZ: Likewise.
24198 * localedata/locales/nl_AW: Likewise.
24199 * localedata/locales/nl_BE: Likewise.
24200 * localedata/locales/nl_NL: Likewise.
24201 * localedata/locales/nn_NO: Likewise.
24202 * localedata/locales/nr_ZA: Likewise.
24203 * localedata/locales/nso_ZA: Likewise.
24204 * localedata/locales/oc_FR: Likewise.
24205 * localedata/locales/om_ET: Likewise.
24206 * localedata/locales/om_KE: Likewise.
24207 * localedata/locales/or_IN: Likewise.
24208 * localedata/locales/os_RU: Likewise.
24209 * localedata/locales/pa_IN: Likewise.
24210 * localedata/locales/pa_PK: Likewise.
24211 * localedata/locales/pap_AW: Likewise.
24212 * localedata/locales/pap_CW: Likewise.
24213 * localedata/locales/pl_PL: Likewise.
24214 * localedata/locales/ps_AF: Likewise.
24215 * localedata/locales/pt_BR: Likewise.
24216 * localedata/locales/pt_PT: Likewise.
24217 * localedata/locales/quz_PE: Likewise.
24218 * localedata/locales/raj_IN: Likewise.
24219 * localedata/locales/ro_RO: Likewise.
24220 * localedata/locales/ru_RU: Likewise.
24221 * localedata/locales/ru_UA: Likewise.
24222 * localedata/locales/rw_RW: Likewise.
24223 * localedata/locales/sa_IN: Likewise.
24224 * localedata/locales/sat_IN: Likewise.
24225 * localedata/locales/sc_IT: Likewise.
24226 * localedata/locales/sd_IN: Likewise.
24227 * localedata/locales/sd_IN@devanagari: Likewise.
24228 * localedata/locales/se_NO: Likewise.
24229 * localedata/locales/sgs_LT: Likewise.
24230 * localedata/locales/shs_CA: Likewise.
24231 * localedata/locales/si_LK: Likewise.
24232 * localedata/locales/sid_ET: Likewise.
24233 * localedata/locales/sk_SK: Likewise.
24234 * localedata/locales/sl_SI: Likewise.
24235 * localedata/locales/sm_WS: Likewise.
24236 * localedata/locales/so_DJ: Likewise.
24237 * localedata/locales/so_ET: Likewise.
24238 * localedata/locales/so_KE: Likewise.
24239 * localedata/locales/so_SO: Likewise.
24240 * localedata/locales/sq_AL: Likewise.
24241 * localedata/locales/sq_MK: Likewise.
24242 * localedata/locales/sr_ME: Likewise.
24243 * localedata/locales/sr_RS: Likewise.
24244 * localedata/locales/sr_RS@latin: Likewise.
24245 * localedata/locales/ss_ZA: Likewise.
24246 * localedata/locales/st_ZA: Likewise.
24247 * localedata/locales/sv_FI: Likewise.
24248 * localedata/locales/sv_SE: Likewise.
24249 * localedata/locales/sw_KE: Likewise.
24250 * localedata/locales/sw_TZ: Likewise.
24251 * localedata/locales/szl_PL: Likewise.
24252 * localedata/locales/ta_IN: Likewise.
24253 * localedata/locales/ta_LK: Likewise.
24254 * localedata/locales/tcy_IN: Likewise.
24255 * localedata/locales/te_IN: Likewise.
24256 * localedata/locales/tg_TJ: Likewise.
24257 * localedata/locales/th_TH: Likewise.
24258 * localedata/locales/the_NP: Likewise.
24259 * localedata/locales/ti_ER: Likewise.
24260 * localedata/locales/ti_ET: Likewise.
24261 * localedata/locales/tig_ER: Likewise.
24262 * localedata/locales/tk_TM: Likewise.
24263 * localedata/locales/tl_PH: Likewise.
24264 * localedata/locales/tn_ZA: Likewise.
24265 * localedata/locales/to_TO: Likewise.
24266 * localedata/locales/tpi_PG: Likewise.
24267 * localedata/locales/tr_CY: Likewise.
24268 * localedata/locales/tr_TR: Likewise.
24269 * localedata/locales/ts_ZA: Likewise.
24270 * localedata/locales/tt_RU: Likewise.
24271 * localedata/locales/tt_RU@iqtelif: Likewise.
24272 * localedata/locales/ug_CN: Likewise.
24273 * localedata/locales/uk_UA: Likewise.
24274 * localedata/locales/unm_US: Likewise.
24275 * localedata/locales/ur_IN: Likewise.
24276 * localedata/locales/ur_PK: Likewise.
24277 * localedata/locales/uz_UZ: Likewise.
24278 * localedata/locales/uz_UZ@cyrillic: Likewise.
24279 * localedata/locales/ve_ZA: Likewise.
24280 * localedata/locales/vi_VN: Likewise.
24281 * localedata/locales/wa_BE: Likewise.
24282 * localedata/locales/wae_CH: Likewise.
24283 * localedata/locales/wal_ET: Likewise.
24284 * localedata/locales/wo_SN: Likewise.
24285 * localedata/locales/xh_ZA: Likewise.
24286 * localedata/locales/yi_US: Likewise.
24287 * localedata/locales/yo_NG: Likewise.
24288 * localedata/locales/yue_HK: Likewise.
24289 * localedata/locales/yuw_PG: Likewise.
24290 * localedata/locales/zh_CN: Likewise.
24291 * localedata/locales/zh_HK: Likewise.
24292 * localedata/locales/zh_SG: Likewise.
24293 * localedata/locales/zh_TW: Likewise.
24294 * localedata/locales/zu_ZA: Likewise.
24295
24296 2017-11-13 Florian Weimer <fweimer@redhat.com>
24297
24298 * support/next_to_fault.h, support/next_to_fault.c: New files.
24299 * support/Makefile (libsupport-routines): Add next_to_fault.
24300 * resolv/tst-inet_pton.c (struct next_to_fault)
24301 (next_to_fault_allocate, next_to_fault_free): Remove.
24302 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24303
24304 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24305
24306 * elf/dl-support.c: Include <dl-procruntime.c>.
24307 * include/link.h: Include <link_map.h>.
24308 * sysdeps/generic/dl-procruntime.c: New file.
24309 * sysdeps/generic/link_map.h: Likewise.
24310 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24311 the writable ld.so namespace.
24312
24313 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24314
24315 timezone: pacify GCC -Wstringop-truncation
24316 Problem reported by Martin Sebor in:
24317 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24318 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24319
24320 2017-11-12 Florian Weimer <fweimer@redhat.com>
24321
24322 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24323 tst-xreadlink.
24324 (tests): Add tst-xreadlink.
24325 * support/support.h (xstrndup): Declare.
24326 * support/xunistd.h (xunlink, xreadlink): Declare.
24327 * support/temp_file.h (support_create_temp_directory): Declare.
24328 * support/temp_file.c (support_create_temp_directory): New function.
24329 * support/support_chroot.c (support_chroot_create): Use it.
24330 * support/xreadlink.c: New file.
24331 * support/xstrndup.c: Likewise.
24332 * support/xunlink.c: Likewise.
24333 * support/tst-xreadlink.c: Likewise.
24334
24335 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24336
24337 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24338
24339 2017-11-11 Florian Weimer <fweimer@redhat.com>
24340
24341 [BZ #22409]
24342 [BZ #22412]
24343 * resolv/res_comp.c (printable_string, binary_hnok)
24344 (binary_leading_dash): New functions.
24345 (res_hnok): Reimplement using these functions and ns_name_pton.
24346 (res_ownok): Likewise.
24347 (res_mailok): Reimplement using printable_string, ns_name_pton and
24348 binary_hnok.
24349 (res_dnok): Reimplement using printable_string and ns_name_pton.
24350 * resolv/tst-res_hnok.c (tests): Add additional tests.
24351 (LETTERDIGITS, PRINTABLE): Define.
24352 (do_test): Adjust one_char results.
24353
24354 2017-11-11 Florian Weimer <fweimer@redhat.com>
24355
24356 [BZ #22413]
24357 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24358 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24359
24360 2017-11-11 Florian Weimer <fweimer@redhat.com>
24361
24362 * resolv/tst-ns_name_pton.c: New file.
24363 * resolv/Makefile (tests): Add tst-ns_name_pton.
24364 (tst-ns_name_pton): Link against libresolv.
24365
24366 2017-11-11 Florian Weimer <fweimer@redhat.com>
24367
24368 * resolv/tst-res_hnok.c: New file.
24369 * resolv/Makefile (tests): Add tst-res_hnok.
24370 (tst-res_hnok): Link against libresolv.
24371
24372 2017-11-11 Florian Weimer <fweimer@redhat.com>
24373
24374 * resolv/tst-resolv-network.c: Use test framework instead explicit
24375 main function.
24376
24377 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24378
24379 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24380 <jmp_buf-macros.h>.
24381 [!_ISOMAC] (STR_HELPER): New.
24382 [!_ISOMAC] (STR): Likewise.
24383 [!_ISOMAC] (TEST_SIZE): Likewise.
24384 [!_ISOMAC] (TEST_ALIGN): Likewise.
24385 [!_ISOMAC] (TEST_OFFSET): Likewise.
24386 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24387 field offsets of jmp_buf as well as sigjmp_buf.
24388 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24389 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24390 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24391 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24392 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24393 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24394 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24395 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24396 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24397 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24398 Likewise.
24399 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24400 Likewise.
24401 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24402 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24403 Likewise.
24404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24405 Likewise.
24406 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24407 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24408 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24409 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24410 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24411 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24412 Likewise.
24413 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
24414 Likewise.
24415 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24416 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
24417 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
24418
24419 2017-11-07 Joseph Myers <joseph@codesourcery.com>
24420
24421 * include/float.h
24422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24423 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
24424 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24425 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
24426 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24427 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
24428 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24429 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
24430 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24431 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
24432 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24433 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
24434 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24435 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
24436 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24437 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
24438 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24439 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
24440 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24441 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
24442 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24443 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
24444 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24445 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
24446 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24447 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
24448 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24449 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
24450 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24451 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
24452 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24453 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
24454 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24455 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
24456 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24457 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
24458 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24459 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
24460 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24461 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
24462 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24463 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
24464 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24465 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
24466 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24467 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
24468 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24469 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
24470 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24471 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
24472 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24473 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
24474 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24475 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
24476 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24477 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
24478 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24479 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
24480 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24481 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
24482 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24483 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
24484 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24485 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
24486 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24487 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
24488 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24489 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
24490 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24491 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
24492 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24493 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
24494 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24495 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
24496 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24497 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
24498 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24499 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
24500 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24501 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
24502 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24503 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
24504 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24505 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
24506 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24507 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
24508 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24509 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
24510
24511 * stdlib/tst-strtod.h (F16): New macro.
24512 (F32): Likewise.
24513 (F64): Likewise.
24514 (F32X): Likewise.
24515 (F64X): Likewise.
24516 (F128X): Likewise.
24517 (IF_FLOAT16): Likewise.
24518 (IF_FLOAT32): Likewise.
24519 (IF_FLOAT64): Likewise.
24520 (IF_FLOAT32X): Likewise.
24521 (IF_FLOAT64X): Likewise.
24522 (IF_FLOAT128X): Likewise.
24523 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
24524 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
24525 (STRTOD_TEST_FOREACH): Likewise.
24526 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
24527 (CHOOSE_f64): Likewise.
24528 (CHOOSE_f32x): Likewise.
24529 (CHOOSE_f64x): Likewise.
24530
24531 2017-11-07 Andreas Schwab <schwab@suse.de>
24532
24533 * nptl/Makefile (tests-internal): Remove tst-typesizes.
24534
24535 2017-11-07 Mike FABIAN <mfabian@redhat.com>
24536
24537 [BZ #22403]
24538 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
24539 to be escaped.
24540 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
24541 to be escaped.
24542
24543 2017-11-07 Claude Paroz <claude@2xlibre.net>
24544
24545 [BZ #22403]
24546 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
24547 to be escaped.
24548 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
24549 to be escaped.
24550 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
24551 to be escaped.
24552
24553 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24554
24555 [BZ #22298]
24556 * nptl/allocatestack.c (allocate_stack): Check if
24557 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
24558 __PTHREAD_MUTEX_HAVE_PREV is defined.
24559 * nptl/descr.h (pthread): Likewise.
24560 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24561 Likewise.
24562 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
24563 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
24564 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
24565 * sysdeps/nptl/bits/thread-shared-types.h
24566 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24567 defines.
24568 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
24569 of __WORDSIZE for internal layout.
24570 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
24571 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
24572 instead of __WORDSIZE whether to use an union for __spins and __list
24573 fields.
24574 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
24575 case.
24576 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
24577 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24578 defines.
24579 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
24580 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24581 Likewise.
24582 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
24583 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24584 Likewise.
24585 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
24586 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24587 Likewise.
24588 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
24589 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24590 Likewise.
24591 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
24592 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24593 Likewise.
24594 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
24595 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24596 Likewise.
24597 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
24598 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24599 Likewise.
24600 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
24601 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24602 Likewise.
24603 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
24604 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24605 Likewise.
24606 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
24607 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24608 Likewise.
24609 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
24610 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24611 Likewise.
24612 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
24613 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24614 Likewise.
24615 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
24616 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24617 Likewise.
24618 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
24619 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24620 Likewise.
24621
24622 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
24623 New macros.
24624 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
24625 checks for expected input type size.
24626 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
24627 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
24628 Likewise.
24629 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
24630 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
24631 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24632 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
24633 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
24634 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
24635 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
24636 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
24637 superflous runtime assert check.
24638 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
24639 Likewise.
24640 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
24641 Likewise.
24642 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
24643 Likewise.
24644 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
24645 Likewise.
24646 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
24647 Likewise.
24648 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
24649 Likewise.
24650 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
24651 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
24652 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
24653 Likewise.
24654 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
24655 Likewise.
24656 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
24657 Likewise.
24658 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
24659 Likewise.
24660 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
24661 Likewise.
24662 * nptl/pthread_attr_setinheritsched.c
24663 (__pthread_attr_setinheritsched): Likewise.
24664 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
24665 Likewise.
24666 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
24667 Likewise.
24668 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
24669 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
24670 __old_pthread_attr_setstack): Likewise.
24671 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
24672 Likewise.
24673 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
24674 Likewise.
24675 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
24676 Likewise.
24677 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
24678 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
24679 Likewise.
24680 * nptl/tst-typesizes.c: Remove file.
24681
24682 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
24683 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
24684 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
24685 checks for internal pthread_mutex_t offsets.
24686 * sysdeps/aarch64/nptl/pthread-offsets.h
24687 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
24688 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
24689 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
24690 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
24691 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
24692 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
24693 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
24694 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
24695 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
24696 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
24697 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
24698 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
24699 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
24700 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
24701 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
24702 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
24703 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
24704 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
24705
24706 2017-11-07 Florian Weimer <fweimer@redhat.com>
24707
24708 * bits/mman-linux.h: Move ...
24709 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
24710 comment.
24711 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
24712 outdated comment.
24713
24714 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24715
24716 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
24717 Redefine STRNLEN as __strnlen_power8.
24718
24719 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24720
24721 * signal/sighold.c (sighold): Optimize implementation.
24722
24723 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
24724 __NR_rt_sigqueueinfo.
24725
24726 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
24727 __sigtimedwait.
24728 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
24729 assume __NR_rt_sigtimedwait.
24730 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
24731 and add LIBC_CANCEL_HANDLED for cancellation marking.
24732 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
24733
24734 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
24735 (sysdeps_routines): Add memchr_noneon.
24736 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
24737 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
24738 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
24739 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
24740 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
24741 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
24742 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
24743
24744 * sysdeps/arm/arm-ifunc.h: New file.
24745 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
24746 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
24747 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
24748 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
24749 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
24750 (__memcpy_neon): Avoid create hidden alias.
24751 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
24752 (__memcpy_vfp): Likewise.
24753 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
24754 (sysdep_routines): Add memcpy_arm.
24755 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
24756
24757 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
24758
24759 [BZ #22362]
24760 * Makerules (make-link-multidir): New.
24761 * config.make.in (multidir): New.
24762 * configure.ac (libc_cv_multidir): New. AC_SUBST.
24763 * configure: Regenerated.
24764 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
24765 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
24766 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
24767 New target.
24768
24769 2017-11-06 Joseph Myers <joseph@codesourcery.com>
24770
24771 [BZ #22402]
24772 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
24773 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
24774
24775 2017-11-04 Mike FABIAN <mfabian@redhat.com>
24776
24777 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
24778 to be escaped.
24779
24780 2017-11-04 Florian Weimer <fweimer@redhat.com>
24781
24782 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
24783
24784 2017-11-03 Joseph Myers <joseph@codesourcery.com>
24785
24786 * math/math.h [__HAVE_DISTINCT_FLOAT16
24787 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
24788 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
24789 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
24790 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
24791 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
24792 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
24793 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24794 (__MATH_TG_F32): New macro.
24795 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24796 (__MATH_TG_F64X): Likewise.
24797 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24798 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
24799
24800 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
24801
24802 * po/de.po: Update translations.
24803 * po/ru.po: Likewise.
24804
24805 2017-11-03 Florian Weimer <fweimer@redhat.com>
24806
24807 * manual/filesys.texi (Hard Links): Document linkat.
24808
24809 2017-11-03 Joseph Myers <joseph@codesourcery.com>
24810
24811 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
24812 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
24813 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
24814 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
24815 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
24816 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
24817 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
24818 the same as _Float128.
24819 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
24820 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
24821 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
24822
24823 * stdlib/stdlib.h
24824 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
24825 Declare.
24826 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
24827 Likewise.
24828 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
24829 Likewise.
24830 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24831 (strtof32x): Likewise.
24832 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24833 (strtof64x): Likewise.
24834 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24835 (strtof128x): Likewise.
24836 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24837 (strfromf16): Likewise.
24838 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24839 (strfromf32): Likewise.
24840 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24841 (strfromf64): Likewise.
24842 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24843 (strfromf32x): Likewise.
24844 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24845 (strfromf64x): Likewise.
24846 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24847 (strfromf128x): Likewise.
24848 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
24849 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
24850 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
24851 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
24852 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
24853 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
24854
24855 2017-11-03 Richard Henderson <rth@twiddle.net>
24856
24857 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
24858
24859 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24860
24861 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
24862
24863 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24864
24865 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
24866 DT_TLSDESC_GOT initialization.
24867 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
24868 (_dl_tlsdesc_resolve_hold): Likewise.
24869 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
24870 (_dl_tlsdesc_resolve_hold): Likewise.
24871 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
24872 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
24873
24874 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24875
24876 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
24877
24878 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24879
24880 [BZ #18572]
24881 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
24882 non-lazily for R_ARM_TLS_DESC.
24883
24884 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24885
24886 [BZ #17078]
24887 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
24888 R_ARM_TLS_DESC case.
24889 (elf_machine_lazy_rel): Remove the prelink check.
24890
24891 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24892
24893 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
24894 DT_TLSDESC_GOT initialization.
24895 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
24896 (_dl_tlsdesc_resolve_rela): Likewise.
24897 (_dl_tlsdesc_resolve_hold): Likewise.
24898 (_dl_tlsdesc_undefweak): Remove ldar.
24899 (_dl_tlsdesc_dynamic): Likewise.
24900 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
24901 (_dl_tlsdesc_resolve_rela): Likewise.
24902 (_dl_tlsdesc_resolve_hold): Likewise.
24903 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
24904 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
24905 (_dl_tlsdesc_resolve_rela): Likewise.
24906 (_dl_tlsdesc_resolve_hold): Likewise.
24907
24908 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24909
24910 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
24911 binding and initialization non-lazily for R_AARCH64_TLSDESC.
24912
24913 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24914
24915 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
24916 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
24917
24918 2017-11-02 Joseph Myers <joseph@codesourcery.com>
24919
24920 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
24921 Declare.
24922 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
24923 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
24924 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
24925 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
24926 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
24927 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
24928 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
24929 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
24930 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
24931 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
24932 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
24933
24934 2017-11-02 Mike FABIAN <mfabian@redhat.com>
24935
24936 [BZ #22382]
24937 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
24938 * localedata/locales/tpi_PG: Add standard header.
24939
24940 2017-11-02 Florian Weimer <fweimer@redhat.com>
24941
24942 test-errno-linux: quotactl can fail with EPERM in containers.
24943 * sysdeps/unix/sysv/linux/test-errno-linux.c
24944 (LIST, LIST_FORWARD): New macros.
24945 (check_error_in_list): New function.
24946 (test_wrp_rv): Accept list of permitted error codes.
24947 (test_wrp_rv2): Remove.
24948 (test_wrp): Call test_wrp_rv with list of error codes.
24949 (test_wrp2): Accept list of error codes.
24950 (do_test): Adjust. Allow EPERM for quotactl.
24951
24952 2017-11-02 Florian Weimer <fweimer@redhat.com>
24953
24954 * stdio-common/bug16.c (do_test): Use array_length.
24955 * stdio-common/errlist.c (_sys_nerr): Likewise.
24956 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
24957 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
24958 * stdio-common/psiginfo.c (psiginfo): Use array_length.
24959 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
24960 (do_test): Use array_length.
24961 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
24962 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
24963 * stdio-common/tst-printf-round.c (do_test): Likewise.
24964 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
24965 (CHECK): Use array_length.
24966 * stdio-common/tstdiomisc.c (t3, F): Likewise.
24967 * stdio-common/tstscanf.c (main): Likewise.
24968 * stdio-common/vfprintf.c (process_string_arg): Likewise.
24969
24970 2017-11-02 Florian Weimer <fweimer@redhat.com>
24971
24972 Add array_length and array_end macros.
24973 * include/array_length.h: New file.
24974
24975 2017-11-02 Florian Weimer <fweimer@redhat.com>
24976
24977 [BZ #22332]
24978 * posix/tst-glob-tilde.c (do_noescape): New variable.
24979 (one_test): Process it.
24980 (do_test): Set do_noescape. Add unescaping test case.
24981
24982 2017-11-01 Joseph Myers <joseph@codesourcery.com>
24983
24984 * math/complex.h
24985 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
24986 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
24987 with appropriate macros defined and undefined.
24988 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
24989 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24990 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
24991 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24992 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
24993 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24994 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
24995 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24996 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
24997 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
24998
24999 * math/complex.h
25000 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25001 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25002 that for long double. Do not condition define and undefine of
25003 _Mdouble_complex_ on [__CFLOAT128].
25004
25005 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25006
25007 * sysdeps/i386/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 * sysdeps/x86/sysdep.h: New file.
25021 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25022 of <sysdeps/generic/sysdep.h>.
25023 (ALIGNARG): Removed.
25024 (ASM_SIZE_DIRECTIVE): Likewise.
25025 (ENTRY): Likewise.
25026 (END): Likewise.
25027 (ENTRY_CHK): Likewise.
25028 (END_CHK): Likewise.
25029 (syscall_error): Likewise.
25030 (mcount): Likewise.
25031 (PSEUDO_END): Likewise.
25032 (L): Likewise.
25033 (atom_text_section): Likewise.
25034
25035 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25036
25037 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25038 category of LC_CTYPE set to "i18n:2012".
25039 * localedata/locales/i18n_ctype: Regenerate.
25040
25041 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25042
25043 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25044 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25045 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25046 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25047
25048 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25049 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25050 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25051 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25052
25053 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25054
25055 * math/complex.h
25056 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25057 New macro.
25058 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25059 Likewise.
25060 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25061 Likewise.
25062 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25063 (CMPLXF32X): Likewise.
25064 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25065 (CMPLXF64X): Likewise.
25066 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25067 (CMPLXF128X): Likewise.
25068
25069 * math/math.h
25070 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25071 (__MATH_EVAL_FMT2): Define to add 0.0f.
25072
25073 2017-10-31 Alan Modra <amodra@gmail.com>
25074
25075 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25076 include sysdep.h.
25077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25086 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25087 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25089 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25090 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25091 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25092 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25093 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25094 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25095 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25096 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25097 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25098 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25099 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25100 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25101 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25102 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25103 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25104 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25105 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25106 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25107 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25108 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25109 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25110 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25111 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25112 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25113 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25114 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25115 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25116 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25117 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25118 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25119 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25120 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25121 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25122 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25123 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25124 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25125 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25126 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25127 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25128 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25129 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25130 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25131 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25132 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25133 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25134 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25135 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25136 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25137 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25138 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25139 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25140 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25141 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25142 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25143 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25144 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25145 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25146
25147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25148 include sysdep.h and math_ldbl_opt.h.
25149
25150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25151 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25159 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25160 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25161 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25162 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25163 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25164 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25165 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25166 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25168 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25172 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25174 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25175 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25176
25177 2017-10-31 Alan Modra <amodra@gmail.com>
25178
25179 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25180 string/strncase_l.c, not string/strncase.c.
25181 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25182 (libc_hidden_def): Redefine.
25183
25184 2017-10-31 Alan Modra <amodra@gmail.com>
25185
25186 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25187 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25188 (__strcasecmp): Don't define.
25189
25190 2017-10-31 Alan Modra <amodra@gmail.com>
25191
25192 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25193 IS_IN (libc).
25194 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25195 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25196 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25197
25198 2017-10-31 Alan Modra <amodra@gmail.com>
25199
25200 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25201 USE_AS_STPNCPY.
25202
25203 2017-10-31 Alan Modra <amodra@gmail.com>
25204
25205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25206 Redefine only when SHARED.
25207
25208 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25209
25210 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25211 Include <bits/math-finite.h> with appropriate macros defined and
25212 undefined.
25213 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25214 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25215 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25216 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25217 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25218
25219 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25220 [!_Mlong_double_] (_Mlong_double_): Likewise.
25221 [!_Mfloat16_] (_Mfloat16_): Likewise.
25222 [!_Mfloat32_] (_Mfloat32_): Likewise.
25223 [!_Mfloat64_] (_Mfloat64_): Likewise.
25224 [!_Mfloat128_] (_Mfloat128_): Likewise.
25225 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25226 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25227 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25228 (_Mdouble_): Define without indirection through those macros.
25229 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25230 [!_Mfloat128_] (_Mfloat128_): Likewise.
25231 [_Mlong_double_] (_Mlong_double_): Likewise.
25232 (_Mdouble_): Define without indirection through those macros.
25233 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25234 not add -D_Mlong_double_=double.
25235 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25236 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25237
25238 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25239
25240 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25241
25242 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25243
25244 * sysdeps/x86/libc-start.c: Reformat.
25245
25246 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25247
25248 [BZ #22353]
25249 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25250 (1): Renamed to ...
25251 (L(Src0)): This.
25252 (L(Src1)): New.
25253 (L(Src2)): Likewise.
25254 (L(1)): Renamed to ...
25255 (L(Src3)): This.
25256
25257 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25258
25259 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25260 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25261 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25262 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25263 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25264 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25265 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25266 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25267 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25268 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25269 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25270 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25271 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25272 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25273 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25274 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25275 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25276 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25277 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25278 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25279 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25280 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25281 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25282 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25283 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25284 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25285 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25286 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25287 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25288 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25289 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25290 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25291 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25292 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25293 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25294 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25295 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25296 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25297 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25298 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25299 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25300 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25301 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25302 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25303 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25304 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25305 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25306 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25307 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25308 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25309 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25310 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25311 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25312 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25313 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25314 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25315 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25316 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25317 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25318 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25319 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25320 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25321 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25322 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25323 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25324 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25325
25326 2017-10-30 Florian Weimer <fweimer@redhat.com>
25327
25328 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25329 always defined.
25330 * io/tst-mkdirat.c (do_test): Likewise.
25331 * io/tst-mkfifoat.c (do_test): Likewise.
25332 * io/tst-mknodat.c (do_test): Likewise.
25333 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25334 * locale/programs/locale.c (select_dirs): Likewise.
25335 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25336 * posix/bug-glob2.c (my_readdir): Likewise.
25337 * posix/tst-dir.c (main): Likewise.
25338 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25339 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25340
25341 2017-10-30 Florian Weimer <fweimer@redhat.com>
25342
25343 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25344 just __USE_GNU.
25345
25346 2017-10-30 Florian Weimer <fweimer@redhat.com>
25347
25348 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25349 Convert to support/test-driver.c.
25350 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25351 New macro parameters.
25352 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25353 * posix/tst-gnuglob.c: New file.
25354 * posix/tst-gnuglob64.c: Likewise.
25355 * posix/Makefile (tests): Add tst-gnuglob64.
25356
25357 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25358
25359 [BZ #19485]
25360 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25361 and use a better translation for March in “mon”.
25362 * localedata/locales/csb_PL: Use more ASCII to improve the
25363 readability of the source.
25364
25365 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25366
25367 [BZ #13953]
25368 * localedata/locales/km_KH: Use ASCII as much
25369 as possible for better readability of the source and
25370 remove useless comments.
25371 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25372 was commented out and apparently wrong anyway because it was
25373 using Lao characters. If Buddhist era should be used
25374 for km_KH, a native speaker should write the correct formaat
25375 for Khmer.
25376 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25377 (According to CLDR, the first weekday for Cambodia is Sunday).
25378 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25379 (These were using Lao characters which must be wrong. If we get
25380 the correct data from a native speaker, we could add it back, until
25381 then it is better not to have name_mr and name_mrs at all than
25382 having it wrong).
25383
25384 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25385
25386 * locale/loadlocale.c: Correct size of
25387 _nl_value_type_LC_<category> arrays.
25388
25389 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25390
25391 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25392 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25393 with appropriate macros defined and undefined.
25394 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25395 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25396 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25397 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25398 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25399
25400 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25401
25402 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25403 "-O2 -march=i586".
25404
25405 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25406
25407 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25408 with lowercase letters to make it agree with CLDR.
25409
25410 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25411
25412 [BZ #15260]
25413 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
25414 first letters of yesstr and nostr in yesexpr and noexpr,
25415 not for the full words.
25416 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25417 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
25418 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
25419 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
25420 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
25421 first letters of yesstr and nostr in yesexpr and noexpr,
25422 until now only English was matched in yesexpr and noexpr.
25423 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
25424 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
25425 fil but not for tl. As tl and fil are very similar, using fil
25426 is probably better than using English.
25427
25428 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
25429
25430 [BZ #21706]
25431 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
25432 in yesstr and nostr.
25433
25434 2017-10-26 Joseph Myers <joseph@codesourcery.com>
25435
25436 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25437 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
25438 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
25439 Likewise.
25440 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
25441 Likewise.
25442 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
25443 Likewise.
25444 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
25445 Likewise.
25446 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25447 (SNANF128X): Likewise.
25448
25449 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25450 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
25451 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25452 (HUGE_VAL_F32): Likewise.
25453 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25454 (HUGE_VAL_F64): Likewise.
25455 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25456 (HUGE_VAL_F32X): Likewise.
25457 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25458 (HUGE_VAL_F64X): Likewise.
25459 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25460 (HUGE_VAL_F128X): Likewise.
25461
25462 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25463
25464 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
25465 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
25466 for the br_FR locale.
25467
25468 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25469
25470 [BZ #21706]
25471 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
25472
25473 2017-10-25 Carlos O'Donell <carlos@redhat.com>
25474
25475 * locale/programs/record-status.h: Define globals, and function
25476 prototypes. Move function bodies...
25477 * locale/programs/record-status.c: ... to here. New file.
25478 * iconv/Makefile (iconv_prog-modules): Add record-status.
25479 * locale/Makefile (lib-modules): Likewise.
25480 * iconv/iconv_prog.c: Remove verbose.
25481 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
25482 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
25483 record a warning about ASCII compatibility.
25484 * locale/programs/ld-monetary.c (monetary_finish): If
25485 warn_int_curr_symbol is true then record a warning about the symbol
25486 not being in our ISO 4217 list.
25487 * locale/programs/locale.c: Include record-status.h. Remove verbose.
25488 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
25489 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
25490 (OPT_NO_WARN): Define.
25491 (OPT_WARN): Define.
25492 (options): Add entry for --no-warnings, and --warnings.
25493 (set_warnings): New function to enable/disable warnings.
25494 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
25495 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
25496 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
25497 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
25498 Pass flags to generate_locale.
25499 (generate_locale): Accept new flag argument and pass it to localedef
25500 invocation.
25501 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
25502 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
25503
25504 * localedata/Makefile (test-input-data): Use full file name.
25505 * localedata/da_DK.in: Rename to...
25506 * localedata/da_DK.ISO-8859-1.in: ...this.
25507 * localedata/de_DE.in: Rename to...
25508 * localedata/de_DE.ISO-8859-1.in: ...this.
25509 * localedata/en_US.in: Rename to...
25510 * localedata/en_US.ISO-8859-1.in: ...this.
25511 * localedata/fr_FR.in: Rename to...
25512 * localedata/fr_FR.UTF-8.in: ... this.
25513 * localedata/hr_HR.in: Rename to...
25514 * localedata/hr_HR.ISO-8859-2.in: ...this.
25515 * localedata/hu_HU.in: Rename to...
25516 * localedata/hu_HU.UTF-8.in: ...this.
25517 * localedata/si_LK.in: Rename to...
25518 * localedata/si_LK.UTF-8.in: ...this.
25519 * localedata/sv_SE.in: Rename to...
25520 * localedata/sv_SE.ISO-8859-1.in: ...this.
25521 * localedata/tr_TR.in: Rename to...
25522 * localedata/tr_TR.UTF-8.in: ...this.
25523 * localedata/uk_UA.in: Rename to...
25524 * localedata/uk_UA.UTF-8.in: ...this.
25525 * localedata/sort-test.sh: Test file is locale name with the
25526 suffix.
25527
25528 * localedata/unicode-gen/Makefile (check_i18n): Rename to
25529 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
25530 file.
25531 * localedata/locales/i18n_ctype: Regenerate.
25532 * localedata/locales/tr_TR: Likewise.
25533 * localedata/locales/translit_circle: Likewise.
25534 * localedata/locales/translit_cjk_compat: Likewise.
25535 * localedata/locales/translit_combining: Likewise.
25536 * localedata/locales/translit_compat: Likewise.
25537 * localedata/locales/translit_font: Likewise.
25538 * localedata/locales/translit_fraction: Likewise.
25539
25540 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25541
25542 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
25543 lxvd2x/stxvd2x with lvx/stvx.
25544 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
25545
25546 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
25547
25548 * include/alloc_buffer.h: Replace "if if " with "if " in
25549 comments.
25550 * sysdeps/mips/memcpy.S: Likkewise.
25551 * sysdeps/mips/memset.S: Likewise.
25552 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25553 Likewise.
25554 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
25555 Likewise.
25556 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
25557 Likewise.
25558
25559 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25560
25561 [BZ #15261]
25562 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
25563 yesexpr and noexpr.
25564 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25565 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25566 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25567 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25568 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25569 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25570 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25571
25572 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25573
25574 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
25575 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25576 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25577 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25578 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25579 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
25580 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25581 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25582 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25583 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25584 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25585 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25586
25587 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25588
25589 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
25590 as possible for better readability of the source.
25591 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
25592 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
25593 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
25594 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
25595 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
25596 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
25597 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
25598 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
25599 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25600 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
25601 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
25602 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
25603 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
25604 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
25605 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
25606 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
25607 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
25608 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
25609 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
25610 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
25611 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
25612 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
25613 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
25614 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
25615 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
25616 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
25617 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
25618 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
25619 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
25620 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
25621 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
25622 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25623 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
25624 * localedata/locales/en_US (LC_MESSAGES): Likewise.
25625 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
25626 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
25627 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
25628 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
25629 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
25630 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
25631 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
25632 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
25633 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
25634 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
25635 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
25636 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
25637 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
25638 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
25639 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
25640 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
25641 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
25642 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
25643 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
25644 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25645 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25646 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
25647 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
25648 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25649 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
25650 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
25651 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
25652 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
25653 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
25654 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
25655 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
25656 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
25657 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
25658 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
25659 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
25660 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
25661 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
25662 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
25663 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
25664 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
25665 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25666 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
25667 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
25668 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
25669 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
25670 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
25671 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
25672 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
25673 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
25674 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25675 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
25676 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
25677 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
25678 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25679 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
25680 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
25681 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
25682 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
25683 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25684 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
25685 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
25686 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25687 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
25688 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25689 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
25690 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
25691 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
25692 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
25693 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
25694 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
25695 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
25696 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
25697 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
25698 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
25699 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
25700 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
25701 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
25702 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
25703 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25704 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
25705 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
25706 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
25707 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
25708 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
25709 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
25710 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
25711 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
25712 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
25713 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
25714 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
25715 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
25716 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
25717 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
25718 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
25719 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
25720 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
25721 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
25722 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
25723 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
25724 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
25725 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
25726 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
25727 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
25728 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
25729 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
25730 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
25731 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
25732 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
25733 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
25734 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
25735 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
25736 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25737 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
25738 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
25739 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
25740 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
25741 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
25742 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
25743 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
25744 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
25745 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25746 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
25747 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
25748 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
25749 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
25750 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
25751 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
25752 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
25753 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
25754 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
25755 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
25756 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25757 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
25758 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
25759 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
25760 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
25761 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25762 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25763 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25764 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
25765
25766 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25767
25768 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
25769 (Use first letters of yesstr and nostr correctly instead of using
25770 full words).
25771
25772 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25773
25774 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
25775 (Use first letters of yesstr and nostr correctly).
25776
25777 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25778
25779 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
25780 also check for the first characters of yesstr and nostr.
25781 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
25782 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
25783
25784 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25785
25786 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
25787 also check for Chinese characters.
25788
25789 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25790
25791 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
25792 match also for the contents of yesstr and nostr. As the first letter
25793 of yesstr and nostr is equal, checking only for the first letter
25794 is not enough.
25795
25796 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25797
25798 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
25799 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
25800
25801 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25802
25803 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
25804 of main contributor.
25805
25806 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25807
25808 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
25809 instead of using English.
25810
25811 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25812
25813 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
25814 by including the first letters of nostr and yesexpr in the regexp.
25815 Also make it more readable by using ASCII where possible.
25816
25817 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25818
25819 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
25820 the first letter of nostr in the regexp. It agrees with CLDR now.
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/km_KH (LC_MESSAGES): Fix yestr and nostr.
25826 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
25827 these strings contain a U+17D6 (which somewhat looks like a colon)
25828 instead of a real colon to separate the full words for “yes”
25829 and “no” from the single letter responses.
25830
25831 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25832
25833 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
25834 it agree with CLDR (include the first letter of yesstr).
25835 Also make it more readable by using ASCII where possible.
25836
25837 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25838
25839 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
25840 and improve yesexpr and noexpr. The yesstr and nostr apparently
25841 came from CLDR. And CLDR has a bug there: these strings contain
25842 a U+0903 (which looks like a colon) instead of a real colon
25843 to separate the full words for “yes” and “no” from the single
25844 letter responses.
25845
25846 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25847
25848 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
25849 letters of the full yesstr and nostr in yesexpr and noexpr.
25850
25851 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25852
25853 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
25854 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
25855 * localedata/locales/an_ES: Make source more readable by using ASCII
25856 where possible.
25857
25858 2017-10-24 Mike FABIAN <mfabian@redhat.com>
25859
25860 [BZ #20952]
25861 * localedata/locales/yuw_PG: New file.
25862 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
25863 * locale/iso-639.def: Add Yau (Uruwa).
25864
25865 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
25866
25867 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
25868
25869 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
25870
25871 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
25872 (__libc_realloc): Likewise.
25873 (_mid_memalign): Likewise.
25874 (__libc_calloc): Likewise.
25875
25876 2017-10-23 Mike FABIAN <mfabian@redhat.com>
25877
25878 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
25879 by adding the generic +1 and -0 as in all other locales.
25880 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
25881 day names and make it more readable by using ASCII where possible.
25882
25883 2017-10-24 Joseph Myers <joseph@codesourcery.com>
25884
25885 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
25886 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
25887
25888 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25889
25890 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
25891 WNOHANG in waitpid call.
25892
25893 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
25894
25895 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
25896 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
25897
25898 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
25899 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
25900 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
25901 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
25902 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
25903 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
25904 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
25905 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
25906 variables.
25907
25908 2017-10-23 Michael Collison <michael.collison@arm.com>
25909
25910 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
25911 with __builtin_sqrt.
25912 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
25913 with __builtin_sqrtf.
25914 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
25915 with __builtin_ceil.
25916 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
25917 with __builtin_ceilf.
25918 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
25919 with __builtin_floor.
25920 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
25921 with __builtin_floorf.
25922 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
25923 with __builtin_fma.
25924 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
25925 with __builtin_fmaf.
25926 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
25927 with __builtin_fmax.
25928 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
25929 with __builtin_fmaxf.
25930 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
25931 with __builtin_fmin.
25932 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
25933 with __builtin_fminf.
25934 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
25935 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
25936 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
25937 with builtin_rint and conversion to int.
25938 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
25939 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
25940 with builtin_llround.
25941 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
25942 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
25943 with builtin_rint and conversion to long int.
25944 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
25945 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
25946 with builtin_lround.
25947 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
25948 with builtin_lroundf.
25949 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
25950 statements with __builtin_nearbyint.
25951 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
25952 statements with __builtin_nearbyintf.
25953 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
25954 with __builtin_rint.
25955 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
25956 with __builtin_rintf.
25957 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
25958 with __builtin_round.
25959 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
25960 with __builtin_roundf.
25961 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
25962 with __builtin_trunc.
25963 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
25964 with __builtin_truncf.
25965 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
25966 and s_l[l]round[f].c too.
25967
25968 2017-10-23 Alan Modra <amodra@gmail.com>
25969
25970 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
25971 Adjust stack after restoring regs. Add missing LR cfi_restore.
25972
25973 2017-10-23 Alan Modra <amodra@gmail.com>
25974
25975 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
25976 Move LR save and frame setup/teardown and LR restore to
25977 immediately around memset call. Provide cfi.
25978
25979 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25980
25981 * sysdeps/i386/fpu/e_powf.S: Removed.
25982 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
25983 * sysdeps/i386/fpu/w_powf.c: Likewise.
25984 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
25985 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25986 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25987 Add e_powf-sse2.
25988 (CFLAGS-e_powf-sse2.c): New.
25989 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
25990 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
25991
25992 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
25993
25994 * sysdeps/i386/fpu/e_log2f.S: Removed.
25995 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
25996 * sysdeps/i386/fpu/w_log2f.c: Likewise.
25997 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
25998 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25999 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26000 Add e_log2f-sse2.
26001 (CFLAGS-e_log2f-sse2.c): New.
26002 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26003 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26004
26005 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26006
26007 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26008 Add e_powf-fma.
26009 (CFLAGS-e_powf-fma.c): New.
26010 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26011 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26012
26013 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26014
26015 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26016 Add e_log2f-fma.
26017 (CFLAGS-e_log2f-fma.c): New.
26018 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26019 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26020
26021 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26022
26023 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26024 Add e_logf-fma.
26025 (CFLAGS-e_logf-fma.c): New.
26026 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26027 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26028
26029 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26030
26031 * sysdeps/i386/fpu/e_logf.S: Removed.
26032 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26033 * sysdeps/i386/fpu/w_logf.c: Likewise.
26034 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26035 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26036 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26037 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26038 Add e_logf-sse2.
26039 (CFLAGS-e_logf-sse2.c): New.
26040 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26041 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26042
26043 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26044
26045 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26046 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26047 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26048 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26049 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26050 Add e_exp2f-sse2.
26051 (CFLAGS-e_exp2f-sse2.c): New.
26052 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26053 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26054
26055 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26056
26057 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26058 Add e_exp2f-fma.
26059 (CFLAGS-e_exp2f-fma.c): New.
26060 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26061 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26062
26063 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26064
26065 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26066 * sysdeps/i386/fpu/e_expf.S: Likewise.
26067 * sysdeps/i386/fpu/math_errf.c: Likewise.
26068 * sysdeps/i386/fpu/w_expf.c: Likewise.
26069 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26070 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26071 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26072 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26073 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26074 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26075 Remove e_expf-ia32.
26076 (CFLAGS-e_expf-sse2.c): New.
26077 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26078 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26079
26080 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26081
26082 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26083 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26084 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26085 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26086 e_expf.c.
26087 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26088 New.
26089 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26090 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26091 Renamed to ...
26092 (__redirect_expf): This.
26093 (SYMBOL_NAME): Changed to expf.
26094 (__ieee754_expf): Renamed to ...
26095 (__expf): This.
26096 (__GI___expf): This.
26097 (__ieee754_expf): Add strong_alias.
26098 (__expf_finite): Likewise.
26099 (__expf): New.
26100 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26101
26102 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26103
26104 [BZ #22332]
26105 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26106 unescaping.
26107
26108 2017-10-21 Florian Weimer <fweimer@redhat.com>
26109
26110 * posix/Makefile (tests): Add tst-glob-tilde.
26111 (tests-special): Add tst-glob-tilde-mem.out
26112 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26113 (tst-glob-tilde-mem.out): Add mtrace check.
26114 * posix/tst-glob-tilde.c: New file.
26115
26116 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26117
26118 * bits/floatn-common.h: New file.
26119 * math/Makefile (headers): Add bits/floatn-common.h.
26120 * bits/floatn.h: Include <bits/floatn-common.h>.
26121 * sysdeps/ia64/bits/floatn.h: Likewise.
26122 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26123 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26124 * sysdeps/powerpc/bits/floatn.h: Likewise.
26125 * sysdeps/x86/bits/floatn.h: Likewise.
26126
26127 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26128
26129 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26130 indicates whether compiler emits an warning for alias for
26131 functions with incompatible types.
26132
26133 [BZ #22273]
26134 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26135 the auxiliary process is terminated by a signal before calling _exit
26136 or execve.
26137
26138 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26139
26140 [BZ #21265]
26141 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26142 New.
26143 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26144 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26145 and bit_arch_XSAVEC_Usable if needed.
26146 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26147 and bit_arch_Use_dl_runtime_resolve_opt.
26148 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26149 Removed.
26150 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26151 (bit_arch_Prefer_No_AVX512): Updated.
26152 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26153 (bit_arch_XSAVEC_Usable): New.
26154 (STATE_SAVE_OFFSET): Likewise.
26155 (STATE_SAVE_MASK): Likewise.
26156 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26157 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26158 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26159 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26160 (index_arch_XSAVEC_Usable): New.
26161 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26162 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26163 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26164 is enabled.
26165 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26166 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26167 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26168 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26169 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26170 _dl_runtime_resolve_xsavec.
26171 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26172 Removed.
26173 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26174 instead of VEC_SIZE.
26175 (REGISTER_SAVE_BND0): Removed.
26176 (REGISTER_SAVE_BND1): Likewise.
26177 (REGISTER_SAVE_BND3): Likewise.
26178 (REGISTER_SAVE_RAX): Always defined to 0.
26179 (VMOV): Removed.
26180 (_dl_runtime_resolve_avx): Likewise.
26181 (_dl_runtime_resolve_avx_slow): Likewise.
26182 (_dl_runtime_resolve_avx_opt): Likewise.
26183 (_dl_runtime_resolve_avx512): Likewise.
26184 (_dl_runtime_resolve_avx512_opt): Likewise.
26185 (_dl_runtime_resolve_sse): Likewise.
26186 (_dl_runtime_resolve_sse_vex): Likewise.
26187 (USE_FXSAVE): New.
26188 (_dl_runtime_resolve_fxsave): Likewise.
26189 (USE_XSAVE): Likewise.
26190 (_dl_runtime_resolve_xsave): Likewise.
26191 (USE_XSAVEC): Likewise.
26192 (_dl_runtime_resolve_xsavec): Likewise.
26193 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26194 Removed.
26195 (_dl_runtime_resolve_avx512_opt): Likewise.
26196 (_dl_runtime_resolve_avx): Likewise.
26197 (_dl_runtime_resolve_avx_opt): Likewise.
26198 (_dl_runtime_resolve_sse): Likewise.
26199 (_dl_runtime_resolve_sse_vex): Likewise.
26200 (_dl_runtime_resolve_fxsave): New.
26201 (_dl_runtime_resolve_xsave): Likewise.
26202 (_dl_runtime_resolve_xsavec): Likewise.
26203
26204 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26205
26206 [BZ #22320]
26207 CVE-2017-15670
26208 * posix/glob.c (__glob): Fix one-byte overflow.
26209
26210 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26211
26212 * malloc/malloc.c (sysdep-cancel.h): Add include.
26213
26214 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26215
26216 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26217
26218 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26219
26220 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26221 (tests): Remove $(objpfx)ga_test depdendency.
26222 * resolv/ga_test.c: Remove file.
26223
26224 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26225
26226 [BZ #18812]
26227 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26228 * localedata/locales/kab_DZ: New file.
26229
26230 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26231
26232 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26233 _dl_relocate_static_pie instead of _dl_start to compute load
26234 address in static PIE.
26235
26236 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26237
26238 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26239
26240 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26241
26242 [BZ #13605]
26243 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26244 * localedata/locales/shn_MM: New file.
26245
26246 2017-10-20 Florian Weimer <fweimer@redhat.com>
26247
26248 [BZ #22321]
26249 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26250 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26251 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26252 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26253 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26254 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26255
26256 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26257
26258 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26259
26260 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26261
26262 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26263
26264 [BZ #22322]
26265 * sysdeps/mips/bits/long-double.h: Move to ....
26266 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26267
26268 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26269
26270 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26271
26272 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26273 H.J. Lu <hongjiu.lu@intel.com>
26274
26275 [BZ #22299]
26276 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26277 GLRO(dl_platform) to NULL.
26278 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26279 (modules-names): Add tst-platformmod-1 and
26280 x86_64/tst-platformmod-2.
26281 (CFLAGS-tst-platform-1.c): New.
26282 (CFLAGS-tst-platformmod-1.c): Likewise.
26283 (CFLAGS-tst-platformmod-2.c): Likewise.
26284 (LDFLAGS-tst-platformmod-2.so): Likewise.
26285 ($(objpfx)tst-platform-1): Likewise.
26286 ($(objpfx)tst-platform-1.out): Likewise.
26287 (tst-platform-1-ENV): Likewise.
26288 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26289 * sysdeps/x86_64/tst-platform-1.c: New file.
26290 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26291 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26292
26293 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26294
26295 [BZ #13994]
26296 * locale/iso-639.def: Add Karbi.
26297 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26298 * localedata/locales/mjw_IN: New file.
26299
26300 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26301
26302 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26303 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26304 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26305 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26306 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26307 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26308 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26309 <bits/floatn.h>.
26310 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26311 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26312 * manual/math.texi (Mathematics): Document additional architecture
26313 support for _Float128.
26314 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26315 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26316 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26317 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26318 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26319 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26320 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26321 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26322 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26323 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26324 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26325 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26326 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26327 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26328 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26329
26330 2017-10-18 Renlin Li <renlin.li@arm.com>
26331
26332 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26333 _DYNAMIC symbol to calculate load address.
26334
26335 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26336
26337 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26338 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26339 summary bits.
26340 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26341 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26342
26343 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26344
26345 [BZ #16777]
26346 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26347 and improve readability by using more ASCII.
26348 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26349 and improve readability by using more ASCII.
26350
26351 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26352
26353 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26354 not all targets support atomics on bool.
26355
26356 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26357
26358 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26359 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26360 __f128.
26361 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26362 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26363 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26364 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26365 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26366 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26367
26368 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26369
26370 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26371 defines.
26372
26373 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26374
26375 [BZ #22159]
26376 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26377 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26378 (do_check_remalloced_chunk): Fix build bug.
26379 (do_check_malloc_state): Add assert that checks arena->top.
26380 (malloc_consolidate): Remove initialization.
26381 (int_mallinfo): Remove call to malloc_consolidate.
26382 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26383
26384 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26385
26386 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26387 (have_fastchunks): Remove.
26388 (clear_fastchunks): Remove.
26389 (set_fastchunks): Remove.
26390 (malloc_state): Add have_fastchunks.
26391 (malloc_init_state): Use have_fastchunks.
26392 (do_check_malloc_state): Remove incorrect invariant checks.
26393 (_int_malloc): Use have_fastchunks.
26394 (_int_free): Likewise.
26395 (malloc_consolidate): Likewise.
26396
26397 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26398
26399 * malloc/malloc.c (tcache_put): Inline.
26400 (tcache_get): Inline.
26401
26402 2017-10-17 Jordi Mallach <jordi@gnu.org>
26403
26404 Aurelien Jarno <aurelien@aurel32.net>
26405 [BZ #2522]
26406 * localedata/locales/ca_ES@valencia: New file.
26407 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26408
26409 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
26410
26411 [BZ #22296]
26412 * math/math.h: Let signbit use the builtin in C++ mode with gcc
26413 < 6.x
26414
26415 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26416
26417 * scripts/build-many-glibcs.py (Context.add_all_configs):
26418 Add arm-linux-gnueabihf multiarch extra_glibcs.
26419
26420 * sysdeps/generic/ifunc-init.h: New file.
26421 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
26422
26423 2017-10-17 Mike FABIAN <mfabian@redhat.com>
26424
26425 [BZ #22019]
26426 * localedata/locales/el_GR: Set n_cs_precedes to 0.
26427 * localedata/locales/el_CY: copy "el_GR" because it is identical.
26428 * stdlib/tst-strfmon_l.c: adapt test case.
26429
26430 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26431
26432 * sysdeps/generic/float128-abi.h: New file.
26433 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
26434 non-__prefixed symbols to ....
26435 * math/Versions: ... here. Include <float128-abi.h>.
26436 * stdlib/Versions ... and here. Include <float128-abi.h>
26437
26438 2017-10-16 Florian Weimer <fweimer@redhat.com>
26439
26440 * version.h (VERSION): Switch to ".9000" as the development
26441 version suffix.
26442
26443 2017-10-16 Florian Weimer <fweimer@redhat.com>
26444
26445 [BZ #22050]
26446 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
26447 compat_symbol_reference to access non-default version.
26448
26449 2017-10-16 Florian Weimer <fweimer@redhat.com>
26450
26451 * malloc/Makefile (others-extras): Set to mcheck-init.o.
26452
26453 2017-10-16 Carlos O'Donell <carlos@redhat.com>
26454
26455 * include/shlib-compat.h (compat_symbol_reference): Update
26456 comment.
26457
26458 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26459
26460 * math/Makefile (test-types): Add
26461 $(type-float128-$(float128-alias-fcts)).
26462 * math/test-float128.h (TYPE_STR): Define conditional on
26463 [FLT128_MANT_DIG == LDBL_MANT_DIG].
26464 (ULP_IDX): Likewise.
26465 (ULP_I_IDX): Likewise.
26466
26467 * stdlib/strtold.c: Include <bits/floatn.h>
26468 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
26469 and later undefine as macro. Define as weak alias if
26470 [!USE_WIDE_CHAR].
26471 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
26472 and later undefine as macro. Define as weak alias if
26473 [USE_WIDE_CHAR].
26474 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
26475 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
26476 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26477 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26478 Define and later undefine as macro. Define as weak alias if
26479 [USE_WIDE_CHAR].
26480 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
26481 <bits/floatn.h>.
26482 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
26483 Define and later undefine as macro. Define as weak alias if
26484 [!USE_WIDE_CHAR].
26485 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26486 Define and later undefine as macro. Define as weak alias if
26487 [USE_WIDE_CHAR].
26488
26489 2017-10-15 Carlos O'Donell <carlos@redhat.com>
26490
26491 * localedata/collate-test.c (allocate_arrays): Don't use \n in
26492 record_verbose messages.
26493
26494 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
26495
26496 [BZ #22052]
26497 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
26498 to silence -O3 -Wall warning with GCC 7.
26499
26500 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
26501
26502 * Makeconfig (+link-static-before-libc): Use the first of
26503 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
26504 * gmon/Makefile (tests): Add tst-gmon-static.
26505 (tests-static): Likewise.
26506 (CFLAGS-tst-gmon-static.c): New.
26507 (CRT-tst-gmon-static): Likewise.
26508 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
26509 (tst-gmon-static-ENV): Likewise.
26510 (tests-special): Likewise.
26511 ($(objpfx)tst-gmon-static.out): Likewise.
26512 (clean-tst-gmon-static-data): Likewise.
26513 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
26514 * gmon/tst-gmon-static-gprof.sh: New file.
26515 * gmon/tst-gmon-static.c: Likewise.
26516
26517 2017-10-13 Carlos O'Donell <carlos@redhat.com>
26518
26519 [BZ #22295]
26520 * locale/programs/linereader.c (get_string): Don't warn on
26521 non-symbolic character.
26522
26523 [BZ #22294]
26524 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
26525 int_curr_symbol.
26526
26527 [BZ #22292]
26528 * locale/programs/record-status.h: New file
26529 * locale/programs/locale.c: Add comment.
26530 * locale/programs/charmap-dir.c: Don't include error.h.
26531 (charmap_opendir): Use record_error.
26532 * locale/programs/charmap.c: Don't include error.h.
26533 (charmap_read): Use record_error, and record_warning.
26534 (parse_charmap): Likewise.
26535 * locale/programs/ld-address.c: Don't include error.h.
26536 (address_finish): Use record_error, and record_warning.
26537 * locale/programs/ld-collate.c: Don't include error.h.
26538 (collate_finish): Use record_error, and record_error_at_line.
26539 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
26540 (ctype_class_new): Likewise.
26541 (ctype_map_new): Likewise.
26542 (set_one_default): Likewise.
26543 (set_class_defaults): Likewise.
26544 (translit_flatten): Likewise.
26545 (allocate_arrays): Use record_error, and record_verbose.
26546 * locale/programs/ld-identification.c: Don't include error.h.
26547 (indentation_finish): Use record_error and record_warning.
26548 * locale/programs/ld-measurement.c: Don't include error.h.
26549 (measurement_finish): Use record_error.
26550 * locale/programs/ld-messages.c
26551 (message_finish): Likewise.
26552 * locale/programs/ld-monetary.c
26553 (monetary_finish): Likewise.
26554 * locale/programs/ld-name.c (name_finish): Use record_error
26555 and record_warning.
26556 * locale/programs/ld-numeric.c
26557 (numeric_finish): Use record_error.
26558 * locale/programs/ld-paper.c: Don't include error.h.
26559 (paper_finish): Use record_error.
26560 * locale/programs/ld-telephone.c: Don't include error.h.
26561 (telephone_finish): Use record_error.
26562 * locale/programs/ld-time.c (time_finish): Likewise.
26563 * locale/programs/linereader.h (lr_error): Make inline func.
26564 * locale/programs/localedef.c: Define recorded_warning_count,
26565 and recorded_error_count.
26566 (main): Use record_error. Use recorded_error_count and
26567 recorded_warning_count to issue correct error returns.
26568 (add_to_readlist): Use record_error.
26569 (find_locale): Likewise.
26570 (load_locale): Likewise.
26571 * locale/programs/localedef.h: Remove be_quiet
26572 and WITH_CUR_LOCALE.
26573 * locale/programs/locarchive.c (compare_from_file): Use
26574 record_error.
26575 * locale/programs/locfile.c (write_locale_data): Use
26576 record_error.
26577 * locale/programs/repertoire.c: Dont include error.h.
26578 (repertoire_complain): Use record_error.
26579 * localedata/tst-fmon.sh: Expect failures from localedef.
26580 * localedata/tst-locale.sh: Likewise.
26581 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
26582
26583 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
26584 (REPORTS): Likewise.
26585 (check): Likewise.
26586 (i18n): Rename to...
26587 (i18n_ctype): ...this.
26588 (i18n-report): Rename to...
26589 (i18n_ctype-report): ...this.
26590 * localedata/locales/i18n_ctype: Regenerate.
26591 * localedata/locales/i18n: copy i18n_ctype.
26592
26593 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26594
26595 * stdlib/strfroml.c: Include <bits/floatn.h>.
26596 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
26597 Define before include of <stdlib.h> and undefine afterwards, then
26598 define as weak alias.
26599
26600 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
26601 Undefine and restore default definition. Use
26602 libm_alias_ldouble_other.
26603
26604 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
26605
26606 [BZ #22153]
26607 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
26608 in coredumps.
26609
26610 2017-10-13 James Clarke <jrtc27@jrtc27.com>
26611
26612 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
26613 Assign sym_map to be map for local symbols, as TLS relocations
26614 use sym_map to determine whether the symbol is defined and to
26615 extract the TLS information.
26616 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
26617 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
26618
26619 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26620
26621 [BZ #22189]
26622 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
26623 (math_force_eval): Add powerpc version.
26624
26625 [BZ #22142]
26626 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
26627 -DBL_MAX.
26628 (do_test): Likewise.
26629 * stdio-common/tst-printf.sh: Likewise.
26630 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
26631 ifdef clause in order to set the carry bit right. Replace r0 by
26632 0 without changing the behavior.
26633
26634 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26635
26636 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
26637 <libm-alias-ldouble.h>.
26638 (fabsl): Define using libm_alias_ldouble.
26639 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
26640 <libm-alias-ldouble.h>.
26641 (fabsl): Define using libm_alias_ldouble.
26642
26643 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
26644 Remove conditional code.
26645
26646 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
26647 Rename to __clog10_internal_l.
26648 (__clog10_internal_l): Define aliases using
26649 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
26650 with __clog10.
26651
26652 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26653
26654 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
26655 * benchtests/sincosf-inputs: New file.
26656 * benchtests/cosf-inputs: New file.
26657 * benchtests/sinf-inputs: New file.
26658
26659 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
26660
26661 * posix/tst-spawn.c (do_test): Wait for both children.
26662
26663 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
26664
26665 [BZ #22284]
26666 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
26667 tests-pie): Add tst-gmon-pie.
26668 (CFLAGS-tst-gmon-pie.c): New.
26669 (CRT-tst-gmon-pie): Likewise.
26670 (tst-gmon-pie-ENV): Likewise.
26671 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
26672 ($(objpfx)tst-gmon-pie.out): Likewise.
26673 (clean-tst-gmon-pie-data): Likewise.
26674 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
26675 * gmon/gmon.c [PIC]: Include <link.h>.
26676 [PIC] (callback): New function.
26677 (write_hist): Add an argument for load address. Subtract load
26678 address from PCs.
26679 (write_call_graph): Likewise.
26680 (write_gmon): Call __dl_iterate_phdr to get load address, pass
26681 it to write_hist and write_call_graph.
26682 * gmon/tst-gmon-pie.c: New file.
26683
26684 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26685
26686 * math/Makefile (test-types-basic): New variable.
26687 (test-types): Likewise.
26688 (libm-test-support): Use $(test-types) instead of $(types).
26689 (libm-tests-base-normal): Likewise.
26690 (libm-tests-base-finite): Likewise.
26691 (libm-tests-base-inline): Likewise.
26692 (generated): Likewise.
26693 ($(objpfx)libm-test-support-$(t).c): Likewise.
26694 (libm-tests-for-type iterator): Likewise.
26695 (libm-test-support iterator): Likewise.
26696 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
26697 (ulp_idx): Use ULP_IDX.
26698 * math/test-ldouble.h: Include <float.h>.
26699 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
26700 (ULP_IDX): New macro.
26701 (ULP_I_IDX): Likewise.
26702 * math/test-double.h (ULP_IDX): Likewise.
26703 (ULP_I_IDX): Likewise.
26704 * math/test-float.h (ULP_IDX): Likewise.
26705 (ULP_I_IDX): Likewise.
26706 * math/test-float128.h (ULP_IDX): Likewise.
26707 (ULP_I_IDX): Likewise.
26708
26709 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26710
26711 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
26712 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
26713 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
26714 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
26715 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
26716 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
26717 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
26718 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
26719 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
26720 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
26721 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
26722 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
26723 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
26724 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26725 (SINGLE_THREAD_BY_GLOBAL): Define.
26726 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26727 Likewise.
26728 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26729 Likewise.
26730 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26731 Likewise.
26732 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26733 Likewise.
26734 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
26735 (SINGLE_THREAD_BY_GLOBAL): Likewise.
26736 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26737 Likewise.
26738
26739 2017-10-11 Andreas Schwab <schwab@suse.de>
26740
26741 * nis/Makefile (aux): Remove.
26742 * nscd/Makefile (aux): Add nscd_hash.
26743 (nscd-modules): Likewise.
26744 ($(objpfx)nscd): Don't depend on libnsl.
26745 * nscd/nscd_hash.c: New file.
26746 * nscd/nscd_hash.h: Likewise.
26747 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
26748 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
26749 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
26750 instead of <nis/rpcsvc/nis.h>.
26751 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
26752
26753 2017-10-11 Florian Weimer <fweimer@redhat.com>
26754
26755 [BZ #22078]
26756 Avoid large NSS buffers with many addresses, aliases.
26757 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
26758 using dynarrays and struct alloc_buffer.
26759 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
26760 (tst-nss-files-hosts-multi): Link with -ldl.
26761 * nss/tst-nss-files-hosts-multi.c: New file.
26762
26763 2017-10-11 Florian Weimer <fweimer@redhat.com>
26764
26765 [BZ #18023]
26766 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
26767 scratch_buffer. Eliminate gotos.
26768
26769 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26770
26771 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
26772 libm_alias_ldouble_other.
26773 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
26774 undefine and redefine.
26775 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
26776 (exp10l): Do not define here.
26777 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
26778 (weak_alias): Undefine and redefine.
26779 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
26780 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
26781 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
26782 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
26783
26784 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
26785 [!__fma] (fma): Define using libm_alias_double.
26786 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
26787 [!__fmaf] (fmaf): Define using libm_alias_float.
26788 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
26789 (fmal): Define using libm_alias_ldouble.
26790
26791 2017-10-10 Joseph Myers <joseph@codesourcery.com>
26792
26793 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
26794 New macro.
26795 (libm_alias_double_other): Likewise.
26796 (libm_alias_double_r): Use libm_alias_double_other_r.
26797 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
26798 New macro.
26799 (libm_alias_float_other): Likewise.
26800 (libm_alias_float_r): Use libm_alias_float_other_r.
26801 * sysdeps/generic/libm-alias-float128.h
26802 (libm_alias_float128_other_r): New macro.
26803 (libm_alias_float128_other): Likewise.
26804 (libm_alias_float128_r): Use libm_alias_float128_other_r.
26805 * sysdeps/generic/libm-alias-ldouble.h
26806 (libm_alias_ldouble_other_r): New macro.
26807 (libm_alias_ldouble_other): Likewise.
26808 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
26809 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
26810 (libm_alias_double_other_r): New macro.
26811 (libm_alias_double_other): Likewise.
26812 (libm_alias_double_r): Use libm_alias_double_other_r.
26813 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
26814 (libm_alias_ldouble_other_r): New macro.
26815 (libm_alias_ldouble_other): Likewise.
26816 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
26817 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
26818 [!USE_AS_COMPAT]: Use libm_alias_double_other.
26819 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
26820 [!USE_AS_COMPAT]: Use libm_alias_float_other.
26821 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
26822 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
26823 * math/w_exp2f.c: Use libm_alias_float_other.
26824 * math/w_expf.c: Likewise.
26825 * math/w_log2f.c: Likewise.
26826 * math/w_logf.c: Likewise.
26827 * math/w_powf.c: Likewise.
26828 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
26829 [!__exp2f]: Use libm_alias_float_other.
26830 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
26831 [!__expf]: Use libm_alias_float_other.
26832 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
26833 [!__log2f]: Use libm_alias_float_other.
26834 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
26835 [!__logf]: Use libm_alias_float_other.
26836 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
26837 [!__powf]: Use libm_alias_float_other.
26838
26839 2017-10-10 Florian Weimer <fweimer@redhat.com>
26840
26841 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
26842 function.
26843 (_nss_files_gethostbyname3_r): Call it.
26844
26845 2017-10-09 Joseph Myers <joseph@codesourcery.com>
26846
26847 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
26848 error. Remove default definition of declare_mgen_alias.
26849 [!declare_mgen_alias_r]: Likewise.
26850 * sysdeps/generic/math-type-macros-double.h
26851 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
26852 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
26853 (declare_mgen_alias_r): Likewise.
26854 * sysdeps/generic/math-type-macros-float128.h
26855 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
26856 * sysdeps/generic/math-type-macros-ldouble.h
26857 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
26858 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
26859 macro.
26860 (declare_mgen_alias_r_s): Likewise.
26861 (declare_mgen_alias_r): Likewise.
26862 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
26863 (lgamma_r): Define using libm_alias_double_r.
26864 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
26865 (lgammaf_r): Define using libm_alias_float_r.
26866 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
26867 (lgammal_r): Define using libm_alias_ldouble_r.
26868 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
26869 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
26870
26871 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26872
26873 * lib/glob.c (__glob_pattern_type): Remove now-spurious
26874 extern declaration.
26875
26876 2017-10-09 Joseph Myers <joseph@codesourcery.com>
26877
26878 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
26879
26880 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
26881
26882 [BZ #21326]
26883 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
26884 [__cplusplus >= 201103] (__USE_ISOC99): Define.
26885 * math/Makefile (test-math-cxx11): New test.
26886 * math/test-math-cxx11.cc: New file.
26887
26888 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
26889
26890 * login/openpty.c (openpty): Close slave pty file descriptor on error.
26891
26892 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
26893 call to allocate the slave pty file descriptor.
26894
26895 2017-10-06 Joseph Myers <joseph@codesourcery.com>
26896
26897 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
26898 [!__fma] (fma): Define using libm_alias_double.
26899 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
26900 [!__fma] (fma): Define using libm_alias_double.
26901
26902 * sysdeps/ieee754/float128/float128_private.h: Include
26903 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
26904 (libm_alias_ldouble_r): Undefine and redefine.
26905 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
26906 <libm-alias-ldouble.h>.
26907 (asinhl): Define using libm_alias_ldouble.
26908 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
26909 <libm-alias-ldouble.h>.
26910 (atanl): Define using libm_alias_ldouble.
26911 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
26912 <libm-alias-ldouble.h>.
26913 (cbrtl): Define using libm_alias_ldouble.
26914 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
26915 <libm-alias-ldouble.h>.
26916 (ceill): Define using libm_alias_ldouble.
26917 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
26918 <libm-alias-ldouble.h>.
26919 (copysignl): Define using libm_alias_ldouble.
26920 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
26921 <libm-alias-ldouble.h>.
26922 (cosl): Define using libm_alias_ldouble.
26923 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
26924 <libm-alias-ldouble.h>.
26925 (erfl): Define using libm_alias_ldouble.
26926 (erfcl): Likewise.
26927 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
26928 <libm-alias-ldouble.h>.
26929 (expm1l): Define using libm_alias_ldouble.
26930 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
26931 <libm-alias-ldouble.h>.
26932 (fabsl): Define using libm_alias_ldouble.
26933 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
26934 <libm-alias-ldouble.h>.
26935 (floorl): Define using libm_alias_ldouble.
26936 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
26937 <libm-alias-ldouble.h>.
26938 (fmal): Define using libm_alias_ldouble.
26939 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
26940 <libm-alias-ldouble.h>.
26941 (frexpl): Define using libm_alias_ldouble.
26942 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
26943 libm_alias_ldouble.
26944 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
26945 <libm-alias-ldouble.h>.
26946 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
26947 libm_alias_ldouble.
26948 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
26949 <libm-alias-ldouble.h>.
26950 (getpayloadl): Define using libm_alias_ldouble.
26951 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
26952 <libm-alias-ldouble.h>.
26953 (llrintl): Define using libm_alias_ldouble.
26954 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
26955 <libm-alias-ldouble.h>.
26956 (llroundl): Define using libm_alias_ldouble.
26957 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
26958 <libm-alias-ldouble.h>.
26959 (logbl): Define using libm_alias_ldouble.
26960 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
26961 <libm-alias-ldouble.h>.
26962 (lrintl): Define using libm_alias_ldouble.
26963 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
26964 <libm-alias-ldouble.h>.
26965 (lroundl): Define using libm_alias_ldouble.
26966 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
26967 <libm-alias-ldouble.h>.
26968 (modfl): Define using libm_alias_ldouble.
26969 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
26970 <libm-alias-ldouble.h>.
26971 (nearbyintl): Define using libm_alias_ldouble.
26972 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
26973 <libm-alias-ldouble.h>.
26974 (nextafterl): Define using libm_alias_ldouble.
26975 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
26976 <libm-alias-ldouble.h>.
26977 (nextupl): Define using libm_alias_ldouble.
26978 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
26979 <libm-alias-ldouble.h>.
26980 (remquol): Define using libm_alias_ldouble.
26981 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
26982 <libm-alias-ldouble.h>.
26983 (rintl): Define using libm_alias_ldouble.
26984 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
26985 <libm-alias-ldouble.h>.
26986 (roundevenl): Define using libm_alias_ldouble.
26987 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
26988 <libm-alias-ldouble.h>.
26989 (roundl): Define using libm_alias_ldouble.
26990 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
26991 using libm_alias_ldouble.
26992 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
26993 <libm-alias-ldouble.h>.
26994 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
26995 Define using libm_alias_ldouble.
26996 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
26997 <libm-alias-ldouble.h>.
26998 (sincosl): Define using libm_alias_ldouble.
26999 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27000 <libm-alias-ldouble.h>.
27001 (sinl): Define using libm_alias_ldouble.
27002 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27003 <libm-alias-ldouble.h>.
27004 (tanhl): Define using libm_alias_ldouble.
27005 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27006 <libm-alias-ldouble.h>.
27007 (tanl): Define using libm_alias_ldouble.
27008 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27009 <libm-alias-ldouble.h>.
27010 (totalorderl): Define using libm_alias_ldouble.
27011 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27012 <libm-alias-ldouble.h>.
27013 (totalordermagl): Define using libm_alias_ldouble.
27014 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27015 <libm-alias-ldouble.h>.
27016 (truncl): Define using libm_alias_ldouble.
27017 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27018 libm_alias_ldouble.
27019 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27020 libm_alias_ldouble.
27021 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27022 <libm-alias-ldouble.h>.
27023 (weak_alias): Do not undefine and redefine.
27024 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27025 (copysignl): Define with long_double_symbol only if [IS_IN
27026 (libc)].
27027 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27028 <libm-alias-ldouble.h>.
27029 (weak_alias): Do not undefine and redefine.
27030 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27031 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27032 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27033 <libm-alias-ldouble.h>.
27034 (weak_alias): Do not undefine and redefine.
27035 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27036 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27037 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27038 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27039 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27040 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27041 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27042 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27043 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27044 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27045 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27046 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27047 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27048 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27049 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27050 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27051 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27052 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27053 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27054 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27055 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27056 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27057 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27058 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27059 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27060 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27061
27062 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27063
27064 [BZ #22111]
27065 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27066 (tcache_thread_freeres): Set tcache_shutting_down before
27067 freeing the tcache.
27068 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27069 * malloc/tst-malloc-tcache-leak.c: New file.
27070
27071 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27072
27073 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27074 back to powerpc32 file.
27075 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27076 (memrchr): Add __memrchr_power8 to ifunc list.
27077 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27078 extra bytes for unaligned inputs.
27079
27080 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27081
27082 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27083 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27084 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27085 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27086 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27087
27088 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27089
27090 * sysdeps/arm/libm-test-ulps: Update.
27091
27092 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27093 <libm-alias-ldouble.h>.
27094 (asinhl): Define using libm_alias_ldouble.
27095 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27096 <libm-alias-ldouble.h>.
27097 (cbrtl): Define using libm_alias_ldouble.
27098 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27099 <libm-alias-ldouble.h>.
27100 (copysignl): Define using libm_alias_ldouble.
27101 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27102 <libm-alias-ldouble.h>.
27103 (cosl): Define using libm_alias_ldouble.
27104 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27105 <libm-alias-ldouble.h>.
27106 (erfl): Define using libm_alias_ldouble.
27107 (erfcl): Likewise.
27108 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27109 <libm-alias-ldouble.h>.
27110 (fmal): Define using libm_alias_ldouble.
27111 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27112 <libm-alias-ldouble.h>.
27113 (frexpl): Define using libm_alias_ldouble.
27114 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27115 libm_alias_ldouble.
27116 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27117 <libm-alias-ldouble.h>.
27118 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27119 libm_alias_ldouble.
27120 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27121 <libm-alias-ldouble.h>.
27122 (getpayloadl): Define using libm_alias_ldouble.
27123 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27124 <libm-alias-ldouble.h>.
27125 (llrintl): Define using libm_alias_ldouble.
27126 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27127 <libm-alias-ldouble.h>.
27128 (llroundl): Define using libm_alias_ldouble.
27129 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27130 <libm-alias-ldouble.h>.
27131 (lrintl): Define using libm_alias_ldouble.
27132 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27133 <libm-alias-ldouble.h>.
27134 (lroundl): Define using libm_alias_ldouble.
27135 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27136 <libm-alias-ldouble.h>.
27137 (modfl): Define using libm_alias_ldouble.
27138 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27139 <libm-alias-ldouble.h>.
27140 (nextupl): Define using libm_alias_ldouble.
27141 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27142 <libm-alias-ldouble.h>.
27143 (remquol): Define using libm_alias_ldouble.
27144 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27145 <libm-alias-ldouble.h>.
27146 (roundevenl): Define using libm_alias_ldouble.
27147 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27148 <libm-alias-ldouble.h>.
27149 (roundl): Define using libm_alias_ldouble.
27150 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27151 using libm_alias_ldouble.
27152 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27153 <libm-alias-ldouble.h>.
27154 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27155 <libm-alias-ldouble.h>.
27156 (setpayloadsigl): Define using libm_alias_ldouble.
27157 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27158 <libm-alias-ldouble.h>.
27159 (sincosl): Define using libm_alias_ldouble.
27160 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27161 <libm-alias-ldouble.h>.
27162 (sinl): Define using libm_alias_ldouble.
27163 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27164 <libm-alias-ldouble.h>.
27165 (tanhl): Define using libm_alias_ldouble.
27166 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27167 <libm-alias-ldouble.h>.
27168 (tanl): Define using libm_alias_ldouble.
27169 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27170 <libm-alias-ldouble.h>.
27171 (totalorderl): Define using libm_alias_ldouble.
27172 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27173 <libm-alias-ldouble.h>.
27174 (totalordermagl): Define using libm_alias_ldouble.
27175 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27176 libm_alias_ldouble.
27177 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27178 libm_alias_ldouble.
27179
27180 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27181
27182 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27183 memmove_falkor.
27184 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27185 (__libc_ifunc_impl_list): Likewise.
27186 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27187 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27188
27189 * benchtests/bench-memmove-walk.c: New file.
27190 * benchtests/Makefile (string-benchset): Add it.
27191
27192 * benchtests/bench-memset-walk.c: New file.
27193 * benchtests/Makefile (string-benchset): Add it.
27194
27195 * benchtests/bench-memcpy-walk.c: New file.
27196 * benchtests/Makefile (string-benchset): Add it.
27197
27198 2017-10-05 Florian Weimer <fweimer@redhat.com>
27199
27200 nscd: Eliminate compilation time dependency in the build output.
27201 * nscd/nscd_stat.c (STATDATA_VERSION)
27202 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27203 (STATDATA_VERSION_FULL): New macro definitions.
27204 (compilation): Remove.
27205 (struct statdata): Adjust version member.
27206 (send_stats): Set version from STATDATA_VERSION_FULL.
27207 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27208
27209 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27210
27211 * configure.ac (--enable-add-ons): Remove option.
27212 (machine): Do not mention add-ons in comment.
27213 (LIBC_PRECONFIGURE): Likewise.
27214 (add_ons): Remove variable and sanity checks and logic to locate
27215 add-ons.
27216 (add_ons_automatic): Remove variable.
27217 (configured_add_ons): Likewise.
27218 (add_ons_sfx): Likewise.
27219 (add_ons_pfx): Likewise.
27220 (add_on_subdirs): Likewise.
27221 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27222 consideration of add-ons in Implies handling.
27223 (sysdeps_add_ons): Likewise.
27224 * configure: Regenerated.
27225 * libidn/configure.ac: Remove.
27226 * libidn/configure: Likewise.
27227 * sysdeps/unix/inet/configure.ac: New file.
27228 * sysdeps/unix/inet/configure: New generated file.
27229 * sysdeps/unix/inet/Subdirs: Add libidn.
27230 * Makeconfig (sysdeps-srcdirs): Remove variable.
27231 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27232 ($(common-objpfx)config.status): Do not depend on add-on files.
27233 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27234 comment.
27235 (all-subdirs): Do not include $(add-on-subdirs).
27236 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27237 * config.make.in (add-ons): Remove variable.
27238 (add-on-subdirs): Likewise.
27239 (sysdeps-add-ons): Likewise.
27240 * manual/Makefile (add-chapters): Remove.
27241 ($(objpfx)texis): Do not depend on $(add-chapters).
27242 (nonexamples): Do not handle $(add-chapters).
27243 (examples): Do not handle $(add-ons).
27244 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27245 libc-texinfo.sh.
27246 * manual/install.texi (Installation): Do not mention add-ons.
27247 (--enable-add-ons): Do not document configure option.
27248 * INSTALL: Regenerated.
27249 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27250 * manual/maint.texi (Hierarchy Conventions): Do not mention
27251 add-ons.
27252 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27253 --enable-add-ons.
27254 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27255 add-ons.
27256 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27257 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27258
27259 2017-10-05 Andreas Schwab <schwab@suse.de>
27260
27261 [BZ #15142]
27262 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27263 (_IO_flush_all_lockp): Always lock list_all_lock.
27264 (_IO_flush_all_linebuffered): Likewise.
27265 (_IO_unbuffer_all): Likewise.
27266
27267 2017-10-05 Florian Weimer <fweimer@redhat.com>
27268
27269 [BZ #15436]
27270 Do not flush stdio streams on abort.
27271 * stdlib/abort.c (fflush): Remove macro definition.
27272 (abort): Remove stages related to stdio flushing.
27273
27274 2017-10-05 Florian Weimer <fweimer@redhat.com>
27275
27276 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27277
27278 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27279
27280 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27281
27282 2017-10-05 Florian Weimer <fweimer@redhat.com>
27283
27284 * support/support_format_hostent.c (support_format_hostent): Add
27285 more error information for NETDB_INTERNAL.
27286
27287 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27288
27289 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27290 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27291 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27292 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27293 AC_DEFINE if multi-arch is enabled.
27294 * sysdeps/i386/configure: Regenerated.
27295
27296 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27297
27298 * Makeconfig (+link-static-before-libc): Use
27299 $(DEFAULT-LDFLAGS-$(@F)).
27300 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27301 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27302 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27303
27304 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27305
27306 * elf/Makefile (tests): Add tst-main1.
27307 (modules-names): Add tst-main1mod.
27308 ($(objpfx)tst-main1): New.
27309 (CRT-tst-main1): Likewise.
27310 (LDFLAGS-tst-main1): Likewise.
27311 (LDLIBS-tst-main1): Likewise.
27312 (tst-main1mod.so-no-z-defs): Likewise.
27313 * elf/tst-main1.c: New file.
27314 * elf/tst-main1mod.c: Likewise.
27315
27316 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27317
27318 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27319
27320 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27321
27322 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27323 (fma): Define using libm_alias_double.
27324 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27325 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27326 <math_ldbl_opt.h>.
27327 (fmal): Do not define as compat symbol here.
27328 * sysdeps/alpha/fpu/s_fma.c: New file.
27329
27330 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27331
27332 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27333
27334 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27335
27336 [BZ #22229]
27337 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27338 <math_ldbl_opt.h>
27339 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27340 and libc.
27341 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27342 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27343 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27344 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27345 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27346 Include <math_ldbl_opt.h>
27347 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27348 and libc.
27349 (compat_symbol): Undefine and redefine.
27350 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27351 <math_ldbl_opt.h>
27352 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27353 (compat_symbol): Undefine and redefine.
27354 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27355 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27356 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27357 GLIBC_2_1 for libm.
27358 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27359 GLIBC_2.0 copysignl symbol.
27360 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27361 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27362
27363 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27364
27365 2017-10-04 Florian Weimer <fweimer@redhat.com>
27366
27367 * scripts/check-local-headers.sh: Ignore nspr4 header file
27368 directory in addition to nspr.
27369
27370 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27371
27372 [BZ #17956]
27373 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27374 * configure: Regenerate.
27375 * crypt/Makefile (nss-cpp-flags): New variable.
27376 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27377 (CPPFLAGS-md5-crypt.c): Use it.
27378 * scripts/check-local-headers.sh: Ignore nspr header file
27379 directory.
27380
27381 2017-10-04 Andreas Schwab <schwab@suse.de>
27382
27383 * nis/Makefile (services): Remove compat.
27384 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27385 ($(objpfx)libnss_compat.so): Remove rule.
27386 * nis/Versions (libnss_compat): Remove.
27387 * nss/Makefile (services): Add compat.
27388 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27389 * nss/Versions (libnss_compat): Define.
27390 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27391 Don't include <rpc/types.h>. Replace bool_t by bool.
27392 * nss/nss_compat/compat-initgroups.c: Likewise.
27393 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27394 instead of <rpcsrv/ypclnt.h>.
27395 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27396 yp_get_default_domain.
27397 * nss/nss_compat/compat-pwd.c: Likewise.
27398 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27399 yp_get_default_domain.
27400 * nss/nss_compat/nisdomain.c: New file.
27401 * nss/nss_compat/nisdomain.h: Likewise.
27402
27403 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27404
27405 [BZ #22244]
27406 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27407 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27408
27409 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27410
27411 [BZ #22243]
27412 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
27413 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
27414
27415 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27416
27417 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
27418 "movl main@GOTOFF(%ebx), %eax".
27419
27420 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27421
27422 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
27423 allow undefined _DYNAMIC in PIE libc.a.
27424 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27425 Likewse.
27426
27427 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27428
27429 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
27430 check _DYNAMIC.
27431
27432 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27433
27434 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
27435 check _DYNAMIC.
27436
27437 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27438
27439 * math/test-math-iscanonical.cc (error): Replace bool with int.
27440
27441 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27442
27443 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
27444 (modf): Define using libm_alias_double, only if [!__modf].
27445 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
27446 <libm-alias-double.h>.
27447 (modf): Define using libm_alias_double, only if [!__modf].
27448 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
27449 compat symbol here.
27450 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
27451 (weak_alias): Do not undefine and redefine.
27452 (strong_alias): Likewise.
27453 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
27454 (weak_alias): Likewise.
27455 (strong_alias): Likewise.
27456
27457 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
27458 (logb): Define using libm_alias_double, only if [!__logb].
27459 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
27460 <libm-alias-double.h>.
27461 (logb): Define using libm_alias_double, only if [!__logb].
27462 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
27463 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
27464 (weak_alias): Do not undefine and redefine.
27465 (strong_alias): Likewise.
27466 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
27467 (weak_alias): Likewise.
27468 (strong_alias): Likewise.
27469
27470 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27471
27472 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
27473 Check SHARED instead PIC.
27474
27475 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27476
27477 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
27478 [!__fmaf] (fmaf): Define using libm_alias_float.
27479
27480 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
27481 (frexp): Define using libm_alias_double.
27482 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
27483 <libm-alias-double.h>.
27484 (frexp): Define using libm_alias_double.
27485 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
27486 compat symbol here.
27487
27488 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27489
27490 [BZ #22235]
27491 * math/math.h: Trivial fix for unbalanced parentheses in comment.
27492 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
27493 (CFLAGS-test-math-iscanonical.cc): New variable.
27494 * math/test-math-iscanonical.cc: New file.
27495 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
27496 Provide a C++ implementation based on function overloading,
27497 rather than using __MATH_TG, which uses C-only builtins.
27498 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
27499 Likewise.
27500 * sysdeps/powerpc/powerpc64le/Makefile
27501 (CFLAGS-test-math-iscanonical.cc): New variable.
27502
27503 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27504
27505 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
27506 (ceil): Define using libm_alias_double.
27507 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
27508 (floor): Define using libm_alias_double.
27509 * sysdeps/ieee754/dbl-64/s_llround.c: Include
27510 <libm-alias-double.h>.
27511 (llround): Define using libm_alias_double.
27512 * sysdeps/ieee754/dbl-64/s_lround.c: Include
27513 <libm-alias-double.h>.
27514 (lround): Define using libm_alias_double.
27515 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
27516 <libm-alias-double.h>.
27517 (nearbyint): Define using libm_alias_double.
27518 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
27519 <libm-alias-double.h>.
27520 (remquo): Define using libm_alias_double.
27521 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
27522 (rint): Define using libm_alias_double.
27523 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
27524 (round): Define using libm_alias_double.
27525 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
27526 (trunc): Define using libm_alias_double.
27527 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
27528 <libm-alias-double.h>.
27529 (ceil): Define using libm_alias_double.
27530 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
27531 <libm-alias-double.h>.
27532 (floor): Define using libm_alias_double.
27533 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
27534 <libm-alias-double.h>.
27535 (llround): Define using libm_alias_double.
27536 [_LP64] (lround): Likewise.
27537 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
27538 <libm-alias-double.h>.
27539 [!_LP64] (lround): Define using libm_alias_double.
27540 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
27541 <libm-alias-double.h>.
27542 (nearbyint): Define using libm_alias_double.
27543 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
27544 <libm-alias-double.h>.
27545 (remquo): Define using libm_alias_double.
27546 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
27547 <libm-alias-double.h>.
27548 (rint): Define using libm_alias_double.
27549 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
27550 <libm-alias-double.h>.
27551 (round): Define using libm_alias_double.
27552 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
27553 <libm-alias-double.h>.
27554 (trunc): Define using libm_alias_double.
27555 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
27556 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
27557 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
27558 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
27559 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
27560 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
27561 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
27562 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
27563 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
27564
27565 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27566
27567 * math/w_remainder.c: New file.
27568 * math/w_remainderf.c: New file.
27569 * math/w_remainderl.c: New file.
27570
27571 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27572
27573 * elf/rtld.c (BOOTSTRAP_MAP): New.
27574 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
27575 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27576 Likewise.
27577 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27578 Likewise.
27579 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27580 Likewise.
27581
27582 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27583
27584 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
27585 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
27586 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
27587 rtld_hidden_data_ver): Define to empty.
27588 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
27589 __assert_perror_fail): Likewise.
27590 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27591 (__rewinddir): Likewise.
27592 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27593 (__profile_frequency): Likewise.
27594 * include/setjmp.h (__sigsetjmp): Likewise.
27595 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
27596 __libc_sigaction): Likewise.
27597 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
27598 not set hidden attribute.
27599 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
27600 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
27601 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
27602 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
27603 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
27604 __fxstatat64): Likewise.
27605 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27606 (__uname): Likewise.
27607 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27608 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
27609 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
27610 (NO_RTLD_HIDDEN): Set.
27611 * sysdeps/mach/hurd/configure: Refresh.
27612 * config.h.in: Refresh.
27613
27614 2017-10-02 Joseph Myers <joseph@codesourcery.com>
27615
27616 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
27617 (atan): Define using libm_alias_double.
27618 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
27619 (tan): Define using libm_alias_double.
27620 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
27621 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
27622
27623 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
27624 define as weak alias of __atan. Do not define any aliases if
27625 [__atan].
27626 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
27627 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
27628 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
27629 as weak alias of __tan. Do not define any aliases if [__tan].
27630 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
27631 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
27632 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
27633 __atan.
27634 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
27635 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
27636 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
27637 and define as weak alias of __atan.
27638 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
27639 __atan.
27640 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
27641 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
27642 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
27643 define as weak alias of __tan.
27644
27645 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27646
27647 * math/w_lgamma.c: New file.
27648 * math/w_lgammaf.c: New file.
27649 * math/w_lgammal.c: New file.
27650
27651 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27652
27653 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
27654 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
27655 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
27656 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
27657 * sysdeps/ieee754/flt-32/w_logf.c: New file.
27658 * sysdeps/ieee754/flt-32/w_powf.c: New file.
27659 * sysdeps/i386/fpu/w_log2f.c: New file.
27660 * sysdeps/i386/fpu/w_logf.c: New file.
27661 * sysdeps/i386/fpu/w_powf.c: New file.
27662 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
27663 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
27664 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
27665
27666 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27667 H.J. Lu <hongjiu.lu@intel.com>
27668
27669 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
27670 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
27671 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
27672 * sysdeps/ieee754/flt-32/w_expf.c: New file.
27673 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
27674 the new expf code.
27675 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
27676 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
27677 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
27678 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
27679 * sysdeps/i386/fpu/w_exp2f.c: New file.
27680 * sysdeps/i386/fpu/w_expf.c: New file.
27681 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
27682 * sysdeps/x86_64/fpu/w_expf.c: New file.
27683
27684 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27685
27686 * math/Versions (logf): New libm symbol at GLIBC_2.27.
27687 (log2f): Likewise.
27688 (powf): Likewise.
27689 * math/w_log2f.c: New file.
27690 * math/w_logf.c: New file.
27691 * math/w_powf.c: New file.
27692 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
27693 * math/w_logf_compat.c (__logf_compat): Likewise.
27694 * math/w_powf_compat.c (__powf_compat): Likewise.
27695 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
27696 * sysdeps/ia64/fpu/e_logf.S: Likewise.
27697 * sysdeps/ia64/fpu/e_powf.S: Likewise.
27698 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27699 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27700 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27701 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27702 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27703 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27704 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27705 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27706 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27707 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27708 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27709 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27710 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27711 Likewise.
27712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27713 Likewise.
27714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27715 Likewise.
27716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27717 Likewise.
27718 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27719 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27720 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27721 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27722 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27723 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27724 Likewise.
27725 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27726 Likewise.
27727 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27728 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27729 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27730
27731 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27732
27733 * sysdeps/powerpc/powerpc64/multiarch/Makefile
27734 (sysdep_routines): Add memrchr_power8.
27735 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27736 (memrchr): Add __memrchr_power8 to list of memrchr functions.
27737 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
27738 New file.
27739 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27740 (memrchr): Add __memrchr_power8 to ifunc list.
27741 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
27742
27743 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27744
27745 [BZ #18822]
27746 * sysdeps/unix/sysv/linux/posix_fadvise64.c
27747 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
27748 libc_hidden_def.
27749 * sysdeps/unix/sysv/linux/posix_fallocate64.c
27750 (__posix_fallocate64_l64): Likewise.
27751
27752 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27753
27754 [BZ #18822]
27755 * sysdeps/unix/sysv/linux/sched_setaffinity.c
27756 (__sched_setaffinity_new): Add libc_hidden_proto and
27757 libc_hidden_def.
27758
27759 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27760
27761 [BZ #18822]
27762 * include/glob.h (__glob64): Add libc_hidden_proto.
27763 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
27764 libc_hidden_def.
27765
27766 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27767
27768 [BZ #18822]
27769 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
27770 attribute_hidden.
27771
27772 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27773
27774 [BZ #18822]
27775 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
27776
27777 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27778
27779 [BZ #18822]
27780 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
27781 libc_hidden_def.
27782
27783 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27784
27785 [BZ #18822]
27786 * csu/version.c (__libc_print_version): Add attribute_hidden.
27787
27788 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27789
27790 [BZ #18822]
27791 * include/libc-internal.h (__init_misc): Add attribute_hidden.
27792
27793 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27794
27795 [BZ #18822]
27796 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
27797
27798 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27799
27800 [BZ #18822]
27801 * nscd/nscd_helper.c (__nis_hash): New prototype.
27802
27803 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27804
27805 [BZ #18822]
27806 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
27807 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
27808 libc_hidden_def.
27809 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
27810 * termios/tcgetattr.c (__tcgetattr): Likewise.
27811
27812 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27813
27814 [BZ #18822]
27815 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
27816 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
27817 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
27818 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
27819 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
27820
27821 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27822
27823 [BZ #18822]
27824 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
27825
27826 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27827
27828 [BZ #18822]
27829 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
27830 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
27831
27832 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27833
27834 [BZ #18822]
27835 * intl/hash-string.h (__hash_string): Add attribute_hidden.
27836
27837 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27838
27839 [BZ #18822]
27840 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
27841 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
27842
27843 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27844
27845 [BZ #18822]
27846 * include/ifreq.h: New file.
27847 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
27848 (__ifreq): Likewise.
27849 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
27850 (__ifreq): Likewise.
27851
27852 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27853
27854 [BZ #18822]
27855 * include/idna.h: New file.
27856 * inet/getnameinfo.c: Include <idna.h> instead of
27857 <libidn/idna.h>.
27858 (__idna_to_unicode_lzlz): Removed.
27859 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
27860 <libidn/idna.h>.
27861 (__idna_to_ascii_lz): Removed.
27862 (__idna_to_unicode_lzlz): Likewise.
27863
27864 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27865
27866 [BZ #18822]
27867 * include/plural-exp.h: New file.
27868 * intl/plural-exp.c: Include <plural-exp.h> instead of
27869 "plural-exp.h".
27870
27871 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27872
27873 [BZ #18822]
27874 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
27875 "getsourcefilter.h".
27876 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
27877 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
27878 "getsourcefilter.h".
27879 (__get_sol): Removed.
27880
27881 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27882
27883 [BZ #18822]
27884 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
27885 to ...
27886 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
27887
27888 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27889
27890 [BZ #18822]
27891 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
27892 attribute_hidden.
27893
27894 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27895
27896 [BZ #18822]
27897 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
27898
27899 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27900
27901 [BZ #18822]
27902 * include/search.h (__tdestroy): Add libc_hidden_proto.
27903 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
27904
27905 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27906
27907 [BZ #18822]
27908 * include/assert.h (__assert_fail_base): Add attribute_hidden.
27909
27910 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27911
27912 [BZ #18822]
27913 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
27914 attribute_hidden.
27915
27916 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27917
27918 [BZ #18822]
27919 * include/signal.h (__kill): Add libc_hidden_proto.
27920 (__sigblock): Likewise.
27921 (__sigprocmask): Likewise.
27922 (__sigaltstack): Likewise.
27923 * signal/kill.c (__kill): Add libc_hidden_def.
27924 * signal/sigblock.c (__sigblock): Likewise.
27925 * signal/sigprocmask.c (__sigprocmask): Likewise.
27926 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
27927 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
27928 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
27929 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
27930 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
27931 Likewise.
27932 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
27933 Likewise.
27934 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
27935 (__sigprocmask): Likewise.
27936 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
27937 Likewise.
27938 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
27939 (__sigprocmask): Likewise.
27940 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
27941 Likewise.
27942
27943 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27944
27945 [BZ #18822]
27946 * include/string.h (__strsep): Add libc_hidden_proto.
27947 * string/strsep.c (__strsep): Add libc_hidden_def.
27948
27949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27950
27951 [BZ #18822]
27952 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
27953 attribute_hidden.
27954 (__spawni): Likewise.
27955
27956 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27957
27958 [BZ #18822]
27959 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
27960 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
27961 libc_hidden_def.
27962
27963 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27964
27965 [BZ #18822]
27966 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
27967
27968 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27969
27970 [BZ #18822]
27971 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
27972 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
27973 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
27974 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
27975 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
27976 Likewise.
27977 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
27978 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
27979
27980 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27981
27982 [BZ #18822]
27983 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
27984 (__dcigettext): Likewise.
27985
27986 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27987
27988 [BZ #18822]
27989 * include/sys/sysinfo.h (__get_nprocs_conf): Add
27990 libc_hidden_proto.
27991 (__get_nprocs): Likewise.
27992 (__get_phys_pages): Likewise.
27993 (__get_avphys_pages): Likewise.
27994 (__get_child_max): Add attribute_hidden.
27995 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
27996 (__get_nprocs): Likewise.
27997 (__get_phys_pages): Likewise.
27998 (__get_avphys_pages): Likewise.
27999 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28000 libc_hidden_def.
28001 (__get_nprocs): Likewise.
28002 (__get_phys_pages): Likewise.
28003 (__get_avphys_pages): Likewise.
28004 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28005 libc_hidden_def.
28006 (__get_nprocs_conf): Likewise.
28007 (__get_phys_pages): Likewise.
28008 (__get_avphys_pages): Likewise.
28009
28010 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28011
28012 [BZ #18822]
28013 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28014 attribute_hidden.
28015 (__netlink_close): Likewise.
28016 (__netlink_free_handle): Likewise.
28017 (__netlink_request): Likewise.
28018
28019 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28020
28021 [BZ #18822]
28022 * include/rpc/rpc.h (__rpc_thread_variables): Add
28023 attribute_hidden.
28024 (__rpc_thread_svc_cleanup): Likewise.
28025 (__rpc_thread_clnt_cleanup): Likewise.
28026 (__rpc_thread_key_cleanup): Likewise.
28027
28028 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28029
28030 [BZ #18822]
28031 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28032 (__writev): Likewise.
28033 * misc/readv.c (__readv): Add libc_hidden_def.
28034 * misc/writev.c (__writev): Likewise.
28035 * sysdeps/posix/readv.c (__readv): Likewise.
28036 * sysdeps/posix/writev.c (__writev): Likewise.
28037 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28038 (__readv): Likewise.
28039 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28040 (__writev): Likewise.
28041
28042 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28043
28044 [BZ #18822]
28045 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28046 (__regcomp): Add libc_hidden_proto.
28047 (__regexec): Likewise.
28048 (__regfree): Likewise.
28049 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28050 (__regfree): Likewise.
28051 * posix/regexec.c (__regexec): Likewise.
28052
28053 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28054
28055 [BZ #18822]
28056 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28057 (__getutent): Likewise.
28058 (__getutid): Likewise.
28059 (__getutline): Likewise.
28060 (__pututline): Likewise.
28061 (__getutent_r): Likewise.
28062 (__getutid_r): Likewise.
28063 (__getutline_r): Likewise.
28064 (__utmpname): Add attribute_hidden.
28065 (__setutent): Likewise.
28066 (__endutent): Likewise.
28067 * login/getutent.c (__getutent): Add libc_hidden_def.
28068 * login/getutent_r.c (__getutent_r): Likewise.
28069 (__pututline): Likewise.
28070 * login/getutid.c (__getutid): Likewise.
28071 * login/getutid_r.c (__getutid_r): Likewise.
28072 * login/getutline.c (__getutline): Likewise.
28073 * login/getutline_r.c (__getutline_r): Likewise.
28074 * login/updwtmp.c (__updwtmp): Likewise.
28075
28076 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28077
28078 [BZ #18822]
28079 * include/dirent.h (__opendir): Always add attribute_hidden.
28080 (__fdopendir): Likewise.
28081 (__closedir): Likewise.
28082 (__readdir): Likewise.
28083 (__readdir64): Add libc_hidden_proto.
28084 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28085 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28086 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28087 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28088 New alias.
28089
28090 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28091
28092 [BZ #18822]
28093 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28094 * include/netdb.h (__gethostbyaddr_r): Likewise.
28095 (__gethostbyname_r): Likewise.
28096 (__gethostbyname2_r): Likewise.
28097 (__getnetbyaddr_r): Likewise.
28098 (__getnetbyname_r): Likewise.
28099 (__getservbyname_r): Likewise.
28100 (__getservbyport_r): Likewise.
28101 (__getprotobyname_r): Likewise.
28102 (__getprotobynumber_r): Likewise.
28103 (__getnetgrent_r): Likewise.
28104 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28105 (__getrpcbynumber_r): Likewise.
28106 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28107
28108 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28109
28110 [BZ #18822]
28111 * include/stdio.h (__fcloseall): Add attribute_hidden.
28112 (__getline): Likewise.
28113 (__path_search): Likewise.
28114 (__gen_tempname): Likewise.
28115 (__libc_message): Likewise.
28116 (__flockfile): Likewise.
28117 (__funlockfile): Likewise.
28118 (__fxprintf): Likewise.
28119 (__fxprintf_nocancel): Likewise.
28120
28121 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28122
28123 [BZ #18822]
28124 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28125 (__sgetsgent_r): Likewise.
28126
28127 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28128
28129 [BZ #18822]
28130 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28131 (__statfs64): Likewise.
28132 (__fstatfs64): Likewise.
28133 * include/sys/statvfs.h (__statvfs64): Likewise.
28134 (__fstatvfs64): Likewise.
28135 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28136 (__statfs_filesize_max): Likewise.
28137 (__statfs_symlinks): Likewise.
28138 (__statfs_chown_restricted): Likewise.
28139
28140 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28141
28142 [BZ #18822]
28143 * include/time.h (__tzstring): Add attribute_hidden.
28144 (__tzfile_read): Likewise.
28145 (__tzfile_compute): Likewise.
28146 (__tzfile_default): Likewise.
28147 (__tzset_parse_tz): Likewise.
28148 (__offtime): Likewise.
28149 (__asctime_r): Likewise.
28150 (__tzset): Likewise.
28151 (__tz_convert): Likewise.
28152 (__getdate_r): Likewise.
28153 (__getclktck): Likewise.
28154
28155 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28156
28157 [BZ #18822]
28158 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28159 (__nscd_unmap): Likewise.
28160 (__nscd_cache_search): Likewise.
28161 (__nscd_get_nl_timestamp): Likewise.
28162 (__nscd_getpwnam_r): Likewise.
28163 (__nscd_getpwuid_r): Likewise.
28164 (__nscd_getgrnam_r): Likewise.
28165 (__nscd_getgrgid_r): Likewise.
28166 (__nscd_gethostbyname_r): Likewise.
28167 (__nscd_gethostbyname2_r): Likewise.
28168 (__nscd_gethostbyaddr_r): Likewise.
28169 (__nscd_getai): Likewise.
28170 (__nscd_getgrouplist): Likewise.
28171 (__nscd_getservbyname_r): Likewise.
28172 (__nscd_getservbyport_r): Likewise.
28173 (__nscd_innetgr): Likewise.
28174 (__nscd_setnetgrent): Likewise.
28175
28176 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28177
28178 [BZ #18822]
28179 * include/gmp.h: Declare internal functions only if _ISOMAC is
28180 undefined.
28181 (__mpn_extract_double): Add attribute_hidden.
28182 (__mpn_extract_long_double): Likewise.
28183 (__mpn_extract_float128): Likewise.
28184 (__mpn_construct_float): Likewise.
28185 (__mpn_construct_double): Likewise.
28186 (__mpn_construct_long_double): Likewise.
28187 (__mpn_construct_float128): Likewise.
28188 (mpn_add_1): Likewise.
28189 (mpn_addmul_1): Likewise.
28190 (mpn_add_n): Likewise.
28191 (mpn_cmp): Likewise.
28192 (mpn_divrem): Likewise.
28193 (mpn_lshift): Likewise.
28194 (mpn_mul): Likewise.
28195 (mpn_mul_1): Likewise.
28196 (mpn_rshift): Likewise.
28197 (mpn_sub_1): Likewise.
28198 (mpn_submul_1): Likewise.
28199 (mpn_sub_n): Likewise.
28200
28201 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28202
28203 [BZ #18822]
28204 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28205 (__wcscat): Likewise.
28206 (__btowc): Likewise.
28207 (__wcrtomb): Likewise.
28208 (__mbsrtowcs): Likewise.
28209 (__wcsrtombs): Likewise.
28210 (__mbsnrtowcs): Likewise.
28211 (__wcsnrtombs): Likewise.
28212 (__wcsncpy): Likewise.
28213 (__wcpncpy): Likewise.
28214 (__wmemcpy): Likewise.
28215 (__wmempcpy): Likewise.
28216 (__wmemmove): Likewise.
28217 (__wcschrnul): Likewise.
28218 (__vfwscanf): Likewise.
28219 (__vswprintf): Likewise.
28220 (__fwprintf): Likewise.
28221 (__vfwprintf): Likewise.
28222
28223 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28224
28225 [BZ #18822]
28226 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28227 (__getgrgid_r): Likewise.
28228 (__getgrnam_r): Likewise.
28229 * include/pwd.h (__getpwuid_r): Likewise.
28230 (__getpwnam_r): Likewise.
28231 (__fgetpwent_r): Likewise.
28232 * include/shadow.h (__getspnam_r): Likewise.
28233 (__sgetspent_r): Likewise.
28234 (__fgetspent_r): Likewise.
28235
28236 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28237
28238 [BZ #18822]
28239 * include/unistd.h (__access): Add attribute_hidden.
28240 (__lseek64): Likewise.
28241 (__libc_pread64): Likewise.
28242 (__pipe2): Likewise.
28243 (__sleep): Likewise.
28244 (__chdir): Likewise.
28245 (__fchdir): Likewise.
28246 (__getcwd): Likewise.
28247 (__rmdir): Likewise.
28248 (__execvpe): Likewise.
28249 (__execve): Likewise.
28250 (__setsid): Likewise.
28251 (__getuid): Likewise.
28252 (__geteuid): Likewise.
28253 (__getgid): Likewise.
28254 (__getegid): Likewise.
28255 (__getgroups): Likewise.
28256 (__group_member): Likewise.
28257 (__ttyname_r): Likewise.
28258 (__isatty): Likewise.
28259 (__readlink): Likewise.
28260 (__unlink): Likewise.
28261 (__gethostname): Likewise.
28262 (__profil): Likewise.
28263 (__getdtablesize): Likewise.
28264 (__brk): Likewise.
28265 (__ftruncate): Likewise.
28266 (__ftruncate64): Likewise.
28267
28268 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28269
28270 [BZ #18822]
28271 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28272 * argp/argp-fs-xinl.c: Likewise.
28273 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28274 * argp/argp-parse.c: Include <argp.h>.
28275 * argp/argp-xinl.c: Likewise.
28276 * include/argp-fmtstream.h: New file.
28277 * include/argp.h (__argp_error): Add attribute_hidden.
28278 (__argp_failure): Likewise.
28279 (__argp_input): Likewise.
28280 (__argp_state_help): Likewise.
28281
28282 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28283
28284 [BZ #18822]
28285 * include/wchar.h (____wcstof_l_internal): New prototype.
28286 (____wcstod_l_internal): Likewise.
28287 (____wcstold_l_internal): Likewise.
28288 (____wcstol_l_internal): Likewise.
28289 (____wcstoul_l_internal): Likewise.
28290 (____wcstoll_l_internal): Likewise.
28291 (____wcstoull_l_internal): Likewise.
28292 (____wcstof128_l_internal): Likewise.
28293 * sysdeps/ieee754/float128/wcstof128.c
28294 (____wcstof128_l_internal): Removed.
28295 * sysdeps/ieee754/float128/wcstof128_l.c
28296 (____wcstof128_l_internal): Likewise.
28297 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28298 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28299 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28300 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28301 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28302 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28303 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28304 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28305 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28306 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28307
28308 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28309
28310 [BZ #18822]
28311 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28312 instead of <sys/statvfs.h>.
28313 (__internal_statvfs): Removed.
28314 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28315 instead of <sys/statvfs.h>.
28316 (__internal_statvfs64): Removed.
28317 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28318 "internal_statvfs.h" instead of <sys/statvfs.h>.
28319 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28320 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28321 instead of <sys/statvfs.h>.
28322 (__internal_statvfs): Removed.
28323 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28324 instead of <sys/statvfs.h>.
28325 (__internal_statvfs64): Removed.
28326
28327 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28328
28329 [BZ #18822]
28330 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28331 (__gconv_close): Likewise.
28332 (__gconv): Likewise.
28333 (__gconv_find_transform): Likewise.
28334 (__gconv_lookup_cache): Likewise.
28335 (__gconv_compare_alias_cache): Likewise.
28336 (__gconv_load_cache): Likewise.
28337 (__gconv_get_path): Likewise.
28338 (__gconv_close_transform): Likewise.
28339 (__gconv_release_cache): Likewise.
28340 (__gconv_find_shlib): Likewise.
28341 (__gconv_release_shlib): Likewise.
28342 (__gconv_get_builtin_trans): Likewise.
28343 (__gconv_compare_alias): Likewise.
28344 * include/dlfcn.h (_dlerror_run): Likewise.
28345 * include/stdio.h (__fortify_fail_abort): Likewise.
28346 * include/time.h (__tz_compute): Likewise.
28347 (__strptime_internal): Likewise.
28348 * intl/gettextP.h (_nl_find_domain): Likewise.
28349 (_nl_load_domain): Likewise.
28350 (_nl_find_msg): Likewise.
28351 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28352 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28353 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28354 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28355 (__gai_find_request): Likewise.
28356 (__gai_remove_request): Likewise.
28357 (__gai_notify): Likewise.
28358 (__gai_notify_only): Likewise.
28359 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28360 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28361 (_dl_non_dynamic_init): Likewise.
28362 (_dl_aux_init): Likewise.
28363 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28364 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28365 Likewise.
28366 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28367 (__wcsmbs_clone_conv): Likewise.
28368 (__wcsmbs_named_conv): Likewise.
28369
28370 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28371
28372 [BZ #18822]
28373 * include/stdlib.h (__random): Add attribute_hidden.
28374 (__random_r): Likewise.
28375 (__srandom_r): Likewise.
28376 (__initstate_r): Likewise.
28377 (__setstate_r): Likewise.
28378 (__erand48_r): Likewise.
28379 (__nrand48_r): Likewise.
28380 (__jrand48_r): Likewise.
28381 (__srand48_r): Likewise.
28382 (__seed48_r): Likewise.
28383 (__lcong48_r): Likewise.
28384 (__drand48_iterate): Likewise.
28385 (__setenv): Likewise.
28386 (__unsetenv): Likewise.
28387 (__clearenv): Likewise.
28388 (__ptsname_r): Likewise.
28389 (__posix_openpt): Likewise.
28390 (__add_to_environ): Likewise.
28391 (__realpath): Add libc_hidden_proto.
28392 (__ecvt_r): Likewise.
28393 (__fcvt_r): Likewise.
28394 (__qecvt_r): Likewise.
28395 (__qfcvt_r): Likewise.
28396 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28397 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28398
28399 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28400
28401 [BZ #18822]
28402 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28403 * include/time.h (__mktime_internal): Likewise.
28404 * libio/iolibio.h (__fopen_internal): Likewise.
28405
28406 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
28407
28408 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28409 pointer in frame.
28410 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28411 Correct offset used to restore PIC register.
28412
28413 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
28414
28415 [BZ libc/22165]
28416 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
28417 code to load address of __getcontext_ret when generating PIC code.
28418
28419 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
28420
28421 * elf/Makefile (tests-static-internal): Add
28422 tst-tls1-static-non-pie.
28423 (LDFLAGS-tst-tls1-static-non-pie): New.
28424 * elf/tst-tls1-static-non-pie.c: New file.
28425
28426 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28427
28428 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
28429 (asinh): Define using libm_alias_double.
28430 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
28431 (cbrt): Define using libm_alias_double.
28432 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
28433 <libm-alias-double.h>.
28434 (copysign): Define using libm_alias_double.
28435 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
28436 (erf): Define using libm_alias_double.
28437 (erfc): Likewise.
28438 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
28439 (expm1): Define using libm_alias_double.
28440 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
28441 (fabs): Define using libm_alias_double.
28442 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
28443 libm_alias_double.
28444 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
28445 <libm-alias-double.h>.
28446 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
28447 libm_alias_double.
28448 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
28449 <libm-alias-double.h>.
28450 (getpayload): Define using libm_alias_double.
28451 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
28452 <libm-alias-double.h>.
28453 (llrint): Define using libm_alias_double.
28454 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
28455 (lrint): Define using libm_alias_double.
28456 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
28457 <libm-alias-double.h>.
28458 (nextup): Define using libm_alias_double.
28459 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
28460 <libm-alias-double.h>.
28461 (roundeven): Define using libm_alias_double.
28462 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
28463 libm_alias_double.
28464 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
28465 <libm-alias-double.h>.
28466 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
28467 using libm_alias_double.
28468 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
28469 (cos): Define using libm_alias_double.
28470 (sin): Likewise.
28471 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
28472 <libm-alias-double.h>.
28473 (sincos): Define using libm_alias_double.
28474 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
28475 (tanh): Define using libm_alias_double.
28476 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
28477 <libm-alias-double.h>.
28478 (totalorder): Define using libm_alias_double.
28479 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
28480 <libm-alias-double.h>.
28481 (totalordermag): Define using libm_alias_double.
28482 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
28483 libm_alias_double.
28484 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
28485 libm_alias_double.
28486 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
28487 <libm-alias-double.h>.
28488 (getpayload): Define using libm_alias_double.
28489 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
28490 <libm-alias-double.h>.
28491 (roundeven): Define using libm_alias_double.
28492 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
28493 <libm-alias-double.h>.
28494 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
28495 <libm-alias-double.h>.
28496 (totalorder): Define using libm_alias_double.
28497 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
28498 <libm-alias-double.h>.
28499 (totalordermag): Define using libm_alias_double.
28500 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
28501 libc compat symbol here.
28502 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
28503 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
28504 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
28505 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
28506 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
28507 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
28508 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
28509 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
28510 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
28511 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
28512
28513 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28514
28515 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
28516 _dl_relocate_static_pie instead of _dl_start to compute load
28517 address in static PIE. Return 0 if _DYNAMIC is undefined for
28518 static executable.
28519
28520 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28521
28522 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
28523 _DYNAMIC is undefined for static executable.
28524
28525 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28526
28527 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
28528
28529 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28530
28531 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28532
28533 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28534
28535 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
28536 (__ieee754_lgamma_r): Use fabs rather than __fabs.
28537 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28538 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28539 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
28540 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
28541 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28542 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
28543 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
28544 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28545 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
28546 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
28547 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28548 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28549 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
28550 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
28551 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
28552
28553 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28554
28555 * math/bits/cmathcalls.h (cimag): Remove inline.
28556 (creal): Remove inline.
28557 (conj): Remove inline.
28558
28559 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28560
28561 * math/Makefile (type-float-routines): Add e_powf_log2_data.
28562 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
28563 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
28564 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
28565 (issignalingf_inline): Likewise.
28566 (POWF_LOG2_TABLE_BITS): Likewise.
28567 (POWF_LOG2_POLY_ORDER): Likewise.
28568 (POWF_SCALE_BITS): Likewise.
28569 (POWF_SCALE): Likewise.
28570 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
28571 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
28572 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
28573
28574 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28575
28576 * math/Makefile (type-float-routines): Add e_log2f_data.
28577 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
28578 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
28579 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
28580 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
28581 * sysdeps/i386/fpu/e_log2f_data.c: New file.
28582 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
28583 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
28584
28585 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28586
28587 * math/Makefile (type-float-routines): Add e_logf_data.
28588 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
28589 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
28590 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
28591 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
28592 * sysdeps/i386/fpu/e_logf_data.c: New file.
28593 * sysdeps/ia64/fpu/e_logf_data.c: New file.
28594 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
28595
28596 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
28597
28598 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
28599 undefined _DYNAMIC in PIE libc.a.
28600 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28601 Likewse.
28602
28603 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28604
28605 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
28606 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
28607 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
28608 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
28609 (__signbit): Remove.
28610 (__signbitl): Remove.
28611 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
28612 (__signbit): Remove.
28613 (__signbitl): Remove.
28614 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
28615 (__signbit): Remove.
28616 (__signbitl): Remove.
28617 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
28618 (__signbit): Remove.
28619 (__signbitl): Remove.
28620 * sysdeps/tile/bits/mathinline.h: Delete file.
28621 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
28622 (__signbit): Remove.
28623 (__signbitl): Remove.
28624
28625 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28626
28627 * math/math.h: Improve handling of C99 isgreater macros.
28628 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
28629 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
28630 * sysdeps/powerpc/bits/mathinline.h: Likewise.
28631 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
28632 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
28633
28634 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
28635
28636 * sysdeps/aarch64/libm-test-ulps: Update.
28637
28638 2017-09-28 Joseph Myers <joseph@codesourcery.com>
28639
28640 [BZ #22225]
28641 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
28642 math_opt_barrier on argument when doing arithmetic on it.
28643 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28644 Likewise. Use math_force_eval not math_opt_barrier after
28645 arithmetic.
28646 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
28647 math_opt_barrier on argument when doing arithmetic on it.
28648 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
28649 Likewise.
28650
28651 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
28652
28653 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
28654 libc_hidden_def.
28655 (__freeifaddrs): Likewise.
28656
28657 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
28658
28659 * include/dirent.h (__dirfd): New declaration.
28660 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
28661 alias.
28662 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
28663 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
28664 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
28665 * include/unistd.h (__revoke): New declaration.
28666 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
28667 alias.
28668 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
28669 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
28670 revoke.
28671 * include/dirent.h (__seekdir): New declaration.
28672 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
28673 redefine as weak alias.
28674 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
28675 of seekdir.
28676 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
28677 and use libc_hidden_def on them.
28678 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
28679 them.
28680 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
28681 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
28682 instead of getifaddrs and freeifaddrs.
28683
28684 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28685
28686 [BZ #18822]
28687 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
28688 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
28689 (__dso_handle): Remove declaration.
28690 * dlfcn/tstatexit.c (__dso_handle): Removed.
28691 (main): Don't check __dso_handle.
28692 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
28693 (main): Don't check __dso_handle.
28694 * include/dso_handle.h: New file.
28695 * malloc/mtrace.c: Include <dso_handle.h>.
28696 (mtrace): Pass __dso_handle directly.
28697 * nptl/pthread_atfork.c: Include <dso_handle.h>.
28698 (__dso_handle): Remove declaration.
28699 (__pthread_atfork): Pass __dso_handle directly.
28700 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
28701 (__dso_handle): Removed.
28702 * posix/wordexp-test.c: Include <dso_handle.h>.
28703 (__dso_handle): Remove declaration.
28704 (__app_register_atfork): Pass __dso_handle directly.
28705 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
28706 (__dso_handle): Remove declaration.
28707 (at_quick_exit): Pass __dso_handle directly.
28708 * stdlib/atexit.c: Include <dso_handle.h>.
28709 (__dso_handle): Remove declaration.
28710 (atexit): Pass __dso_handle directly.
28711 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
28712 (__dso_handle): Removed.
28713
28714 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28715
28716 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
28717 using VDSO.
28718
28719 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
28720
28721 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
28722 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
28723 values to correct default value for given type.
28724
28725 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28726
28727 [BZ #22101]
28728 * elf/Makefile (tests): Add tst-debug1.
28729 ($(objpfx)tst-debug1): New.
28730 ($(objpfx)tst-debug1.out): Likewise.
28731 ($(objpfx)tst-debug1mod1.so): Likewise.
28732 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
28733 with p_filesz == 0.
28734 * elf/tst-debug1.c: New file.
28735
28736 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28737
28738 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
28739 Define using __ifunc.
28740
28741 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28742
28743 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
28744 exp2f() values.
28745
28746 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28747
28748 [BZ #22156]
28749 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
28750
28751 2017-09-26 Florian Weimer <fweimer@redhat.com>
28752
28753 * resolv/Makefile (tests-internal): Fix typo in comment.
28754
28755 2017-09-26 Florian Weimer <fweimer@redhat.com>
28756
28757 * resolv/nss_dns/dns-host.c: Fix typo in comment.
28758
28759 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28760
28761 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
28762 Use an union instead of a max_align_t array for __space,
28763 so that __space is the same size on all platforms.
28764 * malloc/scratch_buffer_grow_preserve.c
28765 (__libc_scratch_buffer_grow_preserve): Likewise.
28766
28767 [BZ #22183]
28768 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
28769 version to 2.
28770 * posix/Makefile (routines): Add glob-lstat-compat and
28771 glob64-lstat-compat.
28772 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
28773 * posix/glob-lstat-compat.c: New file.
28774 * posix/glob64-lstat-compat.c: Likewise.
28775 * posix/tst-glob_lstat_compat.c: Likewise.
28776 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
28777 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
28778 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
28779 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
28780 Likewise.
28781 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
28782 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28783 * posix/glob.c (glob_lstat): New function.
28784 (glob): Rename to __glob and add versioned symbol to 2.27.
28785 (glob_in_dir): Use glob_lstat.
28786 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
28787 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
28788 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
28789 2.27.
28790 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
28791 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
28792 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
28793 gl_lstat on glob call.
28794 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
28795 and glob64 symbols.
28796 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
28797 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
28798 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
28799 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
28800 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
28801 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
28802 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
28803 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
28804 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
28805 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
28806 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
28807 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
28808 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
28809 Likewise.
28810 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
28811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
28812 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
28813 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
28814 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
28815 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
28816 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
28817 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
28818 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
28819 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
28820 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
28821 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
28822
28823 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
28824
28825 * configure.ac (AS): Require binutils 2.25 or later.
28826 * configure: Regenerated.
28827
28828 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
28829
28830 [BZ #22207]
28831 * stdlib/test-atexit-race-common.c (do_test): Minimize required
28832 VM size.
28833
28834 2017-09-25 DJ Delorie <dj@redhat.com>
28835
28836 [BZ #22161]
28837 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
28838 resetting timeout.
28839
28840 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
28841
28842 * sysdeps/ieee754/dbl-64/sincos32.h
28843 [SINCCOS32_H]: Remove define.
28844 [SINCOS32_H]: Define.
28845
28846 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
28847
28848 * math/Versions (expf): New libm symbol at GLIBC_2.27.
28849 (exp2f): Likewise.
28850 * math/w_exp2f.c: New file.
28851 * math/w_expf.c: New file.
28852 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
28853 * math/w_expf_compat.c (__expf_compat): Likewise.
28854 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
28855 * sysdeps/ia64/fpu/e_expf.S: Likewise.
28856 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28857 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28858 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28859 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28860 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28861 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28862 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28863 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28864 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28865 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28866 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28867 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28869 Likewise.
28870 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28871 Likewise.
28872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28873 Likewise.
28874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28875 Likewise.
28876 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28877 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28878 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28879 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28880 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28881 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28882 Likewise.
28883 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28884 Likewise.
28885 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28886 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28887 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28888
28889 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
28890
28891 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
28892 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
28893 (roundtoint, converttoint): Likewise.
28894 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
28895 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
28896 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
28897 * sysdeps/ieee754/flt-32/math_config.h: New file.
28898 * sysdeps/ieee754/flt-32/math_errf.c: New file.
28899 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
28900 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
28901 * sysdeps/i386/fpu/math_errf.c: New file.
28902 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
28903 * sysdeps/ia64/fpu/math_errf.c: New file.
28904 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
28905 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
28906
28907 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
28908
28909 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
28910 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
28911 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
28912 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
28913 to make sure that these symbols are defined.
28914 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
28915 of <limits.h>
28916 (__need_NULL): Do not define.
28917 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
28918 alignment.
28919 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
28920 CMGROUP_MAX, cmsgcred): Do not define.
28921 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
28922 NULL.
28923 * bits/socket.h: Likewise.
28924 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
28925 __gettimeofday instead of gettimeofday.
28926 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
28927 instead of settimeofday.
28928
28929 2017-09-22 Joseph Myers <joseph@codesourcery.com>
28930
28931 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
28932 (asinhf): Define using libm_alias_float.
28933 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
28934 (atanf): Define using libm_alias_float.
28935 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
28936 (cbrtf): Define using libm_alias_float.
28937 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
28938 (ceilf): Define using libm_alias_float.
28939 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
28940 <libm-alias-float.h>.
28941 (copysignf): Define using libm_alias_float.
28942 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
28943 (cosf): Define using libm_alias_float.
28944 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
28945 (erff): Define using libm_alias_float.
28946 (erfcf): Likewise.
28947 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
28948 (expm1f): Define using libm_alias_float.
28949 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
28950 (fabsf): Define using libm_alias_float.
28951 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
28952 (floorf): Define using libm_alias_float.
28953 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
28954 (frexpf): Define using libm_alias_float.
28955 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
28956 libm_alias_float.
28957 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
28958 <libm-alias-float.h>.
28959 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
28960 libm_alias_float.
28961 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
28962 <libm-alias-float.h>.
28963 (getpayloadf): Define using libm_alias_float.
28964 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
28965 <libm-alias-float.h>.
28966 (llrintf): Define using libm_alias_float.
28967 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
28968 <libm-alias-float.h>.
28969 (llroundf): Define using libm_alias_float.
28970 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
28971 (logbf): Define using libm_alias_float.
28972 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
28973 (lrintf): Define using libm_alias_float.
28974 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
28975 (lroundf): Define using libm_alias_float.
28976 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
28977 (modff): Define using libm_alias_float.
28978 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
28979 <libm-alias-float.h>.
28980 (nearbyintf): Define using libm_alias_float.
28981 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
28982 <libm-alias-float.h>.
28983 (nextafterf): Define using libm_alias_float.
28984 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
28985 <libm-alias-float.h>.
28986 (nextupf): Define using libm_alias_float.
28987 * sysdeps/ieee754/flt-32/s_remquof.c: Include
28988 <libm-alias-float.h>.
28989 (remquof): Define using libm_alias_float.
28990 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
28991 (rintf): Define using libm_alias_float.
28992 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
28993 <libm-alias-float.h>.
28994 (roundevenf): Define using libm_alias_float.
28995 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
28996 (roundf): Define using libm_alias_float.
28997 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
28998 using libm_alias_float.
28999 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29000 <libm-alias-float.h>.
29001 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29002 Define using libm_alias_float.
29003 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29004 <libm-alias-float.h>.
29005 (sincosf): Define using libm_alias_float.
29006 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29007 (sinf): Define using libm_alias_float.
29008 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29009 (tanf): Define using libm_alias_float.
29010 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29011 (tanhf): Define using libm_alias_float.
29012 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29013 <libm-alias-float.h>.
29014 (totalorderf): Define using libm_alias_float.
29015 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29016 <libm-alias-float.h>.
29017 (totalordermagf): Define using libm_alias_float.
29018 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29019 (truncf): Define using libm_alias_float.
29020 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29021 libm_alias_float.
29022 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29023 libm_alias_float.
29024
29025 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29026
29027 [BZ #22146]
29028 math/math.h: Let fpclassify use the builtin in C++ mode, even
29029 when optimazing for size.
29030
29031 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29032
29033 * csu/Makefile (generated): Do not add version-info.h.
29034 (before-compile): Likewise.
29035 (all-Banner-files): Remove variable.
29036 ($(objpfx)version-info.h): Remove rule.
29037 * csu/version.c (banner): Do not include "version-info.h".
29038 * libidn/Banner: Remove.
29039 * manual/contrib.texi (Simon Josefsson): New entry.
29040
29041 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29042
29043 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29044 Remove conditionals on LDBL_MANT_DIG.
29045 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29046 (__ieee754_lgammal_r): Likewise.
29047
29048 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29049
29050 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29051 _Float128 and L().
29052 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29053 _Float128 and L(). Replace _Float128 with long double and L(x)
29054 with xL, throughout the file.
29055 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29056 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29057 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29058 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29059
29060 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29061
29062 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29063 sysdeps/ieee754/ldbl-128ibm.
29064 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29065 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29066 of including it. Keep _Float128 and L() intact. These will be
29067 reviewed by a separate patch.
29068 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29069 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29070 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29071 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29072
29073 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29074
29075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29076 (__finitef128): Define to __redirect___finitef128.
29077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29078 (__isinff128): Define to __redirect___isinff128.
29079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29080 (__isnanf128): Define to __redirect___isnanf128.
29081
29082 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29083
29084 * sysdeps/powerpc/powerpc64le/Makefile
29085 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29086 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29087
29088 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29089 Carlos O'Donell <carlos@redhat.com>
29090
29091 [BZ #22180]
29092 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29093 * stdlib/test-dlclose-exit-race.c: New file.
29094 * stdlib/test-dlclose-exit-race-helper.c: New file.
29095 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29096
29097 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29098
29099 * crypt/Banner: Remove file.
29100 * nptl/Banner: Likewise.
29101 * resolv/Banner: Likewise.
29102 * soft-fp/Banner: Likewise.
29103 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29104 ($(objpfx)version.d): Remove dependency on banner.h.
29105 ($(objpfx)version.os): Likewise.
29106 * nptl/version.c (banner): Do not include banner.h.
29107 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29108 Jelinek and BIND code.
29109
29110 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29111 Carlos O'Donell <carlos@redhat.com>
29112
29113 * support/xdlfcn.h: New file.
29114 * support/xdlfcn.c: New file.
29115 * support/Makefile (libsupport-routines): Add xdlfcn.
29116 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29117
29118 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29119
29120 [BZ #20142]
29121 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29122 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29123 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29124 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29125 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29126 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29127 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29128 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29129
29130 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29131 Ricky Zhou <rickyz@google.com>
29132 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29133
29134 [BZ #14333]
29135 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29136 Remove atomics.
29137 (__new_exitfn): Fail registration when we finished at_exit processing.
29138 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29139 * stdlib/on_exit.c (__on_exit): Likewise.
29140 * stdlib/exit.c (__exit_funcs_done): New variable.
29141 (__run_exit_handlers): Use __exit_funcs_lock.
29142 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29143 declarations.
29144 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29145 (test-cxa_atexit-race, test-on_exit-race): New tests.
29146 * stdlib/test-atexit-race-common.c: New file.
29147 * stdlib/test-atexit-race.c: New file.
29148 * stdlib/test-at_quick_exit-race.c: New file.
29149 * stdlib/test-cxa_atexit-race.c: New file.
29150 * stdlib/test-on_exit-race.c: New file.
29151
29152 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29153
29154 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29155 * benchtests/exp2f-inputs: Copy of expf-inputs.
29156 * benchtests/log2f-inputs: Copy of logf-inputs.
29157
29158 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29159
29160 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29161 Explicitly take address of first element of array arguments in
29162 call to INLINE_SYSCALL.
29163
29164 2017-09-19 Andreas Schwab <schwab@suse.de>
29165
29166 [BZ #22134]
29167 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29168 execveat first.
29169 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29170 unimplemented.
29171 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29172 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29173 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29174 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29175 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29176 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29177 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29178 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29179 * posix/Makefile (tests): Add tst-fexecve.
29180 * posix/tst-fexecve.c: New file.
29181
29182 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29183
29184 * benchtests/Makefile: Add logf benchmark.
29185 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29186
29187 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29188
29189 * benchtests/Makefile: Add expf benchmark.
29190 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29191
29192 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29193
29194 * csu/Makefile: Add -funwind-tables to libc-start.c.
29195 * debug/Makefile: Add -funwind-tables to backtrace.c.
29196 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29197 * sysdeps/arm/Makefile: Likewise.
29198 * sysdeps/i386/Makefile: Likewise.
29199 * sysdeps/m68k/Makefile: Likewise.
29200 * sysdeps/mips/Makefile: Likewise.
29201 * sysdeps/nios2/Makefile: Likewise.
29202 * sysdeps/sh/Makefile: Likewise.
29203 * sysdeps/sparc/Makefile: Likewise.
29204
29205 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29206
29207 * benchtests/Makefile (bench-math): Add trunc and truncf.
29208 (CFLAGS-bench-trunc.c): New variable.
29209 (CFLAGS-bench-truncf.c): Likewise.
29210 * benchtests/trunc-inputs: New file.
29211 * benchtests/truncf-inputs: Likewise.
29212
29213 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29214
29215 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29216
29217 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29218
29219 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29220 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29221 redefine.
29222 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29223 (exp10l): Define as weak alias.
29224 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29225 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29226 and redefine.
29227 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29228 (remainderl): Define as weak alias.
29229
29230 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29231 (fmal): Define using libm_alias_ldouble.
29232 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29233 (acoshl): Define using libm_alias_ldouble.
29234 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29235 (acosl): Define using libm_alias_ldouble.
29236 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29237 (asinl): Define using libm_alias_ldouble.
29238 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29239 (atan2l): Define using libm_alias_ldouble.
29240 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29241 (atanhl): Define using libm_alias_ldouble.
29242 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29243 (coshl): Define using libm_alias_ldouble.
29244 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29245 (exp10l): Define using libm_alias_ldouble.
29246 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29247 (exp2l): Define using libm_alias_ldouble.
29248 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29249 (expl): Define using libm_alias_ldouble.
29250 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29251 (fmodl): Define using libm_alias_ldouble.
29252 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29253 (hypotl): Define using libm_alias_ldouble.
29254 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29255 (j0l): Define using libm_alias_ldouble.
29256 (y0l): Likewise.
29257 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29258 (j1l): Define using libm_alias_ldouble.
29259 (y1l): Likewise.
29260 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29261 (jnl): Define using libm_alias_ldouble.
29262 (ynl): Likewise.
29263 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29264 (log10l): Define using libm_alias_ldouble.
29265 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29266 (log2l): Define using libm_alias_ldouble.
29267 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29268 (logl): Define using libm_alias_ldouble.
29269 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29270 (powl): Define using libm_alias_ldouble.
29271 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29272 (remainderl): Define using libm_alias_ldouble.
29273 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29274 (sinhl): Define using libm_alias_ldouble.
29275 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29276 (sqrtl): Define using libm_alias_ldouble.
29277 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29278 (tgammal): Define using libm_alias_ldouble.
29279 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29280 (exp10l): Do not use long_double_symbol here.
29281 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29282 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29283 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29284 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29285 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29286 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29287 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29288 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29289 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29290 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29291 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29292 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29293 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29294 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29295 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29296 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29297 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29298 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29299 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29300 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29301 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29302 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29303
29304 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29305
29306 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29307 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29308
29309 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29310
29311 * io/read.c (read): Add libc_hidden_weak.
29312 * sysdeps/mach/hurd/read.c (read): Likewise.
29313 * io/write.c (write): Likewise.
29314 * sysdeps/mach/hurd/write.c (write): Likewise.
29315 * io/pread64.c (__pread64): Likewise.
29316 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29317 * posix/pread64.c (__pread64): Add libc_hidden_def.
29318
29319 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29320
29321 * benchtests/scripts/compare_strings.py: New option -g.
29322 (draw_graph): Print a message that a graph is being generated.
29323 (process_results): Generate graph only if -g is passed.
29324 (main): Process option -g.
29325
29326 * benchtests/scripts/compare_strings.py (process_results):
29327 Better spacing for output.
29328
29329 * benchtests/scripts/compare_strings.py: Use argparse.
29330 * benchtests/README: Document existence of compare_strings.py.
29331
29332 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29333
29334 * math/s_fma.c: Include <libm-alias-double.h>.
29335 (fma): Define using libm_alias_double.
29336 * math/s_nextafter.c: Include <libm-alias-double.h>.
29337 (nextafter): Define using libm_alias_double.
29338 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29339 (acos): Define using libm_alias_double.
29340 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29341 (aocsh): Define using libm_alias_double.
29342 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29343 (asin): Define using libm_alias_double.
29344 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29345 (atan2): Define using libm_alias_double.
29346 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29347 (atanh): Define using libm_alias_double.
29348 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29349 (cosh): Define using libm_alias_double.
29350 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29351 (exp10): Define using libm_alias_double.
29352 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29353 (exp2): Define using libm_alias_double.
29354 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29355 (exp): Define using libm_alias_double.
29356 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29357 (fmod): Define using libm_alias_double.
29358 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29359 (hypot): Define using libm_alias_double.
29360 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29361 (j0): Define using libm_alias_double.
29362 (y0): Likewise.
29363 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29364 (j1): Define using libm_alias_double.
29365 (y1): Likewise.
29366 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29367 (jn): Define using libm_alias_double.
29368 (yn): Likewise.
29369 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29370 (log10): Define using libm_alias_double.
29371 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29372 (log2): Define using libm_alias_double.
29373 * math/w_log_compat.c: Include <libm-alias-double.h>.
29374 (log): Define using libm_alias_double.
29375 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29376 (pow): Define using libm_alias_double.
29377 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29378 (remainder): Define using libm_alias_double.
29379 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29380 (sinh): Define using libm_alias_double.
29381 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29382 (sqrt): Define using libm_alias_double.
29383 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29384 (tgamma): Define using libm_alias_double.
29385 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29386 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29387 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29388 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29389 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29390 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29391 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29392 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29393 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29394 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29395 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29396 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29397 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29398 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29399 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29400 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29401 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29402 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29403 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29404 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29405 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29406 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29407 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29408 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29409 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29410
29411 * math/e_acoshl.c: Remove.
29412 * math/e_acosl.c: Likewise.
29413 * math/e_asinl.c: Likewise.
29414 * math/e_atan2l.c: Likewise.
29415 * math/e_atanhl.c: Likewise.
29416 * math/e_coshl.c: Likewise.
29417 * math/e_expl.c: Likewise.
29418 * math/e_fmodl.c: Likewise.
29419 * math/e_gammal_r.c: Likewise.
29420 * math/e_hypotl.c: Likewise.
29421 * math/e_j0l.c: Likewise.
29422 * math/e_j1l.c: Likewise.
29423 * math/e_jnl.c: Likewise.
29424 * math/e_lgammal_r.c: Likewise.
29425 * math/e_log10l.c: Likewise.
29426 * math/e_log2l.c: Likewise.
29427 * math/e_logl.c: Likewise.
29428 * math/e_powl.c: Likewise.
29429 * math/e_rem_pio2l.c: Likewise.
29430 * math/e_sinhl.c: Likewise.
29431 * math/e_sqrtf128.c: Likewise.
29432 * math/e_sqrtl.c: Likewise.
29433 * math/k_cosl.c: Likewise.
29434 * math/k_sinl.c: Likewise.
29435 * math/k_tanl.c: Likewise.
29436 * math/s_asinhl.c: Likewise.
29437 * math/s_atanl.c: Likewise.
29438 * math/s_cbrtl.c: Likewise.
29439 * math/s_erfl.c: Likewise.
29440 * math/s_expm1l.c: Likewise.
29441 * math/s_log1pl.c: Likewise.
29442 * math/s_tanhl.c: Likewise.
29443
29444 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29445
29446 [BZ #21745]
29447 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
29448 [$(subdir) = math] (sysdep_calls): New variable. Has the
29449 previous contents of sysdep_routines, but re-sorted..
29450 [$(subdir) = math] (sysdep_routines): Re-use the contents from
29451 sysdep_calls.
29452 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
29453 defined in sysdep_calls and replace by the respective m_* names.
29454 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
29455 (compat_symbol): Undefine to avoid duplicated compat symbols in
29456 libc.
29457
29458 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29459
29460 * math/s_fmaf.c: Include <libm-alias-float.h>.
29461 (fmaf): Define using libm_alias_float.
29462 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
29463 (acosf): Define using libm_alias_float.
29464 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
29465 (acoshf): Define using libm_alias_float.
29466 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
29467 (asinf): Define using libm_alias_float.
29468 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
29469 (atan2f): Define using libm_alias_float.
29470 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
29471 (atanhf): Define using libm_alias_float.
29472 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
29473 (coshf): Define using libm_alias_float.
29474 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
29475 (exp10f): Define using libm_alias_float.
29476 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
29477 (fmodf): Define using libm_alias_float.
29478 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
29479 (hypotf): Define using libm_alias_float.
29480 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
29481 (j0f): Define using libm_alias_float.
29482 (y0f): Likewise.
29483 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
29484 (j1f): Define using libm_alias_float.
29485 (y1f): Likewise.
29486 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
29487 (jnf): Define using libm_alias_float.
29488 (ynf): Likewise.
29489 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
29490 (log10f): Define using libm_alias_float.
29491 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
29492 (log2f): Define using libm_alias_float.
29493 * math/w_logf_compat.c: Include <libm-alias-float.h>.
29494 (logf): Define using libm_alias_float.
29495 * math/w_powf_compat.c: Include <libm-alias-float.h>.
29496 (powf): Define using libm_alias_float.
29497 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
29498 (remainderf): Define using libm_alias_float.
29499 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
29500 (sinhf): Define using libm_alias_float.
29501 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
29502 (sqrtf): Define using libm_alias_float.
29503 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
29504 (tgammaf): Define using libm_alias_float.
29505
29506 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29507
29508 * include/math.h (roundeven): Change hidden_proto call to
29509 __roundeven.
29510 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
29511 alias.
29512 [NO_LONG_DOUBLE] (__j0l): New strong alias.
29513 (y0): Rename to __y0 and define as weak alias.
29514 [NO_LONG_DOUBLE] (__y0l): New strong alias.
29515 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
29516 alias.
29517 (y0f): Rename to __y0f and define as weak alias.
29518 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
29519 alias.
29520 [NO_LONG_DOUBLE] (__j1l): New strong alias.
29521 (y1): Rename to __y1 and define as weak alias.
29522 [NO_LONG_DOUBLE] (__y1l): New strong alias.
29523 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
29524 alias.
29525 (y1f): Rename to __y1f and define as weak alias.
29526 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
29527 alias.
29528 [NO_LONG_DOUBLE] (__jnl): New strong alias.
29529 (yn): Rename to __yn and define as weak alias.
29530 [NO_LONG_DOUBLE] (__ynl): New strong alias.
29531 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
29532 alias.
29533 (ynf): Rename to __ynf and define as weak alias.
29534 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
29535 (fromfp): Define as weak alias.
29536 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
29537 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
29538 (fromfpx): Define as weak alias.
29539 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
29540 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
29541 __getpayload and define as weak alias.
29542 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29543 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
29544 __roundeven and define as weak alias.
29545 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29546 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
29547 __setpayload.
29548 (setpayload): Define as weak alias.
29549 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
29550 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
29551 __setpayloadsig.
29552 (setpayloadsig): Define as weak alias.
29553 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
29554 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
29555 __totalorder and define as weak alias.
29556 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29557 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
29558 to __totalordermag and define as weak alias.
29559 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29560 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
29561 (ufromfp): Define as weak alias.
29562 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
29563 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
29564 __ufromfpx.
29565 (ufromfpx): Define as weak alias.
29566 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
29567 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
29568 Rename to __getpayload and define as weak alias.
29569 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29570 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
29571 Rename to __roundeven and define as weak alias.
29572 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29573 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
29574 Rename to __totalorder and define as weak alias.
29575 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29576 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
29577 (totalordermag): Rename to __totalordermag and define as weak
29578 alias.
29579 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29580 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
29581 macro.
29582 (__roundevenl): Likewise.
29583 (__totalorderl): Likewise.
29584 (__totalordermagl): Likewise
29585 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
29586 __fromfpf128.
29587 (fromfpf128): Define as weak alias.
29588 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
29589 __fromfpxf128.
29590 (fromfpxf128): Define as weak alias.
29591 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
29592 __setpayloadf128.
29593 (setpayloadf128): Define as weak alias.
29594 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
29595 __setpayloadsigf128.
29596 (setpayloadsigf128): Define as weak alias.
29597 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
29598 __ufromfpf128.
29599 (ufromfpf128): Define as weak alias.
29600 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
29601 __ufromfpxf128.
29602 (ufromfpxf128): Define as weak alias.
29603 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
29604 (fromfpf): Define as weak alias.
29605 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
29606 __fromfpxf.
29607 (fromfpxf): Define as weak alias.
29608 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
29609 __getpayloadf and define as weak alias.
29610 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
29611 __roundevenf and define as weak alias.
29612 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
29613 __setpayloadf.
29614 (setpayloadf): Define as weak alias.
29615 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
29616 __setpayloadsigf.
29617 (setpayloadsigf): Define as weak alias.
29618 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
29619 __totalorderf and define as weak alias.
29620 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
29621 Rename to __totalordermagf and define as weak alias.
29622 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
29623 __ufromfpf.
29624 (ufromfpf): Define as weak alias.
29625 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
29626 __ufromfpxf.
29627 (ufromfpxf): Define as weak alias.
29628 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
29629 __fromfpl.
29630 (fromfpl): Define as weak alias.
29631 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
29632 __fromfpxl.
29633 (fromfpxl): Define as weak alias.
29634 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
29635 to __getpayloadl and define as weak alias.
29636 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
29637 __roundevenl and define as weak alias.
29638 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
29639 __setpayloadl.
29640 (setpayloadl): Define as weak alias.
29641 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
29642 __setpayloadsigl.
29643 (setpayloadsigl): Define as weak alias.
29644 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
29645 to __totalorderl and define as weak alias.
29646 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
29647 Rename to __totalordermagl and define as weak alias.
29648 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
29649 __ufromfpl.
29650 (ufromfpl): Define as weak alias.
29651 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
29652 __ufromfpxl.
29653 (ufromfpxl): Define as weak alias.
29654 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
29655 __fromfpl.
29656 (fromfpl): Define as weak alias.
29657 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
29658 __fromfpxl.
29659 (fromfpxl): Define as weak alias.
29660 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
29661 Rename to __getpayloadl and define as weak alias.
29662 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
29663 to __roundevenl and define as weak alias. Call __roundeven
29664 instead of roundeven.
29665 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
29666 __setpayloadl.
29667 (setpayloadl): Define as weak alias.
29668 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
29669 __setpayloadsigl.
29670 (setpayloadsigl): Define as weak alias.
29671 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
29672 Rename to __totalorderl and define as weak alias.
29673 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
29674 Rename to __totalordermagl and define as weak alias.
29675 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
29676 __ufromfpl.
29677 (ufromfpl): Define as weak alias.
29678 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
29679 __ufromfpxl.
29680 (ufromfpxl): Define as weak alias.
29681 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
29682 __fromfpl.
29683 (fromfpl): Define as weak alias.
29684 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
29685 __fromfpxl.
29686 (fromfpxl): Define as weak alias.
29687 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
29688 __getpayloadl and define as weak alias.
29689 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
29690 __roundevenl and define as weak alias.
29691 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
29692 __setpayloadl.
29693 (setpayloadl): Define as weak alias.
29694 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
29695 __setpayloadsigl.
29696 (setpayloadsigl): Define as weak alias.
29697 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
29698 __totalorderl and define as weak alias.
29699 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
29700 Rename to __totalordermagl and define as weak alias.
29701 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
29702 __ufromfpl.
29703 (ufromfpl): Define as weak alias.
29704 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
29705 __ufromfpxl.
29706 (ufromfpxl): Define as weak alias.
29707
29708 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
29709
29710 * benchtests/bench-string.h (realloc_bufs): New function.
29711 (test_init): Call it.
29712 * benchtests/bench-memset-large.c (do_test): Likewise.
29713 * benchtests/bench-memset.c (do_test): Likewise.
29714
29715 * benchtests/bench-memset-large.c: Print output in JSON
29716 format.
29717 * benchtests/bench-memset.c: Likewise.
29718
29719 2017-09-14 Mike FABIAN <mfabian@redhat.com>
29720
29721 [BZ #21084]
29722 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
29723 * iconvdata/Makefile: Add IBM858.
29724 * iconvdata/gconv-modules: Likewise.
29725 * iconvdata/tst-tables.sh: Likewise.
29726 * iconvdata/ibm858.c: New file.
29727 * localedata/charmaps/IBM858: Likewise.
29728
29729 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
29730
29731 [BZ #22023]
29732 * locales/niu_NZ (LC_TIME): copy "niu_NU".
29733 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
29734
29735 2017-09-14 Mike FABIAN <mfabian@redhat.com>
29736
29737 [BZ #22112]
29738 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
29739 and add tel_int_fmt.
29740
29741 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29742
29743 * sysdeps/generic/libm-alias-float128.h: New file.
29744 * sysdeps/generic/math-type-macros-float128.h: Include
29745 <libm-alias-float128.h>.
29746 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
29747
29748 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29749
29750 * sysdeps/generic/libm-alias-ldouble.h: New file.
29751 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
29752 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
29753 * sysdeps/generic/math-type-macros-ldouble.h: Include
29754 <libm-alias-ldouble.h>.
29755 [!declare_mgen_alias] (declare_mgen_alias): Define to use
29756 libm_alias_ldouble.
29757
29758 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
29759
29760 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
29761 * math/w_exp_compat.c: ... here.
29762 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
29763 * math/w_expf_compat.c: ... here.
29764 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
29765 * math/w_expl_compat.c: ... here.
29766 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
29767 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
29768 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
29769 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29770
29771 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29772
29773 * math/w_scalbln_template.c (strong_alias): Do not undefine and
29774 redefine.
29775 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
29776 macro.
29777 (ldexpl): Only define as compat symbol for libc, not libm.
29778 (scalbnl): Define as compat symbol for libc here.
29779 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
29780 define for [IS_IN (libc)].
29781 (__ldexpl_2): Remove alias.
29782 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
29783 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
29784 name in long_double_symbol call.
29785 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
29786 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
29787 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
29788 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
29789 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
29790 Remove macro.
29791 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
29792 Define as compat symbol.
29793
29794 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29795
29796 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
29797 * sysdeps/unix/sysv/linux/alpha/Makefile
29798 [$(subdir) = csu] (sysdep_routines): Remove rule.
29799
29800 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29801
29802 * sysdeps/generic/libm-alias-double.h: New file.
29803 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
29804 * sysdeps/generic/math-type-macros-double.h: Include
29805 <libm-alias-double.h>.
29806 [declare_mgen_alias] (declare_mgen_alias): Define to use
29807 libm_alias_double.
29808 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
29809 (M_LIBM_NEED_COMPAT): Remove macro.
29810 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
29811 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
29812 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
29813 code.
29814 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29815 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29816 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29817 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29818 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29819 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29820 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29821 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29822 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29823 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29824 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29825 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29826 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29827 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29828 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29829 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29830 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29831 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29832 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29833 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29834 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29835 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29836 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29837 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29838 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29839 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29840 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
29841 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
29842 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
29843 macro.
29844 (declare_mgen_alias): New macro.
29845 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
29846 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
29847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
29848 (M_LIBM_NEED_COMPAT): Remove macro.
29849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
29850 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
29851 <first-versions.h>.
29852 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
29853 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
29854
29855 2017-09-12 Joseph Myers <joseph@codesourcery.com>
29856
29857 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
29858 (declare_mgen_alias_2): Remove.
29859 * sysdeps/generic/math-type-macros-double.h
29860 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
29861 Likewise.
29862 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
29863 alias.
29864 (ldexp): Define with declare_mgen_alias.
29865 (scalbn): Likewise.
29866
29867 2017-09-12 Steve Ellcey <sellcey@cavium.com>
29868
29869 * grp/initgroups.c: Include config.h.
29870 (DEFAULT_CONFIG): New macro.
29871 (internal_getgrouplist): Use DEFAULT_CONFIG.
29872 * nscd/initgrcache.c (addinitgroupsX): Likewise.
29873 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
29874 (DEFAULT_DEFCONFIG): New macro.
29875 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
29876 * nss/grp-lookup.c: Include config.h
29877 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
29878 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
29879 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
29880 * manual/nss.texi: Update default values section.
29881
29882 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
29883
29884 [BZ #21967]
29885 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
29886 New.
29887 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
29888 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
29889 Handle MathVec_Prefer_No_AVX512.
29890 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
29891 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
29892 is set.
29893
29894 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
29895
29896 * posix/sched_primax.c (__sched_get_priority_max): Add
29897 libc_hidden_def.
29898 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
29899 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
29900 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
29901 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
29902 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
29903 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
29904 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
29905 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
29906 Add aliases.
29907
29908 2017-09-11 Joseph Myers <joseph@codesourcery.com>
29909
29910 * sysdeps/generic/libm-alias-float.h: New file.
29911 * sysdeps/generic/math-type-macros-float.h: Include
29912 <libm-alias-float.h>.
29913 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
29914
29915 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
29916
29917 [BZ #22093]
29918 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
29919 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
29920 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
29921 (HWCAP_IMPORTANT): Likewise.
29922 (HWCAP_X86_64): New enum.
29923 (HWCAP_X86_AVX512_1): Updated.
29924 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
29925 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
29926 (modules-names): Add x86_64/tst-x86_64mod-1.
29927 (LDFLAGS-tst-x86_64mod-1.so): New.
29928 ($(objpfx)tst-x86_64-1): Likewise.
29929 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
29930 (tst-x86_64-1-clean): Likewise.
29931 * sysdeps/x86_64/tst-x86_64-1.c: New file.
29932 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
29933
29934 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
29935
29936 * po/sv.po: Update translations.
29937 * po/fr.po: Likewise.
29938
29939 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
29940
29941 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
29942 seconds.
29943 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
29944 seconds.
29945 * elf/rtld-Rules: Fix $(error) use.
29946
29947 2017-09-09 Mike FABIAN <mfabian@redhat.com>
29948
29949 [BZ #14925]
29950 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
29951 * locale/iso-639.def: Change “Bengali” to “Bangla”.
29952 * localedata/locales/bn_BD: “Bengali” was still used in some
29953 comments. Change it to “Bangla”.
29954
29955 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
29956
29957 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
29958
29959 2017-09-08 Steve Ellcey <sellcey@cavium.com>
29960
29961 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
29962 thunderx2t99p1 to list of cpu names.
29963 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
29964 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
29965
29966 2017-09-08 Steve Ellcey <sellcey@cavium.com>
29967
29968 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
29969 Use strcmp instead of tunable_is_name.
29970
29971 2017-09-08 Joseph Myers <joseph@codesourcery.com>
29972
29973 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29974 (F_GET_RW_HINT): New macro.
29975 [__USE_GNU] (F_SET_RW_HINT): Likewise.
29976 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
29977 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
29978 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
29979 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
29980 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
29981 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
29982 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
29983 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
29984
29985 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29986 (F_ADD_SEALS): New macro.
29987 [__USE_GNU] (F_GET_SEALS): Likewise.
29988 [__USE_GNU] (F_SEAL_SEAL): Likewise.
29989 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
29990 [__USE_GNU] (F_SEAL_GROW): Likewise.
29991 [__USE_GNU] (F_SEAL_WRITE): Likewise.
29992
29993 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29994
29995 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
29996 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
29997 * posix/glob_internal.h (__glob_pattern_type):
29998 * posix/glob.c (glob):
29999 * posix/glob_pattern_p.c (__glob_pattern_p):
30000 Use them.
30001
30002 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30003 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30004 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30005 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30006 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30007 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30008 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30009 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30010 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30011 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30012 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30013 * sysdeps/wordsize-64/glob.c: Likewise.
30014 * sysdeps/wordsize-64/glob64.c: Likewise.
30015 * sysdeps/wordsize-64/globfree.c: Likewise.
30016 * sysdeps/wordsize-64/globfree64.c: Likewise.
30017 * sysdeps/unix/sysv/linux/glob.c: New file.
30018 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30019 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30020 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30021 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30022 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30023 adds !GLOB_NO_OLD_VERSION as an extra condition.
30024 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30025 using relative path instead of absolute one.
30026 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30027 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30028 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30029 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30030 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30031 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30032
30033 [BZ #1062]
30034 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30035 (glob): Use the same scratch buffer for both getlogin_r and
30036 getpwnam_r. Don’t require preallocation of the login name. This
30037 simplifies storage allocation, and corrects the handling of
30038 long login names.
30039
30040 [BZ #1062]
30041 * posix/glob.c (glob): Port recent patches to platforms
30042 lacking getpwnam_r.
30043 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30044 returns an error number rather than setting errno.
30045
30046 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30047 instead of GCC extension.
30048 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30049 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30050 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30051
30052 [BZ #866]
30053 [BZ #1062]
30054 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30055 * posix/bug-glob1.c: Remove file.
30056 * posix/tst-glob_symlinks.c: New file.
30057 * posix/glob.c (__lstat64): New macro.
30058 (is_dir): New function.
30059 (glob, glob_in_dir): Match symlinks even if they are dangling.
30060 (link_stat, link_exists_p): Remove. All uses removed.
30061
30062 [BZ #1062]
30063 [BZ #19971]
30064 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30065 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30066 All uses removed.
30067
30068 [BZ #1062]
30069 CVE-2017-15671
30070 * posix/Makefile (routines): Add globfree, globfree64, and
30071 glob_pattern_p.
30072 * posix/flexmember.h: New file.
30073 * posix/glob_internal.h: Likewise.
30074 * posix/glob_pattern_p.c: Likewise.
30075 * posix/globfree.c: Likewise.
30076 * posix/globfree64.c: Likewise.
30077 * sysdeps/gnu/globfree64.c: Likewise.
30078 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30079 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30080 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30081 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30082 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30083 * sysdeps/wordsize-64/globfree.c: Likewise.
30084 * sysdeps/wordsize-64/globfree64.c: Likewise.
30085 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30086 [NDEBUG): Remove comments.
30087 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30088 (dirent_type): New type. Use uint_fast8_t not
30089 uint8_t, as C99 does not require uint8_t.
30090 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30091 (struct readdir_result): Use dirent_type. Do not define skip_entry
30092 unless it is needed; this saves a byte on platforms lacking d_ino.
30093 (readdir_result_type, readdir_result_skip_entry):
30094 New functions, replacing ...
30095 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30096 these functions, which were removed. This makes the callers
30097 easier to read. All callers changed.
30098 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30099 (size_add_wrapv, glob_use_alloca): New static functions.
30100 (glob, glob_in_dir): Check for size_t overflow in several places,
30101 and fix some size_t checks that were not quite right.
30102 Remove old code using SHELL since Bash no longer
30103 uses this.
30104 (glob, prefix_array): Separate MS code better.
30105 (glob_in_dir): Remove old Amiga and VMS code.
30106 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30107 separate files.
30108 (glob_in_dir): Do not rely on undefined behavior in accessing
30109 struct members beyond their bounds. Use a flexible array member
30110 instead
30111 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30112 0/1. Caller changed.
30113 (glob): Fix memory leaks.
30114 * posix/glob64 (globfree64): Move to separate file.
30115 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30116 (globfree64): Remove hidden alias.
30117 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30118 oldglob.
30119 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30120 separate file.
30121 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30122 define.
30123 Move compat code to separate file.
30124 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30125 separate file.
30126
30127 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30128
30129 * resolv/tst-resolv-qtypes.c (domain): Changed to
30130 "const char domain[] =".
30131
30132 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30133
30134 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30135 version to 3.1.6.
30136
30137 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30138 (TCP_MD5SIG_EXT): Likewise.
30139 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30140 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30141 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30142
30143 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30144
30145 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30146
30147 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30148
30149 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30150
30151 [BZ #22100]
30152 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30153
30154 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30155
30156 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30157 before assuming that the file is empty. Avoid testing buffer content
30158 when nread == 0.
30159
30160 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30161
30162 [BZ #18858]
30163 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30164 Remove define.
30165 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30166 Likewise.
30167 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30168 Likewise.
30169 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30170 Likewise.
30171 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30172 Likewise.
30173 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30174 Likewise.
30175 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30176 Likewise.
30177
30178 2017-09-06 Florian Weimer <fweimer@redhat.com>
30179
30180 * malloc/dynarray_emplace_enlarge.c
30181 (__libc_dynarray_emplace_enlarge): Add missing else.
30182
30183 2017-09-06 Florian Weimer <fweimer@redhat.com>
30184
30185 [BZ #22096]
30186 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30187 case of failure to obtain the global conf object.
30188
30189 2017-09-06 Florian Weimer <fweimer@redhat.com>
30190
30191 [BZ #22095]
30192 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30193 dynarray allocation failure.
30194
30195 2017-09-06 Florian Weimer <fweimer@redhat.com>
30196
30197 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30198 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30199 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30200 New functions.
30201 (response): Call them. Add 'p', '6' flag processing.
30202 (test_reverse): New function.
30203 (test_get2_any): Call it.
30204 (test_no_inet6): Add 'p' test.
30205 (test_inet6): Likewise.
30206
30207 2017-09-06 Florian Weimer <fweimer@redhat.com>
30208
30209 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30210 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30211 the QNAME.
30212 (test_gai): Adjust query names. Add additional tests.
30213 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30214 test_get2. Adjust query names. Add additional tests.
30215 (test_no_inet6): New function, extracted from threadfunc.
30216 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30217 Add additional tests.
30218
30219 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30220
30221 [BZ #22070]
30222 * localedata/unicode-gen/utf8_gen.py: Set the width for
30223 characters with Prepended_Concatenation_Mark property to 1
30224 * localedata/charmaps/UTF-8: Updated using the improved script.
30225
30226 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30227
30228 [BZ #21750]
30229 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30230 use the range notation for all ranges of neighbouring characters
30231 with the same width.
30232
30233 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30234
30235 * sysdeps/generic/math-type-macros-double.h: Include
30236 <math-svid-compat.h>.
30237 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30238 * sysdeps/generic/math-type-macros-float.h: Include
30239 <math-svid-compat.h>.
30240 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30241 * sysdeps/generic/math-type-macros-ldouble.h: Include
30242 <math-svid-compat.h>.
30243 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30244 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30245 condition.
30246 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30247 * math/w_acosf_compat.c: Likewise.
30248 * math/w_acosh_compat.c: Likewise.
30249 * math/w_acoshf_compat.c: Likewise.
30250 * math/w_acoshl_compat.c: Likewise.
30251 * math/w_acosl_compat.c: Likewise.
30252 * math/w_asin_compat.c: Likewise.
30253 * math/w_asinf_compat.c: Likewise.
30254 * math/w_asinl_compat.c: Likewise.
30255 * math/w_atan2_compat.c: Likewise.
30256 * math/w_atan2f_compat.c: Likewise.
30257 * math/w_atan2l_compat.c: Likewise.
30258 * math/w_atanh_compat.c: Likewise.
30259 * math/w_atanhf_compat.c: Likewise.
30260 * math/w_atanhl_compat.c: Likewise.
30261 * math/w_cosh_compat.c: Likewise.
30262 * math/w_coshf_compat.c: Likewise.
30263 * math/w_coshl_compat.c: Likewise.
30264 * math/w_exp10_compat.c: Likewise.
30265 * math/w_exp10f_compat.c: Likewise.
30266 * math/w_exp10l_compat.c: Likewise.
30267 * math/w_exp2_compat.c: Likewise.
30268 * math/w_exp2f_compat.c: Likewise.
30269 * math/w_exp2l_compat.c: Likewise.
30270 * math/w_fmod_compat.c: Likewise.
30271 * math/w_fmodf_compat.c: Likewise.
30272 * math/w_fmodl_compat.c: Likewise.
30273 * math/w_hypot_compat.c: Likewise.
30274 * math/w_hypotf_compat.c: Likewise.
30275 * math/w_hypotl_compat.c: Likewise.
30276 * math/w_j0_compat.c: Likewise.
30277 * math/w_j0f_compat.c: Likewise.
30278 * math/w_j0l_compat.c: Likewise.
30279 * math/w_j1_compat.c: Likewise.
30280 * math/w_j1f_compat.c: Likewise.
30281 * math/w_j1l_compat.c: Likewise.
30282 * math/w_jn_compat.c: Likewise.
30283 * math/w_jnf_compat.c: Likewise.
30284 * math/w_jnl_compat.c: Likewise.
30285 * math/w_lgamma_r_compat.c: Likewise.
30286 * math/w_lgammaf_r_compat.c: Likewise.
30287 * math/w_lgammal_r_compat.c: Likewise.
30288 * math/w_log10_compat.c: Likewise.
30289 * math/w_log10f_compat.c: Likewise.
30290 * math/w_log10l_compat.c: Likewise.
30291 * math/w_log2_compat.c: Likewise.
30292 * math/w_log2f_compat.c: Likewise.
30293 * math/w_log2l_compat.c: Likewise.
30294 * math/w_log_compat.c: Likewise.
30295 * math/w_logf_compat.c: Likewise.
30296 * math/w_logl_compat.c: Likewise.
30297 * math/w_pow_compat.c: Likewise.
30298 * math/w_powf_compat.c: Likewise.
30299 * math/w_powl_compat.c: Likewise.
30300 * math/w_remainder_compat.c: Likewise.
30301 * math/w_remainderf_compat.c: Likewise.
30302 * math/w_remainderl_compat.c: Likewise.
30303 * math/w_sinh_compat.c: Likewise.
30304 * math/w_sinhf_compat.c: Likewise.
30305 * math/w_sinhl_compat.c: Likewise.
30306 * math/w_sqrt_compat.c: Likewise.
30307 * math/w_sqrtf_compat.c: Likewise.
30308 * math/w_sqrtl_compat.c: Likewise.
30309 * math/w_tgamma_compat.c: Likewise.
30310 * math/w_tgammaf_compat.c: Likewise.
30311 * math/w_tgammal_compat.c: Likewise.
30312 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30313 [LIBM_SVID_COMPAT].
30314 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30315 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30316 [LIBM_SVID_COMPAT].
30317 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30318 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30319 [LIBM_SVID_COMPAT].
30320 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30321 * sysdeps/i386/fpu/w_sqrt.c: New file.
30322 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30323 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30324 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30325 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30326 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30327 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30328 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30329 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30330 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30331 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30332 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30333 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30334 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30335 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30336 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30337 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30338 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30339 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30340 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30341 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30342 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30343 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30344 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30345 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30346 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30347 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30348 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30349 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30350 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30351 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30352 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30353 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30354 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30355 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30356 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30357 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30358 * sysdeps/ia64/fpu/w_log.c: Likewise.
30359 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30360 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30361 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30362 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30363 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30364 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30365 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30366 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30367 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30368 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30369 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30370 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30371 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30372 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30373 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30374 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30375 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30376 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30377 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30378 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30379 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30380 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30381 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30382 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30383 [LIBM_SVID_COMPAT].
30384 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30385 * sysdeps/ieee754/k_standard.c: Likewise.
30386 * sysdeps/ieee754/k_standardf.c: Likewise.
30387 * sysdeps/ieee754/k_standardl.c: Likewise.
30388 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30389 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30390 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30391 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30392 long_double_symbol call on [LIBM_SVID_COMPAT].
30393 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30394 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30395 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30396 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30397 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30398 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30399 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30400 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30401 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30402 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30403 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30404 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30405 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30406 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30407 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30408 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30409 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30410 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30411 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30412 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30413 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
30414 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
30415
30416 2017-09-05 Steve Ellcey <sellcey@cavium.com>
30417
30418 * include/shlib-compat.h (TEST_COMPAT): New Macro.
30419 * malloc/tst-mallocstate.c: Convert from test-skeleton
30420 to test-driver. Ifdef code using TEST_COMPAT macro.
30421 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
30422 * math/test-matherr.c: Likewise.
30423
30424 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30425
30426 [BZ #22086]
30427 * debug/pcprofiledump.c (main): Use byte-swapped mask when
30428 comparing word with byte-swapped constant.
30429
30430 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
30431
30432 [BZ #20498]
30433 * locale/iso-639.def: add Miskito.
30434 * localedata/SUPPORTED: Add miq_NI/UTF-8.
30435 * localedata/locales/miq_NI: New file.
30436
30437 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
30438
30439 [BZ #18822]
30440 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
30441 (__mkdir): Likewise.
30442 * io/chmod.c (__chmod): Add libc_hidden_def.
30443 * io/mkdir.c (__mkdir): Likewise.
30444 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
30445 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
30446 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
30447 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
30448
30449 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30450
30451 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
30452 version to 4.13.
30453
30454 [BZ #22082]
30455 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
30456 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
30457
30458 2017-09-04 Florian Weimer <fweimer@redhat.com>
30459
30460 * math/math.h: Issue warning if log is defined.
30461
30462 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30463
30464 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
30465 kernel version to 4.13.
30466
30467 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30468
30469 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
30470 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
30471 parameter.
30472 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
30473 just <bits/types.h>.
30474 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
30475 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
30476 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
30477 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
30478 * misc/preadv2.c: Include <errno.h>.
30479 * misc/preadv64v2.c: Include <errno.h>.
30480 * misc/pwritev2.c: Include <errno.h>.
30481 * misc/pwritev64v2.c: Include <errno.h>.
30482 * sysdeps/posix/preadv2.c: Include <errno.h>.
30483 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
30484 Fix <unistd.h> inclusion.
30485 * sysdeps/posix/pwritev2.c: Include <errno.h>.
30486 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
30487 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
30488 __strtoul_internal): New functions.
30489 * sysdeps/posix/pause.c: Include <sigsetops.h>.
30490 * sysdeps/posix/system.c: Include <sigsetops.h>.
30491 * sysdeps/mach/hurd/i386/Makefile
30492 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
30493 [$(subdir) = csu] (sysdep-only-routines): Likewise.
30494 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
30495 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
30496 __feraiseexcept_renamed to feraiseexcept instead of
30497 __GI_feraiseexcept.
30498 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
30499 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
30500 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
30501 RWF_NOWAIT): Define to 0 if undefined already.
30502 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
30503 boils down to 0.
30504 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
30505 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
30506
30507 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30508
30509 * manual/math.texi (pow10): Do not document.
30510 (pow10f): Likewise.
30511 (pow10l): Likewise.
30512 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
30513 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
30514 * math/libm-test-exp10.inc (pow10_test): Remove.
30515 (do_test): Do not call pow10.
30516 * math/w_exp10_compat.c (pow10): Make into compat symbol.
30517 [NO_LONG_DOUBLE] (pow10l): Likewise.
30518 * math/w_exp10f_compat.c (pow10f): Likewise.
30519 * math/w_exp10l_compat.c (pow10l): Likewise.
30520 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
30521 (pow10): Make into compat symbol.
30522 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
30523 (pow10f): Make into compat symbol.
30524 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
30525 (pow10l): Make into compat symbol.
30526 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
30527 pow10.
30528 (CFLAGS-nldbl-pow10.c): Remove variable..
30529 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
30530 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
30531 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
30532 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
30533 Undefine and redefine.
30534 (pow10l): Make into compat symbol.
30535 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
30536 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
30537 * sysdeps/arm/libm-test-ulps: Likewise.
30538 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
30539 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
30540 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30541 * sysdeps/microblaze/libm-test-ulps: Likewise.
30542 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
30543 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
30544 * sysdeps/nios2/libm-test-ulps: Likewise.
30545 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30546 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
30547 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
30548 * sysdeps/sh/libm-test-ulps: Likewise.
30549 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
30550 * sysdeps/tile/libm-test-ulps: Likewise.
30551 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30552
30553 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30554
30555 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
30556
30557 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30558
30559 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
30560 "../ChangeLog.old/ChangeLog.8".
30561 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
30562 "../ChangeLog.old/ChangeLog.14".
30563
30564 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30565
30566 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
30567 Threads Library.
30568
30569 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30570
30571 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
30572
30573 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30574
30575 * csu/version.c (banner): Remove "by Roland McGrath et al.".
30576 * nptl/Banner: Remove "by Ulrich Drepper et al.".
30577
30578 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30579
30580 * stdlib/tst-atexit-common.c (do_test): Test support for at least
30581 32 atexit handlers.
30582
30583 2017-09-01 Zack Weinberg <zackw@panix.com>
30584
30585 * math/math.h (HUGE_VAL): Improve commentary.
30586
30587 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30588 Andreas Schwab <schwab@suse.de>
30589
30590 [BZ #21530]
30591 * include/stdio.h (__gen_tempfd): New function.
30592 * stdio-common/Makefile (routines): Add gentempfd.
30593 * stdio-common/gentempfd.c: New file.
30594 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
30595 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
30596 unnamed file first.
30597
30598 2017-09-01 Florian Weimer <fweimer@redhat.com>
30599
30600 [BZ #21915]
30601 [BZ #21922]
30602 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
30603 result to determine success or failure, not the errno value.
30604 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
30605 (tst-nss-files-hosts-erange): Link with -ldl.
30606 * nss/tst-nss-files-hosts-erange.c: New file.
30607 * nss/tst-resolv-basic.c (response): Handle nodata.example.
30608 (do_test): Add NO_DATA tests.
30609 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
30610 (do_test): Call it.
30611
30612 2017-09-01 Florian Weimer <fweimer@redhat.com>
30613
30614 [BZ #21922]
30615 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
30616 coming from gethostbyname2_r.
30617
30618 2017-09-01 Florian Weimer <fweimer@redhat.com>
30619
30620 * support/namespace.h (struct support_chroot_configuration): Add
30621 hosts, host_conf.
30622 (struct support_chroot): Add path_hosts, path_host_conf.
30623 * support/support_chroot.c (write_file): New function.
30624 (support_chroot_create): Call it to process /etc/resolv.conf,
30625 /etc/hosts, /etc/host.conf.
30626 (support_chroot_free): Update.
30627
30628 2017-09-01 Florian Weimer <fweimer@redhat.com>
30629
30630 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
30631 status indicates it is set.
30632
30633 2017-09-01 Florian Weimer <fweimer@redhat.com>
30634
30635 [BZ #20532]
30636 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
30637 function lookup failures more reliable.
30638
30639 2017-09-01 Florian Weimer <fweimer@redhat.com>
30640
30641 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
30642 (getcanonname): Likewise.
30643 (gaih_inet): Likewise.
30644
30645 2017-09-01 Florian Weimer <fweimer@redhat.com>
30646
30647 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
30648 (getcanonname): Likewise.
30649 (gaih_inet): Likewise.
30650
30651 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30652 Richard Henderson <rth@twiddle.net>
30653
30654 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
30655 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
30656 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
30657 (IREG_SIZE, OREG_SIZE): New macros.
30658 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
30659 (IREG_SIZE, OREG_SIZE): New macros.
30660 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
30661 (IREG_SIZE): New macro.
30662 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
30663 (IREG_SIZE): New macro.
30664 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
30665 New includes.
30666 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
30667 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30668 (__CONCATX): Handle exceptions correctly on large values that may
30669 set FE_INVALID.
30670 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
30671 Initialize if not already set.
30672 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30673
30674 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30675
30676 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
30677 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
30678 Likewise.
30679 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
30680 Likewise.
30681 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
30682 Likewise.
30683 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
30684 Likewise.
30685 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
30686 Likewise.
30687 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
30688 Likewise.
30689 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
30690 Likewise.
30691 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
30692 (NO_CANCELLATION): Likewise.
30693 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
30694 Likewise.
30695 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
30696 Likewise.
30697 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
30698 Likewise.
30699 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
30700 (NO_CANCELLATION): Likewise.
30701 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
30702 (NO_CANCELLATION): Likewise.
30703 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
30704 Likewise
30705 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
30706 Likewise.
30707 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
30708 Likewise.
30709 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
30710 Likewise.
30711 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
30712 hidden prototype.
30713 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
30714 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
30715
30716 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30717
30718 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
30719 in resolver call.
30720
30721 2017-08-31 Florian Weimer <fweimer@redhat.com>
30722
30723 * include/libc-symbols.h (internal_function): Remove.
30724
30725 2017-08-31 Florian Weimer <fweimer@redhat.com>
30726
30727 * stdlib/fmtmsg.c (internal_addseverity): Remove
30728 internal_function.
30729
30730 2017-08-31 Florian Weimer <fweimer@redhat.com>
30731
30732 * stdio-common/printf_fp.c (group_number): Remove
30733 internal_function.
30734 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
30735
30736 2017-08-31 Florian Weimer <fweimer@redhat.com>
30737
30738 * posix/fnmatch.c (internal_function): Remove definition.
30739 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
30740 * posix/regcomp.c (peek_token, init_word_char)
30741 (duplicate_node_closure, fetch_token, peek_token)
30742 (peek_token_bracket, build_range_exp, build_collating_symbol):
30743 Likewise.
30744 * posix/regex_internal.c (re_string_construct_common)
30745 (create_ci_newstate, create_cd_newstate, re_string_allocate)
30746 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
30747 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
30748 (re_string_translate_buffer, re_string_reconstruct)
30749 (re_string_peek_byte_case, re_string_fetch_byte_case)
30750 (re_string_destruct, re_string_context_at, re_node_set_alloc)
30751 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
30752 (re_node_set_add_intersect, re_node_set_init_union)
30753 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
30754 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
30755 (re_dfa_add_node, calc_state_hash, re_acquire_state)
30756 (re_acquire_state_context): Likewise.
30757 * posix/regex_internal.h (internal_function): Remove definition.
30758 (re_string_realloc_buffers, build_wcs_buffer)
30759 (build_wcs_upper_buffer, build_upper_buffer)
30760 (re_string_translate_buffer, re_string_context_at)
30761 (re_string_char_size_at, re_string_wchar_at)
30762 (re_string_elem_size_at): Likewise.
30763 * posix/regexec.c (match_ctx_init, match_ctx_clean)
30764 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
30765 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
30766 (re_search_internal, re_search_2_stub, re_search_stub)
30767 (re_copy_regs, prune_impossible_nodes, check_matching)
30768 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
30769 (free_fail_stack_return, sift_states_iter_mb)
30770 (sift_states_backward, build_sifted_states)
30771 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
30772 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
30773 (check_subexp_limits, sift_states_bkref, merge_state_array)
30774 (find_recover_state, transit_state, merge_state_with_log)
30775 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
30776 (transit_state_mb, transit_state_bkref, get_subexp)
30777 (get_subexp_sub, find_subexp_node, check_arrival)
30778 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
30779 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
30780 (check_node_accept_bytes, find_collation_sequence_value)
30781 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
30782 (acquire_init_state_context, check_halt_node_context)
30783 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
30784 (sub_epsilon_src_nodes): Likewise.
30785 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
30786 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
30787 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
30788 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
30789 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
30790 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
30791 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
30792 * sysdeps/posix/ttyname.c (getttyname): Likewise.
30793 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
30794 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
30795 (PREADV): Likewise.
30796 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
30797 (PREADV): Likewise.
30798 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
30799 (PWRITEV): Likewise.
30800 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
30801 (PWRITEV): Likewise.
30802 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
30803 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
30804
30805 2017-08-31 Florian Weimer <fweimer@redhat.com>
30806
30807 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
30808 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
30809 Remove internal_function.
30810 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
30811 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
30812 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
30813 (__deallocate_stack, __libc_pthread_init)
30814 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
30815 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
30816 (__libc_disable_asynccancel, __librt_disable_asynccancel):
30817 Likewise.
30818 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
30819 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
30820 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
30821 Likewise.
30822 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
30823 (__pthread_mutex_unlock_usercnt): Likewise.
30824
30825 2017-08-31 Florian Weimer <fweimer@redhat.com>
30826
30827 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
30828 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
30829 (fts_safe_changedir): Remove internal_function.
30830 * io/ftw.c (internal_function): Remove definition.
30831 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
30832
30833 2017-08-31 Florian Weimer <fweimer@redhat.com>
30834
30835 * inet/deadline.c (__deadline_current_time)
30836 (__deadline_from_timeval, __deadline_to_ms): Remove
30837 internal_function.
30838 * inet/getnameinfo.c (nrl_domainname): Likewise.
30839 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
30840 * inet/inet6_option.c (add_pad): Likewise.
30841 * inet/net-internal.h (__deadline_current_time)
30842 (__deadline_from_timeval, __deadline_to_ms): Likewise.
30843 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
30844 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
30845 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
30846
30847 2017-08-31 Joseph Myers <joseph@codesourcery.com>
30848
30849 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
30850 include <bits/nan.h>.
30851 * math/Makefile (headers): Remove bits/nan.h.
30852 * bits/nan.h: Remove.
30853 * sysdeps/ieee754/bits/nan.h: Likewise.
30854 * sysdeps/mips/bits/nan.h: Likewise.
30855
30856 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
30857 not include <bits/inf.h>.
30858 * math/Makefile (headers): Remove bits/inf.h.
30859 * bits/inf.h: Remove.
30860 * sysdeps/ieee754/bits/inf.h: Likewise.
30861
30862 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
30863 bits/huge_vall.h or bits/huge_val_flt128.h.
30864 (HUGE_VAL): Define directly here.
30865 [__USE_ISOC99] (HUGE_VALF): Likewise.
30866 [__USE_ISOC99] (HUGE_VALL): Likewise.
30867 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30868 (HUGE_VAL_F128): Likewise.
30869 * math/Makefile (headers): Remove bits/huge_val.h,
30870 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
30871 * bits/huge_val.h: Remove.
30872 * bits/huge_val_flt128.h: Likewise.
30873 * bits/huge_valf.h: Likewise.
30874 * bits/huge_vall.h: Likewise.
30875 * sysdeps/ia64/bits/huge_vall.h: Likewise.
30876 * sysdeps/ieee754/bits/huge_val.h: Likewise.
30877 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
30878 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
30879 * sysdeps/sh/bits/huge_val.h: Likewise.
30880 * sysdeps/sparc/bits/huge_vall.h: Likewise.
30881 * sysdeps/x86/bits/huge_vall.h: Likewise.
30882
30883 2017-08-31 Florian Weimer <fweimer@redhat.com>
30884
30885 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
30886 internal_function.
30887 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
30888 Likewise.
30889 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
30890 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
30891 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
30892 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
30893 * elf/dl-fini.c (_dl_sort_fini): Likewise.
30894 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
30895 * elf/dl-libc.c (dlerror_run): Likewise.
30896 * elf/dl-load.c (add_name_to_object, decompose_rpath)
30897 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
30898 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
30899 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
30900 Likewise.
30901 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
30902 (_dl_higher_prime_number, _dl_strtoul): Likewise.
30903 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
30904 * elf/dl-profile.c (_dl_start_profile): Likewise.
30905 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
30906 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
30907 Likewise.
30908 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
30909 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
30910 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
30911 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
30912 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
30913 (_dl_allocate_tls_storage): Likewise.
30914 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
30915 (_dl_check_all_versions): Likewise.
30916 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
30917 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
30918 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
30919 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
30920 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
30921 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
30922 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
30923 internal_function from __dl_start.
30924 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
30925 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
30926 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
30927 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
30928 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
30929 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
30930 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
30931 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
30932 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
30933 (_dl_next_ld_env_entry, _dl_important_hwcaps)
30934 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
30935 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
30936 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
30937 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
30938 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
30939 Likewise.
30940 (struct rtld_global_ro): Remove internal_function from the
30941 _dl_lookup_symbol_x member.
30942 (_dl_symbol_value): Remove. No longer defined anywhere.
30943 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
30944 internal_function.
30945 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
30946 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
30947 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
30948 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
30949 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
30950 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
30951 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
30952 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
30953 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
30954 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
30955 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
30956 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
30957
30958 2017-08-31 Florian Weimer <fweimer@redhat.com>
30959
30960 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
30961 Remove internal_function.
30962 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
30963 Likewise.
30964 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
30965 Likewise.
30966
30967 2017-08-31 Florian Weimer <fweimer@redhat.com>
30968
30969 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
30970 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
30971 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
30972
30973 2017-08-31 Florian Weimer <fweimer@redhat.com>
30974
30975 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
30976 (__gai_enqueue_request): Remove internal_function.
30977 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
30978 (__gai_remove_request, __gai_notify, __gai_notify_only)
30979 (__gai_sigqueue): Likewise.
30980 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
30981 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
30982 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
30983 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
30984 Likewise.
30985
30986 2017-08-31 Florian Weimer <fweimer@redhat.com>
30987
30988 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
30989 * include/dirent.h (__opendirat, __getdents, __getdents64)
30990 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
30991 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
30992 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30993 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
30994 Likewise.
30995 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
30996
30997 2017-08-31 Florian Weimer <fweimer@redhat.com>
30998
30999 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31000 internal_function.
31001 (GETCWD_RETURN_TYPE): Likewise.
31002
31003 2017-08-31 Florian Weimer <fweimer@redhat.com>
31004
31005 * include/time.h (__tz_compute, __strptime_internal): Remove
31006 internal_function.
31007 * time/strptime_l.c (__strptime_internal): Likewise.
31008 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31009
31010 2017-08-31 Florian Weimer <fweimer@redhat.com>
31011
31012 * iconv/gconv.c (__gconv): Remove internal_function.
31013 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31014 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31015 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31016 (__gconv_release_cache): Likewise.
31017 * iconv/gconv_close.c (__gconv_close): Likewise.
31018 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31019 (read_conf_file, __gconv_get_path): Likewise.
31020 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31021 (__gconv_release_step, gen_steps, increment_counter)
31022 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31023 (__gconv_close_transform, free_modules_db): Likewise.
31024 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31025 Likewise.
31026 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31027 (__gconv_find_transform, __gconv_lookup_cache)
31028 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31029 (__gconv_close_transform, __gconv_release_cache)
31030 (__gconv_loaded_object, __gconv_release_shlib)
31031 (__gconv_compare_alias): Likewise.
31032 * iconv/gconv_open.c (__gconv_open): Likewise.
31033 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31034 * iconv/iconvconfig.c (add_module): Likewise.
31035 * intl/dcigettext.c (plural_lookup, guess_category_value)
31036 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31037 * intl/eval-plural.h (plural_eval): Likewise.
31038 * intl/finddomain.c (_nl_find_domain): Likewise.
31039 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31040 (_nl_load_domain, _nl_find_msg): Likewise.
31041 (internal_function): Remove definition.
31042 * intl/loadinfo.h (internal_function): Likewise.
31043 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31044 internal_function.
31045 * intl/localealias.c (internal_function): Remove definition.
31046 (read_alias_file): Remove internal_function.
31047 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31048 * intl/plural-exp.h (internal_function): Remove definition.
31049 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31050 internal_function.
31051 * intl/plural.c: Regenerate.
31052 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31053 * locale/coll-lookup.c (__collidx_table_lookup)
31054 (__collseq_table_lookup): Likewise.
31055 * locale/coll-lookup.h (__collidx_table_lookup)
31056 (__collseq_table_lookup): Likewise.
31057 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31058 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31059 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31060 (_nl_unload_locale): Likewise.
31061 * locale/localeinfo.h (struct __locale_data): Remove
31062 internal_function from cleanup member.
31063 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31064 (_nl_remove_locale, _nl_load_locale_from_archive)
31065 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31066 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31067 (_nl_cleanup_time): Remove internal_function.
31068 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31069 (_nl_parse_alt_digit): Likewise.
31070 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31071 (_nl_select_era_entry): Likewise.
31072 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31073 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31074 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31075 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31076 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31077
31078 2017-08-31 Florian Weimer <fweimer@redhat.com>
31079
31080 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31081 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31082 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31083 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31084 Likewise.
31085 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31086 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31087 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31088 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31089 Likewise.
31090 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31091
31092 2017-08-31 Florian Weimer <fweimer@redhat.com>
31093
31094 * misc/getttyent.c (skip, value): Remove internal_function.
31095 * misc/syslog.c (openlog_internal): Likewise.
31096 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31097
31098 2017-08-31 Florian Weimer <fweimer@redhat.com>
31099
31100 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31101 (__nss_rewrite_field): Remove internal_function.
31102 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31103 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31104 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31105 * nss/nsswitch.c (nss_parse_file, nss_getline)
31106 (nss_parse_service_list, nss_new_service): Likewise.
31107 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31108 * nss/valid_field.c (__nss_valid_field): Likewise.
31109 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31110
31111 2017-08-31 Florian Weimer <fweimer@redhat.com>
31112
31113 * malloc/arena.c (__malloc_fork_lock_parent)
31114 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31115 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31116 internal_function from defintions.
31117 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31118 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31119 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31120 internal_function from declarations.
31121 * malloc/malloc.c (internal_function): Do not define.
31122 (mem2mem_check): Remove internal_function from declaration.
31123 (munmap_chunk, mremap_chunk): Remove internal_function.
31124 * malloc/mtrace.c (tr_where): Likewise.
31125
31126 2017-08-31 Florian Weimer <fweimer@redhat.com>
31127
31128 * include/rpc/pmap_clnt.h (__get_socket): Remove
31129 internal_function.
31130 * sunrpc/auth_des.c (synchronize): Likewise.
31131 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31132 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31133 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31134 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31135 (key_call): Likewise.
31136 * sunrpc/pm_getport.c (__get_socket): Likewise.
31137 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31138 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31139 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31140 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31141 (invalidate): Likewise.
31142 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31143 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31144 (set_input_fragment, get_input_bytes): Likewise.
31145
31146 2017-08-31 Florian Weimer <fweimer@redhat.com>
31147
31148 * malloc/malloc.c (_int_free): Remove locked variable and related
31149 asserts.
31150
31151 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31152
31153 [BZ #22051]
31154 * Makerules (build-module-helper-objlist): Filter out
31155 $(elf-objpfx)sofini.os.
31156 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31157 needed.
31158
31159 2017-08-31 Florian Weimer <fweimer@redhat.com>
31160
31161 * libio/fcloseall.c: Assume weak_alias is defined.
31162 * libio/feof.c: Likewise.
31163 * libio/fileno.c: Likewise.
31164 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31165 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31166 definitions.
31167 (_IO_file_open): Call __open directly.
31168 (_IO_new_file_sync): Assume ESPIPE is defined.
31169 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31170 (_IO_new_file_write): Call __write directly.
31171 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31172 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31173 * libio/genops.c: Assume _LIBC is defined.
31174 (save_for_backup): Remove internal_function.
31175 * libio/getc.c: Assume weak_alias is defined.
31176 * libio/getwc.c: Likewise.
31177 * libio/iofclose.c: Assume _LIBC is defined.
31178 * libio/iofdopen.c: Likewise.
31179 (_IO_fcntl): Remove macro definition.
31180 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31181 Call __fcntl directly.
31182 * libio/iofflush.c: Assume weak_alias is defined.
31183 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31184 defined.
31185 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31186 * libio/iofgets.c: Likewise.
31187 * libio/iofopen.c: Assume _LIBC is defined.
31188 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31189 * libio/iofputs.c: Assume weak_alias is defined.
31190 * libio/iofread.c: Likewise.
31191 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31192 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31193 * libio/ioftell.c: Assume weak_alias is defined.
31194 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31195 * libio/iofwide.c: Assume _LIBC is defined.
31196 (_IO_fwide): Drop SHARED conditional because it is implied by
31197 SHLIB_COMPAT.
31198 * libio/iofwrite.c: Assume weak_alias is defined.
31199 * libio/iogetdelim.c: Likewise.
31200 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31201 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31202 (_IO_getwline): Call __wmemcpy directly.
31203 * libio/iopopen.c: Assume _LIBC is defined.
31204 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31205 (_IO_close): Remove macro definitions.
31206 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31207 _exit directly.
31208 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31209 directly.
31210 * libio/ioputs.c: Assume weak_alias is defined.
31211 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31212 * libio/iosetbuffer.c: Assume weak_alias is defined.
31213 * libio/iosetvbuf.c: Likewise.
31214 * libio/ioungetc.c: Likewise.
31215 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31216 libc_hidden_def, libc_hidden_weak, NULL are defined.
31217 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31218 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31219 defined.
31220 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31221 definitions.
31222 (_IO_old_file_init_internal): Drop SHARED conditional because it
31223 is implied by SHLIB_COMPAT.
31224 (_IO_old_file_fopen): Call __open directly.
31225 (_IO_old_file_sync): Assume ESPIPE is defined.
31226 (_IO_old_file_write): Call __write directly.
31227 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31228 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31229 Call __fcntl directly.
31230 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31231 (_IO_old_fgetpos): Assume EIO is defined.
31232 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31233 (_IO_old_fgetpos64): Assume EIO is defined.
31234 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31235 (_IO_old_fsetpos): Assume EIO is defined.
31236 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31237 (_IO_old_fsetpos64): Assume EIO is defined.
31238 * libio/oldiopopen.c: Assume _LIBC is defined.
31239 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31240 (_IO_close): Remove macro definitions.
31241 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31242 directly.
31243 (_IO_old_proc_close): Call __close, __waitpid directly.
31244 * libio/put.c: Assume weak_alias is defined.
31245 * libio/stdfiles.c: Assume _LIBC is defined.
31246 * libio/stdio.c: Likewise.
31247 * libio/wfileops.c: Likewise.
31248 (_IO_wfile_sync): Assume ESPIPE is defined.
31249 * libio/wgenops.c: Assume _LIBC is defined.
31250 (save_for_wbackup): Remove internal_function.
31251
31252 2017-08-31 Florian Weimer <fweimer@redhat.com>
31253
31254 * malloc/malloc.c (top_check): Change return type to void. Remove
31255 internal_function.
31256 * malloc/hooks.c (top_check): Likewise.
31257 (malloc_check, realloc_check, memalign_check): Adjust.
31258
31259 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31260
31261 [BZ #21457]
31262 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31263 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31264 sigcontext and namespace requirements.
31265 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31266 * sysdeps/m68k/sys/ucontext.h: Likewise.
31267 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31268 * sysdeps/unix/sysv/linux/aarch64/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/aarch64/ucontext_i.sym (oEXTENSION): Use
31274 __glibc_reserved1 instead of __reserved.
31275 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31276 <bits/sigcontext.h>.
31277 (__ctx): Define earlier.
31278 (mcontext_t): Define structure contents rather than using struct
31279 sigcontext.
31280 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31281 mcontext_t instead of struct sigcontext.
31282 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31283 <bits/sigcontext.h>.
31284 (__ctx): Define earlier.
31285 (mcontext_t): Define structure contents rather than using struct
31286 sigcontext.
31287 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31288 <bits/sigcontext.h>.
31289 (__ctx): Define earlier.
31290 (mcontext_t): Define structure contents rather than using struct
31291 sigcontext.
31292 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31293 mcontext_t instead of struct sigcontext.
31294 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31295 mcontext_t instead of struct sigcontext.
31296 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31297 <bits/sigcontext.h>.
31298 (__ctx): New macro.
31299 (struct __ia64_fpreg_mcontext): New type.
31300 (mcontext_t): Define structure contents rather than using struct
31301 sigcontext.
31302 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31303 (uc_sigmask): Define using __ctx.
31304 (uc_stack): Likewise.
31305 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31306 <bits/sigcontext.h>.
31307 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31308 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31309 <bits/sigcontext.h>.
31310 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31311 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31312 <bits/sigcontext.h>.
31313 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31314 <bits/sigcontext.h>.
31315 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31316 <bits/sigcontext.h>.
31317 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31318 <bits/sigcontext.h>.
31319 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31320 <bits/sigcontext.h>.
31321 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31322 <bits/sigcontext.h>.
31323 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31324 <bits/sigcontext.h>.
31325 (__ctx): Define earlier.
31326 (mcontext_t): Define structure contents rather than using struct
31327 sigcontext.
31328 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31329 <bits/sigcontext.h>. Include <bits/types.h>.
31330 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31331 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31332 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31333 (test-xfail-UNIX98/signal.h/conform): Likewise.
31334 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31335 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31336 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31337 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31338 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31339 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31340 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31341 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31342 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31343
31344 2017-08-30 Florian Weimer <fweimer@redhat.com>
31345
31346 * malloc/dynarray_emplace_enlarge.c
31347 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31348 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31349 * malloc/tst-dynarray.c (test_long_overflow): New function.
31350 (do_test): Call it.
31351
31352 2017-08-30 Florian Weimer <fweimer@redhat.com>
31353
31354 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31355 (set_arena_corrupt): Remove definitions.
31356 (mtrim): Do not check for corrupt arena.
31357 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31358 Likewise.
31359
31360 2017-08-30 Florian Weimer <fweimer@redhat.com>
31361
31362 [BZ #21754]
31363 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31364 check_action.
31365 (ptmalloc_init): Do not set or use check_action.
31366 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31367 call to malloc_printerr. Remove return statement.
31368 (free_check): Likewise. Remove arena unlock.
31369 (top_check): Update comment. Adjust call to malloc_printerr.
31370 Remove heap repair code.
31371 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31372 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31373 (sysmalloc): Adjust call to malloc_printerr.
31374 (munmap_chunk, __libc_realloc): Likewise. Remove return
31375 statement.
31376 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31377 Remove errout label and corresponding gotos.
31378 (_int_free): Likewise. Remove arena unlock.
31379 (do_set_mallopt_check): Do not set check_action.
31380 (malloc_printerr): Adjust parameter list. Do not mark arena as
31381 corrupt.
31382 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31383 comment.
31384 * manual/probes.texi (Memory Allocation Probes): Remove
31385 memory_mallopt_check_action.
31386
31387 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31388
31389 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31390 Use pointer to uint64_t instead of long int for sp.
31391
31392 2017-08-30 Florian Weimer <fweimer@redhat.com>
31393
31394 [BZ #21754]
31395 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31396 without printing a backtrace. Do not leak any information in the
31397 error message.
31398 * manual/memory.texi (Heap Consistency Checking): Update.
31399 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31400
31401 2017-08-30 Florian Weimer <fweimer@redhat.com>
31402
31403 Do not scale NPTL tests with available number of CPUs.
31404 * nptl/tst-cond16.c (count): Set to constant value of 8.
31405 * nptl/tst-cond18.c (count): Likewise.
31406
31407 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31408
31409 [BZ #22035]
31410 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31411 Define to take a second argument that is a macro that
31412 concatentates a suffix, not the suffix itself.
31413 (__CONCAT_d): New macro.
31414 (__CONCAT_f): Likewise.
31415 (__CONCAT_l): Likewise.
31416
31417 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
31418
31419 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
31420 by child.
31421
31422 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31423 Aurelien Jarno <aurelien@aurel32.net>
31424 Maciej W. Rozycki <macro@imgtec.com>
31425
31426 [BZ #21956]
31427 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
31428 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
31429 `mips16-syscall6' and `mips16-syscall7'.
31430 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
31431 (CFLAGS-mips16-syscall7.c): Remove.
31432 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
31433 Remove `__mips16_syscall5', `__mips16_syscall6' and
31434 `__mips16_syscall7'.
31435 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
31436 (__mips16_syscall0): Rename `__mips16_syscall_return' to
31437 `__mips_syscall_return'.
31438 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
31439 (__mips16_syscall1): Likewise.
31440 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
31441 (__mips16_syscall2): Likewise.
31442 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
31443 (__mips16_syscall3): Likewise.
31444 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
31445 (__mips16_syscall4): Likewise.
31446 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
31447 Remove.
31448 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
31449 Remove.
31450 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
31451 Remove.
31452 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
31453 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
31454 `__mips16_syscall5'. Remove prototype.
31455 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
31456 `__mips16_syscall6'. Remove prototype.
31457 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
31458 `__mips16_syscall7'. Remove prototype.
31459 (__nomips16, __mips16_syscall_return): Move to...
31460 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
31461 (__nomips16, __mips_syscall_return): ... here.
31462 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
31463 `__mips16_syscall_return' to `__mips_syscall_return'.
31464 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
31465 `internal_syscall##nr'.
31466 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
31467 `internal_syscall##nr'.
31468 (FORCE_FRAME_POINTER): Remove.
31469 (__mips_syscall5): New prototype.
31470 (internal_syscall5): Rewrite to call `__mips_syscall5'.
31471 (__mips_syscall6): New prototype.
31472 (internal_syscall6): Rewrite to call `__mips_syscall6'.
31473 (__mips_syscall7): New prototype.
31474 (internal_syscall7): Rewrite to call `__mips_syscall7'.
31475 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
31476 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
31477 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
31478 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
31479 (sysdep_routines): Add libc-do-syscall.
31480 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
31481 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
31482
31483 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31484
31485 [BZ #21672]
31486 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
31487 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
31488 (advise_stack_range): New function.
31489 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
31490 stack non required to advise_stack_range at allocatestack.c
31491
31492 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31493
31494 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
31495
31496 2017-08-29 Florian Weimer <fweimer@redhat.com>
31497
31498 [BZ #22026]
31499 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
31500 __end_fct. Mangle __end_fct after setting it to NULL.
31501 * iconv/Makefile (tests): Add tst-gconv-init-failure.
31502 (modules-names, modules-names-tests): Add
31503 tst-gconv-init-failure-mod.
31504 (gconv-modules): New target.
31505 (tst-gconv-init-failure-mod.so): Link against libsupport.
31506 (tst-gconv-init-failure): Depend on gconv-modules,
31507 tst-gconv-init-failure-mod.so.
31508 * iconv/tst-gconv-init-failure-mod.c: New file.
31509 * iconv/tst-gconv-init-failure.c: Likewise.
31510 * iconv/test-gconv-modules: Likewise.
31511
31512 2017-08-29 Florian Weimer <fweimer@redhat.com>
31513
31514 [BZ #22025]
31515 * iconv/gconv_db.c (free_derivation): Remove redundant
31516 parentheses.
31517 (gen_steps): Unconditionally mangle __btowc_fct after
31518 initialization.
31519 (increment_counter): Likewise. Do not call init_fct for internal
31520 modules.
31521
31522 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31523
31524 [BZ #22028]
31525 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31526 (_MSUF_): Remove macro.
31527 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
31528 Likewise.
31529 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31530 (__REDIRFROM_X): New macro.
31531 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
31532 Likewise.
31533 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
31534 (__REDIRTO_X): Likewise.
31535 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
31536 arguments.
31537 (__MATH_REDIRCALL_2): Likewise.
31538 (__MATH_REDIRCALL_INTERNAL): Likewise.
31539 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31540 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
31541 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
31542 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31543 * math/test-finite-macros.c: New file.
31544 * math/Makefile (tests): Add test-finite-macros.
31545 (CFLAGS-test-finite-macros.c): New variable.
31546
31547 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
31548 Jeff Law <law@redhat.com>
31549
31550 [BZ #22025]
31551 Mangle NULL pointers in iconv/gconv.
31552 * iconv/gconv_cache.c (find_module): Demangle init_fct before
31553 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
31554 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
31555 is non-NULL before demangling the end_fct. Check for NULL
31556 end_fct after demangling.
31557 (__gconv_release_step): Demangle the end_fct before checking
31558 it for NULL. Remove assert on __shlibc_handle != NULL.
31559 (gen_steps): Don't check btowc_fct for NULL before mangling.
31560 Demangle init_fct before checking for NULL.
31561 (increment_counter): Likewise.
31562 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
31563 end_fct for NULL before mangling.
31564 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
31565 for NULL.
31566
31567 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
31568
31569 [BZ #21971]
31570 * locale/iso-639.def: add Morisyen.
31571
31572 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31573
31574 [BZ #21930]
31575 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
31576 (iszero): New C++ implementation that does not use
31577 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
31578 signaling nans are enabled, since __builtin_types_compatible_p
31579 is a C-only feature.
31580 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
31581 defined, include ieee754_float128.h for access to the union and
31582 member ieee854_float128.ieee.
31583 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
31584 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
31585 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31586 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
31587 options of test-math-zero on powerpc64le.
31588
31589 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
31590
31591 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
31592 Change double to float.
31593
31594 2017-08-28 Joseph Myers <joseph@codesourcery.com>
31595
31596 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
31597 unconditional.
31598 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
31599 conditional code; define contents only for [LIBM_SVID_COMPAT].
31600
31601 2017-08-28 Florian Weimer <fweimer@redhat.com>
31602
31603 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
31604 (abi-lp64_be-options): Remove.
31605 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
31606 (abi-hard-options): Likewise.
31607 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
31608 (abi-o32_hard-options, abi-o32_soft_2008-options)
31609 (abi-o32_hard_2008-options, abi-n32_soft-options)
31610 (abi-n32_hard-options, abi-n32_soft_2008-options)
31611 (abi-n32_hard_2008-options, abi-n64_soft-options)
31612 (abi-n64_hard-options, abi-n64_soft_2008-options)
31613 (abi-n64_hard_2008-options): Likewise.
31614 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
31615 (abi-64-v1-options, abi-64-v2-options): Likewise.
31616 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
31617 (abi-64-options): Likewise.
31618 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
31619 (abi-64-options): Likewise.
31620 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
31621 (abi-64-options): Likewise.
31622 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
31623 (abi-64-options, abi-x32-options): Likewise.
31624
31625 2017-08-28 Florian Weimer <fweimer@redhat.com>
31626
31627 Store supported list of SYS_* system calls in the source tree.
31628 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
31629 (bits/syscall.h): Generate from list file.
31630 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
31631 [$(subdir) = misc] (tests): Add tst-syscall-list.
31632 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
31633 [$(subdir) = misc] (tst-syscall-list-macros.list)
31634 [$(subdir) = misc] (tst-syscall-list-nr.list)
31635 (tst-syscall-list-sys.list): Helper targets for new
31636 tst-syscall-list test.
31637 [$(subdir) = misc] (tst-syscall-list.out): Run test script
31638 tst-syscall-list.sh.
31639 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
31640 target. Do not include bits/syscall.d.
31641 [$(subdir) = misc] (generated): Do not update.
31642 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
31643 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
31644 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
31645 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
31646
31647 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
31648
31649 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
31650 (tst-cxa_atexit, tst-on_exit): Likewise.
31651 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
31652 tst-cxa_atexit, and tst-on_exit.
31653 * stdlib/tst-atexit-common.c: New file.
31654 * stdlib/tst-atexit.c: New file.
31655 * stdlib/tst-at_quick_exit.c: New file.
31656 * stdlib/tst-cxa_atexit.c: New file.
31657 * stdlib/tst-on_exit.c: New file.
31658
31659 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
31660
31661 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
31662 * mach/stack_chk_fail_local.c: New file.
31663 * hurd/stack_chk_fail_local.c: New file.
31664 * mach/Machrules ($(interface-library)-routines): Add
31665 stack_chk_fail_local.
31666 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
31667 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
31668 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
31669 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
31670 * hurd/Makefile (CFLAGS-hurdstartup.o,
31671 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
31672
31673 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
31674
31675 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31676 (index_cpu_*, index_arch_*): Removed.
31677
31678 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
31679
31680 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
31681 Use uint64_t instead of unsigned long.
31682
31683 2017-08-25 Joseph Myers <joseph@codesourcery.com>
31684
31685 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
31686 [__HAVE_DISTINCT_FLOAT128].
31687
31688 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
31689 of <bits/math-finite.h>.
31690 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
31691 inclusion of <bits/math-finite.h>.
31692 * math/bits/math-finite.h (__REDIRTO_X): Do not define
31693 conditionally on [__MATH_DECLARING_LDOUBLE && defined
31694 __NO_LONG_DOUBLE_MATH].
31695 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
31696 (__MATH_REDIRCALL_2): Likewise.
31697 (__MATH_REDIRCALL_INTERNAL): Likewise.
31698 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31699 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
31700 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31701
31702 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
31703 Remove file.
31704 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
31705 Likewise.
31706 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
31707 Likewise.
31708 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
31709 Likewise.
31710 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
31711 Likewise.
31712 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
31713 Likewise.
31714 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31715 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31716 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31717 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31718 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
31719 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
31720 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
31721 w_sqrtf_compat-ppc32.
31722
31723 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31724
31725 * math/math.h [defined __cplusplus] (issignaling): In the long
31726 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
31727 is not defined. Call __issignaling, otherwise.
31728
31729 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31730
31731 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
31732 syscall definitions and replace __builtin_expect with __glibc_likely.
31733 * sysdeps/unix/syscall-template.S: Update comment about cancellable
31734 syscall.
31735 (SYSCALL_CANCELLABLE): Removedefinition
31736 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
31737 definition.
31738 (PSEUDO_END): Likewise.
31739 [IS_IN (libpthread)] (CENABLE): Likewise.
31740 [IS_IN (libpthread)] (CDISABLE): Likewise.
31741 [IS_IN (libc)] (CENABLE): Likewise.
31742 [IS_IN (libc)] (CENABLE): Likewise.
31743 [IS_IN (librt)] (CDISABLE): Likewise.
31744 [IS_IN (librt)] (CDISABLE): Likewise.
31745 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31746 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
31747 definition.
31748 (PSEUDO_END): Likewise.
31749 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
31750 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
31751 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
31752 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
31753 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
31754 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
31755 (CENABLE): Likewise.
31756 (CDISABLE): Likewise.
31757 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31758 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
31759 defintion.
31760 (PSEUDO_END): Likewise.
31761 [IS_IN (libpthread)] (CENABLE): Likewise.
31762 [IS_IN (libpthread)] (CDISABLE): Likewise.
31763 [IS_IN (libc)] (CENABLE): Likewise.
31764 [IS_IN (libc)] (CENABLE): Likewise.
31765 [IS_IN (librt)] (CDISABLE): Likewise.
31766 [IS_IN (librt)] (CDISABLE): Likewise.
31767 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31768 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
31769 definition.
31770 (PSEUDO_END): Likewise.
31771 [IS_IN (libpthread)] (CENABLE): Likewise.
31772 [IS_IN (libpthread)] (CDISABLE): Likewise.
31773 [IS_IN (libc)] (CENABLE): Likewise.
31774 [IS_IN (libc)] (CENABLE): Likewise.
31775 [IS_IN (librt)] (CDISABLE): Likewise.
31776 [IS_IN (librt)] (CDISABLE): Likewise.
31777 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31778 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
31779 definition.
31780 (PSEUDO_END): Likewise.
31781 [IS_IN (libpthread)] (CENABLE): Likewise.
31782 [IS_IN (libpthread)] (CDISABLE): Likewise.
31783 [IS_IN (libc)] (CENABLE): Likewise.
31784 [IS_IN (libc)] (CENABLE): Likewise.
31785 [IS_IN (librt)] (CDISABLE): Likewise.
31786 [IS_IN (librt)] (CDISABLE): Likewise.
31787 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31788 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
31789 definition.
31790 (PSEUDO_END): Likewise.
31791 [IS_IN (libpthread)] (CENABLE): Likewise.
31792 [IS_IN (libpthread)] (CDISABLE): Likewise.
31793 [IS_IN (libc)] (CENABLE): Likewise.
31794 [IS_IN (libc)] (CENABLE): Likewise.
31795 [IS_IN (librt)] (CDISABLE): Likewise.
31796 [IS_IN (librt)] (CDISABLE): Likewise.
31797 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31798 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
31799 definition.
31800 (PSEUDO_END): Likewise.
31801 [IS_IN (libpthread)] (CENABLE): Likewise.
31802 [IS_IN (libpthread)] (CDISABLE): Likewise.
31803 [IS_IN (libc)] (CENABLE): Likewise.
31804 [IS_IN (libc)] (CENABLE): Likewise.
31805 [IS_IN (librt)] (CDISABLE): Likewise.
31806 [IS_IN (librt)] (CDISABLE): Likewise.
31807 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31808 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
31809 definition.
31810 (PSEUDO_END): Likewise.
31811 [IS_IN (libpthread)] (CENABLE): Likewise.
31812 [IS_IN (libpthread)] (CDISABLE): Likewise.
31813 [IS_IN (libc)] (CENABLE): Likewise.
31814 [IS_IN (libc)] (CENABLE): Likewise.
31815 [IS_IN (librt)] (CDISABLE): Likewise.
31816 [IS_IN (librt)] (CDISABLE): Likewise.
31817 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31818 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
31819 Remove definition.
31820 (PSEUDO_END): Likewise.
31821 [IS_IN (libpthread)] (CENABLE): Likewise.
31822 [IS_IN (libpthread)] (CDISABLE): Likewise.
31823 [IS_IN (libc)] (CENABLE): Likewise.
31824 [IS_IN (libc)] (CENABLE): Likewise.
31825 [IS_IN (librt)] (CDISABLE): Likewise.
31826 [IS_IN (librt)] (CDISABLE): Likewise.
31827 (SINGLE_THREAD_P): Likewise.
31828 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
31829 definition.
31830 (PSEUDO_END): Likewise.
31831 [IS_IN (libpthread)] (CENABLE): Likewise.
31832 [IS_IN (libpthread)] (CDISABLE): Likewise.
31833 [IS_IN (libc)] (CENABLE): Likewise.
31834 [IS_IN (libc)] (CENABLE): Likewise.
31835 [IS_IN (librt)] (CDISABLE): Likewise.
31836 [IS_IN (librt)] (CDISABLE): Likewise.
31837 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31838 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
31839 definition.
31840 (PSEUDO_END): Likewise.
31841 [IS_IN (libpthread)] (CENABLE): Likewise.
31842 [IS_IN (libpthread)] (CDISABLE): Likewise.
31843 [IS_IN (libc)] (CENABLE): Likewise.
31844 [IS_IN (libc)] (CENABLE): Likewise.
31845 [IS_IN (librt)] (CDISABLE): Likewise.
31846 [IS_IN (librt)] (CDISABLE): Likewise.
31847 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31848 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
31849 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
31850 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
31851 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
31852 definition.
31853 (PSEUDO_END): Likewise.
31854 [IS_IN (libpthread)] (CENABLE): Likewise.
31855 [IS_IN (libpthread)] (CDISABLE): Likewise.
31856 [IS_IN (libc)] (CENABLE): Likewise.
31857 [IS_IN (libc)] (CENABLE): Likewise.
31858 [IS_IN (librt)] (CDISABLE): Likewise.
31859 [IS_IN (librt)] (CDISABLE): Likewise.
31860 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31861 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
31862 definition.
31863 (PSEUDO_END): Likewise.
31864 [IS_IN (libpthread)] (CENABLE): Likewise.
31865 [IS_IN (libpthread)] (CDISABLE): Likewise.
31866 [IS_IN (libc)] (CENABLE): Likewise.
31867 [IS_IN (libc)] (CENABLE): Likewise.
31868 [IS_IN (librt)] (CDISABLE): Likewise.
31869 [IS_IN (librt)] (CDISABLE): Likewise.
31870 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31871 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
31872 definition.
31873 (PSEUDO_END): Likewise.
31874 [IS_IN (libpthread)] (CENABLE): Likewise.
31875 [IS_IN (libpthread)] (CDISABLE): Likewise.
31876 [IS_IN (libc)] (CENABLE): Likewise.
31877 [IS_IN (libc)] (CENABLE): Likewise.
31878 [IS_IN (librt)] (CDISABLE): Likewise.
31879 [IS_IN (librt)] (CDISABLE): Likewise.
31880 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31881 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
31882 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
31883 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
31884 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
31885 definition.
31886 (PSEUDO_END): Likewise.
31887 [IS_IN (libpthread)] (CENABLE): Likewise.
31888 [IS_IN (libpthread)] (CDISABLE): Likewise.
31889 [IS_IN (libc)] (CENABLE): Likewise.
31890 [IS_IN (libc)] (CENABLE): Likewise.
31891 [IS_IN (librt)] (CDISABLE): Likewise.
31892 [IS_IN (librt)] (CDISABLE): Likewise.
31893 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31894 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
31895 definition.
31896 (PSEUDO_END): Likewise.
31897 [IS_IN (libpthread)] (CENABLE): Likewise.
31898 [IS_IN (libpthread)] (CDISABLE): Likewise.
31899 [IS_IN (libc)] (CENABLE): Likewise.
31900 [IS_IN (libc)] (CENABLE): Likewise.
31901 [IS_IN (librt)] (CDISABLE): Likewise.
31902 [IS_IN (librt)] (CDISABLE): Likewise.
31903 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31904
31905 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
31906
31907 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
31908
31909 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
31910
31911 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
31912
31913 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
31914
31915 [BZ #21982]
31916 * string/stratcliff.c (do_test): Declare size, nchars, inner,
31917 middle and outer with size_t instead of int. Repleace %d and
31918 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
31919 "MAX (outer, nchars - 64)" to support unsigned outer and
31920 nchars. Also exit loop when outer == 0.
31921
31922 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31923
31924 * include/fcntl.h (__fcntl_nocancel): Remove definition.
31925 * include/signal.h (__sigsuspend_nocancel): Likewise.
31926 * include/time.h (__nanosleep_nocancel): Likewise.
31927 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
31928 * login/utmp_file.c: Include non cancellable syscall header.
31929 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
31930 prototype.
31931
31932 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
31933
31934 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
31935 .byte sequences with AVX512F instructions.
31936 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
31937 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
31938 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
31939 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
31940 Likewise.
31941 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
31942 Likewise.
31943
31944 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
31945 Steve Ellcey <sellcey@cavium.com>
31946
31947 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
31948 Use PTR_REG macro in cmp instruction.
31949
31950 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31951
31952 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
31953 Change the return type of the ifunc resolver to match the return
31954 type of the target function.
31955
31956 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31957
31958 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
31959 (preadv64): Likewise.
31960 (pwrite64(: Likewise.
31961 (pwritev64): Likewise.
31962
31963 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
31964 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
31965 (LOAD_ARGS_0): Likewise.
31966 (LOAD_ARGS_1): Likewise.
31967 (LOAD_ARGS_2): Likewise.
31968 (LOAD_ARGS_3): Likewise.
31969 (LOAD_ARGS_4): Likewise.
31970 (LOAD_ARGS_5): Likewise.
31971 (LOAD_ARGS_6): Likewise.
31972 (LOAD_REGS_0): Likewise.
31973 (LOAD_REGS_1): Likewise.
31974 (LOAD_REGS_2): Likewise.
31975 (LOAD_REGS_3): Likewise.
31976 (LOAD_REGS_4): Likewise.
31977 (LOAD_REGS_5): Likewise.
31978 (LOAD_REGS_6): Likewise.
31979 (ASM_ARGS_0): Likewise.
31980 (ASM_ARGS_1): Likewise.
31981 (ASM_ARGS_2): Likewise.
31982 (ASM_ARGS_3): Likewise.
31983 (ASM_ARGS_4): Likewise.
31984 (ASM_ARGS_5): Likewise.
31985 (ASM_ARGS_6): Likewise.
31986 (LOAD_ARGS_TYPES_1): Likewise.
31987 (LOAD_ARGS_TYPES_2): Likewise.
31988 (LOAD_ARGS_TYPES_3): Likewise.
31989 (LOAD_ARGS_TYPES_4): Likewise.
31990 (LOAD_ARGS_TYPES_5): Likewise.
31991 (LOAD_ARGS_TYPES_6): Likewise.
31992 (LOAD_REGS_TYPES_1): Likewise.
31993 (LOAD_REGS_TYPES_2): Likewise.
31994 (LOAD_REGS_TYPES_3): Likewise.
31995 (LOAD_REGS_TYPES_4): Likewise.
31996 (LOAD_REGS_TYPES_5): Likewise.
31997 (LOAD_REGS_TYPES_6): Likewise.
31998 (TYPEFY): New define.
31999 (ARGIFY): Likewise.
32000 (internal_syscall0): Likewise.
32001 (internal_syscall1): Likewise.
32002 (internal_syscall2): Likewise.
32003 (internal_syscall3): Likewise.
32004 (internal_syscall4): Likewise.
32005 (internal_syscall5): Likewise.
32006 (internal_syscall6): Likewise.
32007 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32008 (INTERNAL_SYSCALL_NCS): Remove define.
32009 (internal_syscall1): Add define.
32010
32011 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32012
32013 * math/w_remainder_compat.c: Remove duplicate inclusion of
32014 math-svid-compat.h.
32015 * math/w_remainderf_compat.c: Likewise.
32016 * math/w_remainderl_compat.c: Likewise.
32017
32018 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32019
32020 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32021
32022 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32023
32024 [BZ #21684]
32025 * math/tgmath.h (__floating_type): Simplify definitions.
32026 (__real_integer_type): New macro.
32027 (__complex_integer_type): Likewise.
32028 (__expr_is_real): Likewise.
32029 (__tgmath_real_type_sub): Update comment to describe handling of
32030 complex types.
32031 (__tgmath_complex_type_sub): New macro.
32032 (__tgmath_complex_type): Likewise.
32033 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32034 (__TGMATH_CF128): Use __expr_is_real.
32035 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32036 __expr_is_real.
32037 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32038 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32039 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32040 integer types.
32041
32042 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32043
32044 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32045 macro.
32046 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32047 alias.
32048 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32049 Likewise.
32050
32051 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32052 nanosleep_not_cancel with __nanosleep_nocancel.
32053 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32054 (__nanosleep_nocancel): New macro.
32055 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32056 function.
32057 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32058 macro.
32059 (__nanosleep_nocancel): New prototype.
32060
32061 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32062 pause_not_cancel with __pause_nocancel.
32063 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32064 (__pause_nocancel): New macro.
32065 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32066 macro.
32067 (__pause_nocancel): New prototype.
32068 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32069
32070 2017-08-22 Martin Sebor <msebor@redhat.com>
32071
32072 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32073 to return a pointer to the same type as the target function.
32074
32075 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32076
32077 [BZ #18822]
32078 [BZ #21986]
32079 * include/printf.h (__printf_fphex): Add attribute_hidden.
32080 (__guess_grouping): New prototype.
32081 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32082 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32083 libc_hidden_proto and libc_hidden_def.
32084 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32085 (__vstrfmon_l): Remove the third argument passed to
32086 __guess_grouping.
32087
32088 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32089
32090 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32091 definition for issignaling that does not rely on __MATH_TG,
32092 since __MATH_TG uses __builtin_types_compatible_p, which is only
32093 available in C mode.
32094 (CFLAGS-test-math-issignaling.cc): New variable.
32095 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32096 * math/test-math-issignaling.cc: New test for C++ implementation
32097 of type-generic issignaling.
32098 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32099 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32100 options of test-math-issignaling on powerpc64le.
32101
32102 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32103
32104 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32105 building libc.a.
32106 (hidden_proto): Likewise.
32107 (hidden_tls_proto): Likewise.
32108 (__hidden_proto): Likewise.
32109
32110 2017-08-22 Florian Weimer <fweimer@redhat.com>
32111
32112 math: Statically link tests of internal functionality.
32113 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32114 atest-exp2.
32115 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32116 (gmp-objs): Remove assignment.
32117 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32118
32119 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32120
32121 [BZ #21987]
32122 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32123 and copy to ...
32124 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32125 ... here.
32126 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32127 ... and here.
32128
32129 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32130 variable definitions above inclusion of ../Rules.
32131
32132 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32133
32134 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32135 case calling __builtin_unreachable.
32136
32137 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32138
32139 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32140 __waitpid_nocancel.
32141 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32142 (__waitpid_nocancel): New macro.
32143 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32144 macro.
32145 (__waitpid_nocancel): Replace macro with a function.
32146 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32147 function.
32148
32149 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32150 __fcntl_nocancel.
32151 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32152 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32153
32154 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32155 __writev_nocancel_nostatus.
32156 (write_call_graph): Likewise.
32157 (write_bb_counts): Likewise.
32158 * resolv/herror.c (herror): Likewise.
32159 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32160 macro.
32161 (__writev_nocancel_nostatus): New macro.
32162 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32163 Remove macro.
32164 (__writev_nocancel_nostatus): New function.
32165
32166 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32167
32168 Revert:
32169 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32170
32171 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32172 building libc.a.
32173 (hidden_proto): Likewise.
32174 (hidden_tls_proto): Likewise.
32175 (__hidden_proto): Likewise.
32176
32177 [BZ #21973]
32178 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32179 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32180 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32181 Likewise.
32182 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32183 Likewise.
32184 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32185 Likewise.
32186 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32187 Likewise.
32188 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32189 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32190 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32191 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32192 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32193 GLIBC_2.0 sqrtl symbol.
32194
32195 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32196 [__USE_MISC] (_LIB_VERSION): Likewise.
32197 [__USE_MISC] (struct exception): Likewise.
32198 [__USE_MISC] (matherr): Likewise.
32199 [__USE_MISC] (DOMAIN): Likewise.
32200 [__USE_MISC] (SING): Likewise.
32201 [__USE_MISC] (OVERFLOW): Likewise.
32202 [__USE_MISC] (UNDERFLOW): Likewise.
32203 [__USE_MISC] (TLOSS): Likewise.
32204 [__USE_MISC] (PLOSS): Likewise.
32205 [__USE_MISC] (HUGE): Likewise.
32206 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32207 * math/math-svid-compat.h: New file.
32208 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32209 and matherrl.
32210 * include/math.h [!_ISOMAC] (__matherr): Remove.
32211 * manual/arith.texi (FP Exceptions): Do not document matherr.
32212 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32213 (tests-internal): New variable.
32214 (install-lib): Do not add libieee.a.
32215 (non-lib.a): Likewise.
32216 (extra-objs): Do not add libieee.a and ieee-math.o.
32217 (CPPFLAGS-s_lib_version.c): Remove variable.
32218 ($(objpfx)libieee.a): Remove rule.
32219 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32220 * math/ieee-math.c: Remove.
32221 * math/libm-test-support.c (matherr): Remove.
32222 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32223 and license notices. Include <math-svid-compat.h> and
32224 <shlib-compat.h>.
32225 (matherr): Undefine as macro. Use compat_symbol_reference.
32226 (_LIB_VERSION): Likewise.
32227 * math/test-matherr-2.c: New file.
32228 * math/test-matherr-3.c: Likewise.
32229 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32230 declaration.
32231 (__kernel_standard_f): Likewise.
32232 (__kernel_standard_l): Likewise.
32233 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32234 <math_private.h>. Include <math-svid-compat.h>.
32235 (_LIB_VERSION): Undefine as macro.
32236 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32237 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32238 [LIBM_SVID_COMPAT], use compat_symbol.
32239 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32240 <math_private.h>. Include <math-svid-compat.h>.
32241 (matherr): Undefine as macro.
32242 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32243 compat_symbol.
32244 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32245 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32246 compat_symbol_reference.
32247 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32248 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32249 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32250 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32251 (MATHERR_D): Remove declaration.
32252 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32253 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32254 [LIBM_BUILD] (pmatherrf): Likewise.
32255 [LIBM_BUILD] (pmatherr): Likewise.
32256 [LIBM_BUILD] (pmatherrl): Likewise.
32257 (DOMAIN): Likewise.
32258 (SING): Likewise.
32259 (OVERFLOW): Likewise.
32260 (UNDERFLOW): Likewise.
32261 (TLOSS): Likewise.
32262 (PLOSS): Likewise.
32263 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32264 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32265 compat_symbol.
32266 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32267 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32268 compat_symbol.
32269 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32270 * math/w_acos_compat.c: Likewise.
32271 * math/w_acosf_compat.c: Likewise.
32272 * math/w_acosh_compat.c: Likewise.
32273 * math/w_acoshf_compat.c: Likewise.
32274 * math/w_acoshl_compat.c: Likewise.
32275 * math/w_acosl_compat.c: Likewise.
32276 * math/w_asin_compat.c: Likewise.
32277 * math/w_asinf_compat.c: Likewise.
32278 * math/w_asinl_compat.c: Likewise.
32279 * math/w_atan2_compat.c: Likewise.
32280 * math/w_atan2f_compat.c: Likewise.
32281 * math/w_atan2l_compat.c: Likewise.
32282 * math/w_atanh_compat.c: Likewise.
32283 * math/w_atanhf_compat.c: Likewise.
32284 * math/w_atanhl_compat.c: Likewise.
32285 * math/w_cosh_compat.c: Likewise.
32286 * math/w_coshf_compat.c: Likewise.
32287 * math/w_coshl_compat.c: Likewise.
32288 * math/w_exp10_compat.c: Likewise.
32289 * math/w_exp10f_compat.c: Likewise.
32290 * math/w_exp10l_compat.c: Likewise.
32291 * math/w_exp2_compat.c: Likewise.
32292 * math/w_exp2f_compat.c: Likewise.
32293 * math/w_exp2l_compat.c: Likewise.
32294 * math/w_fmod_compat.c: Likewise.
32295 * math/w_fmodf_compat.c: Likewise.
32296 * math/w_fmodl_compat.c: Likewise.
32297 * math/w_hypot_compat.c: Likewise.
32298 * math/w_hypotf_compat.c: Likewise.
32299 * math/w_hypotl_compat.c: Likewise.
32300 * math/w_j0_compat.c: Likewise.
32301 * math/w_j0f_compat.c: Likewise.
32302 * math/w_j0l_compat.c: Likewise.
32303 * math/w_j1_compat.c: Likewise.
32304 * math/w_j1f_compat.c: Likewise.
32305 * math/w_j1l_compat.c: Likewise.
32306 * math/w_jn_compat.c: Likewise.
32307 * math/w_jnf_compat.c: Likewise.
32308 * math/w_jnl_compat.c: Likewise.
32309 * math/w_lgamma_main.c: Likewise.
32310 * math/w_lgamma_r_compat.c: Likewise.
32311 * math/w_lgammaf_main.c: Likewise.
32312 * math/w_lgammaf_r_compat.c: Likewise.
32313 * math/w_lgammal_main.c: Likewise.
32314 * math/w_lgammal_r_compat.c: Likewise.
32315 * math/w_log10_compat.c: Likewise.
32316 * math/w_log10f_compat.c: Likewise.
32317 * math/w_log10l_compat.c: Likewise.
32318 * math/w_log2_compat.c: Likewise.
32319 * math/w_log2f_compat.c: Likewise.
32320 * math/w_log2l_compat.c: Likewise.
32321 * math/w_log_compat.c: Likewise.
32322 * math/w_logf_compat.c: Likewise.
32323 * math/w_logl_compat.c: Likewise.
32324 * math/w_pow_compat.c: Likewise.
32325 * math/w_powf_compat.c: Likewise.
32326 * math/w_powl_compat.c: Likewise.
32327 * math/w_remainder_compat.c: Likewise.
32328 * math/w_remainderf_compat.c: Likewise.
32329 * math/w_remainderl_compat.c: Likewise.
32330 * math/w_scalb_compat.c: Likewise.
32331 * math/w_scalbf_compat.c: Likewise.
32332 * math/w_scalbl_compat.c: Likewise.
32333 * math/w_sinh_compat.c: Likewise.
32334 * math/w_sinhf_compat.c: Likewise.
32335 * math/w_sinhl_compat.c: Likewise.
32336 * math/w_sqrt_compat.c: Likewise.
32337 * math/w_sqrtf_compat.c: Likewise.
32338 * math/w_sqrtl_compat.c: Likewise.
32339 * math/w_tgamma_compat.c: Likewise.
32340 * math/w_tgammaf_compat.c: Likewise.
32341 * math/w_tgammal_compat.c: Likewise.
32342 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32343 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32344 * sysdeps/ieee754/k_standard.c: Likewise.
32345 * sysdeps/ieee754/k_standardf.c: Likewise.
32346 * sysdeps/ieee754/k_standardl.c: Likewise.
32347 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32348 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32349 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32350 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32351 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32352 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32353 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32354 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32355 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32356 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32357 Likewise.
32358 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32359 Likewise.
32360 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32361 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32362 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32363 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32364
32365 2017-08-21 Florian Weimer <fweimer@redhat.com>
32366
32367 [BZ #21864]
32368 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32369 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32370 Move before inclusion of ../Rules.
32371
32372 2017-08-21 Florian Weimer <fweimer@redhat.com>
32373
32374 [BZ #21972]
32375 * assert/assert.h (assert): Use static_cast (bool) for C++.
32376 Use the ternary operator in the warning branch for GNU C.
32377 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32378 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32379 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32380 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32381 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32382
32383 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32384
32385 [BZ #18822]
32386 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32387 (__syscall_clock_gettime): Add attribute_hidden.
32388 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32389 (__start_context): Likewise.
32390
32391 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32392
32393 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32394 building libc.a.
32395 (hidden_proto): Likewise.
32396 (hidden_tls_proto): Likewise.
32397 (__hidden_proto): Likewise.
32398
32399 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32400
32401 * include/libc-symbols.h (attribute_hidden): Enable hidden
32402 visibility in libc.a compiled with PIE.
32403
32404 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32405
32406 [BZ #18822]
32407 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32408 Add attribute_hidden.
32409
32410 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32411
32412 [BZ #21864]
32413 * Makerules (all-nonlib): Add $(others-extras).
32414 * catgets/Makefile (others-extras): New.
32415 * elf/Makefile (others-extras): Likewise.
32416 * nss/Makefile (others-extras): Likewise.
32417
32418 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32419
32420 [BZ #18822]
32421 * csu/libc-start.c (__libc_multiple_libcs): Removed.
32422 * elf/dl-open.c: Include <libc-internal.h>.
32423 (__libc_multiple_libcs): Removed.
32424 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
32425 <hp-timing.h>.
32426 * include/libc-internal.h (__libc_multiple_libcs): New.
32427 * misc/sbrk.c: Include <libc-internal.h>.
32428 (__libc_multiple_libcs): Removed.
32429
32430 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32431
32432 [BZ #18822]
32433 * grp/initgroups.c (__nss_group_database): Removed.
32434 (__nss_initgroups_database): Likewise.
32435 * nscd/gai.c (__nss_hosts_database): Likewise.
32436 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
32437 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
32438 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
32439 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
32440 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
32441 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
32442 attribute_hidden.
32443 * nss/nsswitch.c (__nss_database_custom): Define only if
32444 USE_NSCD is defined.
32445 (__nss_configure_lookup): Use __nss_database_custom only if
32446 USE_NSCD is defined.
32447 * nss/nsswitch.h (__nss_database_custom): Declare only if
32448 USE_NSCD is defined. Add attribute_hidden.
32449 (__nss_setent): Add attribute_hidden.
32450 (__nss_endent): Likewise.
32451 (__nss_getent_r): Likewise.
32452 (__nss_getent): Likewise.
32453 (DEFINE_DATABASE): Declare __nss_##arg##_database.
32454
32455 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32456
32457 [BZ #18822]
32458 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
32459 libc_hidden_proto and libc_hidden_def.
32460
32461 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32462
32463 [BZ #18822]
32464 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
32465 Add libc_hidden_proto.
32466 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
32467 Add libc_hidden_def.
32468
32469 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32470
32471 [BZ #21974]
32472 * gmon/Makefile (routines): Remove bb_init_func and
32473 bb_exit_func.
32474 (elide-routines.os): Removed.
32475 * gmon/bb_exit_func.c: Likewise.
32476 * gmon/bb_init_func.c: Likewise.
32477 * include/sys/gmon.h (__bb): Likewise.
32478 (__bb_init_func): Likewise.
32479 (__bb_exit_func): Likewise.
32480 * sysdeps/alpha/bb_init_func.S: Likewise.
32481
32482 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32483
32484 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
32485 * include/setjmp.h (____longjmp_chk): Here. Add
32486 attribute_hidden.
32487
32488 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
32489
32490 [BZ #18822]
32491 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
32492 attribute_hidden.
32493 (__strspn_sse2): Likewise.
32494
32495 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32496
32497 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
32498 (close_not_cancel_no_status): Likewise.
32499 (__close_nocancel): New macro.
32500 (__close_nocancel_nostatus): Likewise.
32501 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
32502 macro.
32503 (close_not_cancel): Likewise.
32504 (close_not_cancel_no_status): Likewise.
32505 (__close_nocancel): New prototype.
32506 (__close_nocancel_nostatus): New function.
32507 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
32508 * catgets/open_catalog.c (__open_catalog): Replace
32509 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
32510 * gmon/gmon.c (write_gmon): Likewise.
32511 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
32512 * intl/loadmsgcat.c (close): Likewise.
32513 * io/ftw.c (open_dir_stream): Likewise.
32514 (ftw_startup): Likewise.
32515 * libio/fileops.c (_IO_file_open): Likewise.
32516 (_IO_file_close_mmap): Likewise.
32517 (_IO_file_close): Likewise.
32518 * libio/iopopen.c (_IO_dup2): Likewise.
32519 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32520 * locale/loadlocale.c (_nl_load_locale): Likewise.
32521 * login/utmp_file.c (pututline_file): Likewise.
32522 (endutent_file): Likewise.
32523 * misc/daemon.c (daemon): Likewise.
32524 * nscd/nscd_getai.c (__nscd_getai): Likewise.
32525 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32526 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32527 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32528 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32529 * nscd/nscd_helper.c (open_socket): Likewise.
32530 (__nscd_open_socket): Likewise.
32531 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
32532 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
32533 (__nscd_innetgr): Likewise.
32534 * nss/nss_db/db-open.c (internal_setent): Likewise.
32535 * resolv/res-close.c (__res_iclose): Likewise.
32536 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
32537 * sysdeps/posix/closedir.c (__closedir): Likewise.
32538 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
32539 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32540 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32541 (opendir_tail): Likewise.
32542 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32543 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
32544 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
32545 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
32546 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32547 (gethostid): Likewise.
32548 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32549 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32550 Likewise.
32551 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32552 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
32553 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32554 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32555 Likewise.
32556 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
32557 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
32558 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32559 Likewise.
32560 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
32561 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32562 Likewise.
32563 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32564 Likewise.
32565 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32566 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32567 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32568 __close_nocancel.
32569
32570 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
32571 (openat_not_cancel_3): Likewise.
32572 (openat64_not_cancel_3): Likewise).
32573 (openat_not_cancel_3): Likewise).
32574 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
32575 macro.
32576 (openat_not_cancel_3): Likewise.
32577 (openat64_not_cancel): Likewise.
32578 (openat64_not_cancel_3): Likewise.
32579 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
32580 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
32581 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
32582 __open{64}_nocancel.
32583 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32584 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32585 * sysdeps/posix/opendir.c (__opendirat): Likewise.
32586
32587 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32588
32589 [BZ #18822]
32590 * include/argz.h (__argz_create_sep): New function prototype.
32591 (__argz_append): Likewise.
32592 (__argz_add): Likewise.
32593 (__argz_add_sep): Likewise.
32594 (__argz_delete): Likewise.
32595 (__argz_insert): Likewise.
32596 (__argz_replace): Likewise.
32597 * string/argz.h (__argz_create_sep): Removed.
32598 (__argz_append): Likewise.
32599 (__argz_add): Likewise.
32600 (__argz_add_sep): Likewise.
32601 (__argz_delete): Likewise.
32602 (__argz_insert): Likewise.
32603 (__argz_replace): Likewise.
32604
32605 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32606
32607 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
32608 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
32609 (GNU_PROPERTY_STACK_SIZE): Likewie.
32610 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
32611 (GNU_PROPERTY_LOPROC): Likewise.
32612 (GNU_PROPERTY_HIPROC): Likewise.
32613 (GNU_PROPERTY_LOUSER): Likewise.
32614 (GNU_PROPERTY_HIUSER): Likewise.
32615 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
32616 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
32617 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
32618 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
32619 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
32620 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
32621 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
32622 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
32623 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
32624 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
32625 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
32626 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
32627 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
32628 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
32629 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
32630 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
32631 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
32632 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
32633 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
32634 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
32635 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
32636 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
32637 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
32638
32639 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32640
32641 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
32642 in C++ mode.
32643
32644 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32645
32646 [BZ #21930]
32647 * math/math.h (isinf): Check if in C or C++ mode before using
32648 __builtin_types_compatible_p, since this is a C mode feature.
32649
32650 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32651
32652 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
32653 (__write_nocancel): New macro.
32654 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
32655 Rewrite as a function prototype.
32656 (write_not_cancel): Remove macro.
32657 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
32658 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
32659 (write_gmon): Likewise.
32660 * libio/fileops.c (_IO_new_file_write): Likewise.
32661 * login/utmp_file.c (pututline_file): Likewise.
32662 (updwtmp_file): Likewise.
32663 * stdio-common/psiginfo.c (psiginfo): Likewise.
32664 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32665 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32666 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32667 Likewise.
32668 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32669 Likewise.
32670
32671 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
32672 (__read_nocancel): New macro.
32673 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32674 __read_nocancel.
32675 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
32676 macro.
32677 (__read_nocancel): New prototype.
32678 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
32679 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
32680 with __read_nocancel.
32681 * intl/loadmsgcat.c (read): Likewise.
32682 * libio/fileops.c (_IO_file_read): Likewise.
32683 * locale/loadlocale.c (_nl_load_locale): Likewise.
32684 * login/utmp_file.c (getutent_r_file): Likewise.
32685 (internal_getut_r): Likewise.
32686 (getutline_r_file): Likewise.
32687 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32688 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
32689 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32690 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32691 Likewise.
32692 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
32693 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32694 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32695 Likewise.
32696 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32697 Likewise.
32698 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32699 Likewise.
32700 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32701 Likewise.
32702 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32703
32704 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32705
32706 [BZ #21966]
32707 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
32708 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
32709 usable.
32710
32711 2017-08-17 DJ Delorie <dj@redhat.com>
32712
32713 * bug17079.c: Update to new test harness.
32714 * test-digits-dots.c: Likewise.
32715 * test-netdb.c: Likewise.
32716 * tst-field.c: Likewise.
32717 * tst-nss-getpwent.c: Likewise.
32718 * tst-nss-static.c: Likewise.
32719 * tst-nss-test1.c: Likewise.
32720 * tst-nss-test2.c: Likewise.
32721 * tst-nss-test3.c: Likewise.
32722 * tst-nss-test4.c: Likewise.
32723 * tst-nss-test5.c: Likewise.
32724
32725 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32726
32727 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
32728 (open_not_cancel_2): Likewise.
32729 (open_nocancel): New macro.
32730 (open64_nocancel): Likewise.
32731 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
32732 (open_not_cancel_2): Likewise.
32733 (__open_nocancel): New prototype.
32734 (__open64_nocancel): Likewise.
32735 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32736 __open_nocancel.
32737 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
32738 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
32739 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
32740 with __open_nocancel.
32741 * csu/check_fds.c (check_one_fd): Likewise.
32742 * gmon/gmon.c (write_gmon): Likewise.
32743 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
32744 * intl/loadmsgcat.c (open): Likewise.
32745 * libio/fileops.c (_IO_file_open): Likewise.
32746 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32747 * locale/loadlocale.c (_nl_load_locale): Likewise.
32748 * login/utmp_file.c (setutent_file): Likewise.
32749 * misc/daemon.c (daemon): Likewise.
32750 * nss/nss_db/db-open.c (internal_setent): Likewise.
32751 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32752 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
32753 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32754 (__opendir): Likewise.
32755 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32756 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32757 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32758 (gethostid): Likewise.
32759 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32760 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32761 Likewise.
32762 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32763 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
32764 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32765 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32766 Likewise.
32767 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32768 Likewise.
32769 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32770 Likewise.
32771 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
32772 Likewise.
32773 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32774 Likewise.
32775 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32776 Likewise.
32777 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32778 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32779
32780 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
32781
32782 * benchtests/bench-skeleton.c (main): Add support for
32783 latency benchmarking.
32784 * benchtests/scripts/bench.py: Add support for latency benchmarking.
32785
32786 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
32787
32788 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
32789 the startup object.
32790
32791 2017-08-17 Florian Weimer <fweimer@redhat.com>
32792
32793 * include/sys/socket.h (__opensock): Remove internal_function.
32794 * socket/opensock.c (__opensock): Likewise.
32795 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
32796
32797 2017-08-16 Joseph Myers <joseph@codesourcery.com>
32798
32799 [BZ #21944]
32800 * signal/bits/types/__sigval_t.h: New file.
32801 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
32802 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
32803 and define sigval_t using __sigval_t.
32804 * include/bits/types/__sigval_t.h: New file.
32805 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
32806 instead of <bits/types/__sigval_t.h>.
32807 (struct sigevent): Use __sigval_t instead of sigval_t.
32808 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
32809 instead of <bits/types/__sigval_t.h>.
32810 (siginfo_t): Use __sigval_t instead of sigval_t.
32811 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
32812 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
32813 (struct sigevent): Use __sigval_t instead of sigval_t.
32814 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
32815 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
32816 (siginfo_t): Use __sigval_t instead of sigval_t.
32817 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
32818
32819 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32820
32821 * NEWS: Remove "[Add new features here]" for 2.27.
32822
32823 2017-08-16 Joseph Myers <joseph@codesourcery.com>
32824
32825 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
32826 libc.so.
32827
32828 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32829
32830 * NEWS: Mention x86-64 FMA optimization.
32831
32832 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
32833
32834 [BZ #21912]
32835 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32836 Add e_expf-fma.
32837 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
32838 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
32839 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
32840
32841 2017-08-16 Andreas Schwab <schwab@suse.de>
32842
32843 [BZ #16750]
32844 CVE-2009-5064
32845 * elf/ldd.bash.in: Never run file directly.
32846
32847 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
32848
32849 [BZ #21955]
32850 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
32851 (L(SP_INF_0)): Likewise.
32852
32853 2017-08-15 Florian Weimer <fweimer@redhat.com>
32854
32855 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
32856 run-built-tests.
32857
32858 2017-08-15 Florian Weimer <fweimer@redhat.com>
32859
32860 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
32861 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
32862 BROKEN_THREAD_SIGNALS code.
32863 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
32864 request_list): Remove caller_pid member used for
32865 BROKEN_THREAD_SIGNALS.
32866 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
32867 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32868 Remove BROKEN_THREAD_SIGNALS support.
32869 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
32870 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
32871
32872 2017-08-15 Florian Weimer <fweimer@redhat.com>
32873
32874 * gmon/Makefile (tests): Add tst-gmon.
32875 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
32876 Set.
32877 (tests-special): Add tst-gmon-prof.out.
32878 (tst-gmon.out): Depend on clean-tst-gmon-data.
32879 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
32880 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
32881 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
32882 startup object.
32883 * aclocal.m4 (GPROF): Set and substitute.
32884 * config.amke.in (GPROF): Set.
32885 * configure: Regenerate.
32886
32887 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
32888
32889 * elf/elf.h A (NT_PPC_TAR): New macro.
32890 (NT_PPC_PPR): Likewise.
32891 (NT_PPC_DSCR): Likewise.
32892 (NT_PPC_EBB): Likewise.
32893 (NT_PPC_PMU): Likewise.
32894 (NT_PPC_TM_CGPR): Likewise.
32895 (NT_PPC_TM_CFPR): Likewise.
32896 (NT_PPC_TM_CVMX): Likewise.
32897 (NT_PPC_TM_CVSX): Likewise.
32898 (NT_PPC_TM_SPR): Likewise.
32899 (NT_PPC_TM_CTAR): Likewise.
32900 (NT_PPC_TM_CPPR): Likewise.
32901 (NT_PPC_TM_CDSCR): Likewise.
32902
32903 2017-08-15 Florian Weimer <fweimer@redhat.com>
32904
32905 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
32906 regparm (2) instead of internal_function.
32907 (_MCOUNT_DECL): Adjust.
32908
32909 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
32910
32911 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
32912 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
32913
32914 2017-08-14 Joseph Myers <joseph@codesourcery.com>
32915
32916 * conform/data/sys/wait.h-data (si_value): Do not expect for
32917 XPG42.
32918
32919 2017-08-14 Florian Weimer <fweimer@redhat.com>
32920
32921 [BZ #21962]
32922 NSS: Create stubs for accidentally exported lookup functions.
32923 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
32924 Remove declaration.
32925 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
32926 (ether_hostton): Call __nss_ethers_lookup2 instead.
32927 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
32928 (ether_ntohost): Call __nss_ethers_lookup2 instead.
32929 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
32930 (setup): Call __nss_netgroup_lookup2 instead.
32931 * nss/Makefile (routines): Add compat-lookup.
32932 * nss/Versions (GLIBC_2.27): Add symbol version.
32933 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
32934 (DB_COMPAT_FCT): Remove.
32935 * nss/compat-lookup.c: New file.
32936 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
32937 from databases.def.
32938 * nss/service-lookup.c (NO_COMPAT): Remove definition.
32939 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
32940 (netname2user): Call __nss_publickey_lookup2 instead.
32941 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
32942 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
32943 instead.
32944
32945 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32946 Sergei Trofimovich <slyfox@inbox.ru>
32947
32948 [BZ #21908]
32949 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
32950 Rename to MMAP2_PAGE_UNIT.
32951 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
32952 __OFF_T_MATCHES_OFF64_T is not defined.
32953 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
32954 uint64_t.
32955 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
32956 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
32957
32958 2017-08-14 Florian Weimer <fweimer@redhat.com>
32959
32960 i386: Do not set internal_function.
32961 * config.h.in (USE_REGPARMS, internal_function): Remove.
32962 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
32963 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
32964
32965 2017-08-14 Florian Weimer <fweimer@redhat.com>
32966
32967 * elf/dl-init.c (_dl_init): Remove internal_function.
32968 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
32969 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
32970
32971 2017-08-14 Florian Weimer <fweimer@redhat.com>
32972
32973 * elf/rtld.c (_dl_start): Remove internal_function.
32974 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
32975 _dl_start.
32976
32977 2017-08-14 Florian Weimer <fweimer@redhat.com>
32978
32979 * elf/dl-fini.c (_dl_fini): Remove internal_function
32980 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32981
32982 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
32983
32984 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
32985 (bit_cpu_SHSTK): Likewise.
32986 (index_cpu_IBT): Likewise.
32987 (index_cpu_SHSTK): Likewise.
32988 (reg_IBT): Likewise.
32989 (reg_SHSTK): Likewise.
32990 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
32991 Handle index_cpu_IBT and index_cpu_SHSTK.
32992
32993 2017-08-14 Mike FABIAN <mfabian@redhat.com>
32994
32995 [BZ #19982]
32996 * po/fr.po: Fix spelling mistake.
32997
32998 2017-08-13 Florian Weimer <fweimer@redhat.com>
32999
33000 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33001 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33002 (_dl_catch_error, _dl_receive_error): Likewise.
33003 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33004 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33005 (_dl_deallocate_tls): Likewise.
33006 * include/dlfcn.h (_dl_addr): Likewise.
33007 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33008 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33009 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33010 Likewise.
33011
33012 2017-08-13 Florian Weimer <fweimer@redhat.com>
33013
33014 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33015 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33016 internal_function.
33017 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33018
33019 2017-08-13 Florian Weimer <fweimer@redhat.com>
33020
33021 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33022 internal_function.
33023 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33024 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33025 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33026 internal_function from _dl_make_stack_executable_hook member.
33027 (_dl_make_stack_executable): Remove internal_function.
33028 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33029 Likewise.
33030 * sysdeps/unix/sysv/linux/dl-execstack.c
33031 (_dl_make_stack_executable): Likewise.
33032
33033 2017-08-13 Florian Weimer <fweimer@redhat.com>
33034
33035 * sysdeps/unix/sysv/linux/netlinkaccess.h
33036 (__netlink_assert_response): Remove internal_function.
33037 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33038 (__netlink_assert_response): Likewise.
33039
33040 2017-08-13 Florian Weimer <fweimer@redhat.com>
33041
33042 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33043 internal_function.
33044 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33045
33046 2017-08-13 Florian Weimer <fweimer@redhat.com>
33047
33048 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33049 internal_function.
33050 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33051 * inet/netgroup.h (__internal_setnetgrent)
33052 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33053 * inet/getnetgrent_r.c (__internal_setnetgrent)
33054 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33055 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33056 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33057 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33058 * nss/nsswitch.h (db_lookup_function): Likewise.
33059
33060 2017-08-13 Florian Weimer <fweimer@redhat.com>
33061
33062 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33063 Remove internal_function.
33064 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33065 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33066 message argument on the stack.
33067 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33068 Likeweise.
33069
33070 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33071
33072 Adapt test case data to the changes in the thousands
33073 separators.
33074
33075 [BZ #20756]
33076 * localedata/tst-langinfo.sh: Adapt test case data.
33077 * stdlib/tst-strfmon_l.c: Likewise.
33078 * stdlib/tst-strtod4.c: Likewise.
33079 * stdlib/tst-strtod5i.c: Likewise.
33080
33081 2017-08-11 Florian Weimer <fweimer@redhat.com>
33082
33083 [BZ #21242]
33084 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33085 Suppress pedantic warning resulting from statement expression.
33086 (__ASSERT_FUNCTION): Add missing __extension__.
33087
33088 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33089
33090 * benchtests/bench-memmove-large.c: Print output in JSON
33091 format.
33092 * benchtests/bench-memmove.c: Likewise.
33093
33094 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33095 * benchtests/bench-memchr.c (do_one_test): Likewise.
33096 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33097 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33098 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33099 * benchtests/bench-memmove.c (do_one_test): Likewise.
33100 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33101 * benchtests/bench-memset.c (do_one_test): Likewise.
33102 * benchtests/bench-string.h (test_init): Remove memsets.
33103
33104 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33105
33106 * manual/lang.texi
33107 (Computing the Width of an Integer Data Type): Rename section to
33108 "Width of an Integer Type". Remove inaccurate statement regarding
33109 lack of C language facilities for determining width of integer
33110 types, and reorder content to improve flow and context of
33111 discussion.
33112
33113 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33114
33115 * lang.texi (va_copy): Change standard from ISO to C99.
33116 (__va_copy): Add standard and header annotation.
33117 Update description for clarity of origins and current use.
33118
33119 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33120
33121 [BZ #21941]
33122 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33123 xssqrtqp requires operands to be in Vector Registers
33124 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33125 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33126 (__ieee754_sqrtf128): Likewise.
33127
33128 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33129
33130 * sysdeps/aarch64/memcmp.S (memcmp):
33131 Rewrite of optimized memcmp.
33132
33133 2017-08-10 Florian Weimer <fweimer@redhat.com>
33134
33135 Introduce ld.so exceptions.
33136 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33137 (_dl_exception_create, _dl_exception_create_format)
33138 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33139 (_dl_catch_exception): Declare.
33140 (_dl_catch_error): Update comment.
33141 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33142 errstring, malloced members with exception member.
33143 (_dl_out_of_memory): Remove.
33144 (fatal_error): New function, extracted from _dl_signal_error.
33145 (_dl_signal_exception, _dl_signal_cexception): New functions.
33146 (_dl_signal_error): Call _dl_exception_create to allocate an
33147 exception object.
33148 (_dl_catch_exception): New function, based on _dl_catch_error.
33149 (_dl_catch_error): Implement using _dl_catch_exception.
33150 * elf/dl-exception.c: New file.
33151 * elf/Makefile (dl-routines): Add dl-exception.
33152 (elide-routines.os): Likewise.
33153 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33154 _dl_exception_create_format, _dl_exception_free.
33155 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33156 _dl_signal_exception.
33157 * elf/dl-lookup.c (make_string): Remove.
33158 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33159 _dl_signal_cexception, _dl_exception_free.
33160 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33161 _dl_signal_exception.
33162 * elf/dl-sym.c (do_sym): Likewise.
33163 * elf/dl-version.c (make_string): Remove.
33164 (match_symbol): Use _dl_exception_create_format,
33165 _dl_signal_cexception, _dl_exception_free.
33166 (_dl_check_map_versions): Likewise.
33167 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33168 _dl_catch_exception.
33169 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33170 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33171 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33172 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33173 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33174 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33175 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33176 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33177 Likewise.
33178 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33180 (ld.so): Likewise.
33181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33182 (ld.so): Likewise.
33183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33184 Likewise.
33185 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33186 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33187 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33188 Likewise.
33189 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33190 Likewise.
33191 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33192
33193 2017-08-10 Florian Weimer <fweimer@redhat.com>
33194
33195 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33196 attribute_hidden, internal_function.
33197 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33198 internal_function.
33199
33200 2017-08-10 Florian Weimer <fweimer@redhat.com>
33201
33202 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33203 function which calls __builtin_unreachable.
33204
33205 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33206
33207 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33208 Indian monetary formatting
33209 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33210 test cases.
33211
33212 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33213
33214 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33215 Fix typo in comment.
33216
33217 [BZ #21928]
33218 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33219 PTRACE_SEIZE_DEVEL): Remove.
33220 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33221 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33222 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33223 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33224 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33225
33226 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33227
33228 * posix/bits/types.h (__qaddr_t): Remove.
33229
33230 [BZ #21457]
33231 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33232 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33233 __glibc_reserved1.
33234 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33235 (ucontext_t): Use __ctx with uc_flags.
33236 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33237 (__ctxt): Likewise.
33238 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33239 __glibc_reserved1.
33240 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33241 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33242 __glibc_reserved1.
33243 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33244 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33245 __glibc_reserved1.
33246 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33247 macro.
33248 (ucontext_t): Use __ctx with uc_flags.
33249 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33250 (ucontext_t): Use __ctx with uc_flags.
33251 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33252 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33253 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33254 (ucontext_t): Use __ctx with uc_flags.
33255 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33256 undefine further down.
33257 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33258 __glibc_reserved1.
33259 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33260 undefine further down.
33261 (ucontext_t): Use __ctx with uc_flags.
33262 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33263 undefine further down.
33264 (ucontext_t): Use __ctx with uc_flags.
33265 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33266 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33267 Rename uc_pad to __glibc_reserved1.
33268 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33269 undefine further down.
33270 (ucontext_t): Use __ctx with uc_flags.
33271 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33272 further down.
33273 (ucontext_t): Use __ctx with uc_flags.
33274 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33275 __ctx with uc_flags.
33276 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33277 (ucontext_t): Use __ctx with uc_flags.
33278 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33279 __ctx with uc_flags.
33280
33281 2017-08-09 Florian Weimer <fweimer@redhat.com>
33282
33283 [BZ #21932]
33284 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33285 before early return.
33286
33287 2017-08-09 Andreas Schwab <schwab@suse.de>
33288
33289 [BZ #21041]
33290 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33291 renamed alias.
33292
33293 [BZ #21041]
33294 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33295 tst-compat-forwarder.
33296 (modules-names): Add tst-compat-forwarder-mod.
33297 ($(objpfx)tst-compat-forwarder): Depend on
33298 $(objpfx)tst-compat-forwarder-mod.so.
33299 * nptl/tst-compat-forwarder.c: New file.
33300 * nptl/tst-compat-forwarder-mod.c: New file.
33301
33302 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33303
33304 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33305 comments.
33306
33307 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33308 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33309 memcpy_falkor.
33310 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33311 Bump.
33312 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33313 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33314 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33315 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33316 Add falkor.
33317 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33318 New macro.
33319
33320 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33321
33322 [BZ #759]
33323 * manual/setjmp.texi (getcontex): Document uc_stack value
33324 compatibility differences.
33325
33326 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33327
33328 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33329 (old_malloc_hook): Likewise.
33330 (old_memalign_hook): Likewise.
33331 (old_realloc_hook): Likewise.
33332 (struct hdr): Likewise.
33333 (flood): Likewise.
33334 (freehook): Likewise.
33335 (mallochook): Likewise.
33336 (memalignhook): Likewise.
33337 (reallochook): Likewise.
33338 (mprobe): Likewise.
33339 * malloc/mtrace.c (mallwatch): Likewise.
33340 (tr_old_free_hook): Likewise.
33341 (tr_old_malloc_hook): Likewise.
33342 (tr_old_realloc_hook): Likewise.
33343 (tr_old_memalign_hook): Likewise.
33344 (tr_where): Likewise.
33345 (lock_and_info): Likewise.
33346 (tr_freehook): Likewise.
33347 (tr_mallochook): Likewise.
33348 (tr_reallochook): Likewise.
33349 (tr_memalignhook): Likewise.
33350 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33351 * misc/mmap.c (__mmap): Likewise.
33352 * misc/mmap64.c (__mmap64): Likewise.
33353 * misc/mprotect.c (__mprotect): Likewise.
33354 * misc/msync.c (msync): Likewise.
33355 * misc/munmap.c (__munmap): Likewise.
33356 * posix/posix_madvise.c (posix_madvise): Likewise.
33357 * socket/send.c (__send): Likewise.
33358 * socket/sendto.c (__sendto): Likewise.
33359 * socket/setsockopt.c (__setsockopt): Likewise.
33360 * string/memcmp.c (__ptr_t): Remove macro.
33361 (MEMCMP): Use void * instead of ptr_t.
33362 * string/memrchr.c (__ptr_t): Remove macro.
33363 (__memrchr): Use void * instead of ptr_t.
33364 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33365 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33366 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33367 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33368 * sysdeps/mach/msync.c (msync): Likewise.
33369 * sysdeps/mach/munmap.c (__munmap): Likewise.
33370 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33371 Likewise.
33372 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33373 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33374 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33375 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33376 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33377 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33378 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33379 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33380 Likewise.
33381 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33382 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33383 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33384 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33385 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33386 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33387 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33388 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33389 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33390 Likewise.
33391 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33392 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33393 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33394 (MEMCMP): Use void * instead of ptr_t.
33395 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33396 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33397
33398 2017-08-08 Florian Weimer <fweimer@redhat.com>
33399
33400 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33401 return statement.
33402
33403 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33404
33405 [BZ #21913]
33406 * csu/libc-tls.c: Include <startup.h> first.
33407 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33408 * elf/dl-tunables.c: Include <startup.h> first.
33409 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33410 * sysdeps/generic/startup.h: New file.
33411 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33412 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
33413 (I386_USE_SYSENTER): New. Defined to 0.
33414
33415 2017-08-08 Andreas Schwab <schwab@suse.de>
33416
33417 [BZ #21041]
33418 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
33419 * nptl/pt-system.c (system): Likewise.
33420
33421 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33422
33423 [BZ #21780]
33424 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
33425 EOPNOTSUPP.
33426 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
33427 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
33428 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
33429 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
33430 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
33431 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
33432 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
33433
33434 2017-08-07 Joseph Myers <joseph@codesourcery.com>
33435
33436 [BZ #21899]
33437 * bits/sigaction.h (struct sigaction): Define sa_handler and
33438 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
33439 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33440 [__USE_XOPEN_EXTENDED].
33441 (SA_RESTART): Likewise.
33442 (SA_NODEFER): Likewise.
33443 (SA_RESETHAND): Likewise.
33444 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
33445 (struct sigaction): Define sa_handler and sa_sigaction using union
33446 also for [__USE_XOPEN_EXTENDED].
33447 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33448 [__USE_XOPEN_EXTENDED].
33449 (SA_RESTART): Likewise.
33450 (SA_NODEFER): Likewise.
33451 (SA_RESETHAND): Likewise.
33452 * sysdeps/unix/sysv/linux/bits/sigaction.h
33453 (struct sigaction): Define sa_handler and sa_sigaction using union
33454 also for [__USE_XOPEN_EXTENDED].
33455 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33456 [__USE_XOPEN_EXTENDED].
33457 (SA_RESTART): Likewise.
33458 (SA_NODEFER): Likewise.
33459 (SA_RESETHAND): Likewise.
33460 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
33461 (struct sigaction): Define sa_handler and sa_sigaction using union
33462 also for [__USE_XOPEN_EXTENDED].
33463 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33464 [__USE_XOPEN_EXTENDED].
33465 (SA_RESTART): Likewise.
33466 (SA_NODEFER): Likewise.
33467 (SA_RESETHAND): Likewise.
33468 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
33469 (struct sigaction): Define sa_handler and sa_sigaction using union
33470 also for [__USE_XOPEN_EXTENDED].
33471 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33472 [__USE_XOPEN_EXTENDED].
33473 (SA_RESTART): Likewise.
33474 (SA_NODEFER): Likewise.
33475 (SA_RESETHAND): Likewise.
33476 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
33477 (struct sigaction): Define sa_handler and sa_sigaction using union
33478 also for [__USE_XOPEN_EXTENDED].
33479 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33480 [__USE_XOPEN_EXTENDED].
33481 (SA_RESTART): Likewise.
33482 (SA_NODEFER): Likewise.
33483 (SA_RESETHAND): Likewise.
33484 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
33485 (struct sigaction): Define sa_handler and sa_sigaction using union
33486 also for [__USE_XOPEN_EXTENDED].
33487 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33488 [__USE_XOPEN_EXTENDED].
33489 (SA_RESTART): Likewise.
33490 (SA_NODEFER): Likewise.
33491 (SA_RESETHAND): Likewise.
33492 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33493 (struct sigaction): Define sa_handler and sa_sigaction using union
33494 also for [__USE_XOPEN_EXTENDED].
33495 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33496 [__USE_XOPEN_EXTENDED].
33497 (SA_RESTART): Likewise.
33498 (SA_NODEFER): Likewise. Define directly rather than as alias.
33499 (SA_RESETHAND): Likewise.
33500 (SA_INTERRUPT): Define only for [__USE_MISC].
33501 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
33502 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
33503 [__USE_MISC].
33504 (SA_STACK): Define only for [__USE_MISC].
33505 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
33506 (struct sigaction): Define sa_handler and sa_sigaction using union
33507 also for [__USE_XOPEN_EXTENDED].
33508 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33509 [__USE_XOPEN_EXTENDED].
33510 (SA_RESTART): Likewise.
33511 (SA_NODEFER): Likewise.
33512 (SA_RESETHAND): Likewise.
33513 (SA_NOPTRACE): Define only for [__USE_MISC].
33514
33515 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
33516 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
33517 (struct catalog_info): Likewise.
33518 * inet/htontest.c (lo): Likewise.
33519 (foo): Likewise.
33520 * inet/inet_lnaof.c (inet_lnaof): Likewise.
33521 * inet/inet_net.c (inet_network): Likewise.
33522 * inet/inet_netof.c (inet_netof): Likewise.
33523 * inet/rcmd.c (__ivaliduser): Likewise.
33524 (iruserok): Likewise.
33525 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
33526 * locale/programs/locale-spec.c (locale_special): Likewise.
33527 * nis/nis_findserv.c (struct findserv_req): Likewise.
33528 (__nis_findfastest_with_timeout): Likewise.
33529 * nss/test-netdb.c (test_network): Likewise.
33530 * resolv/inet_neta.c (inet_neta): Likewise.
33531 * resolv/ns_date.c (ns_datetosecs): Likewise.
33532 (SECS_PER_DAY): Likewise.
33533 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
33534 Likewise.
33535 * resolv/res_comp.c (__putlong): Likewise.
33536 (__putshort): Likewise.
33537 (_getlong): Likewise.
33538 (_getshort): Likewise.
33539 * resolv/res_debug.c (p_time): Likewise.
33540 (precsize_ntoa): Likewise.
33541 (precsize_aton): Likewise.
33542 (latlon2ul): Likewise.
33543 (loc_aton): Likewise.
33544 (loc_ntoa): Likewise.
33545 * resolv/res_hconf.c (struct netaddr): Likewise.
33546 (_res_hconf_reorder_addrs): Likewise.
33547 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
33548 (clnttcp_control): Likewise.
33549 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
33550 (clntudp_control): Likewise.
33551 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
33552 (clntunix_control): Likewise.
33553 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
33554 * sunrpc/rpc/auth.h (union des_block): Likewise.
33555 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
33556 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
33557 (xdrrec_create): Likewise.
33558 (xdrrec_endofrecord): Likewise.
33559 (flush_out): Likewise.
33560 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
33561 (xdrstdio_putlong): Likewise.
33562 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
33563 Likewise.
33564
33565 * misc/sys/cdefs.h (__long_double_t): Remove.
33566 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
33567 instead of __long_double_t,
33568 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
33569
33570 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
33571
33572 * benchtests/scripts/compare_strings.py: Avoid display error when
33573 running on a text terminal.
33574
33575 * benchtests/scripts/compare_strings.py (main): Add an
33576 optional -base option.
33577 (process_results): New argument base_func.
33578
33579 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
33580 hardcoding memcpy.
33581 * benchtests/bench-memcpy-large.c (test_name): Likewise.
33582 * benchtests/bench-memcpy-random.c (test_name): Likewise.
33583
33584 2017-08-07 Andreas Schwab <schwab@suse.de>
33585
33586 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
33587 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
33588 * intl/Makefile ($(objpfx)tst-gettext.out)
33589 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
33590 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
33591 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
33592 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
33593 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
33594 * posix/Makefile ($(objpfx)globtest.out)
33595 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
33596 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
33597 ($(objpfx)tst-printf.out): Likewise.
33598 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
33599 ($(objpfx)tst-setcontext3.out): Likewise.
33600
33601 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
33602
33603 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33604 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
33605 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
33606 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
33607 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
33608 and mptan-fma.
33609 (CFLAGS-doasin-fma.c): New.
33610 (CFLAGS-dosincos-fma.c): Likewise.
33611 (CFLAGS-e_asin-fma.c): Likewise.
33612 (CFLAGS-e_atan2-fma.c): Likewise.
33613 (CFLAGS-e_exp-fma.c): Likewise.
33614 (CFLAGS-e_log-fma.c): Likewise.
33615 (CFLAGS-e_pow-fma.c): Likewise.
33616 (CFLAGS-halfulp-fma.c): Likewise.
33617 (CFLAGS-mpa-fma.c): Likewise.
33618 (CFLAGS-mpatan-fma.c): Likewise.
33619 (CFLAGS-mpatan2-fma.c): Likewise.
33620 (CFLAGS-mpexp-fma.c): Likewise.
33621 (CFLAGS-mplog-fma.c): Likewise.
33622 (CFLAGS-mpsqrt-fma.c): Likewise.
33623 (CFLAGS-mptan-fma.c): Likewise.
33624 (CFLAGS-s_atan-fma.c): Likewise.
33625 (CFLAGS-sincos32-fma.c): Likewise.
33626 (CFLAGS-slowexp-fma.c): Likewise.
33627 (CFLAGS-slowpow-fma.c): Likewise.
33628 (CFLAGS-s_sin-fma.c): Likewise.
33629 (CFLAGS-s_tan-fma.c): Likewise.
33630 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
33631 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
33632 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
33633 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
33634 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
33635 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
33636 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
33637 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
33638 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
33639 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
33640 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
33641 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
33642 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
33643 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
33644 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
33645 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
33646 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
33647 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
33648 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
33649 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
33650 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
33651 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
33652 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
33653 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
33654 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
33655 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
33656 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
33657 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
33658 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
33659 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
33660 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
33661
33662 2017-08-04 Joseph Myers <joseph@codesourcery.com>
33663
33664 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
33665 (min_of_type_f): New macro.
33666 (min_of_type_): Likewise.
33667 (min_of_type_l): Likewise.
33668 (min_of_type_f128): Likewise.
33669 (min_of_type): Define using __MATH_TG and taking an expression
33670 argument.
33671 (math_check_force_underflow): Pass expression instead of type to
33672 min_of_type.
33673 (math_check_force_underflow_nonneg): Likewise.
33674
33675 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33676
33677 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33678 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
33679 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
33680
33681 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33682
33683 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33684 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
33685 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
33686 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
33687 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
33688 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
33689 memcpy_chk-nonshared, mempcpy_chk-nonshared,
33690 memmove_chk-nonshared and memset_chk-nonshared
33691 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
33692 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
33693 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
33694 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
33695 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
33696 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
33697 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
33698 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
33699 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
33700 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
33701 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
33702 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
33703 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
33704 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
33705 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
33706 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
33707 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
33708 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
33709 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
33710 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
33711 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
33712 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
33713 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
33714 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
33715 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
33716 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
33717 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
33718 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
33719 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
33720 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
33721 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
33722 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
33723 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
33724 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
33725 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
33726 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
33727 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
33728 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
33729 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
33730 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
33731 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
33732 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
33733 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
33734 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
33735 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
33736 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
33737 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
33738 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
33739 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
33740 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
33741 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
33742 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
33743 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
33744 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
33745 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
33746 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
33747 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
33748 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
33749 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
33750 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
33751 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
33752 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
33753 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
33754 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
33755 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
33756 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
33757 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
33758 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
33759 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
33760 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
33761 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
33762 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
33763 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
33764 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
33765 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
33766 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
33767 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
33768 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
33769 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
33770 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
33771 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
33772 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
33773 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
33774 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
33775 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
33776 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
33777 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
33778 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
33779 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
33780 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
33781 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
33782 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
33783 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
33784 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
33785 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
33786 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
33787 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
33788 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
33789 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
33790 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
33791 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
33792 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
33793 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
33794 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
33795 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
33796 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
33797 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
33798 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
33799
33800 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33801
33802 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
33803 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
33804 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
33805 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
33806 svml_d_log2_core-sse2, svml_d_log4_core-sse,
33807 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
33808 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
33809 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
33810 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
33811 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
33812 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
33813 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
33814 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
33815 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
33816 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
33817 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
33818 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
33819 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
33820 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
33821 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
33822 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
33823 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
33824 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
33825 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
33826 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
33827 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
33828 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
33829 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
33830 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
33831 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
33832 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
33833 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
33834 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
33835 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
33836 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
33837 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
33838 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
33839 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
33840 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
33841 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
33842 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
33843 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
33844 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
33845 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
33846 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
33847 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
33848 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
33849 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
33850 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
33851 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
33852 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
33853 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
33854 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
33855 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
33856 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
33857 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
33858 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
33859 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
33860 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
33861 ...
33862 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
33863 Don't include <sysdep.h> nor <init-arch.h>.
33864 (_ZGVbN2v_cos): Removed.
33865 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
33866 ...
33867 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
33868 Don't include <sysdep.h> nor <init-arch.h>.
33869 (_ZGVdN4v_cos): Removed.
33870 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
33871 ...
33872 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
33873 Don't include <sysdep.h> nor <init-arch.h>.
33874 (_ZGVeN8v_cos): Removed.
33875 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
33876 ...
33877 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
33878 Don't include <sysdep.h> nor <init-arch.h>.
33879 (_ZGVbN2v_exp): Removed.
33880 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
33881 ...
33882 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
33883 Don't include <sysdep.h> nor <init-arch.h>.
33884 (_ZGVdN4v_exp): Removed.
33885 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
33886 ...
33887 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
33888 Don't include <sysdep.h> nor <init-arch.h>.
33889 (_ZGVeN8v_exp): Removed.
33890 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
33891 ...
33892 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
33893 Don't include <sysdep.h> nor <init-arch.h>.
33894 (_ZGVbN2v_log): Removed.
33895 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
33896 ...
33897 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
33898 Don't include <sysdep.h> nor <init-arch.h>.
33899 (_ZGVdN4v_log): Removed.
33900 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
33901 ...
33902 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
33903 Don't include <sysdep.h> nor <init-arch.h>.
33904 (_ZGVeN8v_log): Removed.
33905 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
33906 ...
33907 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
33908 Don't include <sysdep.h> nor <init-arch.h>.
33909 (_ZGVbN2vv_pow): Removed.
33910 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
33911 ...
33912 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
33913 Don't include <sysdep.h> nor <init-arch.h>.
33914 (_ZGVdN4vv_pow): Removed.
33915 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
33916 ...
33917 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
33918 Don't include <sysdep.h> nor <init-arch.h>.
33919 (_ZGVeN8vv_pow): Removed.
33920 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
33921 ...
33922 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
33923 Don't include <sysdep.h> nor <init-arch.h>.
33924 (_ZGVbN2v_sin): Removed.
33925 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
33926 ...
33927 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
33928 Don't include <sysdep.h> nor <init-arch.h>.
33929 (_ZGVbN4v_sin): Removed.
33930 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
33931 ...
33932 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
33933 Don't include <sysdep.h> nor <init-arch.h>.
33934 (_ZGVbN8v_sin): Removed.
33935 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
33936 ...
33937 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
33938 Don't include <sysdep.h> nor <init-arch.h>.
33939 (_ZGVbN2vvv_sincos): Removed.
33940 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
33941 ...
33942 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
33943 Don't include <sysdep.h> nor <init-arch.h>.
33944 (_ZGVdN4vvv_sincos): Removed.
33945 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
33946 ...
33947 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
33948 Don't include <sysdep.h> nor <init-arch.h>.
33949 (_ZGVeN8vvv_sincos): Removed.
33950 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
33951 ...
33952 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
33953 Don't include <sysdep.h> nor <init-arch.h>.
33954 (_ZGVeN16v_cosf): Removed.
33955 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
33956 ...
33957 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
33958 Don't include <sysdep.h> nor <init-arch.h>.
33959 (_ZGVbN4v_cosf): Removed.
33960 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
33961 ...
33962 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
33963 Don't include <sysdep.h> nor <init-arch.h>.
33964 (_ZGVdN8v_cosf): Removed.
33965 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
33966 ...
33967 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
33968 Don't include <sysdep.h> nor <init-arch.h>.
33969 (_ZGVeN16v_expf): Removed.
33970 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
33971 ...
33972 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
33973 Don't include <sysdep.h> nor <init-arch.h>.
33974 (_ZGVbN4v_expf): Removed.
33975 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
33976 ...
33977 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
33978 Don't include <sysdep.h> nor <init-arch.h>.
33979 (_ZGVdN8v_expf): Removed.
33980 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
33981 ...
33982 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
33983 Don't include <sysdep.h> nor <init-arch.h>.
33984 (_ZGVeN16v_logf): Removed.
33985 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
33986 ...
33987 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
33988 Don't include <sysdep.h> nor <init-arch.h>.
33989 (_ZGVbN4v_logf): Removed.
33990 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
33991 ...
33992 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
33993 Don't include <sysdep.h> nor <init-arch.h>.
33994 (_ZGVdN8v_logf): Removed.
33995 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
33996 ...
33997 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
33998 Don't include <sysdep.h> nor <init-arch.h>.
33999 (_ZGVeN16vv_powf): Removed.
34000 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34001 ...
34002 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34003 Don't include <sysdep.h> nor <init-arch.h>.
34004 (_ZGVbN4vv_powf): Removed.
34005 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34006 ...
34007 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34008 Don't include <sysdep.h> nor <init-arch.h>.
34009 (_ZGVdN8vv_powf): Removed.
34010 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34011 ...
34012 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34013 Don't include <sysdep.h> nor <init-arch.h>.
34014 (_ZGVeN16vvv_sincosf): Removed.
34015 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34016 ...
34017 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34018 Don't include <sysdep.h> nor <init-arch.h>.
34019 (_ZGVbN4vvv_sincosf): Removed.
34020 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34021 ...
34022 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34023 Don't include <sysdep.h> nor <init-arch.h>.
34024 (_ZGVdN8vvv_sincosf): Removed.
34025 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34026 ...
34027 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34028 Don't include <sysdep.h> nor <init-arch.h>.
34029 (_ZGVeN16v_sinf): Removed.
34030 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34031 ...
34032 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34033 Don't include <sysdep.h> nor <init-arch.h>.
34034 (_ZGVbN4v_sinf): Removed.
34035 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34036 ...
34037 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34038 Don't include <sysdep.h> nor <init-arch.h>.
34039 (_ZGVdN8v_sinf): Removed.
34040
34041 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34042
34043 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34044 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34045 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34046 s_rint-sse4_1 and s_rintf-sse4_1.
34047 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34048 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34049 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34050 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34051 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34052 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34053 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34054 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34055 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34056 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34057 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34058 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34059 (__ceil): Removed.
34060 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34061 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34062 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34063 (__ceilf): Removed.
34064 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34065 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34066 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34067 (__floor): Removed.
34068 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34069 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34070 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34071 (__floorf): Removed.
34072 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34073 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34074 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34075 (__nearbyint): Removed.
34076 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34077 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34078 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34079 (__nearbyintf): Removed.
34080 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34081 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34082 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34083 (__rint): Removed.
34084 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34085 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34086 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34087 (__rintf): Removed.
34088
34089 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34090
34091 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34092 SHARED. Avoid dynamic relocation against main in static PIE.
34093
34094 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34095
34096 [BZ #21815]
34097 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34098 (LDFLAGS-tst-prelink): Likewise.
34099
34100 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34101
34102 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34103 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34104 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34105 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34106 (INTERNAL_SYSCALL_NCS): Likewise.
34107 (LOADARGS_1): Likewise.
34108 (LOADARGS_5): Likewise.
34109 (RESTOREARGS_1): Likewise.
34110 (RESTOREARGS_5): Likewise.
34111
34112 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34113
34114 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34115 (MEMPCPY_SYMBOL): Likewise.
34116 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34117 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34118 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34119 in libc.a.
34120 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34121 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34122 Likewise.
34123 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34124 (__hidden_ver1): Don't use in libc.a.
34125 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34126 (__mempcpy): Don't create a weak alias in libc.a.
34127 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34128 libc.a.
34129 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34130 (__hidden_ver1): Don't use in libc.a.
34131
34132 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34133
34134 * config.make.in (have-insert): New.
34135 * configure.ac (libc_cv_insert): New. Set to yes if linker
34136 supports INSERT in linker script.
34137 (AC_SUBST(libc_cv_insert): New.
34138 * configure: Regenerated.
34139 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34140 if $(have-insert) == yes.
34141
34142 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34143
34144 * elf/Makefile (tests): Add vismain only if
34145 $(have-protected-data) == yes.
34146 (tests-pie): Likewise.
34147
34148 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34149
34150 [BZ #21871]
34151 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34152 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34153
34154 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34155
34156 [BZ #21790]
34157 * sysdeps/i386/i586/memset.S
34158 (__memset_zero_constant_len_parameter): Removed.
34159 * sysdeps/i386/i686/memset.S
34160 (__memset_zero_constant_len_parameter): Likewise.
34161 * sysdeps/i386/i686/multiarch/memset_chk.S
34162 (__memset_zero_constant_len_parameter): Likewise.
34163 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34164 Likewise.
34165
34166 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34167
34168 * stdlib/getentropy.c (getentropy): Change return type to int.
34169
34170 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34171
34172 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34173
34174 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34175
34176 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34177 u_intN_t.
34178 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34179 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34180 Likewise.
34181 (ieee_float_shape_type): Likewise.
34182 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34183 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34184 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34185 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34186 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34187 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34188 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34189 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34190 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34191 Likewise.
34192 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34193 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34194 (__ieee754_yn): Likewise.
34195 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34196 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34197 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34198 Likewise.
34199 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34200 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34201 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34202 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34203 (__erfc): Likewise.
34204 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34205 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34206 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34207 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34208 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34209 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34210 Likewise.
34211 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34212 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34213 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34214 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34215 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34216 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34217 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34218 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34219 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34220 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34221 (__issignaling): Likewise.
34222 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34223 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34224 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34225 Likewise.
34226 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34227 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34228 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34229 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34230 Likewise.
34231 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34232 Likewise.
34233 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34234 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34235 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34236 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34237 (__erfcf): Likewise.
34238 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34239 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34240 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34241 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34242 Likewise.
34243 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34244 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34245 Likewise.
34246 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34247 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34248 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34249 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34250 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34251 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34252 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34253 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34254 Likewise.
34255 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34256 Likewise.
34257 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34258 Likewise.
34259 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34260 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34261 Likewise.
34262 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34263 Likewise.
34264 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34265 (__ieee754_ynl): Likewise.
34266 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34267 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34268 Likewise.
34269 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34270 Likewise.
34271 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34272 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34273 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34274 Likewise.
34275 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34276 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34277 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34278 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34279 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34280 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34281 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34282 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34283 Likewise.
34284 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34285 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34286 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34287 Likewise.
34288 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34289 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34290 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34291 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34292 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34293 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34294 Likewise.
34295 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34296 Likewise.
34297 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34298 Likewise.
34299 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34300 Likewise.
34301 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34302 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34303 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34304 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34305 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34306 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34307 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34308 Likewise.
34309 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34310 Likewise.
34311 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34312 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34313 Likewise.
34314 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34315 (__ieee754_remainderl): Likewise.
34316 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34317 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34318 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34319 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34320 Likewise.
34321 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34322 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34323 Likewise.
34324 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34325 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34326 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34327 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34328 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34329 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34330 Likewise.
34331 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34332 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34333 (__ieee754_y0l): Likewise.
34334 (pzero): Likewise.
34335 (qzero): Likewise.
34336 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34337 (__ieee754_y1l): Likewise.
34338 (pone): Likewise.
34339 (qone): Likewise.
34340 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34341 (__ieee754_ynl): Likewise.
34342 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34343 (__ieee754_lgammal_r): Likewise.
34344 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34345 Likewise.
34346 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34347 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34348 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34349 (__erfcl): Likewise.
34350 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34351 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34352 Likewise.
34353 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34354 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34355 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34356 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34357 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34358 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34359 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34360 Likewise.
34361 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34362 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34363 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34364 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34365 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34366 Likewise.
34367 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34368 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34369 Likewise.
34370 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34371 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34372 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34373 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34374 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34375
34376 2017-08-03 Florian Weimer <fweimer@redhat.com>
34377
34378 [BZ #21885]
34379 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34380 on memory allocation failure.
34381
34382 2017-08-03 Alan Modra <amodra@gmail.com>
34383
34384 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34385 tst-tlsopt-powerpc.c with function name change and no test harness.
34386 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34387 Call tls_get_addr_opt_test.
34388 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34389 (modules-names): Add mod-tlsopt-powerpc.
34390 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34391 (tst-tlsopt-powerpc): Depend on .so.
34392 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34393 define. Expand use in TLS_GD and TLS_LD.
34394
34395 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34396
34397 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34398 function.
34399 * sysdeps/posix/shm_open.c: Include <pthread.h>.
34400
34401 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34402
34403 [BZ #21686]
34404 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34405 comparing size with that of double.
34406 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34407 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34408 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34409 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34410 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34411 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34412 unsigned __int128 types.
34413
34414 2017-08-02 Steve Ellcey <sellcey@cavium.com>
34415
34416 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
34417 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
34418 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
34419 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
34420 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
34421
34422 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34423
34424 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
34425
34426 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34427
34428 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
34429 of SHARED.
34430 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
34431 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
34432 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34433 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
34434 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
34435 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
34436 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
34437
34438 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34439
34440 [BZ #21685]
34441 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
34442 bit-field expressions passed to sizeof or typeof.
34443 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34444 (__TGMATH_F128): Likewise.
34445 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34446 (__TGMATH_CF128): Likewise.
34447 (__TGMATH_UNARY_REAL_ONLY): Likewise.
34448 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
34449 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
34450 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
34451 (__TGMATH_BINARY_REAL_ONLY): Likewise.
34452 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34453 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34454 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34455 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34456 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
34457 (__TGMATH_UNARY_REAL_IMAG): Likewise.
34458 (__TGMATH_UNARY_IMAG): Likewise.
34459 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
34460 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34461 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
34462 type.
34463 (define_vars_for_type): Handle bit_field type specially.
34464 (Tests.__init__): Declare structure with bit-field element.
34465
34466 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34467
34468 [BZ #21791]
34469 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
34470 (MEMCPY_CHK): Define only if SHARED is defined.
34471 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
34472 Likewise.
34473 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
34474 Likewise.
34475
34476 See ChangeLog.18 for earlier changes.