]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
malloc: Resolve compilation failure in NDEBUG mode
[thirdparty/glibc.git] / ChangeLog
1 2017-08-31 Florian Weimer <fweimer@redhat.com>
2
3 * malloc/malloc.c (_int_free): Remove locked variable and related
4 asserts.
5
6 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
7
8 [BZ #22051]
9 * Makerules (build-module-helper-objlist): Filter out
10 $(elf-objpfx)sofini.os.
11 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
12 needed.
13
14 2017-08-31 Florian Weimer <fweimer@redhat.com>
15
16 * libio/fcloseall.c: Assume weak_alias is defined.
17 * libio/feof.c: Likewise.
18 * libio/fileno.c: Likewise.
19 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
20 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
21 definitions.
22 (_IO_file_open): Call __open directly.
23 (_IO_new_file_sync): Assume ESPIPE is defined.
24 (_IO_file_seekoff_maybe_mmap): Call __read directly.
25 (_IO_new_file_write): Call __write directly.
26 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
27 * libio/ftello64.c (__ftello64): Assume EIO is defined.
28 * libio/genops.c: Assume _LIBC is defined.
29 (save_for_backup): Remove internal_function.
30 * libio/getc.c: Assume weak_alias is defined.
31 * libio/getwc.c: Likewise.
32 * libio/iofclose.c: Assume _LIBC is defined.
33 * libio/iofdopen.c: Likewise.
34 (_IO_fcntl): Remove macro definition.
35 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
36 Call __fcntl directly.
37 * libio/iofflush.c: Assume weak_alias is defined.
38 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
39 defined.
40 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
41 * libio/iofgets.c: Likewise.
42 * libio/iofopen.c: Assume _LIBC is defined.
43 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
44 * libio/iofputs.c: Assume weak_alias is defined.
45 * libio/iofread.c: Likewise.
46 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
47 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
48 * libio/ioftell.c: Assume weak_alias is defined.
49 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
50 * libio/iofwide.c: Assume _LIBC is defined.
51 (_IO_fwide): Drop SHARED conditional because it is implied by
52 SHLIB_COMPAT.
53 * libio/iofwrite.c: Assume weak_alias is defined.
54 * libio/iogetdelim.c: Likewise.
55 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
56 * libio/iogetwline.c (wmemcpy): Remove macro definition.
57 (_IO_getwline): Call __wmemcpy directly.
58 * libio/iopopen.c: Assume _LIBC is defined.
59 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
60 (_IO_close): Remove macro definitions.
61 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
62 _exit directly.
63 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
64 directly.
65 * libio/ioputs.c: Assume weak_alias is defined.
66 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
67 * libio/iosetbuffer.c: Assume weak_alias is defined.
68 * libio/iosetvbuf.c: Likewise.
69 * libio/ioungetc.c: Likewise.
70 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
71 libc_hidden_def, libc_hidden_weak, NULL are defined.
72 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
73 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
74 defined.
75 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
76 definitions.
77 (_IO_old_file_init_internal): Drop SHARED conditional because it
78 is implied by SHLIB_COMPAT.
79 (_IO_old_file_fopen): Call __open directly.
80 (_IO_old_file_sync): Assume ESPIPE is defined.
81 (_IO_old_file_write): Call __write directly.
82 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
83 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
84 Call __fcntl directly.
85 * libio/oldiofgetpos.c: Assume weak_alias is defined.
86 (_IO_old_fgetpos): Assume EIO is defined.
87 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
88 (_IO_old_fgetpos64): Assume EIO is defined.
89 * libio/oldiofsetpos.c: Assume weak_alias is defined.
90 (_IO_old_fsetpos): Assume EIO is defined.
91 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
92 (_IO_old_fsetpos64): Assume EIO is defined.
93 * libio/oldiopopen.c: Assume _LIBC is defined.
94 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
95 (_IO_close): Remove macro definitions.
96 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
97 directly.
98 (_IO_old_proc_close): Call __close, __waitpid directly.
99 * libio/put.c: Assume weak_alias is defined.
100 * libio/stdfiles.c: Assume _LIBC is defined.
101 * libio/stdio.c: Likewise.
102 * libio/wfileops.c: Likewise.
103 (_IO_wfile_sync): Assume ESPIPE is defined.
104 * libio/wgenops.c: Assume _LIBC is defined.
105 (save_for_wbackup): Remove internal_function.
106
107 2017-08-31 Florian Weimer <fweimer@redhat.com>
108
109 * malloc/malloc.c (top_check): Change return type to void. Remove
110 internal_function.
111 * malloc/hooks.c (top_check): Likewise.
112 (malloc_check, realloc_check, memalign_check): Adjust.
113
114 2017-08-30 Joseph Myers <joseph@codesourcery.com>
115
116 [BZ #21457]
117 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
118 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
119 sigcontext and namespace requirements.
120 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
121 * sysdeps/m68k/sys/ucontext.h: Likewise.
122 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
123 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
124 <bits/sigcontext.h>.
125 (__ctx): Define earlier.
126 (mcontext_t): Define structure contents rather than using struct
127 sigcontext.
128 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
129 __glibc_reserved1 instead of __reserved.
130 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
131 <bits/sigcontext.h>.
132 (__ctx): Define earlier.
133 (mcontext_t): Define structure contents rather than using struct
134 sigcontext.
135 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
136 mcontext_t instead of struct sigcontext.
137 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
138 <bits/sigcontext.h>.
139 (__ctx): Define earlier.
140 (mcontext_t): Define structure contents rather than using struct
141 sigcontext.
142 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
143 <bits/sigcontext.h>.
144 (__ctx): Define earlier.
145 (mcontext_t): Define structure contents rather than using struct
146 sigcontext.
147 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
148 mcontext_t instead of struct sigcontext.
149 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
150 mcontext_t instead of struct sigcontext.
151 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
152 <bits/sigcontext.h>.
153 (__ctx): New macro.
154 (struct __ia64_fpreg_mcontext): New type.
155 (mcontext_t): Define structure contents rather than using struct
156 sigcontext.
157 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
158 (uc_sigmask): Define using __ctx.
159 (uc_stack): Likewise.
160 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
161 <bits/sigcontext.h>.
162 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
163 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
164 <bits/sigcontext.h>.
165 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
166 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
167 <bits/sigcontext.h>.
168 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
169 <bits/sigcontext.h>.
170 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
171 <bits/sigcontext.h>.
172 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
173 <bits/sigcontext.h>.
174 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
175 <bits/sigcontext.h>.
176 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
177 <bits/sigcontext.h>.
178 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
179 <bits/sigcontext.h>.
180 (__ctx): Define earlier.
181 (mcontext_t): Define structure contents rather than using struct
182 sigcontext.
183 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
184 <bits/sigcontext.h>. Include <bits/types.h>.
185 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
186 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
187 (test-xfail-XPG42/ucontext.h/conform): Likewise.
188 (test-xfail-UNIX98/signal.h/conform): Likewise.
189 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
190 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
191 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
192 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
193 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
194 (test-xfail-POSIX2008/signal.h/conform): Likewise.
195 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
196 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
197 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
198
199 2017-08-30 Florian Weimer <fweimer@redhat.com>
200
201 * malloc/dynarray_emplace_enlarge.c
202 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
203 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
204 * malloc/tst-dynarray.c (test_long_overflow): New function.
205 (do_test): Call it.
206
207 2017-08-30 Florian Weimer <fweimer@redhat.com>
208
209 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
210 (set_arena_corrupt): Remove definitions.
211 (mtrim): Do not check for corrupt arena.
212 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
213 Likewise.
214
215 2017-08-30 Florian Weimer <fweimer@redhat.com>
216
217 [BZ #21754]
218 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
219 check_action.
220 (ptmalloc_init): Do not set or use check_action.
221 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
222 call to malloc_printerr. Remove return statement.
223 (free_check): Likewise. Remove arena unlock.
224 (top_check): Update comment. Adjust call to malloc_printerr.
225 Remove heap repair code.
226 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
227 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
228 (sysmalloc): Adjust call to malloc_printerr.
229 (munmap_chunk, __libc_realloc): Likewise. Remove return
230 statement.
231 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
232 Remove errout label and corresponding gotos.
233 (_int_free): Likewise. Remove arena unlock.
234 (do_set_mallopt_check): Do not set check_action.
235 (malloc_printerr): Adjust parameter list. Do not mark arena as
236 corrupt.
237 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
238 comment.
239 * manual/probes.texi (Memory Allocation Probes): Remove
240 memory_mallopt_check_action.
241
242 2017-08-30 Steve Ellcey <sellcey@cavium.com>
243
244 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
245 Use pointer to uint64_t instead of long int for sp.
246
247 2017-08-30 Florian Weimer <fweimer@redhat.com>
248
249 [BZ #21754]
250 * malloc/malloc.c (malloc_printerr): Always terminate the process,
251 without printing a backtrace. Do not leak any information in the
252 error message.
253 * manual/memory.texi (Heap Consistency Checking): Update.
254 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
255
256 2017-08-30 Florian Weimer <fweimer@redhat.com>
257
258 Do not scale NPTL tests with available number of CPUs.
259 * nptl/tst-cond16.c (count): Set to constant value of 8.
260 * nptl/tst-cond18.c (count): Likewise.
261
262 2017-08-29 Joseph Myers <joseph@codesourcery.com>
263
264 [BZ #22035]
265 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
266 Define to take a second argument that is a macro that
267 concatentates a suffix, not the suffix itself.
268 (__CONCAT_d): New macro.
269 (__CONCAT_f): Likewise.
270 (__CONCAT_l): Likewise.
271
272 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
273
274 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
275 by child.
276
277 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
278 Aurelien Jarno <aurelien@aurel32.net>
279 Maciej W. Rozycki <macro@imgtec.com>
280
281 [BZ #21956]
282 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
283 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
284 `mips16-syscall6' and `mips16-syscall7'.
285 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
286 (CFLAGS-mips16-syscall7.c): Remove.
287 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
288 Remove `__mips16_syscall5', `__mips16_syscall6' and
289 `__mips16_syscall7'.
290 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
291 (__mips16_syscall0): Rename `__mips16_syscall_return' to
292 `__mips_syscall_return'.
293 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
294 (__mips16_syscall1): Likewise.
295 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
296 (__mips16_syscall2): Likewise.
297 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
298 (__mips16_syscall3): Likewise.
299 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
300 (__mips16_syscall4): Likewise.
301 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
302 Remove.
303 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
304 Remove.
305 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
306 Remove.
307 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
308 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
309 `__mips16_syscall5'. Remove prototype.
310 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
311 `__mips16_syscall6'. Remove prototype.
312 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
313 `__mips16_syscall7'. Remove prototype.
314 (__nomips16, __mips16_syscall_return): Move to...
315 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
316 (__nomips16, __mips_syscall_return): ... here.
317 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
318 `__mips16_syscall_return' to `__mips_syscall_return'.
319 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
320 `internal_syscall##nr'.
321 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
322 `internal_syscall##nr'.
323 (FORCE_FRAME_POINTER): Remove.
324 (__mips_syscall5): New prototype.
325 (internal_syscall5): Rewrite to call `__mips_syscall5'.
326 (__mips_syscall6): New prototype.
327 (internal_syscall6): Rewrite to call `__mips_syscall6'.
328 (__mips_syscall7): New prototype.
329 (internal_syscall7): Rewrite to call `__mips_syscall7'.
330 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
331 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
332 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
333 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
334 (sysdep_routines): Add libc-do-syscall.
335 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
336 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
337
338 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
339
340 [BZ #21672]
341 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
342 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
343 (advise_stack_range): New function.
344 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
345 stack non required to advise_stack_range at allocatestack.c
346
347 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
348
349 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
350
351 2017-08-29 Florian Weimer <fweimer@redhat.com>
352
353 [BZ #22026]
354 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
355 __end_fct. Mangle __end_fct after setting it to NULL.
356 * iconv/Makefile (tests): Add tst-gconv-init-failure.
357 (modules-names, modules-names-tests): Add
358 tst-gconv-init-failure-mod.
359 (gconv-modules): New target.
360 (tst-gconv-init-failure-mod.so): Link against libsupport.
361 (tst-gconv-init-failure): Depend on gconv-modules,
362 tst-gconv-init-failure-mod.so.
363 * iconv/tst-gconv-init-failure-mod.c: New file.
364 * iconv/tst-gconv-init-failure.c: Likewise.
365 * iconv/test-gconv-modules: Likewise.
366
367 2017-08-29 Florian Weimer <fweimer@redhat.com>
368
369 [BZ #22025]
370 * iconv/gconv_db.c (free_derivation): Remove redundant
371 parentheses.
372 (gen_steps): Unconditionally mangle __btowc_fct after
373 initialization.
374 (increment_counter): Likewise. Do not call init_fct for internal
375 modules.
376
377 2017-08-29 Joseph Myers <joseph@codesourcery.com>
378
379 [BZ #22028]
380 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
381 (_MSUF_): Remove macro.
382 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
383 Likewise.
384 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
385 (__REDIRFROM_X): New macro.
386 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
387 Likewise.
388 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
389 (__REDIRTO_X): Likewise.
390 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
391 arguments.
392 (__MATH_REDIRCALL_2): Likewise.
393 (__MATH_REDIRCALL_INTERNAL): Likewise.
394 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
395 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
396 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
397 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
398 * math/test-finite-macros.c: New file.
399 * math/Makefile (tests): Add test-finite-macros.
400 (CFLAGS-test-finite-macros.c): New variable.
401
402 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
403 Jeff Law <law@redhat.com>
404
405 [BZ #22025]
406 Mangle NULL pointers in iconv/gconv.
407 * iconv/gconv_cache.c (find_module): Demangle init_fct before
408 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
409 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
410 is non-NULL before demangling the end_fct. Check for NULL
411 end_fct after demangling.
412 (__gconv_release_step): Demangle the end_fct before checking
413 it for NULL. Remove assert on __shlibc_handle != NULL.
414 (gen_steps): Don't check btowc_fct for NULL before mangling.
415 Demangle init_fct before checking for NULL.
416 (increment_counter): Likewise.
417 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
418 end_fct for NULL before mangling.
419 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
420 for NULL.
421
422 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
423
424 [BZ #21971]
425 * locale/iso-639.def: add Morisyen.
426
427 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
428
429 [BZ #21930]
430 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
431 (iszero): New C++ implementation that does not use
432 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
433 signaling nans are enabled, since __builtin_types_compatible_p
434 is a C-only feature.
435 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
436 defined, include ieee754_float128.h for access to the union and
437 member ieee854_float128.ieee.
438 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
439 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
440 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
441 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
442 options of test-math-zero on powerpc64le.
443
444 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
445
446 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
447 Change double to float.
448
449 2017-08-28 Joseph Myers <joseph@codesourcery.com>
450
451 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
452 unconditional.
453 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
454 conditional code; define contents only for [LIBM_SVID_COMPAT].
455
456 2017-08-28 Florian Weimer <fweimer@redhat.com>
457
458 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
459 (abi-lp64_be-options): Remove.
460 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
461 (abi-hard-options): Likewise.
462 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
463 (abi-o32_hard-options, abi-o32_soft_2008-options)
464 (abi-o32_hard_2008-options, abi-n32_soft-options)
465 (abi-n32_hard-options, abi-n32_soft_2008-options)
466 (abi-n32_hard_2008-options, abi-n64_soft-options)
467 (abi-n64_hard-options, abi-n64_soft_2008-options)
468 (abi-n64_hard_2008-options): Likewise.
469 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
470 (abi-64-v1-options, abi-64-v2-options): Likewise.
471 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
472 (abi-64-options): Likewise.
473 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
474 (abi-64-options): Likewise.
475 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
476 (abi-64-options): Likewise.
477 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
478 (abi-64-options, abi-x32-options): Likewise.
479
480 2017-08-28 Florian Weimer <fweimer@redhat.com>
481
482 Store supported list of SYS_* system calls in the source tree.
483 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
484 (bits/syscall.h): Generate from list file.
485 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
486 [$(subdir) = misc] (tests): Add tst-syscall-list.
487 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
488 [$(subdir) = misc] (tst-syscall-list-macros.list)
489 [$(subdir) = misc] (tst-syscall-list-nr.list)
490 (tst-syscall-list-sys.list): Helper targets for new
491 tst-syscall-list test.
492 [$(subdir) = misc] (tst-syscall-list.out): Run test script
493 tst-syscall-list.sh.
494 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
495 target. Do not include bits/syscall.d.
496 [$(subdir) = misc] (generated): Do not update.
497 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
498 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
499 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
500 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
501
502 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
503
504 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
505 (tst-cxa_atexit, tst-on_exit): Likewise.
506 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
507 tst-cxa_atexit, and tst-on_exit.
508 * stdlib/tst-atexit-common.c: New file.
509 * stdlib/tst-atexit.c: New file.
510 * stdlib/tst-at_quick_exit.c: New file.
511 * stdlib/tst-cxa_atexit.c: New file.
512 * stdlib/tst-on_exit.c: New file.
513
514 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
515
516 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
517 * mach/stack_chk_fail_local.c: New file.
518 * hurd/stack_chk_fail_local.c: New file.
519 * mach/Machrules ($(interface-library)-routines): Add
520 stack_chk_fail_local.
521 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
522 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
523 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
524 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
525 * hurd/Makefile (CFLAGS-hurdstartup.o,
526 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
527
528 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
529
530 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
531 (index_cpu_*, index_arch_*): Removed.
532
533 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
534
535 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
536 Use uint64_t instead of unsigned long.
537
538 2017-08-25 Joseph Myers <joseph@codesourcery.com>
539
540 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
541 [__HAVE_DISTINCT_FLOAT128].
542
543 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
544 of <bits/math-finite.h>.
545 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
546 inclusion of <bits/math-finite.h>.
547 * math/bits/math-finite.h (__REDIRTO_X): Do not define
548 conditionally on [__MATH_DECLARING_LDOUBLE && defined
549 __NO_LONG_DOUBLE_MATH].
550 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
551 (__MATH_REDIRCALL_2): Likewise.
552 (__MATH_REDIRCALL_INTERNAL): Likewise.
553 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
554 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
555 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
556
557 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
558 Remove file.
559 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
560 Likewise.
561 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
562 Likewise.
563 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
564 Likewise.
565 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
566 Likewise.
567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
568 Likewise.
569 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
570 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
571 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
572 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
573 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
574 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
575 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
576 w_sqrtf_compat-ppc32.
577
578 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
579
580 * math/math.h [defined __cplusplus] (issignaling): In the long
581 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
582 is not defined. Call __issignaling, otherwise.
583
584 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
585
586 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
587 syscall definitions and replace __builtin_expect with __glibc_likely.
588 * sysdeps/unix/syscall-template.S: Update comment about cancellable
589 syscall.
590 (SYSCALL_CANCELLABLE): Removedefinition
591 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
592 definition.
593 (PSEUDO_END): Likewise.
594 [IS_IN (libpthread)] (CENABLE): Likewise.
595 [IS_IN (libpthread)] (CDISABLE): Likewise.
596 [IS_IN (libc)] (CENABLE): Likewise.
597 [IS_IN (libc)] (CENABLE): Likewise.
598 [IS_IN (librt)] (CDISABLE): Likewise.
599 [IS_IN (librt)] (CDISABLE): Likewise.
600 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
601 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
602 definition.
603 (PSEUDO_END): Likewise.
604 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
605 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
606 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
607 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
608 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
609 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
610 (CENABLE): Likewise.
611 (CDISABLE): Likewise.
612 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
613 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
614 defintion.
615 (PSEUDO_END): Likewise.
616 [IS_IN (libpthread)] (CENABLE): Likewise.
617 [IS_IN (libpthread)] (CDISABLE): Likewise.
618 [IS_IN (libc)] (CENABLE): Likewise.
619 [IS_IN (libc)] (CENABLE): Likewise.
620 [IS_IN (librt)] (CDISABLE): Likewise.
621 [IS_IN (librt)] (CDISABLE): Likewise.
622 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
623 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
624 definition.
625 (PSEUDO_END): Likewise.
626 [IS_IN (libpthread)] (CENABLE): Likewise.
627 [IS_IN (libpthread)] (CDISABLE): Likewise.
628 [IS_IN (libc)] (CENABLE): Likewise.
629 [IS_IN (libc)] (CENABLE): Likewise.
630 [IS_IN (librt)] (CDISABLE): Likewise.
631 [IS_IN (librt)] (CDISABLE): Likewise.
632 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
633 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
634 definition.
635 (PSEUDO_END): Likewise.
636 [IS_IN (libpthread)] (CENABLE): Likewise.
637 [IS_IN (libpthread)] (CDISABLE): Likewise.
638 [IS_IN (libc)] (CENABLE): Likewise.
639 [IS_IN (libc)] (CENABLE): Likewise.
640 [IS_IN (librt)] (CDISABLE): Likewise.
641 [IS_IN (librt)] (CDISABLE): Likewise.
642 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
643 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
644 definition.
645 (PSEUDO_END): Likewise.
646 [IS_IN (libpthread)] (CENABLE): Likewise.
647 [IS_IN (libpthread)] (CDISABLE): Likewise.
648 [IS_IN (libc)] (CENABLE): Likewise.
649 [IS_IN (libc)] (CENABLE): Likewise.
650 [IS_IN (librt)] (CDISABLE): Likewise.
651 [IS_IN (librt)] (CDISABLE): Likewise.
652 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
653 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
654 definition.
655 (PSEUDO_END): Likewise.
656 [IS_IN (libpthread)] (CENABLE): Likewise.
657 [IS_IN (libpthread)] (CDISABLE): Likewise.
658 [IS_IN (libc)] (CENABLE): Likewise.
659 [IS_IN (libc)] (CENABLE): Likewise.
660 [IS_IN (librt)] (CDISABLE): Likewise.
661 [IS_IN (librt)] (CDISABLE): Likewise.
662 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
663 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
664 definition.
665 (PSEUDO_END): Likewise.
666 [IS_IN (libpthread)] (CENABLE): Likewise.
667 [IS_IN (libpthread)] (CDISABLE): Likewise.
668 [IS_IN (libc)] (CENABLE): Likewise.
669 [IS_IN (libc)] (CENABLE): Likewise.
670 [IS_IN (librt)] (CDISABLE): Likewise.
671 [IS_IN (librt)] (CDISABLE): Likewise.
672 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
673 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
674 Remove definition.
675 (PSEUDO_END): Likewise.
676 [IS_IN (libpthread)] (CENABLE): Likewise.
677 [IS_IN (libpthread)] (CDISABLE): Likewise.
678 [IS_IN (libc)] (CENABLE): Likewise.
679 [IS_IN (libc)] (CENABLE): Likewise.
680 [IS_IN (librt)] (CDISABLE): Likewise.
681 [IS_IN (librt)] (CDISABLE): Likewise.
682 (SINGLE_THREAD_P): Likewise.
683 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
684 definition.
685 (PSEUDO_END): Likewise.
686 [IS_IN (libpthread)] (CENABLE): Likewise.
687 [IS_IN (libpthread)] (CDISABLE): Likewise.
688 [IS_IN (libc)] (CENABLE): Likewise.
689 [IS_IN (libc)] (CENABLE): Likewise.
690 [IS_IN (librt)] (CDISABLE): Likewise.
691 [IS_IN (librt)] (CDISABLE): Likewise.
692 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
693 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
694 definition.
695 (PSEUDO_END): Likewise.
696 [IS_IN (libpthread)] (CENABLE): Likewise.
697 [IS_IN (libpthread)] (CDISABLE): Likewise.
698 [IS_IN (libc)] (CENABLE): Likewise.
699 [IS_IN (libc)] (CENABLE): Likewise.
700 [IS_IN (librt)] (CDISABLE): Likewise.
701 [IS_IN (librt)] (CDISABLE): Likewise.
702 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
703 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
704 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
705 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
706 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
707 definition.
708 (PSEUDO_END): Likewise.
709 [IS_IN (libpthread)] (CENABLE): Likewise.
710 [IS_IN (libpthread)] (CDISABLE): Likewise.
711 [IS_IN (libc)] (CENABLE): Likewise.
712 [IS_IN (libc)] (CENABLE): Likewise.
713 [IS_IN (librt)] (CDISABLE): Likewise.
714 [IS_IN (librt)] (CDISABLE): Likewise.
715 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
716 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
717 definition.
718 (PSEUDO_END): Likewise.
719 [IS_IN (libpthread)] (CENABLE): Likewise.
720 [IS_IN (libpthread)] (CDISABLE): Likewise.
721 [IS_IN (libc)] (CENABLE): Likewise.
722 [IS_IN (libc)] (CENABLE): Likewise.
723 [IS_IN (librt)] (CDISABLE): Likewise.
724 [IS_IN (librt)] (CDISABLE): Likewise.
725 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
726 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
727 definition.
728 (PSEUDO_END): Likewise.
729 [IS_IN (libpthread)] (CENABLE): Likewise.
730 [IS_IN (libpthread)] (CDISABLE): Likewise.
731 [IS_IN (libc)] (CENABLE): Likewise.
732 [IS_IN (libc)] (CENABLE): Likewise.
733 [IS_IN (librt)] (CDISABLE): Likewise.
734 [IS_IN (librt)] (CDISABLE): Likewise.
735 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
736 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
737 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
738 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
739 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
740 definition.
741 (PSEUDO_END): Likewise.
742 [IS_IN (libpthread)] (CENABLE): Likewise.
743 [IS_IN (libpthread)] (CDISABLE): Likewise.
744 [IS_IN (libc)] (CENABLE): Likewise.
745 [IS_IN (libc)] (CENABLE): Likewise.
746 [IS_IN (librt)] (CDISABLE): Likewise.
747 [IS_IN (librt)] (CDISABLE): Likewise.
748 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
749 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
750 definition.
751 (PSEUDO_END): Likewise.
752 [IS_IN (libpthread)] (CENABLE): Likewise.
753 [IS_IN (libpthread)] (CDISABLE): Likewise.
754 [IS_IN (libc)] (CENABLE): Likewise.
755 [IS_IN (libc)] (CENABLE): Likewise.
756 [IS_IN (librt)] (CDISABLE): Likewise.
757 [IS_IN (librt)] (CDISABLE): Likewise.
758 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
759
760 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
761
762 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
763
764 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
765
766 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
767
768 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
769
770 [BZ #21982]
771 * string/stratcliff.c (do_test): Declare size, nchars, inner,
772 middle and outer with size_t instead of int. Repleace %d and
773 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
774 "MAX (outer, nchars - 64)" to support unsigned outer and
775 nchars. Also exit loop when outer == 0.
776
777 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
778
779 * include/fcntl.h (__fcntl_nocancel): Remove definition.
780 * include/signal.h (__sigsuspend_nocancel): Likewise.
781 * include/time.h (__nanosleep_nocancel): Likewise.
782 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
783 * login/utmp_file.c: Include non cancellable syscall header.
784 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
785 prototype.
786
787 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
788
789 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
790 .byte sequences with AVX512F instructions.
791 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
792 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
793 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
794 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
795 Likewise.
796 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
797 Likewise.
798
799 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
800 Steve Ellcey <sellcey@cavium.com>
801
802 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
803 Use PTR_REG macro in cmp instruction.
804
805 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
806
807 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
808 Change the return type of the ifunc resolver to match the return
809 type of the target function.
810
811 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
812
813 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
814 (preadv64): Likewise.
815 (pwrite64(: Likewise.
816 (pwritev64): Likewise.
817
818 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
819 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
820 (LOAD_ARGS_0): Likewise.
821 (LOAD_ARGS_1): Likewise.
822 (LOAD_ARGS_2): Likewise.
823 (LOAD_ARGS_3): Likewise.
824 (LOAD_ARGS_4): Likewise.
825 (LOAD_ARGS_5): Likewise.
826 (LOAD_ARGS_6): Likewise.
827 (LOAD_REGS_0): Likewise.
828 (LOAD_REGS_1): Likewise.
829 (LOAD_REGS_2): Likewise.
830 (LOAD_REGS_3): Likewise.
831 (LOAD_REGS_4): Likewise.
832 (LOAD_REGS_5): Likewise.
833 (LOAD_REGS_6): Likewise.
834 (ASM_ARGS_0): Likewise.
835 (ASM_ARGS_1): Likewise.
836 (ASM_ARGS_2): Likewise.
837 (ASM_ARGS_3): Likewise.
838 (ASM_ARGS_4): Likewise.
839 (ASM_ARGS_5): Likewise.
840 (ASM_ARGS_6): Likewise.
841 (LOAD_ARGS_TYPES_1): Likewise.
842 (LOAD_ARGS_TYPES_2): Likewise.
843 (LOAD_ARGS_TYPES_3): Likewise.
844 (LOAD_ARGS_TYPES_4): Likewise.
845 (LOAD_ARGS_TYPES_5): Likewise.
846 (LOAD_ARGS_TYPES_6): Likewise.
847 (LOAD_REGS_TYPES_1): Likewise.
848 (LOAD_REGS_TYPES_2): Likewise.
849 (LOAD_REGS_TYPES_3): Likewise.
850 (LOAD_REGS_TYPES_4): Likewise.
851 (LOAD_REGS_TYPES_5): Likewise.
852 (LOAD_REGS_TYPES_6): Likewise.
853 (TYPEFY): New define.
854 (ARGIFY): Likewise.
855 (internal_syscall0): Likewise.
856 (internal_syscall1): Likewise.
857 (internal_syscall2): Likewise.
858 (internal_syscall3): Likewise.
859 (internal_syscall4): Likewise.
860 (internal_syscall5): Likewise.
861 (internal_syscall6): Likewise.
862 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
863 (INTERNAL_SYSCALL_NCS): Remove define.
864 (internal_syscall1): Add define.
865
866 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
867
868 * math/w_remainder_compat.c: Remove duplicate inclusion of
869 math-svid-compat.h.
870 * math/w_remainderf_compat.c: Likewise.
871 * math/w_remainderl_compat.c: Likewise.
872
873 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
874
875 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
876
877 2017-08-22 Joseph Myers <joseph@codesourcery.com>
878
879 [BZ #21684]
880 * math/tgmath.h (__floating_type): Simplify definitions.
881 (__real_integer_type): New macro.
882 (__complex_integer_type): Likewise.
883 (__expr_is_real): Likewise.
884 (__tgmath_real_type_sub): Update comment to describe handling of
885 complex types.
886 (__tgmath_complex_type_sub): New macro.
887 (__tgmath_complex_type): Likewise.
888 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
889 (__TGMATH_CF128): Use __expr_is_real.
890 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
891 __expr_is_real.
892 (__TGMATH_BINARY_REAL_IMAG): Likewise.
893 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
894 * math/gen-tgmath-tests.py (Type.create_type): Create complex
895 integer types.
896
897 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
898
899 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
900 macro.
901 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
902 alias.
903 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
904 Likewise.
905
906 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
907 nanosleep_not_cancel with __nanosleep_nocancel.
908 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
909 (__nanosleep_nocancel): New macro.
910 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
911 function.
912 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
913 macro.
914 (__nanosleep_nocancel): New prototype.
915
916 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
917 pause_not_cancel with __pause_nocancel.
918 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
919 (__pause_nocancel): New macro.
920 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
921 macro.
922 (__pause_nocancel): New prototype.
923 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
924
925 2017-08-22 Martin Sebor <msebor@redhat.com>
926
927 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
928 to return a pointer to the same type as the target function.
929
930 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
931
932 [BZ #18822]
933 [BZ #21986]
934 * include/printf.h (__printf_fphex): Add attribute_hidden.
935 (__guess_grouping): New prototype.
936 * stdio-common/printf_fp.c (__guess_grouping): Removed.
937 * stdio-common/reg-printf.c (__register_printf_specifier): Add
938 libc_hidden_proto and libc_hidden_def.
939 * stdlib/strfmon_l.c (__guess_grouping): Removed.
940 (__vstrfmon_l): Remove the third argument passed to
941 __guess_grouping.
942
943 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
944
945 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
946 definition for issignaling that does not rely on __MATH_TG,
947 since __MATH_TG uses __builtin_types_compatible_p, which is only
948 available in C mode.
949 (CFLAGS-test-math-issignaling.cc): New variable.
950 * math/Makefile [CXX] (tests): Add test-math-issignaling.
951 * math/test-math-issignaling.cc: New test for C++ implementation
952 of type-generic issignaling.
953 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
954 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
955 options of test-math-issignaling on powerpc64le.
956
957 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
958
959 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
960 building libc.a.
961 (hidden_proto): Likewise.
962 (hidden_tls_proto): Likewise.
963 (__hidden_proto): Likewise.
964
965 2017-08-22 Florian Weimer <fweimer@redhat.com>
966
967 math: Statically link tests of internal functionality.
968 * math/Makefile (tests): Remove atest-exp, atest-sincos,
969 atest-exp2.
970 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
971 (gmp-objs): Remove assignment.
972 (atest-exp, atest-sincos, atest-exp2): Remove targets.
973
974 2017-08-22 Joseph Myers <joseph@codesourcery.com>
975
976 [BZ #21987]
977 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
978 and copy to ...
979 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
980 ... here.
981 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
982 ... and here.
983
984 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
985 variable definitions above inclusion of ../Rules.
986
987 2017-08-21 Joseph Myers <joseph@codesourcery.com>
988
989 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
990 case calling __builtin_unreachable.
991
992 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
993
994 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
995 __waitpid_nocancel.
996 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
997 (__waitpid_nocancel): New macro.
998 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
999 macro.
1000 (__waitpid_nocancel): Replace macro with a function.
1001 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
1002 function.
1003
1004 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
1005 __fcntl_nocancel.
1006 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
1007 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
1008
1009 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
1010 __writev_nocancel_nostatus.
1011 (write_call_graph): Likewise.
1012 (write_bb_counts): Likewise.
1013 * resolv/herror.c (herror): Likewise.
1014 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
1015 macro.
1016 (__writev_nocancel_nostatus): New macro.
1017 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
1018 Remove macro.
1019 (__writev_nocancel_nostatus): New function.
1020
1021 2017-08-21 Joseph Myers <joseph@codesourcery.com>
1022
1023 Revert:
1024 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1025
1026 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
1027 building libc.a.
1028 (hidden_proto): Likewise.
1029 (hidden_tls_proto): Likewise.
1030 (__hidden_proto): Likewise.
1031
1032 [BZ #21973]
1033 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
1034 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
1035 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
1036 Likewise.
1037 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
1038 Likewise.
1039 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
1040 Likewise.
1041 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
1042 Likewise.
1043 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
1044 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
1045 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
1046 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
1047 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
1048 GLIBC_2.0 sqrtl symbol.
1049
1050 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
1051 [__USE_MISC] (_LIB_VERSION): Likewise.
1052 [__USE_MISC] (struct exception): Likewise.
1053 [__USE_MISC] (matherr): Likewise.
1054 [__USE_MISC] (DOMAIN): Likewise.
1055 [__USE_MISC] (SING): Likewise.
1056 [__USE_MISC] (OVERFLOW): Likewise.
1057 [__USE_MISC] (UNDERFLOW): Likewise.
1058 [__USE_MISC] (TLOSS): Likewise.
1059 [__USE_MISC] (PLOSS): Likewise.
1060 [__USE_MISC] (HUGE): Likewise.
1061 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
1062 * math/math-svid-compat.h: New file.
1063 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
1064 and matherrl.
1065 * include/math.h [!_ISOMAC] (__matherr): Remove.
1066 * manual/arith.texi (FP Exceptions): Do not document matherr.
1067 * math/Makefile (tests): Change test-matherr to test-matherr-3.
1068 (tests-internal): New variable.
1069 (install-lib): Do not add libieee.a.
1070 (non-lib.a): Likewise.
1071 (extra-objs): Do not add libieee.a and ieee-math.o.
1072 (CPPFLAGS-s_lib_version.c): Remove variable.
1073 ($(objpfx)libieee.a): Remove rule.
1074 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
1075 * math/ieee-math.c: Remove.
1076 * math/libm-test-support.c (matherr): Remove.
1077 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
1078 and license notices. Include <math-svid-compat.h> and
1079 <shlib-compat.h>.
1080 (matherr): Undefine as macro. Use compat_symbol_reference.
1081 (_LIB_VERSION): Likewise.
1082 * math/test-matherr-2.c: New file.
1083 * math/test-matherr-3.c: Likewise.
1084 * sysdeps/generic/math_private.h (__kernel_standard): Remove
1085 declaration.
1086 (__kernel_standard_f): Likewise.
1087 (__kernel_standard_l): Likewise.
1088 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
1089 <math_private.h>. Include <math-svid-compat.h>.
1090 (_LIB_VERSION): Undefine as macro.
1091 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
1092 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
1093 [LIBM_SVID_COMPAT], use compat_symbol.
1094 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
1095 <math_private.h>. Include <math-svid-compat.h>.
1096 (matherr): Undefine as macro.
1097 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
1098 compat_symbol.
1099 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
1100 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
1101 compat_symbol_reference.
1102 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
1103 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
1104 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
1105 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
1106 (MATHERR_D): Remove declaration.
1107 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
1108 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
1109 [LIBM_BUILD] (pmatherrf): Likewise.
1110 [LIBM_BUILD] (pmatherr): Likewise.
1111 [LIBM_BUILD] (pmatherrl): Likewise.
1112 (DOMAIN): Likewise.
1113 (SING): Likewise.
1114 (OVERFLOW): Likewise.
1115 (UNDERFLOW): Likewise.
1116 (TLOSS): Likewise.
1117 (PLOSS): Likewise.
1118 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
1119 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
1120 compat_symbol.
1121 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
1122 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
1123 compat_symbol.
1124 * math/lgamma-compat.h: Include <math-svid-compat.h>.
1125 * math/w_acos_compat.c: Likewise.
1126 * math/w_acosf_compat.c: Likewise.
1127 * math/w_acosh_compat.c: Likewise.
1128 * math/w_acoshf_compat.c: Likewise.
1129 * math/w_acoshl_compat.c: Likewise.
1130 * math/w_acosl_compat.c: Likewise.
1131 * math/w_asin_compat.c: Likewise.
1132 * math/w_asinf_compat.c: Likewise.
1133 * math/w_asinl_compat.c: Likewise.
1134 * math/w_atan2_compat.c: Likewise.
1135 * math/w_atan2f_compat.c: Likewise.
1136 * math/w_atan2l_compat.c: Likewise.
1137 * math/w_atanh_compat.c: Likewise.
1138 * math/w_atanhf_compat.c: Likewise.
1139 * math/w_atanhl_compat.c: Likewise.
1140 * math/w_cosh_compat.c: Likewise.
1141 * math/w_coshf_compat.c: Likewise.
1142 * math/w_coshl_compat.c: Likewise.
1143 * math/w_exp10_compat.c: Likewise.
1144 * math/w_exp10f_compat.c: Likewise.
1145 * math/w_exp10l_compat.c: Likewise.
1146 * math/w_exp2_compat.c: Likewise.
1147 * math/w_exp2f_compat.c: Likewise.
1148 * math/w_exp2l_compat.c: Likewise.
1149 * math/w_fmod_compat.c: Likewise.
1150 * math/w_fmodf_compat.c: Likewise.
1151 * math/w_fmodl_compat.c: Likewise.
1152 * math/w_hypot_compat.c: Likewise.
1153 * math/w_hypotf_compat.c: Likewise.
1154 * math/w_hypotl_compat.c: Likewise.
1155 * math/w_j0_compat.c: Likewise.
1156 * math/w_j0f_compat.c: Likewise.
1157 * math/w_j0l_compat.c: Likewise.
1158 * math/w_j1_compat.c: Likewise.
1159 * math/w_j1f_compat.c: Likewise.
1160 * math/w_j1l_compat.c: Likewise.
1161 * math/w_jn_compat.c: Likewise.
1162 * math/w_jnf_compat.c: Likewise.
1163 * math/w_jnl_compat.c: Likewise.
1164 * math/w_lgamma_main.c: Likewise.
1165 * math/w_lgamma_r_compat.c: Likewise.
1166 * math/w_lgammaf_main.c: Likewise.
1167 * math/w_lgammaf_r_compat.c: Likewise.
1168 * math/w_lgammal_main.c: Likewise.
1169 * math/w_lgammal_r_compat.c: Likewise.
1170 * math/w_log10_compat.c: Likewise.
1171 * math/w_log10f_compat.c: Likewise.
1172 * math/w_log10l_compat.c: Likewise.
1173 * math/w_log2_compat.c: Likewise.
1174 * math/w_log2f_compat.c: Likewise.
1175 * math/w_log2l_compat.c: Likewise.
1176 * math/w_log_compat.c: Likewise.
1177 * math/w_logf_compat.c: Likewise.
1178 * math/w_logl_compat.c: Likewise.
1179 * math/w_pow_compat.c: Likewise.
1180 * math/w_powf_compat.c: Likewise.
1181 * math/w_powl_compat.c: Likewise.
1182 * math/w_remainder_compat.c: Likewise.
1183 * math/w_remainderf_compat.c: Likewise.
1184 * math/w_remainderl_compat.c: Likewise.
1185 * math/w_scalb_compat.c: Likewise.
1186 * math/w_scalbf_compat.c: Likewise.
1187 * math/w_scalbl_compat.c: Likewise.
1188 * math/w_sinh_compat.c: Likewise.
1189 * math/w_sinhf_compat.c: Likewise.
1190 * math/w_sinhl_compat.c: Likewise.
1191 * math/w_sqrt_compat.c: Likewise.
1192 * math/w_sqrtf_compat.c: Likewise.
1193 * math/w_sqrtl_compat.c: Likewise.
1194 * math/w_tgamma_compat.c: Likewise.
1195 * math/w_tgammaf_compat.c: Likewise.
1196 * math/w_tgammal_compat.c: Likewise.
1197 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
1198 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
1199 * sysdeps/ieee754/k_standard.c: Likewise.
1200 * sysdeps/ieee754/k_standardf.c: Likewise.
1201 * sysdeps/ieee754/k_standardl.c: Likewise.
1202 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
1203 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
1204 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
1205 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
1206 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
1207 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
1208 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
1209 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
1210 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
1211 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
1212 Likewise.
1213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
1214 Likewise.
1215 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
1216 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
1217 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
1218 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
1219
1220 2017-08-21 Florian Weimer <fweimer@redhat.com>
1221
1222 [BZ #21864]
1223 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
1224 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
1225 Move before inclusion of ../Rules.
1226
1227 2017-08-21 Florian Weimer <fweimer@redhat.com>
1228
1229 [BZ #21972]
1230 * assert/assert.h (assert): Use static_cast (bool) for C++.
1231 Use the ternary operator in the warning branch for GNU C.
1232 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
1233 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
1234 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
1235 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
1236 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
1237
1238 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1239
1240 [BZ #18822]
1241 * sysdeps/unix/sysv/linux/x86_64/init-first.c
1242 (__syscall_clock_gettime): Add attribute_hidden.
1243 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
1244 (__start_context): Likewise.
1245
1246 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1247
1248 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
1249 building libc.a.
1250 (hidden_proto): Likewise.
1251 (hidden_tls_proto): Likewise.
1252 (__hidden_proto): Likewise.
1253
1254 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1255
1256 * include/libc-symbols.h (attribute_hidden): Enable hidden
1257 visibility in libc.a compiled with PIE.
1258
1259 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1260
1261 [BZ #18822]
1262 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
1263 Add attribute_hidden.
1264
1265 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1266
1267 [BZ #21864]
1268 * Makerules (all-nonlib): Add $(others-extras).
1269 * catgets/Makefile (others-extras): New.
1270 * elf/Makefile (others-extras): Likewise.
1271 * nss/Makefile (others-extras): Likewise.
1272
1273 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1274
1275 [BZ #18822]
1276 * csu/libc-start.c (__libc_multiple_libcs): Removed.
1277 * elf/dl-open.c: Include <libc-internal.h>.
1278 (__libc_multiple_libcs): Removed.
1279 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
1280 <hp-timing.h>.
1281 * include/libc-internal.h (__libc_multiple_libcs): New.
1282 * misc/sbrk.c: Include <libc-internal.h>.
1283 (__libc_multiple_libcs): Removed.
1284
1285 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1286
1287 [BZ #18822]
1288 * grp/initgroups.c (__nss_group_database): Removed.
1289 (__nss_initgroups_database): Likewise.
1290 * nscd/gai.c (__nss_hosts_database): Likewise.
1291 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
1292 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
1293 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
1294 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
1295 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
1296 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
1297 attribute_hidden.
1298 * nss/nsswitch.c (__nss_database_custom): Define only if
1299 USE_NSCD is defined.
1300 (__nss_configure_lookup): Use __nss_database_custom only if
1301 USE_NSCD is defined.
1302 * nss/nsswitch.h (__nss_database_custom): Declare only if
1303 USE_NSCD is defined. Add attribute_hidden.
1304 (__nss_setent): Add attribute_hidden.
1305 (__nss_endent): Likewise.
1306 (__nss_getent_r): Likewise.
1307 (__nss_getent): Likewise.
1308 (DEFINE_DATABASE): Declare __nss_##arg##_database.
1309
1310 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
1311
1312 [BZ #18822]
1313 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
1314 libc_hidden_proto and libc_hidden_def.
1315
1316 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
1317
1318 [BZ #18822]
1319 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
1320 Add libc_hidden_proto.
1321 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
1322 Add libc_hidden_def.
1323
1324 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
1325
1326 [BZ #21974]
1327 * gmon/Makefile (routines): Remove bb_init_func and
1328 bb_exit_func.
1329 (elide-routines.os): Removed.
1330 * gmon/bb_exit_func.c: Likewise.
1331 * gmon/bb_init_func.c: Likewise.
1332 * include/sys/gmon.h (__bb): Likewise.
1333 (__bb_init_func): Likewise.
1334 (__bb_exit_func): Likewise.
1335 * sysdeps/alpha/bb_init_func.S: Likewise.
1336
1337 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
1338
1339 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
1340 * include/setjmp.h (____longjmp_chk): Here. Add
1341 attribute_hidden.
1342
1343 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
1344
1345 [BZ #18822]
1346 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
1347 attribute_hidden.
1348 (__strspn_sse2): Likewise.
1349
1350 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1351
1352 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
1353 (close_not_cancel_no_status): Likewise.
1354 (__close_nocancel): New macro.
1355 (__close_nocancel_nostatus): Likewise.
1356 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
1357 macro.
1358 (close_not_cancel): Likewise.
1359 (close_not_cancel_no_status): Likewise.
1360 (__close_nocancel): New prototype.
1361 (__close_nocancel_nostatus): New function.
1362 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
1363 * catgets/open_catalog.c (__open_catalog): Replace
1364 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
1365 * gmon/gmon.c (write_gmon): Likewise.
1366 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1367 * intl/loadmsgcat.c (close): Likewise.
1368 * io/ftw.c (open_dir_stream): Likewise.
1369 (ftw_startup): Likewise.
1370 * libio/fileops.c (_IO_file_open): Likewise.
1371 (_IO_file_close_mmap): Likewise.
1372 (_IO_file_close): Likewise.
1373 * libio/iopopen.c (_IO_dup2): Likewise.
1374 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
1375 * locale/loadlocale.c (_nl_load_locale): Likewise.
1376 * login/utmp_file.c (pututline_file): Likewise.
1377 (endutent_file): Likewise.
1378 * misc/daemon.c (daemon): Likewise.
1379 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1380 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1381 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1382 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1383 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1384 * nscd/nscd_helper.c (open_socket): Likewise.
1385 (__nscd_open_socket): Likewise.
1386 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1387 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
1388 (__nscd_innetgr): Likewise.
1389 * nss/nss_db/db-open.c (internal_setent): Likewise.
1390 * resolv/res-close.c (__res_iclose): Likewise.
1391 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
1392 * sysdeps/posix/closedir.c (__closedir): Likewise.
1393 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
1394 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
1395 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
1396 (opendir_tail): Likewise.
1397 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1398 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
1399 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
1400 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
1401 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
1402 (gethostid): Likewise.
1403 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
1404 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
1405 Likewise.
1406 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
1407 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
1408 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
1409 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
1410 Likewise.
1411 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
1412 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
1413 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
1414 Likewise.
1415 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
1416 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1417 Likewise.
1418 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
1419 Likewise.
1420 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
1421 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
1422 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1423 __close_nocancel.
1424
1425 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
1426 (openat_not_cancel_3): Likewise.
1427 (openat64_not_cancel_3): Likewise).
1428 (openat_not_cancel_3): Likewise).
1429 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
1430 macro.
1431 (openat_not_cancel_3): Likewise.
1432 (openat64_not_cancel): Likewise.
1433 (openat64_not_cancel_3): Likewise.
1434 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
1435 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
1436 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
1437 __open{64}_nocancel.
1438 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
1439 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
1440 * sysdeps/posix/opendir.c (__opendirat): Likewise.
1441
1442 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1443
1444 [BZ #18822]
1445 * include/argz.h (__argz_create_sep): New function prototype.
1446 (__argz_append): Likewise.
1447 (__argz_add): Likewise.
1448 (__argz_add_sep): Likewise.
1449 (__argz_delete): Likewise.
1450 (__argz_insert): Likewise.
1451 (__argz_replace): Likewise.
1452 * string/argz.h (__argz_create_sep): Removed.
1453 (__argz_append): Likewise.
1454 (__argz_add): Likewise.
1455 (__argz_add_sep): Likewise.
1456 (__argz_delete): Likewise.
1457 (__argz_insert): Likewise.
1458 (__argz_replace): Likewise.
1459
1460 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1461
1462 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
1463 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
1464 (GNU_PROPERTY_STACK_SIZE): Likewie.
1465 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
1466 (GNU_PROPERTY_LOPROC): Likewise.
1467 (GNU_PROPERTY_HIPROC): Likewise.
1468 (GNU_PROPERTY_LOUSER): Likewise.
1469 (GNU_PROPERTY_HIUSER): Likewise.
1470 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
1471 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
1472 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
1473 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
1474 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
1475 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
1476 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
1477 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
1478 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
1479 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
1480 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
1481 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
1482 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
1483 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
1484 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
1485 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
1486 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
1487 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
1488 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
1489 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
1490 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
1491 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
1492 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
1493
1494 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
1495
1496 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
1497 in C++ mode.
1498
1499 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
1500
1501 [BZ #21930]
1502 * math/math.h (isinf): Check if in C or C++ mode before using
1503 __builtin_types_compatible_p, since this is a C mode feature.
1504
1505 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1506
1507 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
1508 (__write_nocancel): New macro.
1509 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
1510 Rewrite as a function prototype.
1511 (write_not_cancel): Remove macro.
1512 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
1513 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
1514 (write_gmon): Likewise.
1515 * libio/fileops.c (_IO_new_file_write): Likewise.
1516 * login/utmp_file.c (pututline_file): Likewise.
1517 (updwtmp_file): Likewise.
1518 * stdio-common/psiginfo.c (psiginfo): Likewise.
1519 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1520 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
1521 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
1522 Likewise.
1523 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
1524 Likewise.
1525
1526 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
1527 (__read_nocancel): New macro.
1528 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1529 __read_nocancel.
1530 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
1531 macro.
1532 (__read_nocancel): New prototype.
1533 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
1534 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
1535 with __read_nocancel.
1536 * intl/loadmsgcat.c (read): Likewise.
1537 * libio/fileops.c (_IO_file_read): Likewise.
1538 * locale/loadlocale.c (_nl_load_locale): Likewise.
1539 * login/utmp_file.c (getutent_r_file): Likewise.
1540 (internal_getut_r): Likewise.
1541 (getutline_r_file): Likewise.
1542 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
1543 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1544 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
1545 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
1546 Likewise.
1547 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
1548 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
1549 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
1550 Likewise.
1551 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
1552 Likewise.
1553 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
1554 Likewise.
1555 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1556 Likewise.
1557 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
1558
1559 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1560
1561 [BZ #21966]
1562 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
1563 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
1564 usable.
1565
1566 2017-08-17 DJ Delorie <dj@redhat.com>
1567
1568 * bug17079.c: Update to new test harness.
1569 * test-digits-dots.c: Likewise.
1570 * test-netdb.c: Likewise.
1571 * tst-field.c: Likewise.
1572 * tst-nss-getpwent.c: Likewise.
1573 * tst-nss-static.c: Likewise.
1574 * tst-nss-test1.c: Likewise.
1575 * tst-nss-test2.c: Likewise.
1576 * tst-nss-test3.c: Likewise.
1577 * tst-nss-test4.c: Likewise.
1578 * tst-nss-test5.c: Likewise.
1579
1580 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1581
1582 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
1583 (open_not_cancel_2): Likewise.
1584 (open_nocancel): New macro.
1585 (open64_nocancel): Likewise.
1586 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
1587 (open_not_cancel_2): Likewise.
1588 (__open_nocancel): New prototype.
1589 (__open64_nocancel): Likewise.
1590 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1591 __open_nocancel.
1592 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
1593 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
1594 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
1595 with __open_nocancel.
1596 * csu/check_fds.c (check_one_fd): Likewise.
1597 * gmon/gmon.c (write_gmon): Likewise.
1598 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
1599 * intl/loadmsgcat.c (open): Likewise.
1600 * libio/fileops.c (_IO_file_open): Likewise.
1601 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
1602 * locale/loadlocale.c (_nl_load_locale): Likewise.
1603 * login/utmp_file.c (setutent_file): Likewise.
1604 * misc/daemon.c (daemon): Likewise.
1605 * nss/nss_db/db-open.c (internal_setent): Likewise.
1606 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
1607 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
1608 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
1609 (__opendir): Likewise.
1610 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1611 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
1612 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
1613 (gethostid): Likewise.
1614 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
1615 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
1616 Likewise.
1617 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
1618 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
1619 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
1620 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
1621 Likewise.
1622 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
1623 Likewise.
1624 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
1625 Likewise.
1626 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
1627 Likewise.
1628 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1629 Likewise.
1630 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
1631 Likewise.
1632 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
1633 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
1634
1635 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
1636
1637 * benchtests/bench-skeleton.c (main): Add support for
1638 latency benchmarking.
1639 * benchtests/scripts/bench.py: Add support for latency benchmarking.
1640
1641 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
1642
1643 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
1644 the startup object.
1645
1646 2017-08-17 Florian Weimer <fweimer@redhat.com>
1647
1648 * include/sys/socket.h (__opensock): Remove internal_function.
1649 * socket/opensock.c (__opensock): Likewise.
1650 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
1651
1652 2017-08-16 Joseph Myers <joseph@codesourcery.com>
1653
1654 [BZ #21944]
1655 * signal/bits/types/__sigval_t.h: New file.
1656 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
1657 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
1658 and define sigval_t using __sigval_t.
1659 * include/bits/types/__sigval_t.h: New file.
1660 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
1661 instead of <bits/types/__sigval_t.h>.
1662 (struct sigevent): Use __sigval_t instead of sigval_t.
1663 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
1664 instead of <bits/types/__sigval_t.h>.
1665 (siginfo_t): Use __sigval_t instead of sigval_t.
1666 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
1667 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
1668 (struct sigevent): Use __sigval_t instead of sigval_t.
1669 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
1670 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
1671 (siginfo_t): Use __sigval_t instead of sigval_t.
1672 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
1673
1674 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
1675
1676 * NEWS: Remove "[Add new features here]" for 2.27.
1677
1678 2017-08-16 Joseph Myers <joseph@codesourcery.com>
1679
1680 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
1681 libc.so.
1682
1683 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
1684
1685 * NEWS: Mention x86-64 FMA optimization.
1686
1687 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
1688
1689 [BZ #21912]
1690 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1691 Add e_expf-fma.
1692 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
1693 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
1694 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
1695
1696 2017-08-16 Andreas Schwab <schwab@suse.de>
1697
1698 [BZ #16750]
1699 CVE-2009-5064
1700 * elf/ldd.bash.in: Never run file directly.
1701
1702 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
1703
1704 [BZ #21955]
1705 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
1706 (L(SP_INF_0)): Likewise.
1707
1708 2017-08-15 Florian Weimer <fweimer@redhat.com>
1709
1710 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
1711 run-built-tests.
1712
1713 2017-08-15 Florian Weimer <fweimer@redhat.com>
1714
1715 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
1716 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
1717 BROKEN_THREAD_SIGNALS code.
1718 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
1719 request_list): Remove caller_pid member used for
1720 BROKEN_THREAD_SIGNALS.
1721 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
1722 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
1723 Remove BROKEN_THREAD_SIGNALS support.
1724 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1725 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
1726
1727 2017-08-15 Florian Weimer <fweimer@redhat.com>
1728
1729 * gmon/Makefile (tests): Add tst-gmon.
1730 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
1731 Set.
1732 (tests-special): Add tst-gmon-prof.out.
1733 (tst-gmon.out): Depend on clean-tst-gmon-data.
1734 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
1735 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
1736 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
1737 startup object.
1738 * aclocal.m4 (GPROF): Set and substitute.
1739 * config.amke.in (GPROF): Set.
1740 * configure: Regenerate.
1741
1742 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
1743
1744 * elf/elf.h A (NT_PPC_TAR): New macro.
1745 (NT_PPC_PPR): Likewise.
1746 (NT_PPC_DSCR): Likewise.
1747 (NT_PPC_EBB): Likewise.
1748 (NT_PPC_PMU): Likewise.
1749 (NT_PPC_TM_CGPR): Likewise.
1750 (NT_PPC_TM_CFPR): Likewise.
1751 (NT_PPC_TM_CVMX): Likewise.
1752 (NT_PPC_TM_CVSX): Likewise.
1753 (NT_PPC_TM_SPR): Likewise.
1754 (NT_PPC_TM_CTAR): Likewise.
1755 (NT_PPC_TM_CPPR): Likewise.
1756 (NT_PPC_TM_CDSCR): Likewise.
1757
1758 2017-08-15 Florian Weimer <fweimer@redhat.com>
1759
1760 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
1761 regparm (2) instead of internal_function.
1762 (_MCOUNT_DECL): Adjust.
1763
1764 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
1765
1766 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
1767 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
1768
1769 2017-08-14 Joseph Myers <joseph@codesourcery.com>
1770
1771 * conform/data/sys/wait.h-data (si_value): Do not expect for
1772 XPG42.
1773
1774 2017-08-14 Florian Weimer <fweimer@redhat.com>
1775
1776 [BZ #21962]
1777 NSS: Create stubs for accidentally exported lookup functions.
1778 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
1779 Remove declaration.
1780 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
1781 (ether_hostton): Call __nss_ethers_lookup2 instead.
1782 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
1783 (ether_ntohost): Call __nss_ethers_lookup2 instead.
1784 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
1785 (setup): Call __nss_netgroup_lookup2 instead.
1786 * nss/Makefile (routines): Add compat-lookup.
1787 * nss/Versions (GLIBC_2.27): Add symbol version.
1788 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
1789 (DB_COMPAT_FCT): Remove.
1790 * nss/compat-lookup.c: New file.
1791 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
1792 from databases.def.
1793 * nss/service-lookup.c (NO_COMPAT): Remove definition.
1794 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
1795 (netname2user): Call __nss_publickey_lookup2 instead.
1796 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
1797 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
1798 instead.
1799
1800 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1801 Sergei Trofimovich <slyfox@inbox.ru>
1802
1803 [BZ #21908]
1804 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
1805 Rename to MMAP2_PAGE_UNIT.
1806 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
1807 __OFF_T_MATCHES_OFF64_T is not defined.
1808 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
1809 uint64_t.
1810 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
1811 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
1812
1813 2017-08-14 Florian Weimer <fweimer@redhat.com>
1814
1815 i386: Do not set internal_function.
1816 * config.h.in (USE_REGPARMS, internal_function): Remove.
1817 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
1818 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
1819
1820 2017-08-14 Florian Weimer <fweimer@redhat.com>
1821
1822 * elf/dl-init.c (_dl_init): Remove internal_function.
1823 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
1824 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
1825
1826 2017-08-14 Florian Weimer <fweimer@redhat.com>
1827
1828 * elf/rtld.c (_dl_start): Remove internal_function.
1829 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
1830 _dl_start.
1831
1832 2017-08-14 Florian Weimer <fweimer@redhat.com>
1833
1834 * elf/dl-fini.c (_dl_fini): Remove internal_function
1835 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
1836
1837 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
1838
1839 * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
1840 (bit_cpu_SHSTK): Likewise.
1841 (index_cpu_IBT): Likewise.
1842 (index_cpu_SHSTK): Likewise.
1843 (reg_IBT): Likewise.
1844 (reg_SHSTK): Likewise.
1845 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
1846 Handle index_cpu_IBT and index_cpu_SHSTK.
1847
1848 2017-08-14 Mike FABIAN <mfabian@redhat.com>
1849
1850 [BZ #19982]
1851 * po/fr.po: Fix spelling mistake.
1852
1853 2017-08-13 Florian Weimer <fweimer@redhat.com>
1854
1855 * elf/dl-addr.c (_dl_addr): Remove internal_function.
1856 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
1857 (_dl_catch_error, _dl_receive_error): Likewise.
1858 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
1859 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
1860 (_dl_deallocate_tls): Likewise.
1861 * include/dlfcn.h (_dl_addr): Likewise.
1862 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
1863 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
1864 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
1865 Likewise.
1866
1867 2017-08-13 Florian Weimer <fweimer@redhat.com>
1868
1869 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
1870 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
1871 internal_function.
1872 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
1873
1874 2017-08-13 Florian Weimer <fweimer@redhat.com>
1875
1876 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
1877 internal_function.
1878 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
1879 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
1880 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
1881 internal_function from _dl_make_stack_executable_hook member.
1882 (_dl_make_stack_executable): Remove internal_function.
1883 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
1884 Likewise.
1885 * sysdeps/unix/sysv/linux/dl-execstack.c
1886 (_dl_make_stack_executable): Likewise.
1887
1888 2017-08-13 Florian Weimer <fweimer@redhat.com>
1889
1890 * sysdeps/unix/sysv/linux/netlinkaccess.h
1891 (__netlink_assert_response): Remove internal_function.
1892 * sysdeps/unix/sysv/linux/netlink_assert_response.c
1893 (__netlink_assert_response): Likewise.
1894
1895 2017-08-13 Florian Weimer <fweimer@redhat.com>
1896
1897 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
1898 internal_function.
1899 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
1900
1901 2017-08-13 Florian Weimer <fweimer@redhat.com>
1902
1903 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
1904 internal_function.
1905 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
1906 * inet/netgroup.h (__internal_setnetgrent)
1907 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
1908 * inet/getnetgrent_r.c (__internal_setnetgrent)
1909 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
1910 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
1911 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
1912 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
1913 * nss/nsswitch.h (db_lookup_function): Likewise.
1914
1915 2017-08-13 Florian Weimer <fweimer@redhat.com>
1916
1917 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
1918 Remove internal_function.
1919 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
1920 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
1921 message argument on the stack.
1922 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
1923 Likeweise.
1924
1925 2017-08-12 Mike FABIAN <mfabian@redhat.com>
1926
1927 Adapt test case data to the changes in the thousands
1928 separators.
1929
1930 [BZ #20756]
1931 * localedata/tst-langinfo.sh: Adapt test case data.
1932 * stdlib/tst-strfmon_l.c: Likewise.
1933 * stdlib/tst-strtod4.c: Likewise.
1934 * stdlib/tst-strtod5i.c: Likewise.
1935
1936 2017-08-11 Florian Weimer <fweimer@redhat.com>
1937
1938 [BZ #21242]
1939 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
1940 Suppress pedantic warning resulting from statement expression.
1941 (__ASSERT_FUNCTION): Add missing __extension__.
1942
1943 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
1944
1945 * benchtests/bench-memmove-large.c: Print output in JSON
1946 format.
1947 * benchtests/bench-memmove.c: Likewise.
1948
1949 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
1950 * benchtests/bench-memchr.c (do_one_test): Likewise.
1951 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
1952 * benchtests/bench-memcpy.c (do_one_test): Likewise.
1953 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
1954 * benchtests/bench-memmove.c (do_one_test): Likewise.
1955 * benchtests/bench-memset-large.c (do_one_test): Likewise.
1956 * benchtests/bench-memset.c (do_one_test): Likewise.
1957 * benchtests/bench-string.h (test_init): Remove memsets.
1958
1959 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
1960
1961 * manual/lang.texi
1962 (Computing the Width of an Integer Data Type): Rename section to
1963 "Width of an Integer Type". Remove inaccurate statement regarding
1964 lack of C language facilities for determining width of integer
1965 types, and reorder content to improve flow and context of
1966 discussion.
1967
1968 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
1969
1970 * lang.texi (va_copy): Change standard from ISO to C99.
1971 (__va_copy): Add standard and header annotation.
1972 Update description for clarity of origins and current use.
1973
1974 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
1975
1976 [BZ #21941]
1977 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
1978 xssqrtqp requires operands to be in Vector Registers
1979 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
1980 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
1981 (__ieee754_sqrtf128): Likewise.
1982
1983 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
1984
1985 * sysdeps/aarch64/memcmp.S (memcmp):
1986 Rewrite of optimized memcmp.
1987
1988 2017-08-10 Florian Weimer <fweimer@redhat.com>
1989
1990 Introduce ld.so exceptions.
1991 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
1992 (_dl_exception_create, _dl_exception_create_format)
1993 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
1994 (_dl_catch_exception): Declare.
1995 (_dl_catch_error): Update comment.
1996 * elf/dl-error-skeleton.c (struct catch): Replace objname,
1997 errstring, malloced members with exception member.
1998 (_dl_out_of_memory): Remove.
1999 (fatal_error): New function, extracted from _dl_signal_error.
2000 (_dl_signal_exception, _dl_signal_cexception): New functions.
2001 (_dl_signal_error): Call _dl_exception_create to allocate an
2002 exception object.
2003 (_dl_catch_exception): New function, based on _dl_catch_error.
2004 (_dl_catch_error): Implement using _dl_catch_exception.
2005 * elf/dl-exception.c: New file.
2006 * elf/Makefile (dl-routines): Add dl-exception.
2007 (elide-routines.os): Likewise.
2008 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
2009 _dl_exception_create_format, _dl_exception_free.
2010 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
2011 _dl_signal_exception.
2012 * elf/dl-lookup.c (make_string): Remove.
2013 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
2014 _dl_signal_cexception, _dl_exception_free.
2015 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
2016 _dl_signal_exception.
2017 * elf/dl-sym.c (do_sym): Likewise.
2018 * elf/dl-version.c (make_string): Remove.
2019 (match_symbol): Use _dl_exception_create_format,
2020 _dl_signal_cexception, _dl_exception_free.
2021 (_dl_check_map_versions): Likewise.
2022 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
2023 _dl_catch_exception.
2024 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
2025 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
2026 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
2027 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
2028 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
2029 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
2030 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
2031 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
2032 Likewise.
2033 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
2034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
2035 (ld.so): Likewise.
2036 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
2037 (ld.so): Likewise.
2038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
2039 Likewise.
2040 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
2041 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
2042 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
2043 Likewise.
2044 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
2045 Likewise.
2046 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
2047
2048 2017-08-10 Florian Weimer <fweimer@redhat.com>
2049
2050 * inet/net-internal.h (__inet6_scopeid_pton): Remove
2051 attribute_hidden, internal_function.
2052 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
2053 internal_function.
2054
2055 2017-08-10 Florian Weimer <fweimer@redhat.com>
2056
2057 * malloc/malloc.c (get_max_fast): Reimplement as an inline
2058 function which calls __builtin_unreachable.
2059
2060 2017-08-10 Mike FABIAN <mfabian@redhat.com>
2061
2062 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
2063 Indian monetary formatting
2064 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
2065 test cases.
2066
2067 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
2068
2069 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
2070 Fix typo in comment.
2071
2072 [BZ #21928]
2073 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
2074 PTRACE_SEIZE_DEVEL): Remove.
2075 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
2076 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2077 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2078 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2079 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2080
2081 2017-08-09 Joseph Myers <joseph@codesourcery.com>
2082
2083 * posix/bits/types.h (__qaddr_t): Remove.
2084
2085 [BZ #21457]
2086 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
2087 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
2088 __glibc_reserved1.
2089 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
2090 (ucontext_t): Use __ctx with uc_flags.
2091 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
2092 (__ctxt): Likewise.
2093 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
2094 __glibc_reserved1.
2095 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
2096 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
2097 __glibc_reserved1.
2098 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
2099 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
2100 __glibc_reserved1.
2101 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
2102 macro.
2103 (ucontext_t): Use __ctx with uc_flags.
2104 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
2105 (ucontext_t): Use __ctx with uc_flags.
2106 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
2107 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
2108 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
2109 (ucontext_t): Use __ctx with uc_flags.
2110 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
2111 undefine further down.
2112 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
2113 __glibc_reserved1.
2114 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
2115 undefine further down.
2116 (ucontext_t): Use __ctx with uc_flags.
2117 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
2118 undefine further down.
2119 (ucontext_t): Use __ctx with uc_flags.
2120 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
2121 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
2122 Rename uc_pad to __glibc_reserved1.
2123 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
2124 undefine further down.
2125 (ucontext_t): Use __ctx with uc_flags.
2126 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
2127 further down.
2128 (ucontext_t): Use __ctx with uc_flags.
2129 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
2130 __ctx with uc_flags.
2131 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
2132 (ucontext_t): Use __ctx with uc_flags.
2133 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
2134 __ctx with uc_flags.
2135
2136 2017-08-09 Florian Weimer <fweimer@redhat.com>
2137
2138 [BZ #21932]
2139 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
2140 before early return.
2141
2142 2017-08-09 Andreas Schwab <schwab@suse.de>
2143
2144 [BZ #21041]
2145 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
2146 renamed alias.
2147
2148 [BZ #21041]
2149 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
2150 tst-compat-forwarder.
2151 (modules-names): Add tst-compat-forwarder-mod.
2152 ($(objpfx)tst-compat-forwarder): Depend on
2153 $(objpfx)tst-compat-forwarder-mod.so.
2154 * nptl/tst-compat-forwarder.c: New file.
2155 * nptl/tst-compat-forwarder-mod.c: New file.
2156
2157 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
2158
2159 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
2160 comments.
2161
2162 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
2163 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2164 memcpy_falkor.
2165 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
2166 Bump.
2167 (__libc_ifunc_impl_list): Add __memcpy_falkor.
2168 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
2169 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
2170 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2171 Add falkor.
2172 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
2173 New macro.
2174
2175 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2176
2177 [BZ #759]
2178 * manual/setjmp.texi (getcontex): Document uc_stack value
2179 compatibility differences.
2180
2181 2017-08-08 Joseph Myers <joseph@codesourcery.com>
2182
2183 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
2184 (old_malloc_hook): Likewise.
2185 (old_memalign_hook): Likewise.
2186 (old_realloc_hook): Likewise.
2187 (struct hdr): Likewise.
2188 (flood): Likewise.
2189 (freehook): Likewise.
2190 (mallochook): Likewise.
2191 (memalignhook): Likewise.
2192 (reallochook): Likewise.
2193 (mprobe): Likewise.
2194 * malloc/mtrace.c (mallwatch): Likewise.
2195 (tr_old_free_hook): Likewise.
2196 (tr_old_malloc_hook): Likewise.
2197 (tr_old_realloc_hook): Likewise.
2198 (tr_old_memalign_hook): Likewise.
2199 (tr_where): Likewise.
2200 (lock_and_info): Likewise.
2201 (tr_freehook): Likewise.
2202 (tr_mallochook): Likewise.
2203 (tr_reallochook): Likewise.
2204 (tr_memalignhook): Likewise.
2205 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
2206 * misc/mmap.c (__mmap): Likewise.
2207 * misc/mmap64.c (__mmap64): Likewise.
2208 * misc/mprotect.c (__mprotect): Likewise.
2209 * misc/msync.c (msync): Likewise.
2210 * misc/munmap.c (__munmap): Likewise.
2211 * posix/posix_madvise.c (posix_madvise): Likewise.
2212 * socket/send.c (__send): Likewise.
2213 * socket/sendto.c (__sendto): Likewise.
2214 * socket/setsockopt.c (__setsockopt): Likewise.
2215 * string/memcmp.c (__ptr_t): Remove macro.
2216 (MEMCMP): Use void * instead of ptr_t.
2217 * string/memrchr.c (__ptr_t): Remove macro.
2218 (__memrchr): Use void * instead of ptr_t.
2219 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
2220 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2221 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
2222 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
2223 * sysdeps/mach/msync.c (msync): Likewise.
2224 * sysdeps/mach/munmap.c (__munmap): Likewise.
2225 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
2226 Likewise.
2227 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
2228 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2229 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
2230 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
2231 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
2232 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2233 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
2234 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
2235 Likewise.
2236 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2237 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
2238 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
2239 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
2240 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
2241 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
2242 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
2243 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
2244 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
2245 Likewise.
2246 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
2247 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
2248 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
2249 (MEMCMP): Use void * instead of ptr_t.
2250 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
2251 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
2252
2253 2017-08-08 Florian Weimer <fweimer@redhat.com>
2254
2255 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
2256 return statement.
2257
2258 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
2259
2260 [BZ #21913]
2261 * csu/libc-tls.c: Include <startup.h> first.
2262 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
2263 * elf/dl-tunables.c: Include <startup.h> first.
2264 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
2265 * sysdeps/generic/startup.h: New file.
2266 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
2267 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
2268 (I386_USE_SYSENTER): New. Defined to 0.
2269
2270 2017-08-08 Andreas Schwab <schwab@suse.de>
2271
2272 [BZ #21041]
2273 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
2274 * nptl/pt-system.c (system): Likewise.
2275
2276 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2277
2278 [BZ #21780]
2279 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
2280 EOPNOTSUPP.
2281 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
2282 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
2283 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
2284 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
2285 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2286 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2287 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
2288
2289 2017-08-07 Joseph Myers <joseph@codesourcery.com>
2290
2291 [BZ #21899]
2292 * bits/sigaction.h (struct sigaction): Define sa_handler and
2293 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
2294 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2295 [__USE_XOPEN_EXTENDED].
2296 (SA_RESTART): Likewise.
2297 (SA_NODEFER): Likewise.
2298 (SA_RESETHAND): Likewise.
2299 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
2300 (struct sigaction): Define sa_handler and sa_sigaction using union
2301 also for [__USE_XOPEN_EXTENDED].
2302 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2303 [__USE_XOPEN_EXTENDED].
2304 (SA_RESTART): Likewise.
2305 (SA_NODEFER): Likewise.
2306 (SA_RESETHAND): Likewise.
2307 * sysdeps/unix/sysv/linux/bits/sigaction.h
2308 (struct sigaction): Define sa_handler and sa_sigaction using union
2309 also for [__USE_XOPEN_EXTENDED].
2310 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2311 [__USE_XOPEN_EXTENDED].
2312 (SA_RESTART): Likewise.
2313 (SA_NODEFER): Likewise.
2314 (SA_RESETHAND): Likewise.
2315 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
2316 (struct sigaction): Define sa_handler and sa_sigaction using union
2317 also for [__USE_XOPEN_EXTENDED].
2318 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2319 [__USE_XOPEN_EXTENDED].
2320 (SA_RESTART): Likewise.
2321 (SA_NODEFER): Likewise.
2322 (SA_RESETHAND): Likewise.
2323 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
2324 (struct sigaction): Define sa_handler and sa_sigaction using union
2325 also for [__USE_XOPEN_EXTENDED].
2326 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2327 [__USE_XOPEN_EXTENDED].
2328 (SA_RESTART): Likewise.
2329 (SA_NODEFER): Likewise.
2330 (SA_RESETHAND): Likewise.
2331 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
2332 (struct sigaction): Define sa_handler and sa_sigaction using union
2333 also for [__USE_XOPEN_EXTENDED].
2334 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2335 [__USE_XOPEN_EXTENDED].
2336 (SA_RESTART): Likewise.
2337 (SA_NODEFER): Likewise.
2338 (SA_RESETHAND): Likewise.
2339 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
2340 (struct sigaction): Define sa_handler and sa_sigaction using union
2341 also for [__USE_XOPEN_EXTENDED].
2342 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2343 [__USE_XOPEN_EXTENDED].
2344 (SA_RESTART): Likewise.
2345 (SA_NODEFER): Likewise.
2346 (SA_RESETHAND): Likewise.
2347 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
2348 (struct sigaction): Define sa_handler and sa_sigaction using union
2349 also for [__USE_XOPEN_EXTENDED].
2350 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2351 [__USE_XOPEN_EXTENDED].
2352 (SA_RESTART): Likewise.
2353 (SA_NODEFER): Likewise. Define directly rather than as alias.
2354 (SA_RESETHAND): Likewise.
2355 (SA_INTERRUPT): Define only for [__USE_MISC].
2356 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
2357 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
2358 [__USE_MISC].
2359 (SA_STACK): Define only for [__USE_MISC].
2360 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
2361 (struct sigaction): Define sa_handler and sa_sigaction using union
2362 also for [__USE_XOPEN_EXTENDED].
2363 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2364 [__USE_XOPEN_EXTENDED].
2365 (SA_RESTART): Likewise.
2366 (SA_NODEFER): Likewise.
2367 (SA_RESETHAND): Likewise.
2368 (SA_NOPTRACE): Define only for [__USE_MISC].
2369
2370 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
2371 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
2372 (struct catalog_info): Likewise.
2373 * inet/htontest.c (lo): Likewise.
2374 (foo): Likewise.
2375 * inet/inet_lnaof.c (inet_lnaof): Likewise.
2376 * inet/inet_net.c (inet_network): Likewise.
2377 * inet/inet_netof.c (inet_netof): Likewise.
2378 * inet/rcmd.c (__ivaliduser): Likewise.
2379 (iruserok): Likewise.
2380 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2381 * locale/programs/locale-spec.c (locale_special): Likewise.
2382 * nis/nis_findserv.c (struct findserv_req): Likewise.
2383 (__nis_findfastest_with_timeout): Likewise.
2384 * nss/test-netdb.c (test_network): Likewise.
2385 * resolv/inet_neta.c (inet_neta): Likewise.
2386 * resolv/ns_date.c (ns_datetosecs): Likewise.
2387 (SECS_PER_DAY): Likewise.
2388 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
2389 Likewise.
2390 * resolv/res_comp.c (__putlong): Likewise.
2391 (__putshort): Likewise.
2392 (_getlong): Likewise.
2393 (_getshort): Likewise.
2394 * resolv/res_debug.c (p_time): Likewise.
2395 (precsize_ntoa): Likewise.
2396 (precsize_aton): Likewise.
2397 (latlon2ul): Likewise.
2398 (loc_aton): Likewise.
2399 (loc_ntoa): Likewise.
2400 * resolv/res_hconf.c (struct netaddr): Likewise.
2401 (_res_hconf_reorder_addrs): Likewise.
2402 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
2403 (clnttcp_control): Likewise.
2404 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
2405 (clntudp_control): Likewise.
2406 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
2407 (clntunix_control): Likewise.
2408 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
2409 * sunrpc/rpc/auth.h (union des_block): Likewise.
2410 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
2411 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
2412 (xdrrec_create): Likewise.
2413 (xdrrec_endofrecord): Likewise.
2414 (flush_out): Likewise.
2415 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
2416 (xdrstdio_putlong): Likewise.
2417 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
2418 Likewise.
2419
2420 * misc/sys/cdefs.h (__long_double_t): Remove.
2421 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
2422 instead of __long_double_t,
2423 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
2424
2425 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
2426
2427 * benchtests/scripts/compare_strings.py: Avoid display error when
2428 running on a text terminal.
2429
2430 * benchtests/scripts/compare_strings.py (main): Add an
2431 optional -base option.
2432 (process_results): New argument base_func.
2433
2434 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
2435 hardcoding memcpy.
2436 * benchtests/bench-memcpy-large.c (test_name): Likewise.
2437 * benchtests/bench-memcpy-random.c (test_name): Likewise.
2438
2439 2017-08-07 Andreas Schwab <schwab@suse.de>
2440
2441 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
2442 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
2443 * intl/Makefile ($(objpfx)tst-gettext.out)
2444 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
2445 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
2446 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
2447 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
2448 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
2449 * posix/Makefile ($(objpfx)globtest.out)
2450 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
2451 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
2452 ($(objpfx)tst-printf.out): Likewise.
2453 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
2454 ($(objpfx)tst-setcontext3.out): Likewise.
2455
2456 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
2457
2458 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2459 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
2460 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
2461 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
2462 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
2463 and mptan-fma.
2464 (CFLAGS-doasin-fma.c): New.
2465 (CFLAGS-dosincos-fma.c): Likewise.
2466 (CFLAGS-e_asin-fma.c): Likewise.
2467 (CFLAGS-e_atan2-fma.c): Likewise.
2468 (CFLAGS-e_exp-fma.c): Likewise.
2469 (CFLAGS-e_log-fma.c): Likewise.
2470 (CFLAGS-e_pow-fma.c): Likewise.
2471 (CFLAGS-halfulp-fma.c): Likewise.
2472 (CFLAGS-mpa-fma.c): Likewise.
2473 (CFLAGS-mpatan-fma.c): Likewise.
2474 (CFLAGS-mpatan2-fma.c): Likewise.
2475 (CFLAGS-mpexp-fma.c): Likewise.
2476 (CFLAGS-mplog-fma.c): Likewise.
2477 (CFLAGS-mpsqrt-fma.c): Likewise.
2478 (CFLAGS-mptan-fma.c): Likewise.
2479 (CFLAGS-s_atan-fma.c): Likewise.
2480 (CFLAGS-sincos32-fma.c): Likewise.
2481 (CFLAGS-slowexp-fma.c): Likewise.
2482 (CFLAGS-slowpow-fma.c): Likewise.
2483 (CFLAGS-s_sin-fma.c): Likewise.
2484 (CFLAGS-s_tan-fma.c): Likewise.
2485 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
2486 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
2487 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
2488 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
2489 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
2490 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
2491 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
2492 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
2493 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
2494 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
2495 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
2496 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
2497 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
2498 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
2499 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
2500 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
2501 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
2502 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
2503 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
2504 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
2505 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
2506 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
2507 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
2508 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
2509 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
2510 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
2511 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
2512 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
2513 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
2514 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
2515 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
2516
2517 2017-08-04 Joseph Myers <joseph@codesourcery.com>
2518
2519 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
2520 (min_of_type_f): New macro.
2521 (min_of_type_): Likewise.
2522 (min_of_type_l): Likewise.
2523 (min_of_type_f128): Likewise.
2524 (min_of_type): Define using __MATH_TG and taking an expression
2525 argument.
2526 (math_check_force_underflow): Pass expression instead of type to
2527 min_of_type.
2528 (math_check_force_underflow_nonneg): Likewise.
2529
2530 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2531
2532 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
2533 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
2534 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
2535
2536 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2537
2538 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2539 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
2540 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
2541 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
2542 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
2543 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
2544 memcpy_chk-nonshared, mempcpy_chk-nonshared,
2545 memmove_chk-nonshared and memset_chk-nonshared
2546 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
2547 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
2548 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
2549 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
2550 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
2551 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
2552 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
2553 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
2554 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
2555 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
2556 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
2557 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
2558 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
2559 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
2560 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
2561 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
2562 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
2563 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
2564 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
2565 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
2566 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
2567 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
2568 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
2569 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
2570 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
2571 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
2572 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
2573 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
2574 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
2575 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
2576 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
2577 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
2578 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
2579 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
2580 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
2581 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
2582 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
2583 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
2584 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
2585 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
2586 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
2587 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
2588 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
2589 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
2590 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
2591 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
2592 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
2593 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
2594 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
2595 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
2596 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
2597 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
2598 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
2599 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
2600 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
2601 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
2602 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
2603 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
2604 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
2605 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
2606 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
2607 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
2608 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
2609 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
2610 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
2611 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
2612 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
2613 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
2614 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
2615 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2616 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
2617 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2618 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2619 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2620 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2621 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2622 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2623 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2624 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2625 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2626 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2627 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2628 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2629 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2630 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2631 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2632 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2633 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2634 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2635 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2636 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2637 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2638 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2639 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2640 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2641 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2642 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2643 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2644 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2645 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2646 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2647 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2648 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2649 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2650 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2651 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2652 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2653 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2654
2655 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2656
2657 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
2658 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
2659 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
2660 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
2661 svml_d_log2_core-sse2, svml_d_log4_core-sse,
2662 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
2663 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
2664 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
2665 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
2666 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
2667 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
2668 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
2669 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
2670 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
2671 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
2672 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
2673 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
2674 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
2675 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
2676 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
2677 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
2678 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
2679 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
2680 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
2681 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
2682 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
2683 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
2684 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
2685 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
2686 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
2687 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
2688 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
2689 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
2690 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
2691 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
2692 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
2693 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
2694 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
2695 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
2696 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
2697 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
2698 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
2699 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
2700 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
2701 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
2702 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
2703 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
2704 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
2705 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
2706 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
2707 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
2708 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
2709 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
2710 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
2711 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
2712 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
2713 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
2714 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
2715 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
2716 ...
2717 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
2718 Don't include <sysdep.h> nor <init-arch.h>.
2719 (_ZGVbN2v_cos): Removed.
2720 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
2721 ...
2722 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
2723 Don't include <sysdep.h> nor <init-arch.h>.
2724 (_ZGVdN4v_cos): Removed.
2725 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
2726 ...
2727 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
2728 Don't include <sysdep.h> nor <init-arch.h>.
2729 (_ZGVeN8v_cos): Removed.
2730 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
2731 ...
2732 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
2733 Don't include <sysdep.h> nor <init-arch.h>.
2734 (_ZGVbN2v_exp): Removed.
2735 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
2736 ...
2737 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
2738 Don't include <sysdep.h> nor <init-arch.h>.
2739 (_ZGVdN4v_exp): Removed.
2740 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
2741 ...
2742 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
2743 Don't include <sysdep.h> nor <init-arch.h>.
2744 (_ZGVeN8v_exp): Removed.
2745 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
2746 ...
2747 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
2748 Don't include <sysdep.h> nor <init-arch.h>.
2749 (_ZGVbN2v_log): Removed.
2750 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
2751 ...
2752 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
2753 Don't include <sysdep.h> nor <init-arch.h>.
2754 (_ZGVdN4v_log): Removed.
2755 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
2756 ...
2757 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
2758 Don't include <sysdep.h> nor <init-arch.h>.
2759 (_ZGVeN8v_log): Removed.
2760 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
2761 ...
2762 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
2763 Don't include <sysdep.h> nor <init-arch.h>.
2764 (_ZGVbN2vv_pow): Removed.
2765 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
2766 ...
2767 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
2768 Don't include <sysdep.h> nor <init-arch.h>.
2769 (_ZGVdN4vv_pow): Removed.
2770 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
2771 ...
2772 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
2773 Don't include <sysdep.h> nor <init-arch.h>.
2774 (_ZGVeN8vv_pow): Removed.
2775 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
2776 ...
2777 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
2778 Don't include <sysdep.h> nor <init-arch.h>.
2779 (_ZGVbN2v_sin): Removed.
2780 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
2781 ...
2782 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
2783 Don't include <sysdep.h> nor <init-arch.h>.
2784 (_ZGVbN4v_sin): Removed.
2785 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
2786 ...
2787 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
2788 Don't include <sysdep.h> nor <init-arch.h>.
2789 (_ZGVbN8v_sin): Removed.
2790 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
2791 ...
2792 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
2793 Don't include <sysdep.h> nor <init-arch.h>.
2794 (_ZGVbN2vvv_sincos): Removed.
2795 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
2796 ...
2797 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
2798 Don't include <sysdep.h> nor <init-arch.h>.
2799 (_ZGVdN4vvv_sincos): Removed.
2800 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
2801 ...
2802 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
2803 Don't include <sysdep.h> nor <init-arch.h>.
2804 (_ZGVeN8vvv_sincos): Removed.
2805 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
2806 ...
2807 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
2808 Don't include <sysdep.h> nor <init-arch.h>.
2809 (_ZGVeN16v_cosf): Removed.
2810 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
2811 ...
2812 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
2813 Don't include <sysdep.h> nor <init-arch.h>.
2814 (_ZGVbN4v_cosf): Removed.
2815 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
2816 ...
2817 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
2818 Don't include <sysdep.h> nor <init-arch.h>.
2819 (_ZGVdN8v_cosf): Removed.
2820 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
2821 ...
2822 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
2823 Don't include <sysdep.h> nor <init-arch.h>.
2824 (_ZGVeN16v_expf): Removed.
2825 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
2826 ...
2827 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
2828 Don't include <sysdep.h> nor <init-arch.h>.
2829 (_ZGVbN4v_expf): Removed.
2830 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
2831 ...
2832 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
2833 Don't include <sysdep.h> nor <init-arch.h>.
2834 (_ZGVdN8v_expf): Removed.
2835 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
2836 ...
2837 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
2838 Don't include <sysdep.h> nor <init-arch.h>.
2839 (_ZGVeN16v_logf): Removed.
2840 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
2841 ...
2842 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
2843 Don't include <sysdep.h> nor <init-arch.h>.
2844 (_ZGVbN4v_logf): Removed.
2845 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
2846 ...
2847 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
2848 Don't include <sysdep.h> nor <init-arch.h>.
2849 (_ZGVdN8v_logf): Removed.
2850 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
2851 ...
2852 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
2853 Don't include <sysdep.h> nor <init-arch.h>.
2854 (_ZGVeN16vv_powf): Removed.
2855 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
2856 ...
2857 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
2858 Don't include <sysdep.h> nor <init-arch.h>.
2859 (_ZGVbN4vv_powf): Removed.
2860 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
2861 ...
2862 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
2863 Don't include <sysdep.h> nor <init-arch.h>.
2864 (_ZGVdN8vv_powf): Removed.
2865 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
2866 ...
2867 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
2868 Don't include <sysdep.h> nor <init-arch.h>.
2869 (_ZGVeN16vvv_sincosf): Removed.
2870 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
2871 ...
2872 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
2873 Don't include <sysdep.h> nor <init-arch.h>.
2874 (_ZGVbN4vvv_sincosf): Removed.
2875 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
2876 ...
2877 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
2878 Don't include <sysdep.h> nor <init-arch.h>.
2879 (_ZGVdN8vvv_sincosf): Removed.
2880 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
2881 ...
2882 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
2883 Don't include <sysdep.h> nor <init-arch.h>.
2884 (_ZGVeN16v_sinf): Removed.
2885 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
2886 ...
2887 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
2888 Don't include <sysdep.h> nor <init-arch.h>.
2889 (_ZGVbN4v_sinf): Removed.
2890 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
2891 ...
2892 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
2893 Don't include <sysdep.h> nor <init-arch.h>.
2894 (_ZGVdN8v_sinf): Removed.
2895
2896 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2897
2898 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2899 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
2900 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
2901 s_rint-sse4_1 and s_rintf-sse4_1.
2902 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
2903 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
2904 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
2905 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
2906 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
2907 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
2908 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
2909 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
2910 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
2911 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
2912 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
2913 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2914 (__ceil): Removed.
2915 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
2916 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
2917 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2918 (__ceilf): Removed.
2919 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
2920 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
2921 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2922 (__floor): Removed.
2923 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
2924 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
2925 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2926 (__floorf): Removed.
2927 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
2928 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
2929 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2930 (__nearbyint): Removed.
2931 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
2932 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
2933 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2934 (__nearbyintf): Removed.
2935 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
2936 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
2937 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2938 (__rint): Removed.
2939 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
2940 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
2941 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2942 (__rintf): Removed.
2943
2944 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2945
2946 * sysdeps/i386/start.S (_start): Check Check PIC instead of
2947 SHARED. Avoid dynamic relocation against main in static PIE.
2948
2949 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2950
2951 [BZ #21815]
2952 * elf/Makefile (CFLAGS-tst-prelink.c): New.
2953 (LDFLAGS-tst-prelink): Likewise.
2954
2955 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2956
2957 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
2958 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
2959 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
2960 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
2961 (INTERNAL_SYSCALL_NCS): Likewise.
2962 (LOADARGS_1): Likewise.
2963 (LOADARGS_5): Likewise.
2964 (RESTOREARGS_1): Likewise.
2965 (RESTOREARGS_5): Likewise.
2966
2967 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2968
2969 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
2970 (MEMPCPY_SYMBOL): Likewise.
2971 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
2972 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
2973 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
2974 in libc.a.
2975 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2976 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
2977 Likewise.
2978 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
2979 (__hidden_ver1): Don't use in libc.a.
2980 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
2981 (__mempcpy): Don't create a weak alias in libc.a.
2982 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
2983 libc.a.
2984 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
2985 (__hidden_ver1): Don't use in libc.a.
2986
2987 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2988
2989 * config.make.in (have-insert): New.
2990 * configure.ac (libc_cv_insert): New. Set to yes if linker
2991 supports INSERT in linker script.
2992 (AC_SUBST(libc_cv_insert): New.
2993 * configure: Regenerated.
2994 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
2995 if $(have-insert) == yes.
2996
2997 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2998
2999 * elf/Makefile (tests): Add vismain only if
3000 $(have-protected-data) == yes.
3001 (tests-pie): Likewise.
3002
3003 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
3004
3005 [BZ #21871]
3006 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3007 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
3008
3009 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
3010
3011 [BZ #21790]
3012 * sysdeps/i386/i586/memset.S
3013 (__memset_zero_constant_len_parameter): Removed.
3014 * sysdeps/i386/i686/memset.S
3015 (__memset_zero_constant_len_parameter): Likewise.
3016 * sysdeps/i386/i686/multiarch/memset_chk.S
3017 (__memset_zero_constant_len_parameter): Likewise.
3018 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
3019 Likewise.
3020
3021 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
3022
3023 * stdlib/getentropy.c (getentropy): Change return type to int.
3024
3025 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
3026
3027 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
3028
3029 2017-08-03 Joseph Myers <joseph@codesourcery.com>
3030
3031 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
3032 u_intN_t.
3033 * math/s_nexttowardf.c (__nexttowardf): Likewise.
3034 * sysdeps/generic/math_private.h (ieee_double_shape_type):
3035 Likewise.
3036 (ieee_float_shape_type): Likewise.
3037 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
3038 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
3039 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
3040 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
3041 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
3042 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
3043 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
3044 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
3045 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
3046 Likewise.
3047 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
3048 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
3049 (__ieee754_yn): Likewise.
3050 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
3051 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3052 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
3053 Likewise.
3054 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
3055 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
3056 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
3057 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
3058 (__erfc): Likewise.
3059 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
3060 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
3061 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
3062 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
3063 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
3064 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
3065 Likewise.
3066 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
3067 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
3068 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
3069 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
3070 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
3071 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
3072 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
3073 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
3074 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
3075 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
3076 (__issignaling): Likewise.
3077 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
3078 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
3079 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3080 Likewise.
3081 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3082 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3083 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
3084 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
3085 Likewise.
3086 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
3087 Likewise.
3088 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
3089 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
3090 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
3091 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
3092 (__erfcf): Likewise.
3093 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
3094 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
3095 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
3096 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
3097 Likewise.
3098 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
3099 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
3100 Likewise.
3101 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
3102 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
3103 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
3104 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
3105 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
3106 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
3107 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
3108 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
3109 Likewise.
3110 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
3111 Likewise.
3112 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
3113 Likewise.
3114 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
3115 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3116 Likewise.
3117 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
3118 Likewise.
3119 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3120 (__ieee754_ynl): Likewise.
3121 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
3122 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
3123 Likewise.
3124 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
3125 Likewise.
3126 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
3127 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
3128 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
3129 Likewise.
3130 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
3131 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
3132 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
3133 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
3134 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
3135 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
3136 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
3137 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
3138 Likewise.
3139 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
3140 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
3141 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
3142 Likewise.
3143 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
3144 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
3145 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
3146 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
3147 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
3148 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
3149 Likewise.
3150 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
3151 Likewise.
3152 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
3153 Likewise.
3154 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
3155 Likewise.
3156 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
3157 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
3158 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3159 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
3160 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
3161 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
3162 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
3163 Likewise.
3164 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3165 Likewise.
3166 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
3167 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
3168 Likewise.
3169 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
3170 (__ieee754_remainderl): Likewise.
3171 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
3172 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
3173 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
3174 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
3175 Likewise.
3176 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
3177 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
3178 Likewise.
3179 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
3180 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
3181 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
3182 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
3183 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
3184 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3185 Likewise.
3186 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
3187 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
3188 (__ieee754_y0l): Likewise.
3189 (pzero): Likewise.
3190 (qzero): Likewise.
3191 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
3192 (__ieee754_y1l): Likewise.
3193 (pone): Likewise.
3194 (qone): Likewise.
3195 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3196 (__ieee754_ynl): Likewise.
3197 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
3198 (__ieee754_lgammal_r): Likewise.
3199 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
3200 Likewise.
3201 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
3202 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
3203 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
3204 (__erfcl): Likewise.
3205 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
3206 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
3207 Likewise.
3208 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
3209 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
3210 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
3211 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
3212 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
3213 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3214 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
3215 Likewise.
3216 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
3217 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
3218 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
3219 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
3220 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
3221 Likewise.
3222 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
3223 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
3224 Likewise.
3225 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
3226 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
3227 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
3228 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
3229 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
3230
3231 2017-08-03 Florian Weimer <fweimer@redhat.com>
3232
3233 [BZ #21885]
3234 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
3235 on memory allocation failure.
3236
3237 2017-08-03 Alan Modra <amodra@gmail.com>
3238
3239 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
3240 tst-tlsopt-powerpc.c with function name change and no test harness.
3241 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
3242 Call tls_get_addr_opt_test.
3243 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
3244 (modules-names): Add mod-tlsopt-powerpc.
3245 (mod-tlsopt-powerpc.so-no-z-defs): Define.
3246 (tst-tlsopt-powerpc): Depend on .so.
3247 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
3248 define. Expand use in TLS_GD and TLS_LD.
3249
3250 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3251
3252 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
3253 function.
3254 * sysdeps/posix/shm_open.c: Include <pthread.h>.
3255
3256 2017-08-02 Joseph Myers <joseph@codesourcery.com>
3257
3258 [BZ #21686]
3259 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
3260 comparing size with that of double.
3261 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
3262 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
3263 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
3264 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
3265 (__TGMATH_BINARY_REAL_IMAG): Likewise.
3266 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
3267 unsigned __int128 types.
3268
3269 2017-08-02 Steve Ellcey <sellcey@cavium.com>
3270
3271 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
3272 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
3273 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
3274 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
3275 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
3276
3277 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
3278
3279 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
3280
3281 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
3282
3283 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
3284 of SHARED.
3285 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
3286 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
3287 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
3288 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
3289 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
3290 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
3291 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
3292
3293 2017-08-02 Joseph Myers <joseph@codesourcery.com>
3294
3295 [BZ #21685]
3296 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
3297 bit-field expressions passed to sizeof or typeof.
3298 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3299 (__TGMATH_F128): Likewise.
3300 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3301 (__TGMATH_CF128): Likewise.
3302 (__TGMATH_UNARY_REAL_ONLY): Likewise.
3303 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
3304 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
3305 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
3306 (__TGMATH_BINARY_REAL_ONLY): Likewise.
3307 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
3308 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
3309 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
3310 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
3311 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
3312 (__TGMATH_UNARY_REAL_IMAG): Likewise.
3313 (__TGMATH_UNARY_IMAG): Likewise.
3314 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
3315 (__TGMATH_BINARY_REAL_IMAG): Likewise.
3316 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
3317 type.
3318 (define_vars_for_type): Handle bit_field type specially.
3319 (Tests.__init__): Declare structure with bit-field element.
3320
3321 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
3322
3323 [BZ #21791]
3324 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
3325 (MEMCPY_CHK): Define only if SHARED is defined.
3326 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
3327 Likewise.
3328 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
3329 Likewise.
3330
3331 See ChangeLog.18 for earlier changes.